diff options
| author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-09-01 20:00:38 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-09-01 20:04:52 +0100 |
| commit | 4d8e5798753e3380b82f9ba7f8ad31645ed932b9 (patch) | |
| tree | b399c0c07f2bb1f863b9beff7da8aaf4547f59ec /gnu/packages | |
| parent | 238f240f20b99bb6899f3b5b56334201153c726d (diff) | |
gnu: ruby-oauth2: Update to 2.0.12.
* gnu/packages/ruby-xyz.scm (ruby-oauth2): Update to 2.0.12.
[arguments]: Drop all.
[propagated-inputs]: Add ruby-hashie.
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/ruby-xyz.scm | 58 |
1 files changed, 11 insertions, 47 deletions
diff --git a/gnu/packages/ruby-xyz.scm b/gnu/packages/ruby-xyz.scm index 07e6c8e50e7..86c8d9252a4 100644 --- a/gnu/packages/ruby-xyz.scm +++ b/gnu/packages/ruby-xyz.scm | |||
| @@ -2955,54 +2955,17 @@ complexity.") | |||
| 2955 | (define-public ruby-oauth2 | 2955 | (define-public ruby-oauth2 |
| 2956 | (package | 2956 | (package |
| 2957 | (name "ruby-oauth2") | 2957 | (name "ruby-oauth2") |
| 2958 | (version "2.0.9") | 2958 | (version "2.0.12") |
| 2959 | (source (origin | 2959 | (source |
| 2960 | (method git-fetch) ;for tests | 2960 | (origin |
| 2961 | (uri (git-reference | 2961 | (method git-fetch) |
| 2962 | (url "https://gitlab.com/oauth-xx/oauth2") | 2962 | (uri (git-reference |
| 2963 | (commit (string-append "v" version)))) | 2963 | (url "https://gitlab.com/oauth-xx/oauth2") |
| 2964 | (file-name (git-file-name name version)) | 2964 | (commit (string-append "v" version)))) |
| 2965 | (sha256 | 2965 | (file-name (git-file-name name version)) |
| 2966 | (base32 | 2966 | (sha256 |
| 2967 | "191j1f4gjw8wij1jy2fvddgi8cv1mm0ki7v0b0795clix1avnj29")))) | 2967 | (base32 "0cgya1rjf2v6f4j86cq1k5hpd1ks7xayvddsidsnc0fl3zkm8ygj")))) |
| 2968 | (build-system ruby-build-system) | 2968 | (build-system ruby-build-system) |
| 2969 | (arguments | ||
| 2970 | (list #:modules '((guix build ruby-build-system) | ||
| 2971 | (guix build utils) | ||
| 2972 | (ice-9 regex) | ||
| 2973 | (ice-9 textual-ports)) | ||
| 2974 | #:phases | ||
| 2975 | #~(modify-phases %standard-phases | ||
| 2976 | (add-after 'unpack 'relax-requirements | ||
| 2977 | (lambda _ | ||
| 2978 | (substitute* "Gemfile" | ||
| 2979 | (("^linting = .*") | ||
| 2980 | "linting = false\n") | ||
| 2981 | (("^coverage = .*") | ||
| 2982 | "coverage = false\n") | ||
| 2983 | (("^debug = .*") | ||
| 2984 | "debug = false\n")) | ||
| 2985 | (substitute* "spec/spec_helper.rb" | ||
| 2986 | (("^RUN_COVERAGE = .*") | ||
| 2987 | "RUN_COVERAGE = false\n") | ||
| 2988 | (("^ALL_FORMATTERS = .*") | ||
| 2989 | "ALL_FORMATTERS = false\n")))) | ||
| 2990 | (add-after 'unpack 'skip-problematic-test | ||
| 2991 | (lambda _ | ||
| 2992 | ;; XXX: substitute* can't match 2 lines. | ||
| 2993 | (with-atomic-file-replacement | ||
| 2994 | "spec/oauth2/client_spec.rb" | ||
| 2995 | (lambda (in out) | ||
| 2996 | (let* ((pattern "\ | ||
| 2997 | context 'when parse: :xml but response is JSON' do\n\ | ||
| 2998 | it 'returns a configured AccessToken' do\n") | ||
| 2999 | (content (get-string-all in)) | ||
| 3000 | (matched (string-match pattern content))) | ||
| 3001 | (if matched | ||
| 3002 | (format out "~a skip('fails on guix')~%~a" | ||
| 3003 | (string-take content (match:end matched)) | ||
| 3004 | (string-drop content (match:end matched))) | ||
| 3005 | (display content out)))))))))) | ||
| 3006 | (native-inputs | 2969 | (native-inputs |
| 3007 | (list bundler | 2970 | (list bundler |
| 3008 | ruby-addressable | 2971 | ruby-addressable |
| @@ -3014,6 +2977,7 @@ complexity.") | |||
| 3014 | ruby-silent-stream)) | 2977 | ruby-silent-stream)) |
| 3015 | (propagated-inputs | 2978 | (propagated-inputs |
| 3016 | (list ruby-faraday | 2979 | (list ruby-faraday |
| 2980 | ruby-hashie | ||
| 3017 | ruby-jwt | 2981 | ruby-jwt |
| 3018 | ruby-multi-xml | 2982 | ruby-multi-xml |
| 3019 | ruby-rack | 2983 | ruby-rack |
