gnu: ruby-braintree: Update to 4.10.0.

* gnu/packages/ruby.scm (ruby-braintree): Update to 4.10.0.
[source]: Streamline comment.
[arguments]: Add disable-rubocop phase.  Rename the less-strict-dependencies
phase to relax-requirements, and update the substitutions.
[native-inputs]: Remove ruby-rubocop.
This commit is contained in:
Maxim Cournoyer 2023-03-15 10:11:11 -04:00
parent 7e5c0dc874
commit a6f56be103
No known key found for this signature in database
GPG Key ID: 1260E46482E63562

View File

@ -15149,42 +15149,45 @@ any unhandled exceptions.")
(define-public ruby-braintree (define-public ruby-braintree
(package (package
(name "ruby-braintree") (name "ruby-braintree")
(version "4.7.0") (version "4.10.0")
(source (source
(origin (origin
(method git-fetch) (method git-fetch) ;for tests
;; Download from GitHub because the rubygems version does not contain
;; Rakefile.
(uri (git-reference (uri (git-reference
(url "https://github.com/braintree/braintree_ruby") (url "https://github.com/braintree/braintree_ruby")
(commit version))) (commit version)))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "1gixqf9vsjsyrk45lf9xcz0ggdydpgsk8ahknd27bbigz1j4pdf6")))) (base32 "01b5bp8q038ray5wwg3qhg4hj3r5a48vnfzs3gxkdjm5ky6bmn4p"))))
(build-system ruby-build-system) (build-system ruby-build-system)
(arguments (arguments
`(#:test-target "test:unit" `(#:test-target "test:unit"
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'less-strict-dependencies (add-after 'unpack 'disable-rubocop
(lambda _
(substitute* "Rakefile"
(("sh \"rubocop\"") ""))))
(add-after 'unpack 'relax-requirements
(lambda _ (lambda _
(substitute* "Gemfile" (substitute* "Gemfile"
(("gem \"libxml-ruby\", \"3.2.0\"") (("gem \"libxml-ruby\", \"3.2.0\"")
"gem \"libxml-ruby\", \"~> 3.0.0\"") "gem \"libxml-ruby\", \"~> 3.0.0\"")
(("gem \"rspec\", \"3.9.0\"") (("gem \"rspec\", \"3.9.0\"")
"gem \"rspec\", \"~> 3.8.0\"") "gem \"rspec\", \">= 3.9.0\"")
(("gem \"rubocop\", \"~>1.12.0\"") (("gem \"webrick\", \"~>1.7.0\"")
"gem \"rubocop\", \"~> 1.10.0\""))))))) "gem \"webrick\", \">=1.7.0\"")
((".*gem \"rubocop\".*") "")
((".*gem \"rspec_junit_formatter\".*") "")))))))
(native-inputs (native-inputs
(list ruby-libxml (list ruby-libxml
ruby-pry ruby-pry
ruby-rake ruby-rake
ruby-rspec ruby-rspec
ruby-rubocop ruby-webrick))
ruby-webrick))
(propagated-inputs (propagated-inputs
(list ruby-builder (list ruby-builder
ruby-rexml)) ruby-rexml))
(home-page "https://www.braintreepayments.com/") (home-page "https://www.braintreepayments.com/")
(synopsis "Integration access to the Braintree Gateway") (synopsis "Integration access to the Braintree Gateway")
(description "Braintree provides resources and tools for developers to (description "Braintree provides resources and tools for developers to