gnu: ruby: Remove unneeded trailing #t.

Change-Id: I973716a62165c548de4ebcc2eaf5554700c38a07
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-02-16 01:33:29 +01:00 committed by Andreas Enge
parent 6ce1ef15ce
commit d1a6171e86
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -36,6 +36,7 @@
;;; Copyright © 2023, 2024 Janneke Nieuwenhuizen <janneke@gnu.org> ;;; Copyright © 2023, 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2023, 2024 Zheng Junjie <873216071@qq.com> ;;; Copyright © 2023, 2024 Zheng Junjie <873216071@qq.com>
;;; Copyright © 2023, 2024 Hartmut Goebel <h.goebel@crazy-compilers.com> ;;; Copyright © 2023, 2024 Hartmut Goebel <h.goebel@crazy-compilers.com>
;;; Copyright © 2025 Nicolas Graves <ngraves@ngraves.fr>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -157,8 +158,7 @@
"test/ruby/test_process.rb" "test/ruby/test_process.rb"
"test/ruby/test_system.rb" "test/ruby/test_system.rb"
"tool/rbinstall.rb") "tool/rbinstall.rb")
(("/bin/sh") (which "sh"))) (("/bin/sh") (which "sh"))))))))
#t)))))
(native-inputs (if (%current-target-system) (native-inputs (if (%current-target-system)
(list this-package) (list this-package)
'())) '()))
@ -334,8 +334,7 @@ a focus on simplicity and productivity.")
(lambda _ (lambda _
(substitute* "Makefile" (substitute* "Makefile"
(("ruby ./minirake" m) (("ruby ./minirake" m)
(string-append m " --verbose"))) (string-append m " --verbose")))))
#t))
(add-after 'unpack 'disable-broken-tests (add-after 'unpack 'disable-broken-tests
(lambda _ (lambda _
(substitute* "mrbgems/mruby-io/test/io.rb" (substitute* "mrbgems/mruby-io/test/io.rb"
@ -343,8 +342,7 @@ a focus on simplicity and productivity.")
(string-append m "skip \"Hangs in the Guix build environment\"\n")) (string-append m "skip \"Hangs in the Guix build environment\"\n"))
;; This one is really weird. The *expected* output is all wrong. ;; This one is really weird. The *expected* output is all wrong.
(("assert\\('`cmd`.*" m) (("assert\\('`cmd`.*" m)
(string-append m "skip \"Disable for Guix\"\n"))) (string-append m "skip \"Disable for Guix\"\n")))))
#t))
;; There is no install target ;; There is no install target
(replace 'install (replace 'install
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
@ -357,8 +355,7 @@ a focus on simplicity and productivity.")
(mkdir-p lib) (mkdir-p lib)
(copy-recursively "build/host/lib" lib) (copy-recursively "build/host/lib" lib)
(mkdir-p inc) (mkdir-p inc)
(copy-recursively "include" inc)) (copy-recursively "include" inc)))))))
#t)))))
(native-inputs (native-inputs
(list ruby bison)) (list ruby bison))
(home-page "https://github.com/mruby/mruby") (home-page "https://github.com/mruby/mruby")
@ -525,8 +522,7 @@ Windows and Mac).")
(lambda _ (lambda _
(substitute* "spec/spec_helper.rb" (substitute* "spec/spec_helper.rb"
(("require 'coveralls'") "") (("require 'coveralls'") "")
(("Coveralls.wear!") "")) (("Coveralls.wear!") "")))))))
#t)))))
(native-inputs (native-inputs
(list bundler rsync ruby-rspec-core ruby-rspec-expectations (list bundler rsync ruby-rspec-core ruby-rspec-expectations
ruby-rspec-mocks)) ruby-rspec-mocks))
@ -657,8 +653,7 @@ Eval Print Loop).")
(string-append (string-append
"Kernel.exec('" "Kernel.exec('"
(assoc-ref inputs "python-ipython") (assoc-ref inputs "python-ipython")
"/bin/"))) "/bin/"))))))))
#t)))))
(inputs (inputs
(list python-ipython)) (list python-ipython))
(propagated-inputs (propagated-inputs
@ -969,15 +964,13 @@ the Cucumber Gherkin language.")
(lambda _ (lambda _
(substitute* "Gemfile" (substitute* "Gemfile"
(("rspec rspec-core rspec-expectations rspec-mocks rspec-support") (("rspec rspec-core rspec-expectations rspec-mocks rspec-support")
"")) ""))))
#t))
(add-before 'build 'loosen-ffi-requirement (add-before 'build 'loosen-ffi-requirement
(lambda _ (lambda _
;; Accept any version of ruby-ffi. ;; Accept any version of ruby-ffi.
(substitute* "Gemfile" (substitute* "Gemfile"
((" gem 'ffi', '~> 1\\.9\\.25'") ((" gem 'ffi', '~> 1\\.9\\.25'")
" gem 'ffi'")) " gem 'ffi'"))))
#t))
(add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile
(lambda _ (lambda _
(substitute* "rspec-its.gemspec" (substitute* "rspec-its.gemspec"
@ -985,8 +978,7 @@ the Cucumber Gherkin language.")
(("spec.add_development_dependency 'cucumber'.*") (("spec.add_development_dependency 'cucumber'.*")
"spec.add_development_dependency 'cucumber'\n") "spec.add_development_dependency 'cucumber'\n")
(("bundler.*") "bundler'\n") (("bundler.*") "bundler'\n")
(("\"aruba.*") "'aruba'\n")) (("\"aruba.*") "'aruba'\n")))))))
#t)))))
(propagated-inputs (propagated-inputs
(list ruby-rspec-core ruby-rspec-expectations)) (list ruby-rspec-core ruby-rspec-expectations))
(native-inputs (native-inputs
@ -1919,13 +1911,11 @@ Prawn module.")
(add-after 'unpack 'do-not-use-bundler (add-after 'unpack 'do-not-use-bundler
(lambda _ (lambda _
(substitute* "spec/spec_helper.rb" (substitute* "spec/spec_helper.rb"
((".*[Bb]undler.*") "")) ((".*[Bb]undler.*") ""))))
#t))
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(invoke "rspec")) (invoke "rspec")))))))
#t)))))
(native-inputs (native-inputs
(list ruby-pdf-inspector ruby-rspec)) (list ruby-pdf-inspector ruby-rspec))
(propagated-inputs (propagated-inputs
@ -2271,8 +2261,7 @@ for performance optimizations in Ruby code.")
((".*(add|gem).*jeweler.*") "") ((".*(add|gem).*jeweler.*") "")
((".*(add|gem).*pry.*") "") ((".*(add|gem).*pry.*") "")
((".*(add|gem).*growl.*") "") ((".*(add|gem).*growl.*") "")
((".*(add|gem).*rb-fsevent.*") "")) ((".*(add|gem).*rb-fsevent.*") "")))))))
#t)))))
(synopsis "Lightweight test double library for Ruby") (synopsis "Lightweight test double library for Ruby")
(description "Gimme is a very lightweight test double library for Ruby, (description "Gimme is a very lightweight test double library for Ruby,
based on Mockito (a mocking framework for Java). It is an opinionated (but based on Mockito (a mocking framework for Java). It is an opinionated (but
@ -2583,8 +2572,7 @@ PDF library. It has features such as:
(lambda _ (lambda _
(substitute* "test/helper.rb" (substitute* "test/helper.rb"
(("require 'coveralls'") "") (("require 'coveralls'") "")
(("Coveralls::SimpleCov::Formatter") "")) (("Coveralls::SimpleCov::Formatter") ""))))
#t))
(add-after 'extract-gemspec 'remove-unnecessary-requirements (add-after 'extract-gemspec 'remove-unnecessary-requirements
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(substitute* "ast.gemspec" (substitute* "ast.gemspec"
@ -2592,8 +2580,7 @@ PDF library. It has features such as:
(("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n") (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n")
(("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n") (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n")
(("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n") (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n")
(("12\\.3") "13.0")) (("12\\.3") "13.0")))))))
#t)))))
(native-inputs (native-inputs
(list bundler (list bundler
ruby-bacon ruby-bacon
@ -2752,8 +2739,7 @@ value is found.")
(for-each (lambda (file) (for-each (lambda (file)
(display file)(display "\n") (display file)(display "\n")
(invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file)) (invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file))
(find-files "test" ".*rb$"))) (find-files "test" ".*rb$"))))))))
#t)))))
(synopsis "Simple JSON and XML parsing for Ruby") (synopsis "Simple JSON and XML parsing for Ruby")
(description (description
"@code{crack} provides really simple JSON and XML parsing, extracted from "@code{crack} provides really simple JSON and XML parsing, extracted from
@ -2811,8 +2797,7 @@ It handles parsing of command-line options, and generation of usage help.")
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(invoke "rspec")) (invoke "rspec")))))))
#t)))))
(native-inputs (native-inputs
(list bundler ruby-rspec-2)) (list bundler ruby-rspec-2))
(synopsis "Assertions for command-line dependencies in Ruby") (synopsis "Assertions for command-line dependencies in Ruby")
@ -3086,13 +3071,11 @@ building block for authentication strategies.")
(substitute* "rakefile" (substitute* "rakefile"
;; Update the Rakefile so it works ;; Update the Rakefile so it works
(("-rubygems") "-rrubygems") (("-rubygems") "-rrubygems")
(("Config") "RbConfig")) (("Config") "RbConfig"))))
#t))
(add-before 'check 'set-LIB (add-before 'check 'set-LIB
(lambda _ (lambda _
;; This is used in the rakefile when running the tests ;; This is used in the rakefile when running the tests
(setenv "LIB" "open4") (setenv "LIB" "open4"))))))
#t)))))
(synopsis "Open child processes from Ruby and manage them easily") (synopsis "Open child processes from Ruby and manage them easily")
(description (description
"@code{Open4} is a Ruby library to run child processes and manage their "@code{Open4} is a Ruby library to run child processes and manage their
@ -3120,8 +3103,7 @@ input and output.")
(lambda _ (lambda _
;; This is used in the Rakefile, and setting it avoids an issue ;; This is used in the Rakefile, and setting it avoids an issue
;; with running the tests. ;; with running the tests.
(setenv "LIB" "options") (setenv "LIB" "options"))))))
#t)))))
(synopsis "Ruby library to parse options from *args cleanly") (synopsis "Ruby library to parse options from *args cleanly")
(description (description
"The @code{options} library helps with parsing keyword options in Ruby "The @code{options} library helps with parsing keyword options in Ruby
@ -3258,15 +3240,13 @@ a Ruby object.")
(lambda _ (lambda _
(substitute* "fakefs.gemspec" (substitute* "fakefs.gemspec"
(("`git ls-files lib README.md LICENSE`") (("`git ls-files lib README.md LICENSE`")
"`find lib README.md LICENSE -type f | sort`")) "`find lib README.md LICENSE -type f | sort`"))))
#t))
(add-before 'check 'remove-version-constraints (add-before 'check 'remove-version-constraints
(lambda _ (lambda _
;; Drop hard version requirements for test dependencies. ;; Drop hard version requirements for test dependencies.
(substitute* "fakefs.gemspec" (substitute* "fakefs.gemspec"
(("(.*add_development_dependency .*), .*" _ dep) (("(.*add_development_dependency .*), .*" _ dep)
(string-append dep "\n"))) (string-append dep "\n"))))))))
#t)))))
(native-inputs (native-inputs
(list ruby-bump ruby-maxitest ruby-rubocop ruby-rspec)) (list ruby-bump ruby-maxitest ruby-rubocop ruby-rspec))
(synopsis "Fake file system for Ruby") (synopsis "Fake file system for Ruby")
@ -3735,8 +3715,7 @@ lines of a file, @code{File.wc} to count words, and so on.")
(substitute* "Rakefile" (substitute* "Rakefile"
(("require 'rake/gempackagetask'") (("require 'rake/gempackagetask'")
"require 'rubygems/package_task'") "require 'rubygems/package_task'")
(("include Config") "")) (("include Config") ""))))
#t))
(replace 'check (replace 'check
(lambda _ (lambda _
(invoke "ruby" "-Ilib" "test/test.rb")))))) (invoke "ruby" "-Ilib" "test/test.rb"))))))
@ -3764,8 +3743,7 @@ operations with permutations of sequences, such as strings and arrays.")
(add-after 'unpack 'fix-version-test (add-after 'unpack 'fix-version-test
(lambda _ (lambda _
(substitute* "spec/shellany_spec.rb" (substitute* "spec/shellany_spec.rb"
(("^RSpec") "require \"shellany\"\nRSpec")) (("^RSpec") "require \"shellany\"\nRSpec")))))))
#t)))))
(native-inputs (native-inputs
(list ruby-rspec ruby-nenv bundler)) (list ruby-rspec ruby-nenv bundler))
(synopsis "Capture command output") (synopsis "Capture command output")
@ -3821,19 +3799,16 @@ libraries such as Libnotify.")
(lambda _ (lambda _
(substitute* "forking_test_runner.gemspec" (substitute* "forking_test_runner.gemspec"
(("`git ls-files lib/ bin/ MIT-LICENSE`") (("`git ls-files lib/ bin/ MIT-LICENSE`")
"`find lib/ bin/ MIT-LICENSE -type f | sort`")) "`find lib/ bin/ MIT-LICENSE -type f | sort`"))))
#t))
(add-before 'check 'remove-version-constraints (add-before 'check 'remove-version-constraints
(lambda _ (lambda _
;; Ignore hard coded version constraints for the tests. ;; Ignore hard coded version constraints for the tests.
(delete-file "Gemfile.lock") (delete-file "Gemfile.lock")))
#t))
(add-before 'check 'set-HOME (add-before 'check 'set-HOME
(lambda _ (lambda _
;; Many tests invoke Bundler, and fails when Bundler ;; Many tests invoke Bundler, and fails when Bundler
;; warns that /homeless-shelter does not exist. ;; warns that /homeless-shelter does not exist.
(setenv "HOME" "/tmp") (setenv "HOME" "/tmp"))))))
#t)))))
(native-inputs (native-inputs
(list ruby-activerecord ruby-bump ruby-rspec ruby-sqlite3 ruby-wwtd)) (list ruby-activerecord ruby-bump ruby-rspec ruby-sqlite3 ruby-wwtd))
(propagated-inputs (propagated-inputs
@ -3892,13 +3867,11 @@ standard output stream.")
;; Remove 's.cert_chain' as we do not build with a private key ;; Remove 's.cert_chain' as we do not build with a private key
(substitute* "fuubar.gemspec" (substitute* "fuubar.gemspec"
((".*cert_chain.*") "") ((".*cert_chain.*") "")
((".*signing_key.*") "")) ((".*signing_key.*") ""))))
#t))
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(invoke "rspec")) (invoke "rspec")))))))
#t)))))
(native-inputs (native-inputs
(list bundler)) (list bundler))
(propagated-inputs (propagated-inputs
@ -4003,8 +3976,7 @@ immutable queue or stack).")
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(invoke "rspec")) (invoke "rspec")))))))
#t)))))
(native-inputs (native-inputs
(list bundler ruby-rspec-2)) (list bundler ruby-rspec-2))
(synopsis "HashDiff computes the smallest difference between two hashes") (synopsis "HashDiff computes the smallest difference between two hashes")
@ -5277,8 +5249,7 @@ mixture of HTML and additional ERB syntax.")
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(invoke "rspec")) (invoke "rspec")))))))
#t)))))
(native-inputs (native-inputs
(list ruby-rspec ruby-simplecov ruby-nokogiri-diff)) (list ruby-rspec ruby-simplecov ruby-nokogiri-diff))
(synopsis "Markdown interpreter in Ruby") (synopsis "Markdown interpreter in Ruby")
@ -5311,8 +5282,7 @@ HTML, and PDF through LaTeX.")
test-unit "/lib/ruby/vendor_ruby" test-unit "/lib/ruby/vendor_ruby"
"/gems/test-unit-" "/gems/test-unit-"
,(package-version ruby-test-unit) ,(package-version ruby-test-unit)
"/lib\"")))) "/lib\"")))))))))
#t)))))
(native-inputs (native-inputs
(list bundler ruby-test-unit/minimal)) (list bundler ruby-test-unit/minimal))
(synopsis "Ruby library adding metaclass method to all objects") (synopsis "Ruby library adding metaclass method to all objects")
@ -5406,13 +5376,11 @@ like JSON. Unlike JSON, it is very fast and small.")
(lambda _ (lambda _
(substitute* "mspec.gemspec" (substitute* "mspec.gemspec"
(("rake.*") "rake>)\n") (("rake.*") "rake>)\n")
(("rspec.*") "rspec>)\n")) (("rspec.*") "rspec>)\n"))))
#t))
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(invoke "rspec" "spec")) (invoke "rspec" "spec")))))))
#t)))))
(native-inputs (native-inputs
(list bundler ruby-rake ruby-rspec)) (list bundler ruby-rake ruby-rspec))
(synopsis "MSpec is a specialized framework for RubySpec") (synopsis "MSpec is a specialized framework for RubySpec")
@ -5446,15 +5414,13 @@ specs for Ruby implementations in ruby/spec.")
(replace 'replace-git-ls-files (replace 'replace-git-ls-files
(lambda _ (lambda _
(substitute* "mysql2.gemspec" (substitute* "mysql2.gemspec"
(("git ls-files .*`") "find . -type f |sort`")) (("git ls-files .*`") "find . -type f |sort`"))))
#t))
(add-before 'install 'set-MAKEFLAGS (add-before 'install 'set-MAKEFLAGS
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(setenv "MAKEFLAGS" (setenv "MAKEFLAGS"
(string-append (string-append
"V=1 " "V=1 "
"prefix=" (assoc-ref outputs "out"))) "prefix=" (assoc-ref outputs "out")))))
#t))
;; Move the 'check phase to after 'install, as then you can test ;; Move the 'check phase to after 'install, as then you can test
;; using the installed mysql2 gem in the store. ;; using the installed mysql2 gem in the store.
(delete 'check) (delete 'check)
@ -5466,8 +5432,7 @@ specs for Ruby implementations in ruby/spec.")
":" ":"
(assoc-ref outputs "out") "/lib/ruby/vendor_ruby")) (assoc-ref outputs "out") "/lib/ruby/vendor_ruby"))
(when tests? (when tests?
(invoke "rspec")) (invoke "rspec")))))))
#t)))))
(inputs (inputs
`(("mariadb-dev" ,mariadb "dev") `(("mariadb-dev" ,mariadb "dev")
("zlib" ,zlib))) ("zlib" ,zlib)))
@ -5565,8 +5530,7 @@ irb's last-word approach.")
"/lib/ruby/vendor_ruby/gems/" "/lib/ruby/vendor_ruby/gems/"
name-and-version name-and-version
"/lib") "/lib")
(find-files "./test" ".*\\.rb")))) (find-files "./test" ".*\\.rb")))))))))
#t)))))
(inputs (inputs
(list libidn)) (list libidn))
(synopsis "Ruby Bindings for the GNU LibIDN library") (synopsis "Ruby Bindings for the GNU LibIDN library")
@ -5648,8 +5612,7 @@ definitions on a Ruby object.")
(lambda _ (lambda _
(substitute* "Rakefile" (substitute* "Rakefile"
(("task :test => %w\\[test:unit test:conformance\\]") (("task :test => %w\\[test:unit test:conformance\\]")
"task :test => %w[test:unit]")) "task :test => %w[test:unit]")))))))
#t)))))
(native-inputs (native-inputs
(list bundler ruby-test-unit ruby-rake-compiler)) (list bundler ruby-test-unit ruby-rake-compiler))
(synopsis "Extensible Markdown to (X)HTML converter") (synopsis "Extensible Markdown to (X)HTML converter")
@ -5966,8 +5929,7 @@ facilities supporting TDD, BDD, mocking, and benchmarking.")
(add-after 'extract-gemspec 'remove-unnecessary-dependency-versions (add-after 'extract-gemspec 'remove-unnecessary-dependency-versions
(lambda _ (lambda _
(substitute* "minitest-around.gemspec" (substitute* "minitest-around.gemspec"
(("%q<cucumber>.*") "%q<cucumber>, [\">= 0\"])\n")) (("%q<cucumber>.*") "%q<cucumber>, [\">= 0\"])\n")))))))
#t)))))
(propagated-inputs (propagated-inputs
(list ruby-minitest)) (list ruby-minitest))
(native-inputs (native-inputs
@ -6160,8 +6122,7 @@ absence of failure.")
(("gem .*") "")) (("gem .*") ""))
;; Remove byebug as not needed to run tests. ;; Remove byebug as not needed to run tests.
(substitute* "test/test_helper.rb" (substitute* "test/test_helper.rb"
(("require 'byebug'") "")) (("require 'byebug'") "")))))))
#t)))))
(native-inputs (native-inputs
(list bundler ruby-minitest)) (list bundler ruby-minitest))
(synopsis "Extra features and changes to MiniTest") (synopsis "Extra features and changes to MiniTest")
@ -6227,13 +6188,11 @@ instance, it provides @code{assert_true}, @code{assert_false} and
(lambda _ (lambda _
(substitute* "Rakefile" (substitute* "Rakefile"
(("require 'rubocop/rake\\_task'") "") (("require 'rubocop/rake\\_task'") "")
(("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each")) (("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each"))))
#t))
(add-after 'extract-gemspec 'remove-rubocop-from-gemspec (add-after 'extract-gemspec 'remove-rubocop-from-gemspec
(lambda _ (lambda _
(substitute* "minitest-reporters.gemspec" (substitute* "minitest-reporters.gemspec"
((".*%q<rubocop>.*") "\n")) ((".*%q<rubocop>.*") "\n")))))))
#t)))))
(propagated-inputs (propagated-inputs
(list ruby-ansi ruby-builder ruby-minitest ruby-progressbar)) (list ruby-ansi ruby-builder ruby-minitest ruby-progressbar))
(native-inputs (native-inputs
@ -6514,8 +6473,7 @@ core tasks.")
,version "/lib/git/config.rb"))) ,version "/lib/git/config.rb")))
(substitute* (list config) (substitute* (list config)
(("'git'") (("'git'")
(string-append "'" git "'"))) (string-append "'" git "'")))))))))
#t))))))
(inputs (inputs
(list git)) (list git))
(synopsis "Ruby wrappers for Git") (synopsis "Ruby wrappers for Git")
@ -6892,8 +6850,7 @@ both CSS3 selector and XPath 1.0 support.")
(add-after 'unpack 'remove-git-ls-files (add-after 'unpack 'remove-git-ls-files
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(substitute* "Rakefile" (substitute* "Rakefile"
(("git ls-files") "find . -type f")) (("git ls-files") "find . -type f")))))))
#t)))))
(native-inputs (native-inputs
(list ruby-rspec)) (list ruby-rspec))
(synopsis "Retrieve the source code for Ruby methods") (synopsis "Retrieve the source code for Ruby methods")
@ -7474,8 +7431,7 @@ Oedipus matches on the first match, not the longest.")
(add-after 'unpack 'remove-git-ls-files (add-after 'unpack 'remove-git-ls-files
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(substitute* "guard.gemspec" (substitute* "guard.gemspec"
(("git ls-files -z") "find . -type f -print0")) (("git ls-files -z") "find . -type f -print0"))))
#t))
(replace 'build (replace 'build
(lambda _ (lambda _
(invoke "gem" "build" "guard.gemspec")))))) (invoke "gem" "build" "guard.gemspec"))))))
@ -7852,8 +7808,7 @@ current line in an external editor.")
(("s.add_dependency.*") "\n")) (("s.add_dependency.*") "\n"))
(substitute* "Gemfile" (substitute* "Gemfile"
(("gem \"rake\".*") (("gem \"rake\".*")
"gem 'rake'\ngem 'rdoc'\ngem 'json'\n")) "gem 'rake'\ngem 'rdoc'\ngem 'json'\n")))))))
#t)))))
(propagated-inputs (propagated-inputs
(list ruby-json)) (list ruby-json))
(native-inputs (native-inputs
@ -9066,8 +9021,7 @@ clickjacking, directory traversal, session hijacking and IP spoofing.")
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(invoke "rspec")) (invoke "rspec")))))))
#t)))))
(native-inputs (native-inputs
(list bundler ruby-rspec)) (list bundler ruby-rspec))
(synopsis "Colorize printed text on ANSI terminals") (synopsis "Colorize printed text on ANSI terminals")
@ -9346,8 +9300,7 @@ they match.")
;; XXX: This is needed otherwise the install ;; XXX: This is needed otherwise the install
;; phase fails to delete the installed cached ;; phase fails to delete the installed cached
;; gem file. ;; gem file.
(delete-file-recursively "pkg") (delete-file-recursively "pkg"))))))
#t)))))
(native-inputs (native-inputs
(list ragel ruby-regexp-property-values ruby-rspec)) (list ragel ruby-regexp-property-values ruby-rspec))
(synopsis "Regular expression parser library for Ruby") (synopsis "Regular expression parser library for Ruby")
@ -9379,8 +9332,7 @@ expressions. It comprises the following components:
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(invoke "rspec")) (invoke "rspec")))))))
#t)))))
(native-inputs (native-inputs
(list ruby-rspec)) (list ruby-rspec))
(synopsis "Minitest/RSpec parallel test runner for CI environments") (synopsis "Minitest/RSpec parallel test runner for CI environments")
@ -9604,8 +9556,7 @@ figure out how many times to run the code to get interesting data.")
(let ((zeromq (assoc-ref inputs "zeromq"))) (let ((zeromq (assoc-ref inputs "zeromq")))
(substitute* "lib/ffi-rzmq-core/libzmq.rb" (substitute* "lib/ffi-rzmq-core/libzmq.rb"
(("/usr/local/lib") (("/usr/local/lib")
(string-append zeromq "/lib"))) (string-append zeromq "/lib"))))))
#t)))
(replace 'check (replace 'check
(lambda _ (lambda _
(invoke "rspec")))))) (invoke "rspec"))))))
@ -11129,16 +11080,14 @@ simple case of executing code based on the flags or parameters passed.")
(lambda _ (lambda _
(substitute* "lib/pygmentize.rb" (substitute* "lib/pygmentize.rb"
(("\"/usr/bin/env python.*") (("\"/usr/bin/env python.*")
(string-append "\"" (which "pygmentize") "\"\n"))) (string-append "\"" (which "pygmentize") "\"\n")))))
#t))
(add-after 'build 'do-not-use-vendor-directory (add-after 'build 'do-not-use-vendor-directory
(lambda _ (lambda _
;; Remove bundled pygments sources ;; Remove bundled pygments sources
;; FIXME: ruby-build-system does not support snippets. ;; FIXME: ruby-build-system does not support snippets.
(delete-file-recursively "vendor") (delete-file-recursively "vendor")
(substitute* "pygmentize.gemspec" (substitute* "pygmentize.gemspec"
(("\"vendor/\\*\\*/\\*\",") "")) (("\"vendor/\\*\\*/\\*\",") "")))))))
#t)))))
(inputs (inputs
`(("pygments" ,python-pygments))) `(("pygments" ,python-pygments)))
(native-inputs (native-inputs
@ -11237,8 +11186,7 @@ used to create both network servers and clients.")
(("require 'rubygems/tasks'") "") (("require 'rubygems/tasks'") "")
(("Gem::Tasks.new") "")) (("Gem::Tasks.new") ""))
;; Remove extraneous .gem file that otherwise gets installed. ;; Remove extraneous .gem file that otherwise gets installed.
(delete-file-recursively "pkg") (delete-file-recursively "pkg"))))))
#t)))))
(native-inputs (native-inputs
(list bundler ruby-rake ruby-rspec)) (list bundler ruby-rake ruby-rspec))
(synopsis "Simplifies checking for Ruby implementation") (synopsis "Simplifies checking for Ruby implementation")
@ -11588,8 +11536,7 @@ more complex, and error-prone.")
;; environment. This is fixed in the upstream repository but fix ;; environment. This is fixed in the upstream repository but fix
;; has not been released. ;; has not been released.
(substitute* "Gemfile" (substitute* "Gemfile"
(("^gemspec") "gem 'test-unit'\ngemspec")) (("^gemspec") "gem 'test-unit'\ngemspec")))))))
#t)))))
(propagated-inputs (propagated-inputs
(list ruby-unf-ext)) (list ruby-unf-ext))
(native-inputs (native-inputs
@ -11651,15 +11598,13 @@ authentication in Ruby web applications.")
(("gem 'guard-rspec'") "") (("gem 'guard-rspec'") "")
(("gem 'rb-fsevent'") "") (("gem 'rb-fsevent'") "")
(("gem 'pry'") "") (("gem 'pry'") "")
(("gem 'growl'") "")) (("gem 'growl'") ""))))
#t))
;; The test suite doesn't work with rspec@2, and this is incompatible ;; The test suite doesn't work with rspec@2, and this is incompatible
;; with the current version of Rake, so invoke Rspec directly ;; with the current version of Rake, so invoke Rspec directly
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(invoke "bundle" "exec" "rspec")) (invoke "bundle" "exec" "rspec")))))))
#t)))))
(propagated-inputs (propagated-inputs
(list ruby-warden)) (list ruby-warden))
(native-inputs (native-inputs
@ -11760,8 +11705,7 @@ display width of strings in Ruby.")
(("%q<rspec.*") "%q<rspec>)\n")) (("%q<rspec.*") "%q<rspec>)\n"))
;; Do not use bundler. ;; Do not use bundler.
(substitute* "Rakefile" (substitute* "Rakefile"
(("Bundler\\.setup.*") "nil\n")) (("Bundler\\.setup.*") "nil\n")))))))
#t)))))
(native-inputs (native-inputs
(list ruby-rdoc ruby-rspec ruby-rubygems-tasks)) (list ruby-rdoc ruby-rspec ruby-rubygems-tasks))
(synopsis "Ruby library to help check the Ruby version") (synopsis "Ruby library to help check the Ruby version")
@ -12139,8 +12083,7 @@ It has built-in support for the legacy @code{cookies.txt} and
(if tests? (if tests?
(invoke "ruby" (invoke "ruby"
"-Ilib" "-Ilib"
"test/runner.rb") "test/runner.rb")))))))
#t))))))
(native-inputs (native-inputs
(list ruby-rack)) (list ruby-rack))
(synopsis (synopsis
@ -12189,8 +12132,7 @@ requests either using arguments or with an interactive prompt.")
;; XXX: This symlink is broken since ruby 2.4. ;; XXX: This symlink is broken since ruby 2.4.
;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
(delete-file file) (delete-file file)
(symlink "../.index" file) (symlink "../.index" file)))))))
#t))))))
(synopsis "ANSI escape code related libraries") (synopsis "ANSI escape code related libraries")
(description (description
"This package is a collection of ANSI escape code related libraries "This package is a collection of ANSI escape code related libraries
@ -12220,8 +12162,7 @@ device.")
(modify-phases %standard-phases (modify-phases %standard-phases
(add-before 'check 'set-version (add-before 'check 'set-version
(lambda _ (lambda _
(setenv "VERSION" ,version) (setenv "VERSION" ,version))))))
#t)))))
(synopsis "Capture of stdout/stderr and handling of child processes") (synopsis "Capture of stdout/stderr and handling of child processes")
(description (description
"Systemu can be used on any platform to return status, stdout, and stderr "Systemu can be used on any platform to return status, stdout, and stderr
@ -12505,8 +12446,7 @@ ruby with support for changing priority using pairing heap data structure")
;; XXX: This symlink is broken since ruby 2.4. ;; XXX: This symlink is broken since ruby 2.4.
;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
(delete-file file) (delete-file file)
(symlink "../.index" file) (symlink "../.index" file)))))))
#t))))))
(propagated-inputs (propagated-inputs
(list ruby-ansi)) (list ruby-ansi))
(native-inputs (native-inputs
@ -13423,8 +13363,7 @@ programs running in the background, in Ruby.")
(lambda _ (lambda _
(substitute* "Rakefile" (substitute* "Rakefile"
(("require \"rubocop/rake\\_task\"") "") (("require \"rubocop/rake\\_task\"") "")
(("RuboCop::RakeTask\\.new") "")) (("RuboCop::RakeTask\\.new") "")))))))
#t)))))
(native-inputs (native-inputs
(list bundler ruby-yard/minimal ruby-mocha ruby-minitest-reporters)) (list bundler ruby-yard/minimal ruby-mocha ruby-minitest-reporters))
(home-page "https://simonecarletti.com/code/publicsuffix-ruby/") (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
@ -13503,8 +13442,7 @@ RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates."
;; service which is unnecessary for these tests. ;; service which is unnecessary for these tests.
(("require 'codeclimate-test-reporter'") (("require 'codeclimate-test-reporter'")
"") "")
(("CodeClimate.*") "")) (("CodeClimate.*") "")))))))
#t)))))
(synopsis "Add color effects to the @code{String} class") (synopsis "Add color effects to the @code{String} class")
(description (description
"This package extends the @code{String} class and adds a "This package extends the @code{String} class and adds a
@ -13555,8 +13493,7 @@ for the terminal.")
;; colored is unmaintained ;; colored is unmaintained
(("colored") "colorator") (("colored") "colorator")
;; colorator version ;; colorator version
(("= 1.2") "= 1.1")) (("= 1.2") "= 1.1")))))))
#t)))))
(propagated-inputs (list ruby-colorator)) (propagated-inputs (list ruby-colorator))
(home-page "https://github.com/wbailey/command_line_reporter") (home-page "https://github.com/wbailey/command_line_reporter")
(synopsis "Report production while executing Ruby scripts") (synopsis "Report production while executing Ruby scripts")
@ -13809,41 +13746,34 @@ features that don't exist yet like variables, nesting, mixins and inheritance.")
(display (string-append (display (string-append
(string-take gemspec index) (string-take gemspec index)
"\nend\n") "\nend\n")
out)))) out))))))
#t))
(add-after 'unpack 'dont-check-the-libsass-version (add-after 'unpack 'dont-check-the-libsass-version
(lambda _ (lambda _
(substitute* "test/native_test.rb" (substitute* "test/native_test.rb"
(("assert_equal.*Native\\.version") "")) (("assert_equal.*Native\\.version") ""))))
#t))
(add-after 'unpack 'remove-git-from-gemspec (add-after 'unpack 'remove-git-from-gemspec
(lambda _ (lambda _
(substitute* "sassc.gemspec" (substitute* "sassc.gemspec"
(("`git ls-files -z`") "`find . -type f -print0 |sort -z`")) (("`git ls-files -z`") "`find . -type f -print0 |sort -z`"))))
#t))
(add-after 'unpack 'remove-extensions-from-gemspec (add-after 'unpack 'remove-extensions-from-gemspec
(lambda _ (lambda _
(substitute* "sassc.gemspec" (substitute* "sassc.gemspec"
(("\\[\"ext/extconf.rb\"\\]") "[]")) (("\\[\"ext/extconf.rb\"\\]") "[]"))))
#t))
(add-after 'unpack 'fix-Rakefile (add-after 'unpack 'fix-Rakefile
(lambda _ (lambda _
(substitute* "Rakefile" (substitute* "Rakefile"
(("test: 'compile:libsass'") ":test")) (("test: 'compile:libsass'") ":test"))))
#t))
(add-after 'unpack 'remove-unnecessary-dependencies (add-after 'unpack 'remove-unnecessary-dependencies
(lambda _ (lambda _
(substitute* "test/test_helper.rb" (substitute* "test/test_helper.rb"
(("require \"pry\"") "")) (("require \"pry\"") ""))))
#t))
(add-before 'build 'patch-native.rb (add-before 'build 'patch-native.rb
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(substitute* "lib/sassc/native.rb" (substitute* "lib/sassc/native.rb"
((".*gem_root = spec.gem_dir") "") ((".*gem_root = spec.gem_dir") "")
(("ffi_lib .*\n") (("ffi_lib .*\n")
(string-append (string-append
"ffi_lib '" (assoc-ref inputs "libsass") "/lib/libsass.so'"))) "ffi_lib '" (assoc-ref inputs "libsass") "/lib/libsass.so'")))))
#t))
;; The gemspec still references the libsass files, so just keep the ;; The gemspec still references the libsass files, so just keep the
;; one in the gem. ;; one in the gem.
(delete 'extract-gemspec)))) (delete 'extract-gemspec))))
@ -13942,13 +13872,11 @@ interface. It allows Jekyll to rebuild your site when a file changes.")
(lambda _ (lambda _
;; Bundler isn't being used for fetching dependencies, so ;; Bundler isn't being used for fetching dependencies, so
;; delete the Gemfile.lock ;; delete the Gemfile.lock
(delete-file "Gemfile.lock") (delete-file "Gemfile.lock")))
#t))
(add-before 'build 'patch-gemspec (add-before 'build 'patch-gemspec
(lambda _ (lambda _
(substitute* "parallel.gemspec" (substitute* "parallel.gemspec"
(("git ls-files") "find")) (("git ls-files") "find")))))))
#t)))))
(native-inputs (native-inputs
(list ruby-rspec (list ruby-rspec
ruby-rspec-rerun ruby-rspec-rerun
@ -14092,8 +14020,7 @@ custom checks. This gem provides a set of additional checks.")
(add-after 'unpack 'do-not-use-bundler (add-after 'unpack 'do-not-use-bundler
(lambda _ (lambda _
(substitute* "spec/spec_helper.rb" (substitute* "spec/spec_helper.rb"
((".*[Bb]undler.*") "")) ((".*[Bb]undler.*") "")))))))
#t)))))
(native-inputs (native-inputs
(list ruby-rspec ruby-cane ruby-morecane)) (list ruby-rspec ruby-cane ruby-morecane))
(propagated-inputs (propagated-inputs
@ -14128,8 +14055,7 @@ access to the contents of a PDF file with a high degree of flexibility.")
(lambda _ (lambda _
(substitute* "pdf-inspector.gemspec" (substitute* "pdf-inspector.gemspec"
(("spec.signing_key =.*") (("spec.signing_key =.*")
"spec.signing_key = nil")) "spec.signing_key = nil"))))
#t))
(replace 'check (replace 'check
(lambda _ (lambda _
(substitute* "pdf-inspector.gemspec" (substitute* "pdf-inspector.gemspec"
@ -14290,8 +14216,7 @@ various Prawn projects.")
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(invoke "rspec")) (invoke "rspec")))))))
#t)))))
(home-page "https://github.com/prawnpdf/prawn-table") (home-page "https://github.com/prawnpdf/prawn-table")
(synopsis "Tables support for Prawn") (synopsis "Tables support for Prawn")
(description "This gem provides tables support for Prawn.") (description "This gem provides tables support for Prawn.")
@ -14582,8 +14507,7 @@ YAML.load suitable for accepting user input in Ruby applications.")
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(invoke "rspec")) (invoke "rspec")))))))
#t)))))
(native-inputs (native-inputs
(list ruby-coveralls ruby-rspec ruby-simplecov)) (list ruby-coveralls ruby-rspec ruby-simplecov))
(synopsis "Simple YAML check tool") (synopsis "Simple YAML check tool")
@ -15153,17 +15077,14 @@ common interface over different adapters.")
;; Remove rspec/retry as we are not retrying the tests ;; Remove rspec/retry as we are not retrying the tests
(("require \"rspec/retry\"") "") (("require \"rspec/retry\"") "")
(("config\\.display_try_failure_messages = true") "") (("config\\.display_try_failure_messages = true") "")
(("config\\.verbose_retry = true") "")) (("config\\.verbose_retry = true") ""))))
#t))
(add-before 'check 'compile (add-before 'check 'compile
(lambda _ (lambda _
(invoke "rake" "compile") (invoke "rake" "compile")))
#t))
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(invoke "rspec")) (invoke "rspec")))))))
#t)))))
(native-inputs (native-inputs
(list bundler ruby-rake-compiler ruby-rspec ruby-rubocop)) (list bundler ruby-rake-compiler ruby-rspec ruby-rubocop))
(synopsis "New I/O for Ruby") (synopsis "New I/O for Ruby")
@ -15726,8 +15647,7 @@ various Ruby objects.")
(substitute* ".gemspec" (substitute* ".gemspec"
(("<eventmachine>.freeze, \\[\\\"~> 1.0.0\"") (("<eventmachine>.freeze, \\[\\\"~> 1.0.0\"")
"<eventmachine>, [\">= 1.0.0\"") "<eventmachine>, [\">= 1.0.0\"")
(("<thin>.freeze, \\[\\\"< 1.7\", ") "<thin>, [")) (("<thin>.freeze, \\[\\\"< 1.7\", ") "<thin>, [")))))))
#t)))))
(propagated-inputs (propagated-inputs
(list ruby-eventmachine ruby-thin)) (list ruby-eventmachine ruby-thin))
(synopsis "Simple, upgradable WebSockets for Ruby Thin") (synopsis "Simple, upgradable WebSockets for Ruby Thin")
@ -15752,8 +15672,7 @@ the Thin library.")
(add-before 'check 'set-HOME (add-before 'check 'set-HOME
(lambda _ (lambda _
;; Some tests attempt to stat $HOME. Let them. ;; Some tests attempt to stat $HOME. Let them.
(setenv "HOME" "/tmp") (setenv "HOME" "/tmp"))))))
#t)))))
(propagated-inputs (propagated-inputs
(list ruby-ffi)) (list ruby-ffi))
(native-inputs (native-inputs
@ -15791,16 +15710,14 @@ for gathering file system information, such as disk space and mount points.")
"<eventmachine>, [\">= 1.0.9.1") "<eventmachine>, [\">= 1.0.9.1")
(("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5") (("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5")
(("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0") (("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0")
(("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2")) (("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2"))))
#t))
(add-before 'build 'loosen-dependency-contraint (add-before 'build 'loosen-dependency-contraint
(lambda _ (lambda _
(substitute* "lib/mail_catcher.rb" (substitute* "lib/mail_catcher.rb"
(("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"") (("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"")
(("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"") (("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"")
(("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"") (("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"")
(("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\"")) (("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\"")))))))
#t)))))
(inputs (inputs
(list ruby-eventmachine (list ruby-eventmachine
ruby-mail ruby-mail
@ -15934,8 +15851,7 @@ backwards-compatible with an older API specification.")
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(invoke "rspec")) (invoke "rspec")))))))
#t)))))
(synopsis "Convert HTML into Markdown") (synopsis "Convert HTML into Markdown")
(description (description
"This Ruby module allows you to map simple HTML back into "This Ruby module allows you to map simple HTML back into
@ -15987,8 +15903,7 @@ application.")
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(invoke "rspec")) (invoke "rspec")))))))
#t)))))
(synopsis (synopsis
"IDE tools for code completion, inline documentation, and static analysis") "IDE tools for code completion, inline documentation, and static analysis")
(description (description
@ -16071,8 +15986,7 @@ eager loading.")
(snippet (snippet
'(begin '(begin
;; Remove bundled library. ;; Remove bundled library.
(delete-file "spec/rake-12.3.0.gem") (delete-file "spec/rake-12.3.0.gem")))))
#t))))
(build-system ruby-build-system) (build-system ruby-build-system)
(arguments (arguments
'(;; XXX: Tests need multiple versions of ruby, wants to run '(;; XXX: Tests need multiple versions of ruby, wants to run
@ -16083,18 +15997,15 @@ eager loading.")
(lambda _ (lambda _
(substitute* "wwtd.gemspec" (substitute* "wwtd.gemspec"
(("git ls-files lib/ bin/`") (("git ls-files lib/ bin/`")
"find lib/ bin/ -type f |sort`")) "find lib/ bin/ -type f |sort`"))))
#t))
(add-before 'check 'remove-version-constraints (add-before 'check 'remove-version-constraints
(lambda _ (lambda _
(delete-file "Gemfile.lock") (delete-file "Gemfile.lock")))
#t))
(replace 'check (replace 'check
(lambda* (#:key tests? #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(if tests? (if tests?
(invoke "rspec" "spec/") (invoke "rspec" "spec/")
(format #t "test suite not run~%")) (format #t "test suite not run~%")))))))
#t)))))
(native-inputs (native-inputs
(list ruby-bump ruby-rspec)) (list ruby-bump ruby-rspec))
(synopsis "Run @file{.travis.yml} files locally") (synopsis "Run @file{.travis.yml} files locally")
@ -16349,20 +16260,17 @@ and social networks to better index and display your site's content.")
(lambda _ (lambda _
(substitute* "tasks/rdoc.rake" (substitute* "tasks/rdoc.rake"
(("`git ls-files -- lib`") (("`git ls-files -- lib`")
"`find lib/ -type f |sort`")) "`find lib/ -type f |sort`"))))
#t))
(add-before 'check 'tzdir-setup (add-before 'check 'tzdir-setup
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(setenv "TZDIR" (setenv "TZDIR"
(string-append (assoc-ref inputs "tzdata") (string-append (assoc-ref inputs "tzdata")
"/share/zoneinfo")) "/share/zoneinfo"))))
#t))
(add-before 'check 'delete-test-BatchProcessor (add-before 'check 'delete-test-BatchProcessor
;; test_BatchProcessor fails with exception: ;; test_BatchProcessor fails with exception:
;; run> terminated with exception (report_on_exception is true) ;; run> terminated with exception (report_on_exception is true)
(lambda _ (lambda _
(delete-file "test/test_BatchProcessor.rb") (delete-file "test/test_BatchProcessor.rb"))))))
#t)))))
(synopsis (synopsis
"Project management command line tool with a domain specific language") "Project management command line tool with a domain specific language")
(description (description