mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: ruby-hashie: Update to 5.0.0 and enable tests.
* gnu/packages/ruby.scm (ruby-hashie): Update to 5.0.0. [arguments]: Enable tests. Add #:test-target and #:phases arguments. [native-inputs]: New field.
This commit is contained in:
parent
21abde896b
commit
379dfc4a7d
1 changed files with 27 additions and 8 deletions
|
@ -13054,18 +13054,37 @@ is compatible with stylesheets designed for pygments.")
|
||||||
(define-public ruby-hashie
|
(define-public ruby-hashie
|
||||||
(package
|
(package
|
||||||
(name "ruby-hashie")
|
(name "ruby-hashie")
|
||||||
(version "3.6.0")
|
(version "5.0.0")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method git-fetch) ;for tests
|
||||||
(uri (rubygems-uri "hashie" version))
|
(uri (git-reference
|
||||||
|
(url "https://github.com/hashie/hashie")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh"))))
|
"0ihami0cdn71cvwzwgr3vxqvqi0ifqsna0vlyqiqlhsnf93w0cm8"))))
|
||||||
(build-system ruby-build-system)
|
(build-system ruby-build-system)
|
||||||
(native-inputs
|
(arguments
|
||||||
(list bundler))
|
(list #:test-target "spec"
|
||||||
(arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory
|
#:phases #~(modify-phases %standard-phases
|
||||||
(home-page "https://github.com/intridea/hashie")
|
(add-after 'unpack 'disable-bundler
|
||||||
|
(lambda _
|
||||||
|
(substitute* "Rakefile"
|
||||||
|
((".*require 'bundler'.*") "")
|
||||||
|
((".*Bundler.setup.*") "")
|
||||||
|
(("Bundler::GemHelper\\.install_tasks") ""))))
|
||||||
|
(add-after 'unpack 'disable-rubocop
|
||||||
|
(lambda _
|
||||||
|
(substitute* "Rakefile"
|
||||||
|
(("require 'rubocop/rake_task'") "")
|
||||||
|
(("RuboCop::RakeTask.new") ""))))
|
||||||
|
(add-after 'unpack 'relax-requirements
|
||||||
|
(lambda _
|
||||||
|
;; Contains multiple extraneous dependencies.
|
||||||
|
(delete-file "Gemfile"))))))
|
||||||
|
(native-inputs (list ruby-json ruby-pry ruby-rspec ruby-rspec-pending-for))
|
||||||
|
(home-page "https://github.com/hashie/hashie")
|
||||||
(synopsis "Extensions to Ruby Hashes")
|
(synopsis "Extensions to Ruby Hashes")
|
||||||
(description "Hashie is a collection of classes and mixins that make Ruby
|
(description "Hashie is a collection of classes and mixins that make Ruby
|
||||||
hashes more powerful.")
|
hashes more powerful.")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue