[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#62196] [PATCH 055/223] gnu: ruby-aruba: Update to 2.1.0.
From: |
Maxim Cournoyer |
Subject: |
[bug#62196] [PATCH 055/223] gnu: ruby-aruba: Update to 2.1.0. |
Date: |
Mon, 20 Mar 2023 13:13:47 -0400 |
* gnu/packages/ruby.scm (ruby-aruba): Update to 2.1.0.
[source]: Use git.
[arguments]: Use gexps. Rename patch phase to 'patch-paths, and update.
Rename remove-unnecessary-dependencies phase to relax-requirements and update.
Move the check phase after the install phase, and add a new set-GEM_PATH
phase.
[native-inputs]: Remove ruby-fuubar. Add ruby-rake-manifest. Move bundler
to...
[propagated-inputs]: ... here. Remove ruby-ffi and ruby-yard.
---
gnu/packages/ruby.scm | 107 +++++++++++++++++++++++-------------------
1 file changed, 58 insertions(+), 49 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index fe5f4466f3..132a06bc57 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -8075,62 +8075,71 @@ (define-public ruby-gherkin-ruby
(define-public ruby-aruba
(package
(name "ruby-aruba")
- (version "0.14.14")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "aruba" version))
- (sha256
- (base32
- "0l2mfpdxc03gdrbwc2hv4vdhjhqhfcdp6d02j05j64ncpi9srlqn"))))
+ (version "2.1.0")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/cucumber/aruba")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1mmlgqhi6yww3z34hmrrnha2rygkv6kx0q962z31dqxjkcv23yfd"))))
(build-system ruby-build-system)
(arguments
- '(#:test-target "spec"
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'patch
- (lambda _
- (substitute* "spec/aruba/api_spec.rb"
- ;; This resolves some errors in the specs
- ;;
- ;; undefined method `parse' for Time:Class
- (("require 'spec_helper'")
- "require 'spec_helper'\nrequire 'time'"))
- ;; Avoid shebang issues in this spec file
- (substitute* "spec/aruba/matchers/command_spec.rb"
- (("/usr/bin/env bash")
- (which "bash")))
- #t))
- (add-before 'check 'remove-unnecessary-dependencies
- (lambda _
- (substitute* "Gemfile"
- ((".*byebug.*") "\n")
- ((".*pry.*") "\n")
- ((".*yaml.*") "\n")
- ((".*bcat.*") "\n")
- ((".*kramdown.*") "\n")
- ((".*rubocop.*") "\n")
- ((".*cucumber-pro.*") "\n")
- ((".*cucumber.*") "\n")
- ((".*license_finder.*") "\n")
- ((".*rake.*") "gem 'rake'\n")
- ((".*relish.*") "\n"))
- (substitute* "aruba.gemspec"
- (("spec\\.add\\_runtime\\_dependency 'cucumber'.*")
- "spec.add_runtime_dependency 'cucumber'"))
- #t))
- (add-before 'check 'set-home
- (lambda _ (setenv "HOME" "/tmp") #t)))))
+ (list
+ ;; XXX: Only run the "spec" target and not the "cucumber" one, as it is
+ ;; slow and has multiple unexplained test failures.
+ #:test-target "spec"
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'patch-paths
+ (lambda _
+ ;; This test file relies on a dynamically generated script;
+ ;; patch its #!/bin/bash shebang.
+ (substitute* "spec/aruba/api/commands_spec.rb"
+ (("/bin/bash")
+ (which "bash")))))
+ (add-before 'check 'relax-requirements
+ ;; Many development requirements are not actually needed.
+ (lambda _
+ (substitute* "aruba.gemspec"
+ (("\\[\">= 0.18.0\", \"< 0.22.0\"]") ;simplecov
+ "\">= 0.18.0\"")
+ ((".*appraisal.*") "")
+ ((".*pry.*") "")
+ ((".*kramdown.*") "")
+ ((".*rubocop.*") "")
+ ((".*yard-junk.*") ""))
+ (substitute* "Rakefile"
+ ((".*require \"rubocop/rake_task\".*") "")
+ ((".*require \"yard-junk/rake\".*") "")
+ ((".*RuboCop::RakeTask.new.*") "")
+ ((".*YardJunk::Rake.define_task.*") ""))))
+ ;; The tests rely on the Gem being installed, so move the check
+ ;; phase after the install phase.
+ (delete 'check)
+ (add-after 'install 'check
+ (assoc-ref %standard-phases 'check))
+ (add-before 'check 'set-GEM_PATH
+ (lambda _
+ (setenv "GEM_PATH" (string-append
+ (getenv "GEM_PATH") ":"
+ #$output "/lib/ruby/vendor_ruby"))))
+ (add-before 'check 'set-home
+ (lambda _
+ (setenv "HOME" "/tmp"))))))
(native-inputs
- (list bundler ruby-rspec ruby-fuubar ruby-simplecov))
+ (list ruby-rake-manifest
+ ruby-rspec
+ ruby-simplecov))
(propagated-inputs
- (list ruby-childprocess
+ (list bundler
+ ruby-childprocess
ruby-contracts
ruby-cucumber
- ruby-ffi
ruby-rspec-expectations
- ruby-thor
- ruby-yard))
+ ruby-thor))
(synopsis "Test command-line applications with Cucumber, RSpec or
Minitest")
(description
"Aruba is an extension for Cucumber, RSpec and Minitest for testing
--
2.39.1
- [bug#62196] [PATCH 059/223] gnu: ruby-activemodel: Update to 7.0.4.3 and enable tests., (continued)
- [bug#62196] [PATCH 059/223] gnu: ruby-activemodel: Update to 7.0.4.3 and enable tests., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 068/223] gnu: Add ruby-xpath., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 074/223] gnu: Add ruby-minitest-stub-const., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 048/223] gnu: Add ruby-cucumber-ci-environment., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 062/223] gnu: ruby-actionview: Update to 7.0.4.3., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 099/223] gnu: ruby-octokit: Update to 6.1.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 078/223] gnu: Add ruby-rack-cache., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 090/223] gnu: Add ruby-concurrent-ruby., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 031/223] gnu: Add ruby-language-server-protocol., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 053/223] gnu: Remove ruby-cucumber-create-meta., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 055/223] gnu: ruby-aruba: Update to 2.1.0.,
Maxim Cournoyer <=
- [bug#62196] [PATCH 087/223] gnu: Add ruby-syntax-tree., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 026/223] gnu: Add ruby-rubocop-rake., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 067/223] gnu: ruby-activejob: Update to 7.0.4.3 and enable tests., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 011/223] gnu: ruby-unicode-display-width: Update to 2.4.2., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 012/223] gnu: Add ruby-rubocop-capybara-minimal., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 019/223] gnu: ruby-rspec-given: Update to 3.8.2., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 008/223] gnu: ruby-parser: Update to 3.2.1.1., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 009/223] gnu: ruby-rubocop-ast: Update to 1.27.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 017/223] gnu: ruby-rspec-mocks: Update to 3.12.4., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 013/223] gnu: ruby-rspec: Update to 3.12.0., Maxim Cournoyer, 2023/03/20