From 7c288021520296400bc307ad1e42ab5280e2ecdb Mon Sep 17 00:00:00 2001 From: Ben Woodcroft Date: Mon, 5 Feb 2018 11:44:44 +0100 Subject: gnu: Add ruby-hashie. --- gnu/packages/ruby.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 1a3bea80ac..bdb3b79b6d 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))) -- cgit v1.2.3