gnu: ruby-cucumber-core: Update to 7.1.0.

* gnu/packages/ruby.scm (ruby-cucumber-core): Update to 7.1.0.
[origin]: Use the git-fetch method.
[arguments]: Enable tests, by specifying the test target and...
[native-inputs]: ...adding ruby-rspec, ruby-rake, ruby-coveralls,
ruby-rubocop, ruby-simplecov and ruby-unindent as native inputs.  Remove
bundler.
[phases]{relax-version-requirements}: Add phase.
[propagated-inputs]: Remove ruby-backports.  Add ruby-cucumber-messages.
This commit is contained in:
Maxim Cournoyer 2020-07-08 11:28:48 -04:00
parent f2a1b7facb
commit 95a5d992de
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -6665,24 +6665,38 @@ (define-public ruby-unindent
(define-public ruby-cucumber-core (define-public ruby-cucumber-core
(package (package
(name "ruby-cucumber-core") (name "ruby-cucumber-core")
;; Stick to major version 3, until version 4 of Cucumber is released. (version "7.1.0")
(version "3.2.1")
(source (source
(origin (origin
(method url-fetch) (method git-fetch)
(uri (rubygems-uri "cucumber-core" version)) (uri (git-reference
(url "https://github.com/cucumber/cucumber-ruby-core.git")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1iavlh8hqj9lwljbpkw06259gdicbr1bdb6pbj5yy3n8szgr8k3c")))) "1p5wb6wbggbw37ariyag4kxpiczznvgm3c8cnz1744dmbj79q1rn"))))
(build-system ruby-build-system) (build-system ruby-build-system)
(arguments
`(#:test-target "spec"
#:phases
(modify-phases %standard-phases
(add-after 'extract-gemspec 'relax-version-requirements
(lambda _
(substitute* "cucumber-core.gemspec"
(("'cucumber-tag-expressions',.*")
"'cucumber-tag-expressions', '>=2.0.0'\n"))
#t)))))
(native-inputs
`(("ruby-rspec" ,ruby-rspec)
("ruby-coveralls" ,ruby-coveralls)
("ruby-rubocop" ,ruby-rubocop)
("ruby-simplecov" ,ruby-simplecov)
("ruby-unindent" ,ruby-unindent)))
(propagated-inputs (propagated-inputs
`(("ruby-backports" ,ruby-backports) `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
("ruby-gherkin" ,ruby-gherkin) ("ruby-gherkin" ,ruby-gherkin)
("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions))) ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions)))
(native-inputs
`(("bundler" ,bundler)))
(arguments
'(#:tests? #f)) ; needs simplecov, among others
(synopsis "Core library for the Cucumber BDD app") (synopsis "Core library for the Cucumber BDD app")
(description "Cucumber is a tool for running automated tests (description "Cucumber is a tool for running automated tests
written in plain language. Because they're written in plain language, written in plain language. Because they're written in plain language,