[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
52/229: gnu: ruby-cucumber: Update to 8.0.0.
From: |
guix-commits |
Subject: |
52/229: gnu: ruby-cucumber: Update to 8.0.0. |
Date: |
Tue, 28 Mar 2023 22:29:01 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit f356b973e8bd9932e381165026518b4f039bef56
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Mar 6 17:44:52 2023 -0500
gnu: ruby-cucumber: Update to 8.0.0.
* gnu/packages/ruby.scm (ruby-cucumber): Update to 8.0.0.
[arguments]: Delete trailing #t. Adjust disable-rubocop phase. Refine the
strip-version-requirements phase. Set #:test-target to "spec".
[propagated-inputs]: Add ruby-cucumber-ci-environment, ruby-mime-types and
ruby-sys-uname. Remove ruby-cucumber-create-meta and ruby-multi-json.
[native-inputs]: Remove ruby-aruba-without-tests and ruby-rubocop.
Add ruby-cucumber-compatibility-kit.
(ruby-aruba-without-tests): Delete variable.
---
gnu/packages/ruby.scm | 77 ++++++++++++++++++++++-----------------------------
1 file changed, 33 insertions(+), 44 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 97d280f704..8b4aab4231 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -8139,18 +8139,6 @@ language.")
(home-page "https://github.com/cucumber/aruba")
(license license:expat)))
-;; A version of ruby-aruba without tests run so that circular dependencies can
-;; be avoided.
-(define ruby-aruba-without-tests
- (package
- (inherit ruby-aruba)
- (arguments '(#:tests? #f))
- (propagated-inputs
- `(("ruby-cucumber" ,ruby-cucumber-without-tests)
- ,@(alist-delete "ruby-cucumber"
- (package-propagated-inputs ruby-aruba))))
- (native-inputs '())))
-
(define-public ruby-sys-uname
(package
(name "ruby-sys-uname")
@@ -8265,7 +8253,7 @@ CI environment from environment variables.")
(define-public ruby-cucumber
(package
(name "ruby-cucumber")
- (version "4.1.0")
+ (version "8.0.0")
(source
(origin
(method git-fetch)
@@ -8275,49 +8263,50 @@ CI environment from environment variables.")
(file-name (git-file-name name version))
(sha256
(base32
- "0g9rqfslbzkkrq2kvl14fgknrhfbji3bjjpjxff5nc9wzd3hd549"))))
+ "1dz880fdz6rfbh1nwwcq21v65byik46jnf9gppnrqf3p5k61i55r"))))
(build-system ruby-build-system)
(arguments
- '(#:test-target "default"
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'disable-rubocop
- ;; Rubocop lint check fails with our more recent version.
- (lambda _
- (substitute* "Rakefile"
- (("spec cucumber rubocop")
- "spec cucumber"))
- #t))
- (add-after 'extract-gemspec 'strip-version-requirements
- (lambda _
- (delete-file "Gemfile") ;do not use Bundler
- (substitute* "cucumber.gemspec"
- (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
- (string-append stripped "\n")))
- #t))
- (add-before 'check 'set-home
- (lambda _
- (setenv "HOME" (getcwd))
- #t)))))
+ (list #:test-target "spec"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'disable-rubocop
+ ;; Remove extraneous Lint checks.
+ (lambda _
+ (substitute* "Rakefile"
+ (("require 'rubocop/rake_task'")
+ "")
+ (("RuboCop::RakeTask.new")
+ ""))))
+ (add-after 'extract-gemspec 'strip-version-requirements
+ (lambda _
+ (delete-file "Gemfile") ;do not use Bundler
+ (substitute* "cucumber.gemspec"
+ ;; The dependency specifications are often trailing
+ ;; behind and appear stricter than necessary, since the
+ ;; test suite passes with the newer component versions.
+ (("(.*add_.*dependency '[_A-Za-z0-9-]+')(.*)"
+ _ stripped rest)
+ (string-append stripped " # " rest "\n")))))
+ (add-before 'check 'set-home
+ (lambda _
+ (setenv "HOME" (getcwd)))))))
(propagated-inputs
(list ruby-builder
+ ruby-cucumber-ci-environment
ruby-cucumber-core
- ruby-cucumber-create-meta
ruby-cucumber-gherkin
ruby-cucumber-html-formatter
ruby-cucumber-messages
ruby-cucumber-wire
ruby-diff-lcs
- ruby-multi-json
- ruby-multi-test))
+ ruby-mime-types
+ ruby-multi-test
+ ruby-sys-uname))
(native-inputs
- (list ;; Use a untested version of aruba, to avoid a circular dependency,
as
- ;; ruby-aruba depends on ruby-cucumber.
- ruby-aruba-without-tests
- ruby-rspec
- ruby-pry
+ (list ruby-cucumber-compatibility-kit
ruby-nokogiri
- ruby-rubocop))
+ ruby-pry
+ ruby-rspec))
(synopsis "Describe automated tests in plain language")
(description "Cucumber is a tool for running automated tests written in
plain language. It's designed to support a Behaviour Driven Development (BDD)
- 33/229: gnu: ruby-standard: Relax requirements., (continued)
- 33/229: gnu: ruby-standard: Relax requirements., guix-commits, 2023/03/28
- 35/229: gnu: Add ruby-minitest-retry., guix-commits, 2023/03/28
- 36/229: gnu: Add ruby-dalli., guix-commits, 2023/03/28
- 43/229: gnu: ruby-cucumber-tag-expressions: Update to 5.0.1, fixing build., guix-commits, 2023/03/28
- 46/229: gnu: ruby-cucumber-html-formatter: Update to 20.2.1., guix-commits, 2023/03/28
- 51/229: gnu: ruby-gherkin: Rename to ruby-cucumber-gherkin., guix-commits, 2023/03/28
- 26/229: gnu: Add ruby-rubocop-rake., guix-commits, 2023/03/28
- 30/229: gnu: Add ruby-m., guix-commits, 2023/03/28
- 31/229: gnu: Add ruby-language-server-protocol., guix-commits, 2023/03/28
- 49/229: gnu: ruby-cucumber-expressions: Update to 16.1.2., guix-commits, 2023/03/28
- 52/229: gnu: ruby-cucumber: Update to 8.0.0.,
guix-commits <=
- 59/229: gnu: ruby-activemodel: Update to 7.0.4.3 and enable tests., guix-commits, 2023/03/28
- 63/229: gnu: Add ruby-delayed-job., guix-commits, 2023/03/28
- 53/229: gnu: Remove ruby-cucumber-create-meta., guix-commits, 2023/03/28
- 54/229: gnu: Add ruby-rake-manifest., guix-commits, 2023/03/28
- 57/229: gnu: ruby-railties: Update to 7.0.4.3., guix-commits, 2023/03/28
- 61/229: gnu: Add ruby-simplecov-lcov., guix-commits, 2023/03/28
- 68/229: gnu: Add ruby-xpath., guix-commits, 2023/03/28
- 72/229: gnu: Add ruby-selenium-webdriver., guix-commits, 2023/03/28
- 76/229: gnu: ruby-rack: Update home page URL., guix-commits, 2023/03/28
- 41/229: gnu: ruby-cucumber-messages: Update to 21.0.1., guix-commits, 2023/03/28