mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: ruby-public-suffix: Enable tests.
* gnu/packages/ruby.scm (ruby-public-suffix)[arguments]: Enable the tests, add a phase to remove the Rubocop dependency. [native-inputs]: Add bundler, ruby-yard, ruby-mocha and ruby-minitest-reporters.
This commit is contained in:
parent
e2c9a9ccb7
commit
1f4fc12568
1 changed files with 15 additions and 2 deletions
|
@ -6164,8 +6164,21 @@ (define-public ruby-public-suffix
|
|||
"08q64b5br692dd3v0a9wq9q5dvycc6kmiqmjbdxkxbfizggsvx6l"))))
|
||||
(build-system ruby-build-system)
|
||||
(arguments
|
||||
;; Tests require network
|
||||
`(#:tests? #f))
|
||||
'(#:phases
|
||||
(modify-phases %standard-phases
|
||||
;; Remove the requirement on Rubocop, as it isn't useful to run, and
|
||||
;; including it as an input can lead to circular dependencies.
|
||||
(add-after 'unpack 'remove-rubocop-from-Rakefile
|
||||
(lambda _
|
||||
(substitute* "Rakefile"
|
||||
(("require \"rubocop/rake\\_task\"") "")
|
||||
(("RuboCop::RakeTask\\.new") ""))
|
||||
#t)))))
|
||||
(native-inputs
|
||||
`(("bundler" ,bundler)
|
||||
("ruby-yard" ,ruby-yard)
|
||||
("ruby-mocha" ,ruby-mocha)
|
||||
("ruby-minitest-reporters" ,ruby-minitest-reporters)))
|
||||
(home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
|
||||
(synopsis "Domain name parser")
|
||||
(description "The gem @code{public_suffix} is a domain name parser,
|
||||
|
|
Loading…
Reference in a new issue