diff options
Diffstat (limited to 'gnu/packages/ruby.scm')
-rw-r--r-- | gnu/packages/ruby.scm | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 01d85e481e..f1321cd54e 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -5816,3 +5816,49 @@ will probably be an issue and hence this gem.") (description "Parse YAML safely") (home-page "https://github.com/dtao/safe_yaml") (license license:expat))) + +(define-public ruby-hashie + (package + (name "ruby-hashie") + (version "3.5.7") + (source + (origin + (method url-fetch) + ;; The gem does not include Gemfile. + (uri (string-append "https://github.com/intridea/hashie/archive/v" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "00afsf591jj1q7j44fswwwrki01qgxa6wnqi6a6sq3bfjm1jlxy6")))) + (build-system ruby-build-system) + (arguments + `(#:tests? #f + #:test-target "spec" + #:phases + (modify-phases %standard-phases + (add-before 'build 'fix-dependencies + (lambda _ + (substitute* "Gemfile" + ((".*pry.*") "") + ((".*guard.*") "") + ((".*codeclimate.*") "") + (("rubocop.*") "rubocop'\n") + (("rspec-core.*") "rspec-core'\n")) + (substitute* "spec/spec_helper.rb" + ((".*pry.*") "")) + #t))))) + (native-inputs + `(("bundler" ,bundler) + ("ruby-rspec" ,ruby-rspec) + ("ruby-rspec-pending-for" ,ruby-rspec-pending-for) + ;("ruby-guard" ,ruby-guard) + ;("ruby-guard-rspec" ,ruby-guard-rspec) + ("ruby-activesupport" ,ruby-activesupport) + ("ruby-rubocop" ,ruby-rubocop))) + (synopsis + "Hashie is a collection of classes and mixins that make hashes more powerful.") + (description + "Hashie is a collection of classes and mixins that make hashes more powerful.") + (home-page "https://github.com/intridea/hashie") + (license license:expat))) |