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
|
||||
(package
|
||||
(name "ruby-nio4r")
|
||||
(version "2.5.2")
|
||||
(version "2.7.4")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (rubygems-uri "nio4r" version))
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/socketry/nio4r")
|
||||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"0gnmvbryr521r135yz5bv8354m7xn6miiapfgpg1bnwsvxz8xj6c"))))
|
||||
"1planm0yrzgkjqvxbfrcp477k030f1cyplpf8g1p7dppgzk2iqqm"))))
|
||||
(build-system ruby-build-system)
|
||||
(arguments
|
||||
'(#:phases
|
||||
'(#:test-target "spec"
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'remove-unnecessary-dependencies
|
||||
(add-after 'extract-gemspec 'delete-certificate
|
||||
(lambda _
|
||||
(substitute* "spec/spec_helper.rb"
|
||||
;; Coveralls is for uploading test coverage information to an
|
||||
;; online service, and thus unnecessary for building the Guix
|
||||
;; 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") ""))))
|
||||
(substitute* "nio4r.gemspec"
|
||||
(("spec.cert_chain = .*") "")
|
||||
(("spec.signing_key = .*") ""))))
|
||||
(add-before 'check 'compile
|
||||
(lambda _
|
||||
(invoke "rake" "compile")))
|
||||
(replace 'check
|
||||
(lambda* (#:key tests? #:allow-other-keys)
|
||||
(when tests?
|
||||
(invoke "rspec")))))))
|
||||
(invoke "rake" "compile"))))))
|
||||
(native-inputs
|
||||
(list bundler ruby-rake-compiler ruby-rspec ruby-rubocop))
|
||||
(synopsis "New I/O for Ruby")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue