[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
198/229: gnu: Add ruby-rspec-stubbed-env.
From: |
guix-commits |
Subject: |
198/229: gnu: Add ruby-rspec-stubbed-env. |
Date: |
Tue, 28 Mar 2023 22:29:23 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 3c8c36f5435f6223b409425cac5838cefc5601ff
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Mar 16 00:16:01 2023 -0400
gnu: Add ruby-rspec-stubbed-env.
* gnu/packages/ruby.scm (ruby-rspec-stubbed-env): New variable.
---
gnu/packages/ruby.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 53a5c8a0ec..78a2fd07c4 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -952,6 +952,42 @@ RSpec tests.")
(home-page "https://github.com/dblock/rspec-rerun")
(license license:expat)))
+(define-public ruby-rspec-stubbed-env
+ ;; There is no release nor tag (see:
+ ;; https://github.com/pboling/rspec-stubbed_env/issues/7).
+ (let ((revision "0")
+ (commit "9d767dec77a6d130f6ad83c48a00a5c81b14b9fa"))
+ (package
+ (name "ruby-rspec-stubbed-env")
+ (version (git-version "1.0.0" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pboling/rspec-stubbed_env")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1dy4m04h613dp0s59rknjd6h4lqs1h17mffc5kd8kh046mk8nr1p"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list #:test-target "spec"
+ #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'streamline-requirements
+ (lambda _
+ ;; Remove extraneous development dependencies.
+ (substitute* "rspec-stubbed_env.gemspec"
+ ((".*bundler.*") "")
+ ((".*rubocop.*") "")))))))
+ (native-inputs (list ruby-simplecov))
+ (propagated-inputs (list ruby-rspec))
+ (synopsis "RSpec plugin to stub environment variables")
+ (description
+ "This RSpec plugin can be used to stub environment variables in a scoped
+context for testing.")
+ (home-page "https://github.com/pboling/rspec-stubbed_env")
+ (license license:expat))))
+
(define-public ruby-rspec-wait
(package
(name "ruby-rspec-wait")
- 162/229: gnu: ruby-globalid: Update to 1.1.0., (continued)
- 162/229: gnu: ruby-globalid: Update to 1.1.0., guix-commits, 2023/03/28
- 178/229: gnu: ruby-rubocop-rspec-minimal: Update source and home page URL., guix-commits, 2023/03/28
- 189/229: gnu: ruby-shoulda-context: Update to 2.0.0., guix-commits, 2023/03/28
- 134/229: gnu: Add ruby-capybara., guix-commits, 2023/03/28
- 160/229: gnu: ruby-sprockets-rails: Update to 3.4.2., guix-commits, 2023/03/28
- 171/229: gnu: Add ruby-dotenv-rails., guix-commits, 2023/03/28
- 173/229: gnu: Add ruby-pleaserun., guix-commits, 2023/03/28
- 177/229: gnu: ruby-minitest: Update to 5.18.0., guix-commits, 2023/03/28
- 183/229: gnu: ruby-slim: Update to 5.1.0., guix-commits, 2023/03/28
- 192/229: gnu: ruby-shoulda-matchers: Honor #:tests?., guix-commits, 2023/03/28
- 198/229: gnu: Add ruby-rspec-stubbed-env.,
guix-commits <=
- 204/229: gnu: ruby-hashie: Update to 5.0.0 and enable tests., guix-commits, 2023/03/28
- 208/229: gnu: ruby-omniauth-oauth2: Update to 1.8.0., guix-commits, 2023/03/28
- 217/229: gnu: Add ruby-truthy., guix-commits, 2023/03/28
- 218/229: gnu: ruby-coveralls: Propagate ruby-simplecov and enable tests., guix-commits, 2023/03/28
- 224/229: Revert "lint: Append "/info/refs" to git-reference-url.", guix-commits, 2023/03/28
- 227/229: services: fstrim: Fix schedule ungexp., guix-commits, 2023/03/28
- 228/229: gnu: geeqie: Update to 2.0.1., guix-commits, 2023/03/28
- 210/229: gnu: ruby-single-cov: Update to 1.9.1., guix-commits, 2023/03/28
- 168/229: gnu: Add ruby-turbo-rails., guix-commits, 2023/03/28
- 181/229: gnu: ruby-protobuf: Update to 3.10.3., guix-commits, 2023/03/28