diff options
author | Ben Woodcroft <donttrustben@gmail.com> | 2018-02-05 11:59:53 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2019-04-28 21:12:11 +0100 |
commit | 0dab0cf182e00097d1b981f4412dca19f5b2aa12 (patch) | |
tree | 090bb859d494845164420c7dd1be428833bdf2f8 | |
parent | c7fe4178efb448c9a0aa6c65f4066e7cc1be06ba (diff) | |
download | guix-0dab0cf182e00097d1b981f4412dca19f5b2aa12.tar guix-0dab0cf182e00097d1b981f4412dca19f5b2aa12.tar.gz |
gnu: Add ruby-jbuilder.
-rw-r--r-- | gnu/packages/ruby.scm | 195 |
1 files changed, 34 insertions, 161 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index d1cb63e55f..7718cd22ca 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -4917,6 +4917,40 @@ implementation on platforms where this is unsupported.") (home-page "https://github.com/tonytonyjan/jaro_winkler") (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))) + (define-public ruby-json (package (name "ruby-json") @@ -9255,164 +9289,3 @@ uniquely identify it.") serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.") (home-page "https://github.com/rails/sprockets") (license license:expat))) - -(define-public ruby-mustermann - (package - (name "ruby-mustermann") - (version "1.0.3") - (source - (origin - (method url-fetch) - (uri (rubygems-uri "mustermann" version)) - (sha256 - (base32 - "0lycgkmnyy0bf29nnd2zql5a6pcf8sp69g9v4xw0gcfcxgpwp7i1")))) - (build-system ruby-build-system) - (arguments - ;; No tests. - '(#:tests? #f)) - (synopsis "Library implementing patterns that behave like regular expressions") - (description "Given a string pattern, Mustermann will turn it into an -object that behaves like a regular expression and has comparable performance -characteristics.") - (home-page "https://github.com/sinatra/mustermann") - (license license:expat))) - -(define-public ruby-sinatra - (package - (name "ruby-sinatra") - (version "2.0.5") - (source - (origin - (method url-fetch) - (uri (rubygems-uri "sinatra" version)) - (sha256 - (base32 - "1gasgn5f15myv08k10i16p326pchxjsy37pgqfw0xm66kcc5d7ry")))) - (build-system ruby-build-system) - (propagated-inputs - `(("ruby-mustermann" ,ruby-mustermann) - ("ruby-rack" ,ruby-rack) - ("ruby-rack-protection" ,ruby-rack-protection) - ("ruby-tilt" ,ruby-tilt))) - (synopsis "DSL for quick web applications creation in Ruby") - (description - "Sinatra is a DSL for quickly creating web applications in Ruby with -minimal effort.") - (home-page "http://sinatrarb.com/") - (license license:expat))) - -(define-public ruby-thin - (package - (name "ruby-thin") - (version "1.7.2") - (source - (origin - (method url-fetch) - (uri (rubygems-uri "thin" version)) - (sha256 - (base32 - "0nagbf9pwy1vg09k6j4xqhbjjzrg5dwzvkn4ffvlj76fsn6vv61f")))) - (build-system ruby-build-system) - (arguments - ;; No tests. - '(#:tests? #f)) - (propagated-inputs - `(("ruby-daemons" ,ruby-daemons) - ("ruby-eventmachine" ,ruby-eventmachine) - ("ruby-rack" ,ruby-rack))) - (synopsis "Thin and fast web server for Ruby") - (description "Thin is a Ruby web server that glues together 3 Ruby libraries: -@itemize -@item the Mongrel parser, -@item Event Machine, a network I/O library with high scalability, performance -and stability, -@item Rack, a minimal interface between webservers and Ruby frameworks. -@end itemize\n") - (home-page "http://code.macournoyer.com/thin/") - (license license:ruby))) - -(define-public ruby-skinny - (package - (name "ruby-skinny") - (version "0.2.4") - (source - (origin - (method url-fetch) - (uri (rubygems-uri "skinny" version)) - (sha256 - (base32 - "1y3yvx88ylgz4d2s1wskjk5rkmrcr15q3ibzp1q88qwzr5y493a9")))) - (build-system ruby-build-system) - (arguments - '(#:tests? #f ; No included tests - #:phases - (modify-phases %standard-phases - (add-before 'build 'patch-gemspec - (lambda _ - (substitute* ".gemspec" - (("<eventmachine>.freeze, \\[\\\"~> 1.0.0\"") - "<eventmachine>, [\">= 1.0.0\"") - (("<thin>.freeze, \\[\\\"< 1.7\", ") "<thin>, [")) - #t))))) - (propagated-inputs - `(("ruby-eventmachine" ,ruby-eventmachine) - ("ruby-thin" ,ruby-thin))) - (synopsis "Simple, upgradable WebSockets for Ruby Thin") - (description "Skinny is a simple, upgradable WebSockets for Ruby, using -the Thin library.") - (home-page "https://github.com/sj26/skinny") - (license license:expat))) - -(define-public mailcatcher - (package - (name "mailcatcher") - (version "0.7.1") - (source - (origin - (method url-fetch) - (uri (rubygems-uri "mailcatcher" version)) - (sha256 - (base32 - "02w1ycyfv7x0sh9799lz7xa65p5qvl5z4pa8a7prb68h2zwkfq0n")))) - (build-system ruby-build-system) - (arguments - ;; Tests require web/assets which is not included in the output. We - ;; might be able to fix this by adding the Git repository to the GEM_PATH - ;; of the tests. See ruby-mysql2. - '(#:tests? #f - #:phases - (modify-phases %standard-phases - (add-before 'build 'patch-gemspec - (lambda _ - (substitute* ".gemspec" - (("<eventmachine>.freeze, \\[\\\"= 1.0.9.1") - "<eventmachine>, [\">= 1.0.9.1") - (("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5") - (("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0") - (("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2")) - #t)) - (add-before 'build 'loosen-dependency-contraint - (lambda _ - (substitute* "lib/mail_catcher.rb" - (("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"") - (("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"") - (("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"") - (("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\"")) - #t))))) - (inputs - `(("ruby-eventmachine" ,ruby-eventmachine) - ("ruby-mail" ,ruby-mail) - ("ruby-rack" ,ruby-rack) - ("ruby-sinatra" ,ruby-sinatra) - ("ruby-skinny" ,ruby-skinny) - ("ruby-sqlite3" ,ruby-sqlite3) - ("ruby-thin" ,ruby-thin))) - (synopsis "SMTP server which catches messages to display them a browser") - (description - "MailCatcher runs a super simple SMTP server which catches any message -sent to it to display in a web interface. Run mailcatcher, set your favourite -app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server, -then check out http://127.0.0.1:1080 to see the mail.") - (home-page "https://mailcatcher.me") - (license license:expat))) |