mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: ruby-ptools: Update to 1.5.0.
* gnu/packages/ruby.scm (ruby-ptools): Update to 1.5.0. [arguments]: Update style and adjust. [native-inputs]: Add ruby-rspec.
This commit is contained in:
parent
7b535eb29b
commit
53d80d0485
1 changed files with 22 additions and 16 deletions
|
@ -3240,29 +3240,35 @@ (define-public ruby-nenv
|
||||||
(define-public ruby-ptools
|
(define-public ruby-ptools
|
||||||
(package
|
(package
|
||||||
(name "ruby-ptools")
|
(name "ruby-ptools")
|
||||||
(version "1.3.5")
|
(version "1.5.0")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (rubygems-uri "ptools" version))
|
(uri (rubygems-uri "ptools" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1jb1h1nsk9zwykpniw8filbsk26kjsdlpk5wz6w0zyamcd41h87j"))))
|
"0damllbshkxycrwjv80sz78h76dw7r9z54d17mb5cbha1daq9q2d"))))
|
||||||
(build-system ruby-build-system)
|
(build-system ruby-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases (modify-phases %standard-phases
|
(list
|
||||||
(add-after 'unpack 'patch-/bin/ls
|
#:test-target "spec:all"
|
||||||
(lambda _
|
#:phases
|
||||||
(substitute* "test/test_binary.rb"
|
#~(modify-phases %standard-phases
|
||||||
(("/bin/ls")
|
(add-after 'unpack 'patch
|
||||||
(which "ls")))
|
(lambda _
|
||||||
#t))
|
(substitute* "Rakefile"
|
||||||
(add-before 'install 'create-gem
|
;; Don't require rubocop
|
||||||
(lambda _
|
(("require 'rubocop/rake_task'") "")
|
||||||
;; Do not attempt to sign the gem.
|
(("RuboCop::RakeTask.new") "")
|
||||||
(substitute* "Rakefile"
|
;; Do not attempt to sign the gem.
|
||||||
(("spec\\.signing_key = .*")
|
(("spec\\.signing_key = .*") ""))
|
||||||
""))
|
|
||||||
(invoke "rake" "gem:create"))))))
|
(substitute* "spec/binary_spec.rb"
|
||||||
|
(("/bin/ls") (which "ls"))
|
||||||
|
(("/bin/cat") (which "cat"))
|
||||||
|
(("/bin/chmod") (which "chmod"))
|
||||||
|
(("/bin/df") (which "df"))))))))
|
||||||
|
(native-inputs
|
||||||
|
(list ruby-rspec))
|
||||||
(synopsis "Extra methods for Ruby's @code{File} class")
|
(synopsis "Extra methods for Ruby's @code{File} class")
|
||||||
(description
|
(description
|
||||||
"The @dfn{ptools} (power tools) library extends Ruby's core @code{File}
|
"The @dfn{ptools} (power tools) library extends Ruby's core @code{File}
|
||||||
|
|
Loading…
Reference in a new issue