mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-04 18:38:57 -05:00
gnu: ruby-jwt: Update to 2.7.1.
* gnu/packages/ruby.scm (ruby-jwt): Update to 2.7.1. [source]: Switch to git. [arguments]: Remove more unnecessary dependencies, and update style.
This commit is contained in:
parent
2a040300dc
commit
0b7258ecc5
1 changed files with 30 additions and 18 deletions
|
@ -7695,30 +7695,42 @@ (define-public ruby-json-pure
|
||||||
(define-public ruby-jwt
|
(define-public ruby-jwt
|
||||||
(package
|
(package
|
||||||
(name "ruby-jwt")
|
(name "ruby-jwt")
|
||||||
(version "2.1.0")
|
(version "2.7.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
;; For tests
|
||||||
(uri (rubygems-uri "jwt" version))
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/jwt/ruby-jwt")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1w0kaqrbl71cq9sbnixc20x5lqah3hs2i93xmhlfdg2y3by7yzky"))))
|
"12ss6knfis6a6a41qndalnlvq3yykhpg6igzll8qyssnnwi9zdw7"))))
|
||||||
(build-system ruby-build-system)
|
(build-system ruby-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:test-target "test"
|
(list
|
||||||
#:phases
|
#:test-target "test"
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
(add-after 'unpack 'remove-unnecessary-dependencies
|
#~(modify-phases %standard-phases
|
||||||
(lambda _
|
(add-after 'unpack 'remove-unnecessary-dependencies
|
||||||
(substitute* "spec/spec_helper.rb"
|
(lambda _
|
||||||
(("require 'simplecov.*") "\n")
|
(substitute* "ruby-jwt.gemspec"
|
||||||
;; Use [].each to disable running the SimpleCov configuration
|
(("spec\\.add_development_dependency 'appraisal'") "")
|
||||||
;; block
|
(("spec\\.add_development_dependency 'simplecov'") ""))
|
||||||
(("SimpleCov\\.configure") "[].each")
|
(substitute* "Gemfile"
|
||||||
(("require 'codeclimate-test-reporter'") "")
|
(("gem 'rubocop'.*") ""))
|
||||||
(("require 'codacy-coverage'") "")
|
(substitute* "Rakefile"
|
||||||
(("Codacy::Reporter\\.start") ""))
|
(("require 'rubocop/rake_task'") "")
|
||||||
#t)))))
|
(("RuboCop::RakeTask\\.new\\(:rubocop\\)") ""))
|
||||||
|
(substitute* "spec/spec_helper.rb"
|
||||||
|
(("require 'simplecov.*") "\n")
|
||||||
|
;; Use [].each to disable running the SimpleCov configuration
|
||||||
|
;; block
|
||||||
|
(("SimpleCov\\.configure") "[].each")
|
||||||
|
(("require 'codeclimate-test-reporter'") "")
|
||||||
|
(("require 'codacy-coverage'") "")
|
||||||
|
(("Codacy::Reporter\\.start") "")))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list bundler ruby-rspec ruby-rbnacl))
|
(list bundler ruby-rspec ruby-rbnacl))
|
||||||
(synopsis "Ruby implementation of the JSON Web Token standard")
|
(synopsis "Ruby implementation of the JSON Web Token standard")
|
||||||
|
|
Loading…
Reference in a new issue