gnu: ruby-mocha: Update to 2.0.4.

* gnu/packages/ruby.scm (ruby-mocha): Update to 2.0.4.
[arguments]: Update style.
[propagated-inputs]: Add ruby-ruby2-keywords.
[native-inputs]: Add ruby-psych-3.
(ruby-mocha-1): New variable.
This commit is contained in:
Christopher Baines 2023-06-26 20:35:42 +01:00
parent 68238b73b3
commit d619480827
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -5243,27 +5243,29 @@ (define-public ruby-maxitest
(define-public ruby-mocha (define-public ruby-mocha
(package (package
(name "ruby-mocha") (name "ruby-mocha")
(version "1.13.0") (version "2.0.4")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (rubygems-uri "mocha" version)) (uri (rubygems-uri "mocha" version))
(sha256 (sha256
(base32 (base32
"15s53ggsykk69kxqvs4416s8yxdhz6caggva55n8sjgy4ixzwp10")))) "18xn9gm9yypavy9yck71fplan19hy5697mwd1rwzz7vizh3ip7bd"))))
(build-system ruby-build-system) (build-system ruby-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:phases
(add-before 'check 'remove-rubocop-dependency #~(modify-phases %standard-phases
(lambda _ (add-before 'check 'remove-rubocop-dependency
;; Disable dependency on Rubocop, which is just a linter, (lambda _
;; and would introduce a circular dependency. ;; Disable dependency on Rubocop, which is just a linter,
(substitute* "mocha.gemspec" ;; and would introduce a circular dependency.
((".*rubocop.*") (substitute* "Gemfile"
"true\n")) ((".*rubocop.*") "")))))))
#t))))) (propagated-inputs
(list ruby-ruby2-keywords))
(native-inputs (native-inputs
(list ruby-introspection)) (list ruby-psych-3
ruby-introspection))
(synopsis "Mocking and stubbing library for Ruby") (synopsis "Mocking and stubbing library for Ruby")
(description (description
"Mocha is a mocking and stubbing library with JMock/SchMock syntax, which "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
@ -5272,6 +5274,19 @@ (define-public ruby-mocha
;; Mocha can be used with either license at the users choice. ;; Mocha can be used with either license at the users choice.
(license (list license:expat license:ruby)))) (license (list license:expat license:ruby))))
(define-public ruby-mocha-1
(package
(inherit ruby-mocha)
(version "1.13.0")
(source (origin
(method url-fetch)
(uri (rubygems-uri "mocha" version))
(sha256
(base32
"15s53ggsykk69kxqvs4416s8yxdhz6caggva55n8sjgy4ixzwp10"))))
(arguments
'(#:tests? #f))))
(define-public ruby-mocha-on-bacon (define-public ruby-mocha-on-bacon
(package (package
(name "ruby-mocha-on-bacon") (name "ruby-mocha-on-bacon")