[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
206/229: gnu: ruby-oauth2: Update to 2.0.9 and enable tests.
From: |
guix-commits |
Subject: |
206/229: gnu: ruby-oauth2: Update to 2.0.9 and enable tests. |
Date: |
Tue, 28 Mar 2023 22:29:25 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit 29d008a2577ef75d5f20ac13b22b5b0dec913edc
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Mar 16 10:52:04 2023 -0400
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.
---
gnu/packages/ruby.scm | 49 +++++++++++++++++++++++++++++++++++++++----------
1 file changed, 39 insertions(+), 10 deletions(-)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index cfa0e9b1fc..ddaa20040d 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -2626,19 +2626,48 @@ complexity.")
(define-public ruby-oauth2
(package
(name "ruby-oauth2")
- (version "1.4.2")
- (source
- (origin
- (method url-fetch)
- (uri (rubygems-uri "oauth2" version))
- (sha256
- (base32 "15i9z4j5pcjkr30lkcd79xzbr4kpmy0bqgwa436fqyqk646fv036"))))
+ (version "2.0.9")
+ (source (origin
+ (method git-fetch) ;for tests
+ (uri (git-reference
+ (url "https://gitlab.com/oauth-xx/oauth2")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "191j1f4gjw8wij1jy2fvddgi8cv1mm0ki7v0b0795clix1avnj29"))))
(build-system ruby-build-system)
(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
- (list ruby-faraday ruby-jwt ruby-multi-json ruby-multi-xml
- ruby-rack))
+ (list ruby-faraday
+ ruby-jwt
+ ruby-multi-json
+ ruby-multi-xml
+ ruby-rack
+ ruby-snaky-hash))
(synopsis "Ruby wrapper for the OAuth 2.0")
(description
"This package provides a Ruby wrapper for the OAuth 2.0 protocol built
- 187/229: gnu: ruby-terminal-table: Update to 3.0.2., (continued)
- 187/229: gnu: ruby-terminal-table: Update to 3.0.2., guix-commits, 2023/03/28
- 193/229: gnu: ruby-shoulda: Update to 4.0.0., guix-commits, 2023/03/28
- 195/229: gnu: ruby-unf-ext: Update to 0.0.8.2., guix-commits, 2023/03/28
- 196/229: gnu: jekyll: Use gexps and remove input labels., guix-commits, 2023/03/28
- 203/229: gnu: Add ruby-version-gem., guix-commits, 2023/03/28
- 207/229: gnu: ruby-omniauth: Update to 2.1.1., guix-commits, 2023/03/28
- 209/229: gnu: ruby-cuke-modeler: Update to 3.19.0 and enable tests., guix-commits, 2023/03/28
- 191/229: gnu: ruby-shoulda-matchers: Update to 5.3.0., guix-commits, 2023/03/28
- 194/229: gnu: ruby-shoulda: Honor #:tests?., guix-commits, 2023/03/28
- 205/229: gnu: Add ruby-snaky-hash., guix-commits, 2023/03/28
- 206/229: gnu: ruby-oauth2: Update to 2.0.9 and enable tests.,
guix-commits <=
- 163/229: gnu: ruby-globalid: Move to (gnu packages rails)., guix-commits, 2023/03/28
- 175/229: gnu: Add perl-app-cpanminus., guix-commits, 2023/03/28
- 180/229: gnu: ruby-braintree: Update to 4.10.0., guix-commits, 2023/03/28
- 184/229: gnu: ruby-prawn-svg: Fix build., guix-commits, 2023/03/28
- 188/229: gnu: ruby-liquid: Update to 4.0.3., guix-commits, 2023/03/28
- 200/229: gnu: Add ruby-ruby-version., guix-commits, 2023/03/28
- 201/229: gnu: Add ruby-rspec-pending-for., guix-commits, 2023/03/28
- 219/229: gnu: Add ruby-spy., guix-commits, 2023/03/28
- 220/229: gnu: Add ruby-liquid-c-bootstrap., guix-commits, 2023/03/28
- 226/229: gnu: ruby-rack-protection: Update to 3.0.5., guix-commits, 2023/03/28