gnu: ruby-range-compressor: Update to 1.2.0.

* gnu/packages/ruby.scm (ruby-range-compressor): Update to 1.2.0.
[arguments]: Update style.
This commit is contained in:
Christopher Baines 2023-06-18 11:56:02 +01:00
parent 04e5318eac
commit 1abf7f6556
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -8471,7 +8471,7 @@ (define-public ruby-character-set
(define-public ruby-range-compressor
(package
(name "ruby-range-compressor")
(version "1.0.0")
(version "1.2.0")
(source
(origin
(method git-fetch)
@ -8481,17 +8481,18 @@ (define-public ruby-range-compressor
(file-name (git-file-name name version))
(sha256
(base32
"0y8slri2msyyg2szgwgriqd6qw9hkxycssdrcl5lk2dbcq5zvn54"))))
"1zmc44si5ac2h7r1x4f1j8z5yr6wz528c7dssh0g70fmczs3pfga"))))
(build-system ruby-build-system)
(arguments
`(#:test-target "spec"
#:phases (modify-phases %standard-phases
(add-after 'extract-gemspec 'strip-version-requirements
(lambda _
(substitute* "range_compressor.gemspec"
(("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
(string-append stripped "\n")))
#t)))))
(list
#:test-target "spec"
#:phases
#~(modify-phases %standard-phases
(add-after 'extract-gemspec 'strip-version-requirements
(lambda _
(substitute* "range_compressor.gemspec"
(("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
(string-append stripped "\n"))))))))
(native-inputs
(list ruby-rspec))
(synopsis "Simple arrays of objects to arrays of ranges compressor")