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:
parent
29ecffebbf
commit
a6e0ecfa77
1 changed files with 24 additions and 32 deletions
|
@ -9349,7 +9349,7 @@ variable length integers (varint) in Ruby Protocol Buffers.")
|
|||
(define-public ruby-version-gem
|
||||
(package
|
||||
(name "ruby-version-gem")
|
||||
(version "1.1.2")
|
||||
(version "1.1.3")
|
||||
(source (origin
|
||||
(method git-fetch) ;for tests
|
||||
(uri (git-reference
|
||||
|
@ -9358,39 +9358,31 @@ variable length integers (varint) in Ruby Protocol Buffers.")
|
|||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"17y4dydlczd5xvvwfy94x63d5wi14cdkfhi6g94fm1sgsxxzzmq0"))))
|
||||
"1wazx2jr9vx5wm48fy8bccvfwhg7y2s8shfw9q81dhb4yvwk6gbf"))))
|
||||
(build-system ruby-build-system)
|
||||
(arguments
|
||||
(list #:phases #~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'relax-requirements
|
||||
(lambda _
|
||||
(substitute* "Gemfile"
|
||||
(("^linting = .*")
|
||||
"linting = false\n")
|
||||
(("^coverage = .*")
|
||||
"coverage = false\n")
|
||||
(("^debug = .*")
|
||||
"debug = false\n"))
|
||||
(substitute* "spec/spec_helper.rb"
|
||||
(("^RUN_COVERAGE = .*")
|
||||
"RUN_COVERAGE = false\n")
|
||||
(("^ALL_FORMATTERS = .*")
|
||||
"ALL_FORMATTERS = false\n"))))
|
||||
(add-before 'build 'drop-signing-key-requirement
|
||||
(lambda _
|
||||
(substitute* "version_gem.gemspec"
|
||||
(("spec.signing_key =.*")
|
||||
"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))))))))
|
||||
(list
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'relax-requirements
|
||||
(lambda _
|
||||
(substitute* "Gemfile"
|
||||
(("^linting = .*")
|
||||
"linting = false\n")
|
||||
(("^coverage = .*")
|
||||
"coverage = false\n")
|
||||
(("^debug = .*")
|
||||
"debug = false\n"))
|
||||
(substitute* "spec/spec_helper.rb"
|
||||
(("^RUN_COVERAGE = .*")
|
||||
"RUN_COVERAGE = false\n")
|
||||
(("^ALL_FORMATTERS = .*")
|
||||
"ALL_FORMATTERS = false\n"))))
|
||||
(add-before 'build 'drop-signing-key-requirement
|
||||
(lambda _
|
||||
(substitute* "version_gem.gemspec"
|
||||
(("spec.signing_key =.*")
|
||||
"spec.signing_key = nil")))))))
|
||||
(native-inputs (list ruby-rspec ruby-rspec-block-is-expected))
|
||||
(synopsis "Improved @code{Version} module for Ruby")
|
||||
(description "VersionGem aims to provide introspection of a @code{Version}
|
||||
|
|
Reference in a new issue