gnu: ruby-ast: Adjust to newer ruby-rake version.

* gnu/packages/ruby.sm (ruby-ast)[arguments]: Adjust the gemspec file to
allow for newer versions of ruby-rake.
This commit is contained in:
Efraim Flashner 2021-09-12 14:44:00 +03:00
parent 28dd51eefb
commit 878124a805
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -1958,12 +1958,13 @@ (define-public ruby-ast
(("Coveralls::SimpleCov::Formatter") ""))
#t))
(add-after 'extract-gemspec 'remove-unnecessary-requirements
(lambda _
(lambda* (#:key inputs #:allow-other-keys)
(substitute* "ast.gemspec"
((".*coveralls.*") "\n")
(("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n")
(("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n")
(("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n"))
(("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n")
(("12\\.3") "13.0"))
#t)))))
(native-inputs
`(("bundler" ,bundler)