[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#62196] [PATCH 204/223] gnu: ruby-hashie: Update to 5.0.0 and enable
From: |
Maxim Cournoyer |
Subject: |
[bug#62196] [PATCH 204/223] gnu: ruby-hashie: Update to 5.0.0 and enable tests. |
Date: |
Mon, 20 Mar 2023 13:29:14 -0400 |
* gnu/packages/ruby.scm (ruby-hashie): Update to 5.0.0.
[arguments]: Enable tests. Add #:test-target and #:phases arguments.
[native-inputs]: New field.
---
gnu/packages/ruby.scm | 35 +++++++++++++++++++++++++++--------
1 file changed, 27 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 92fc99575d..520dd70a08 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -13054,18 +13054,37 @@ (define-public ruby-rouge
(define-public ruby-hashie
(package
(name "ruby-hashie")
- (version "3.6.0")
+ (version "5.0.0")
(source (origin
- (method url-fetch)
- (uri (rubygems-uri "hashie" version))
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://github.com/hashie/hashie")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
(base32
- "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh"))))
+ "0ihami0cdn71cvwzwgr3vxqvqi0ifqsna0vlyqiqlhsnf93w0cm8"))))
(build-system ruby-build-system)
- (native-inputs
- (list bundler))
- (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/
directory
- (home-page "https://github.com/intridea/hashie")
+ (arguments
+ (list #:test-target "spec"
+ #:phases #~(modify-phases %standard-phases
+ (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")
(description "Hashie is a collection of classes and mixins that make Ruby
hashes more powerful.")
--
2.39.1
- [bug#62196] [PATCH 193/223] gnu: ruby-shoulda: Update to 4.0.0., (continued)
- [bug#62196] [PATCH 193/223] gnu: ruby-shoulda: Update to 4.0.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 132/223] gnu: bundler: Update to 2.4.8., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 180/223] gnu: ruby-braintree: Update to 4.10.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 197/223] gnu: jekyll: Update to 4.3.2 and enable tests., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 111/223] gnu: ruby-bandwidth-iris: Fix indentation., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 109/223] gnu: Add ruby-fileutils., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 110/223] gnu: ruby-faraday-middleware: Add a deprecation comment and re-indent., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 113/223] gnu: ruby-octokit: Enable tests., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 126/223] gnu: Add ruby-bake., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 202/223] gnu: Add ruby-rspec-block-is-expected., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 204/223] gnu: ruby-hashie: Update to 5.0.0 and enable tests.,
Maxim Cournoyer <=
- [bug#62196] [PATCH 208/223] gnu: ruby-omniauth-oauth2: Update to 1.8.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 207/223] gnu: ruby-omniauth: Update to 2.1.1., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 215/223] gnu: Add ruby-ammeter., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 216/223] gnu: ruby-autoprefixer-rails: Update to 10.4.13.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 223/223] gnu: ruby-net-scp: Update to 4.0.0., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 214/223] gnu: ruby-rspec-rails: Update to 6.0.1 and enable tests., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 218/223] gnu: ruby-coveralls: Propagate ruby-simplecov and enable tests., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 210/223] gnu: ruby-single-cov: Update to 1.9.1., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 212/223] gnu: Add ruby-sassc-rails., Maxim Cournoyer, 2023/03/20
- [bug#62196] [PATCH 213/223] gnu: Add ruby-ammeter-bootstrap., Maxim Cournoyer, 2023/03/20