[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
29/36: gnu: Add ruby-gimme.
From: |
guix-commits |
Subject: |
29/36: gnu: Add ruby-gimme. |
Date: |
Fri, 17 Jul 2020 23:24:46 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit c7ab342a366a9372d9c6a670a460edaeb8c550a5
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Tue Jul 14 01:18:11 2020 -0400
gnu: Add ruby-gimme.
* gnu/packages/ruby.scm (ruby-gimme): New variable.
---
gnu/packages/ruby.scm | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 63 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 5666e0c..ce41b41 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -1462,6 +1462,69 @@ for performance optimizations in Ruby code.")
(home-page "https://docs.rubocop.org/rubocop-performance/")
(license license:expat)))
+(define-public ruby-gimme
+ (let ((revision "1")
+ (commit "4e71f0236f1271871916dd403261d26533db34c0"))
+ (package
+ (name "ruby-gimme")
+ (version (git-version "0.5.0" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/searls/gimme.git")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0hrd32ygvf3i7h47ak8f623cz8ns9q7g60nnnvvlnywbggjaz3h6"))))
+ (build-system ruby-build-system)
+ (native-inputs
+ `(("ruby-coveralls" ,ruby-coveralls)
+ ("ruby-cucumber" ,ruby-cucumber)
+ ("ruby-pry" ,ruby-pry)
+ ("ruby-simplecov" ,ruby-simplecov)
+ ("ruby-rspec-given" ,ruby-rspec-given)))
+ (arguments
+ `(;; The cucumber task fails with error: "index 3 out of matches
+ ;; (IndexError)", apparently due to our newer Cucumber version.
+ ;; TODO: Try the "default" task with a future release.
+ #:test-target "spec"
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'extract-gemspec 'prepare-for-tests
+ (lambda _
+ ;; Delete failing tests (possibly due to our newer rspec
+ ;; version).
+ (delete-file "spec/gimme/gives_class_methods_spec.rb")
+ (delete-file "spec/gimme/rspec_adapter_spec.rb")
+ (delete-file "spec/gimme/verifies_class_methods_spec.rb")
+ ;; Fix duplicate version requirements and de-register files.
+ (delete-file "Gemfile")
+ (delete-file "Gemfile.lock")
+ (substitute* "gimme.gemspec"
+ ((".*\"Gemfile\".*") "")
+ ((".*\"Gemfile\\.lock\",.*") "")
+ ((".*(rspec|cucumber).*\">= 0\".*") "")
+ (("\"spec/gimme/gives_class_methods_spec.rb\",") "")
+ (("\"spec/gimme/rspec_adapter_spec.rb\",") "")
+ (("\"spec/gimme/verifies_class_methods_spec.rb\",") "")
+ ;; All of these gems relate to development, and are
+ ;; unnecessary when running the tests.
+ ((".*(add|gem).*guard-.*") "")
+ ((".*(add|gem).*jeweler.*") "")
+ ((".*(add|gem).*pry.*") "")
+ ((".*(add|gem).*growl.*") "")
+ ((".*(add|gem).*rb-fsevent.*") ""))
+ #t)))))
+ (synopsis "Lightweight test double library for Ruby")
+ (description "Gimme is a very lightweight test double library for Ruby,
+based on Mockito (a mocking framework for Java). It is an opinionated (but
+not noisy) means to facilitate test-driving by enabling the authors to specify
+only what they care about.")
+ (home-page "https://github.com/searls/gimme")
+ (license license:expat))))
+
(define-public ruby-ast
(package
(name "ruby-ast")
- 10/36: gnu: Add ruby-prawn-svg., (continued)
- 10/36: gnu: Add ruby-prawn-svg., guix-commits, 2020/07/17
- 13/36: gnu: Add ruby-treetop., guix-commits, 2020/07/17
- 17/36: gnu: ruby-coveralls: Strip exact versions from gemspec file., guix-commits, 2020/07/17
- 20/36: gnu: Add ruby-rubocop-ast., guix-commits, 2020/07/17
- 22/36: gnu: Add ruby-character-set., guix-commits, 2020/07/17
- 23/36: gnu: Add ruby-range-compressor., guix-commits, 2020/07/17
- 24/36: gnu: Add ruby-regexp-property-values., guix-commits, 2020/07/17
- 25/36: gnu: Add ruby-regexp-parser., guix-commits, 2020/07/17
- 27/36: gnu: ruby-rubocop: Update to 0.88.0., guix-commits, 2020/07/17
- 28/36: gnu: Add ruby-rubocop-performance., guix-commits, 2020/07/17
- 29/36: gnu: Add ruby-gimme.,
guix-commits <=
- 30/36: gnu: Add ruby-standard., guix-commits, 2020/07/17
- 34/36: gnu: ruby-rouge: Update to 3.21.0., guix-commits, 2020/07/17
- 12/36: gnu: Add ruby-polyglot., guix-commits, 2020/07/17
- 19/36: gnu: ruby-ast: Update to 2.4.1., guix-commits, 2020/07/17
- 21/36: gnu: Add ruby-rexml., guix-commits, 2020/07/17
- 26/36: gnu: Add ruby-test-queue., guix-commits, 2020/07/17
- 31/36: gnu: Add ruby-chunky-png., guix-commits, 2020/07/17
- 32/36: gnu: Add ruby-text-hyphen., guix-commits, 2020/07/17
- 33/36: gnu: Add ruby-open-uri-cached., guix-commits, 2020/07/17
- 35/36: gnu: Add ruby-asciidoctor-pdf., guix-commits, 2020/07/17