mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: ruby-nio4r: Update to 2.7.4.
* gnu/packages/ruby-xyz.scm (ruby-nio4r): Update to 2.7.4. [source]: Switch to git-fetch. [arguments]<#:test-target>: Add. <#:phases>: Remove remove-unnecessary-dependencies and check. Add delete-certificate to delete certificate fields from gemspec file. Change-Id: Iaf9efd43a81da0238a07effd811e21edf4b1c12a Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
parent
dd6f0eb212
commit
79ca67bf0f
1 changed files with 14 additions and 21 deletions
|
@ -14049,37 +14049,30 @@ common interface over different adapters.")
|
||||||
(define-public ruby-nio4r
|
(define-public ruby-nio4r
|
||||||
(package
|
(package
|
||||||
(name "ruby-nio4r")
|
(name "ruby-nio4r")
|
||||||
(version "2.5.2")
|
(version "2.7.4")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (rubygems-uri "nio4r" version))
|
(uri (git-reference
|
||||||
|
(url "https://github.com/socketry/nio4r")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0gnmvbryr521r135yz5bv8354m7xn6miiapfgpg1bnwsvxz8xj6c"))))
|
"1planm0yrzgkjqvxbfrcp477k030f1cyplpf8g1p7dppgzk2iqqm"))))
|
||||||
(build-system ruby-build-system)
|
(build-system ruby-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
'(#:test-target "spec"
|
||||||
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'remove-unnecessary-dependencies
|
(add-after 'extract-gemspec 'delete-certificate
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "spec/spec_helper.rb"
|
(substitute* "nio4r.gemspec"
|
||||||
;; Coveralls is for uploading test coverage information to an
|
(("spec.cert_chain = .*") "")
|
||||||
;; online service, and thus unnecessary for building the Guix
|
(("spec.signing_key = .*") ""))))
|
||||||
;; package
|
|
||||||
(("require \"coveralls\"") "")
|
|
||||||
(("Coveralls\\.wear!") "")
|
|
||||||
;; Remove rspec/retry as we are not retrying the tests
|
|
||||||
(("require \"rspec/retry\"") "")
|
|
||||||
(("config\\.display_try_failure_messages = true") "")
|
|
||||||
(("config\\.verbose_retry = true") ""))))
|
|
||||||
(add-before 'check 'compile
|
(add-before 'check 'compile
|
||||||
(lambda _
|
(lambda _
|
||||||
(invoke "rake" "compile")))
|
(invoke "rake" "compile"))))))
|
||||||
(replace 'check
|
|
||||||
(lambda* (#:key tests? #:allow-other-keys)
|
|
||||||
(when tests?
|
|
||||||
(invoke "rspec")))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list bundler ruby-rake-compiler ruby-rspec ruby-rubocop))
|
(list bundler ruby-rake-compiler ruby-rspec ruby-rubocop))
|
||||||
(synopsis "New I/O for Ruby")
|
(synopsis "New I/O for Ruby")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue