diff options
author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-03-16 16:59:57 -0400 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2023-03-28 22:22:48 -0400 |
commit | 6041709564c6c759455091de5bc03d31f6089a0b (patch) | |
tree | 2d3baaf48bbd98a46435e30b21a6e940e13aa608 /gnu | |
parent | 6f0483964ce04ff54e8d02f0e3af5284528c5595 (diff) | |
download | guix-6041709564c6c759455091de5bc03d31f6089a0b.tar.gz |
gnu: Add ruby-ammeter-bootstrap.
* gnu/packages/rails.scm (ruby-ammeter-bootstrap): New variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/rails.scm | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/rails.scm b/gnu/packages/rails.scm index 34db6825be..4d13615f68 100644 --- a/gnu/packages/rails.scm +++ b/gnu/packages/rails.scm @@ -755,6 +755,38 @@ pattern. Including support for multipart email and attachments.") (home-page "https://rubyonrails.org/") (license license:expat))) +;; A variant where the ruby-rspec-rails dependency purposefully omitted to +;; avoid a dependency cycle with that same package. +(define ruby-ammeter-bootstrap + (package + (name "ruby-ammeter-bootstrap") + (version "1.1.5") + (source (origin + (method url-fetch) + (uri (rubygems-uri "ammeter" version)) + (sha256 + (base32 + "1bcslj6y3lgaknd9fpj32m1r4is7blyxygxzmwidq9cjwkrn4msh")))) + (build-system ruby-build-system) + (arguments + (list #:tests? #f + #:phases + #~(modify-phases %standard-phases + (add-after 'extract-gemspec 'remove-rails-requirement + (lambda _ + (substitute* "Gemfile" + (("gem 'rspec-rails', rspec_version") + "") + (("gem 'rails', rails_version") + ""))))))) + (propagated-inputs (list ruby-activesupport ruby-railties)) + (synopsis "Write specs for your Rails 3+ generators") + (description "The @code{ammeter} gem makes it easy to write specs for +Rails generators. An existing user is @code{rspec-rails}, which uses +@code{ammeter} to spec its own generators.") + (home-page "https://github.com/alexrothenberg/ammeter") + (license license:expat))) + (define-public ruby-bootsnap (package (name "ruby-bootsnap") |