mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: ruby-oauth2: Update to 2.0.9 and enable tests.
* gnu/packages/ruby.scm (ruby-oauth2): Update to 2.0.9. [arguments]: Enable tests. Add #:phases. [native-inputs]: New field. [propagated-inputs]: Add ruby-snaky-hash.
This commit is contained in:
parent
d0b3e89842
commit
29d008a257
1 changed files with 39 additions and 10 deletions
|
@ -2626,19 +2626,48 @@ complexity.")
|
||||||
(define-public ruby-oauth2
|
(define-public ruby-oauth2
|
||||||
(package
|
(package
|
||||||
(name "ruby-oauth2")
|
(name "ruby-oauth2")
|
||||||
(version "1.4.2")
|
(version "2.0.9")
|
||||||
(source
|
(source (origin
|
||||||
(origin
|
(method git-fetch) ;for tests
|
||||||
(method url-fetch)
|
(uri (git-reference
|
||||||
(uri (rubygems-uri "oauth2" version))
|
(url "https://gitlab.com/oauth-xx/oauth2")
|
||||||
(sha256
|
(commit (string-append "v" version))))
|
||||||
(base32 "15i9z4j5pcjkr30lkcd79xzbr4kpmy0bqgwa436fqyqk646fv036"))))
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"191j1f4gjw8wij1jy2fvddgi8cv1mm0ki7v0b0795clix1avnj29"))))
|
||||||
(build-system ruby-build-system)
|
(build-system ruby-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:tests? #f)) ; no included tests
|
(list #:phases #~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'relax-requirements
|
||||||
|
(lambda _
|
||||||
|
(substitute* "Gemfile"
|
||||||
|
(("^linting = .*")
|
||||||
|
"linting = false\n")
|
||||||
|
(("^coverage = .*")
|
||||||
|
"coverage = false\n")
|
||||||
|
(("^debug = .*")
|
||||||
|
"debug = false\n"))
|
||||||
|
(substitute* "spec/spec_helper.rb"
|
||||||
|
(("^RUN_COVERAGE = .*")
|
||||||
|
"RUN_COVERAGE = false\n")
|
||||||
|
(("^ALL_FORMATTERS = .*")
|
||||||
|
"ALL_FORMATTERS = false\n")))))))
|
||||||
|
(native-inputs
|
||||||
|
(list ruby-addressable
|
||||||
|
ruby-backports
|
||||||
|
ruby-rexml
|
||||||
|
ruby-rspec-block-is-expected
|
||||||
|
ruby-rspec-pending-for
|
||||||
|
ruby-rspec-stubbed-env
|
||||||
|
ruby-silent-stream))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list ruby-faraday ruby-jwt ruby-multi-json ruby-multi-xml
|
(list ruby-faraday
|
||||||
ruby-rack))
|
ruby-jwt
|
||||||
|
ruby-multi-json
|
||||||
|
ruby-multi-xml
|
||||||
|
ruby-rack
|
||||||
|
ruby-snaky-hash))
|
||||||
(synopsis "Ruby wrapper for the OAuth 2.0")
|
(synopsis "Ruby wrapper for the OAuth 2.0")
|
||||||
(description
|
(description
|
||||||
"This package provides a Ruby wrapper for the OAuth 2.0 protocol built
|
"This package provides a Ruby wrapper for the OAuth 2.0 protocol built
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue