aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorBen Woodcroft <donttrustben@gmail.com>2018-02-05 11:44:44 +0100
committerChristopher Baines <mail@cbaines.net>2018-03-18 18:25:19 +0000
commita4148f640dbcf9ad7156d951b5ddf5019d55a6a3 (patch)
tree766abee1c696c20a786ac077acfd6716bd71a361 /gnu
parent165f13ec0ef09285d091b17144f54836ee522430 (diff)
downloadguix-a4148f640dbcf9ad7156d951b5ddf5019d55a6a3.tar
guix-a4148f640dbcf9ad7156d951b5ddf5019d55a6a3.tar.gz
gnu: Add ruby-hashie.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/ruby.scm46
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)))