mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: ruby-spy: Improve style.
* gnu/packages/ruby-xyz.scm (ruby-spy): Run guix style.
This commit is contained in:
parent
f988582488
commit
bfcb2db688
1 changed files with 26 additions and 23 deletions
|
@ -14000,32 +14000,35 @@ development kit for Ruby.")
|
||||||
(package
|
(package
|
||||||
(name "ruby-spy")
|
(name "ruby-spy")
|
||||||
(version "1.0.5")
|
(version "1.0.5")
|
||||||
(source (origin
|
(source
|
||||||
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (rubygems-uri "spy" version))
|
(uri (rubygems-uri "spy" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "0g2mma8q17m26k5s864ndlvvqllhcivwg2wdigjvb7z06iw17gds"))))
|
||||||
"0g2mma8q17m26k5s864ndlvvqllhcivwg2wdigjvb7z06iw17gds"))))
|
|
||||||
(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 'extract-gemspec 'relax-requirements
|
(add-after 'extract-gemspec 'relax-requirements
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "spy.gemspec"
|
(substitute* "spy.gemspec"
|
||||||
((".*pry-byebug.*") ""))
|
((".*pry-byebug.*")
|
||||||
|
""))
|
||||||
(substitute* "test/test_helper.rb"
|
(substitute* "test/test_helper.rb"
|
||||||
((".*pry-byebug.*") ""))
|
((".*pry-byebug.*")
|
||||||
|
""))
|
||||||
(substitute* "Gemfile"
|
(substitute* "Gemfile"
|
||||||
((".*redcarpet.*") "")
|
((".*redcarpet.*")
|
||||||
((".*yard.*") "")))))))
|
"")
|
||||||
(native-inputs
|
((".*yard.*")
|
||||||
(list ruby-coveralls
|
"")))))))
|
||||||
ruby-minitest-reporters
|
(native-inputs (list ruby-coveralls ruby-minitest-reporters ruby-pry
|
||||||
ruby-pry
|
ruby-rspec-core ruby-rspec-expectations))
|
||||||
ruby-rspec-core
|
|
||||||
ruby-rspec-expectations))
|
|
||||||
(synopsis "Mocking library for Ruby")
|
(synopsis "Mocking library for Ruby")
|
||||||
(description "Spy is a mocking library. By default, it will raise an
|
(description
|
||||||
|
"Spy is a mocking library. By default, it will raise an
|
||||||
error if you attempt to stub a method that doesn't exist or call the stubbed
|
error if you attempt to stub a method that doesn't exist or call the stubbed
|
||||||
method with the wrong arity.")
|
method with the wrong arity.")
|
||||||
(home-page "https://github.com/ryanong/spy")
|
(home-page "https://github.com/ryanong/spy")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue