From 225074e87beba8e6657353f002cfa06e508bed31 Mon Sep 17 00:00:00 2001 From: Ben Woodcroft Date: Mon, 5 Feb 2018 11:59:53 +0100 Subject: gnu: Add ruby-jbuilder. --- gnu/packages/ruby.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 04a292ff78..d08463a7ae 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -7990,3 +7990,37 @@ (define-public ruby-turbolinks (home-page "https://github.com/turbolinks/turbolinks-rails") (license license:expat))) + +(define-public ruby-jbuilder + (package + (name "ruby-jbuilder") + (version "2.7.0") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "jbuilder" version)) + (sha256 + (base32 + "1n3myqk2hdnidzzbgcdz2r1y4cr5vpz5nkfzs0lz4y9gkjbjyh2j")))) + (build-system ruby-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'check 'fix-dependencies' + (lambda _ + (substitute* "Gemfile" + ((".*pry.*") "")) + #t))))) + (native-inputs + `(("bundler" ,bundler) + ("ruby-mocha" ,ruby-mocha) + ("ruby-appraisal" ,ruby-appraisal))) + (propagated-inputs + `(("ruby-activesupport" ,ruby-activesupport) + ("ruby-multi-json" ,ruby-multi-json))) + (synopsis + "Create JSON structures via a Builder-style DSL") + (description + "Create JSON structures via a Builder-style DSL") + (home-page "https://github.com/rails/jbuilder") + (license license:expat))) -- cgit v1.2.3