gnu: ruby-version-gem: Update to 1.1.3.

* gnu/packages/ruby.scm (ruby-version-gem): Update to 1.1.3.
[arguments]: Drop 'disable-problematic-tests phase.
This commit is contained in:
Christopher Baines 2023-07-03 10:13:24 +01:00
parent 29ecffebbf
commit a6e0ecfa77
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -9349,7 +9349,7 @@ variable length integers (varint) in Ruby Protocol Buffers.")
(define-public ruby-version-gem (define-public ruby-version-gem
(package (package
(name "ruby-version-gem") (name "ruby-version-gem")
(version "1.1.2") (version "1.1.3")
(source (origin (source (origin
(method git-fetch) ;for tests (method git-fetch) ;for tests
(uri (git-reference (uri (git-reference
@ -9358,10 +9358,12 @@ variable length integers (varint) in Ruby Protocol Buffers.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"17y4dydlczd5xvvwfy94x63d5wi14cdkfhi6g94fm1sgsxxzzmq0")))) "1wazx2jr9vx5wm48fy8bccvfwhg7y2s8shfw9q81dhb4yvwk6gbf"))))
(build-system ruby-build-system) (build-system ruby-build-system)
(arguments (arguments
(list #:phases #~(modify-phases %standard-phases (list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'relax-requirements (add-after 'unpack 'relax-requirements
(lambda _ (lambda _
(substitute* "Gemfile" (substitute* "Gemfile"
@ -9380,17 +9382,7 @@ variable length integers (varint) in Ruby Protocol Buffers.")
(lambda _ (lambda _
(substitute* "version_gem.gemspec" (substitute* "version_gem.gemspec"
(("spec.signing_key =.*") (("spec.signing_key =.*")
"spec.signing_key = nil")))) "spec.signing_key = nil")))))))
(add-before 'check 'disable-problematic-tests
(lambda _
(substitute* "spec/version_gem/ruby_spec.rb"
;; The test validates the minimum version of
;; Ruby to be 2.7.7, but because our Ruby is
;; 2.7.4 grafted with 2.7.7, the version seen is
;; 2.7.4 and it fails.
(("it 'returns true when current ruby greater \
than minimum'" all)
(string-append "x" all))))))))
(native-inputs (list ruby-rspec ruby-rspec-block-is-expected)) (native-inputs (list ruby-rspec ruby-rspec-block-is-expected))
(synopsis "Improved @code{Version} module for Ruby") (synopsis "Improved @code{Version} module for Ruby")
(description "VersionGem aims to provide introspection of a @code{Version} (description "VersionGem aims to provide introspection of a @code{Version}