[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/59: gnu: ruby-mocha: Update to 2.0.4.
From: |
guix-commits |
Subject: |
18/59: gnu: ruby-mocha: Update to 2.0.4. |
Date: |
Wed, 28 Jun 2023 05:55:13 -0400 (EDT) |
cbaines pushed a commit to branch ruby-team
in repository guix.
commit 29d2bfaca4fed6835801bcbda3b809e8959fabe8
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")
- 22/59: gnu: ruby-hoe: Update to 4.0.4., (continued)
- 22/59: gnu: ruby-hoe: Update to 4.0.4., guix-commits, 2023/06/28
- 26/59: gnu: ruby-json-pure: Update to 2.6.3., guix-commits, 2023/06/28
- 25/59: gnu: ruby-tzinfo-data: Update to 1.2023.3., guix-commits, 2023/06/28
- 27/59: gnu: ruby-markaby: Fix tests., guix-commits, 2023/06/28
- 32/59: gnu: ruby-term-ansicolor: Fix build., guix-commits, 2023/06/28
- 35/59: gnu: ruby-http-cookie: Update to 1.0.5., guix-commits, 2023/06/28
- 42/59: gnu: ruby-tilt: Update to 2.0.11., guix-commits, 2023/06/28
- 33/59: gnu: ruby-listen: Update to 3.8.0., guix-commits, 2023/06/28
- 37/59: gnu: Add ruby-http-accept-1., guix-commits, 2023/06/28
- 49/59: gnu: %ruby-rails-version: Update to 7.0.5.1., guix-commits, 2023/06/28
- 18/59: gnu: ruby-mocha: Update to 2.0.4.,
guix-commits <=
- 23/59: gnu: ruby-sqlite3: Update to 1.6.3., guix-commits, 2023/06/28
- 24/59: gnu: ruby-rack: Update to 2.2.7., guix-commits, 2023/06/28
- 28/59: gnu: ruby-minitest: Update to 5.18.1., guix-commits, 2023/06/28
- 29/59: gnu: ruby-thor: Update to 1.2.2., guix-commits, 2023/06/28
- 31/59: gnu: ruby-minitest-bonus-assertions: Fix build., guix-commits, 2023/06/28
- 34/59: gnu: ruby-mime-types: Update to 3.4.1., guix-commits, 2023/06/28
- 36/59: gnu: Add ruby-http-accept., guix-commits, 2023/06/28
- 38/59: gnu: ruby-protobuf: Fix build., guix-commits, 2023/06/28
- 39/59: gnu: ruby-hoe: Fix build., guix-commits, 2023/06/28
- 43/59: gnu: ruby-rest-client: Update to 2.1.0., guix-commits, 2023/06/28