[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/94: gnu: ruby-mocha: Update to 2.0.4.
From: |
guix-commits |
Subject: |
18/94: gnu: ruby-mocha: Update to 2.0.4. |
Date: |
Mon, 3 Jul 2023 06:06:21 -0400 (EDT) |
cbaines pushed a commit to branch ruby-team
in repository guix.
commit ce35f4e1178744d849537800e0acc4c23963e443
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Mon Jun 26 20:35:42 2023 +0100
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.
---
gnu/packages/ruby.scm | 41 ++++++++++++++++++++++++++++-------------
1 file changed, 28 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 6a8bcda92a..b23af7caa7 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -5243,27 +5243,29 @@ number, support for interrupted tests, better
backtraces, and more.")
(define-public ruby-mocha
(package
(name "ruby-mocha")
- (version "1.13.0")
+ (version "2.0.4")
(source (origin
(method url-fetch)
(uri (rubygems-uri "mocha" version))
(sha256
(base32
- "15s53ggsykk69kxqvs4416s8yxdhz6caggva55n8sjgy4ixzwp10"))))
+ "18xn9gm9yypavy9yck71fplan19hy5697mwd1rwzz7vizh3ip7bd"))))
(build-system ruby-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (add-before 'check 'remove-rubocop-dependency
- (lambda _
- ;; Disable dependency on Rubocop, which is just a linter,
- ;; and would introduce a circular dependency.
- (substitute* "mocha.gemspec"
- ((".*rubocop.*")
- "true\n"))
- #t)))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'remove-rubocop-dependency
+ (lambda _
+ ;; Disable dependency on Rubocop, which is just a linter,
+ ;; and would introduce a circular dependency.
+ (substitute* "Gemfile"
+ ((".*rubocop.*") "")))))))
+ (propagated-inputs
+ (list ruby-ruby2-keywords))
(native-inputs
- (list ruby-introspection))
+ (list ruby-psych-3
+ ruby-introspection))
(synopsis "Mocking and stubbing library for Ruby")
(description
"Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
@@ -5272,6 +5274,19 @@ allows mocking and stubbing of methods on real
(non-mock) classes.")
;; Mocha can be used with either license at the users choice.
(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
(package
(name "ruby-mocha-on-bacon")
- branch ruby-team created (now 26b76715ab), guix-commits, 2023/07/03
- 06/94: gnu: ruby-pry: Update to 0.14.2., guix-commits, 2023/07/03
- 08/94: gnu: ruby-contracts: Update to 0.17., guix-commits, 2023/07/03
- 20/94: gnu: Add ruby-psych-3., guix-commits, 2023/07/03
- 02/94: gnu: ruby-bindex: Update to 0.8.1 and rename to ruby-skiptrace., guix-commits, 2023/07/03
- 18/94: gnu: ruby-mocha: Update to 2.0.4.,
guix-commits <=
- 09/94: gnu: ruby-websocket: Update to 1.2.9-1.950e416., guix-commits, 2023/07/03
- 33/94: gnu: ruby-listen: Update to 3.8.0., guix-commits, 2023/07/03
- 14/94: gnu: ruby-range-compressor: Add ruby-sorted-set as an input., guix-commits, 2023/07/03
- 03/94: gnu: ruby-dep: Build with ruby-2.7., guix-commits, 2023/07/03
- 04/94: gnu: ruby-builder: Fix build., guix-commits, 2023/07/03
- 28/94: gnu: ruby-minitest: Update to 5.18.1., guix-commits, 2023/07/03
- 10/94: gnu: ruby-gettext: Update to 3.4.4., guix-commits, 2023/07/03
- 25/94: gnu: ruby-tzinfo-data: Update to 1.2023.3., guix-commits, 2023/07/03
- 05/94: gnu: ruby-rspec-core-2: Fix build., guix-commits, 2023/07/03
- 12/94: gnu: Add ruby-set., guix-commits, 2023/07/03