mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: ruby-standard: Update to 1.37.0.
* gnu/packages/ruby.scm (ruby-standard): Update to 1.37.0. [arguments]<#:phases>: Update phases 'delete-problematic-tests and 'relax-requirements. Use gexp. [native-inputs]: Remove ruby-gimme, ruby-pry. [propagated-inputs]: Add ruby-lint-roller, ruby-standard-custom, ruby-standard-performance. Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
parent
0109fc3142
commit
6dda9f8ff6
1 changed files with 38 additions and 28 deletions
|
@ -2393,7 +2393,7 @@ as defaults in Standard Ruby.")
|
|||
(define-public ruby-standard
|
||||
(package
|
||||
(name "ruby-standard")
|
||||
(version "1.25.3")
|
||||
(version "1.37.0")
|
||||
(source
|
||||
(origin
|
||||
(method git-fetch) ;no test suite in distributed gem
|
||||
|
@ -2402,12 +2402,12 @@ as defaults in Standard Ruby.")
|
|||
(commit (string-append "v" version))))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"0q42gv7wgrc818a5hm599sy07vjq69hbijzpkpgh6jws6x7wzyh3"))))
|
||||
(base32 "0gm9fn6fz41aya34xz7kzda8xxs7h98n7cjx66qbcy2w0qhs40wc"))))
|
||||
(build-system ruby-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
(list
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-after 'unpack 'set-HOME
|
||||
(lambda _
|
||||
;; Some tests fail otherwise.
|
||||
|
@ -2415,26 +2415,36 @@ as defaults in Standard Ruby.")
|
|||
(add-after 'unpack 'relax-requirements
|
||||
(lambda _
|
||||
(substitute* "standard.gemspec"
|
||||
(("\"rubocop\", \"1.44.1\"")
|
||||
"\"rubocop\", \">= 1.44.1\"")
|
||||
(("\"rubocop-performance\", \"1.15.2\"")
|
||||
"\"rubocop-performance\", \">= 1.15.2\""))))
|
||||
(("\"rubocop\", \".*\"")
|
||||
(string-append
|
||||
"\"rubocop\", \"~> "
|
||||
#$(package-version
|
||||
(this-package-input "ruby-rubocop"))
|
||||
"\""))
|
||||
(("\"rubocop-performance\", \".*\"")
|
||||
(string-append
|
||||
"\"rubocop-performance\", \"~> "
|
||||
#$(package-version
|
||||
(this-package-input "ruby-rubocop-performance"))
|
||||
"\"")))))
|
||||
(add-after 'unpack 'delete-problematic-tests
|
||||
;; These tests fail for unknown reasons (see:
|
||||
;; https://github.com/testdouble/standard/issues/532).
|
||||
(lambda _
|
||||
(for-each
|
||||
delete-file
|
||||
'("test/standard_test.rb"
|
||||
"test/standard/cop/block_single_line_braces_test.rb")))))))
|
||||
(delete-file "test/standard_test.rb")
|
||||
(substitute* "test/standard/base_test.rb"
|
||||
((".*test_configures_all_rubocop_cops.*" all)
|
||||
(string-append all
|
||||
" skip('fails on guix')\n"))))))))
|
||||
(native-inputs
|
||||
(list ruby-gimme
|
||||
ruby-pry
|
||||
ruby-simplecov))
|
||||
(list ruby-simplecov))
|
||||
(propagated-inputs
|
||||
(list ruby-language-server-protocol
|
||||
ruby-lint-roller
|
||||
ruby-rubocop
|
||||
ruby-rubocop-performance))
|
||||
ruby-rubocop-performance
|
||||
ruby-standard-custom
|
||||
ruby-standard-performance))
|
||||
(synopsis "Ruby Style Guide, with linter & automatic code fixer")
|
||||
(description "Standard is a port of StandardJS. Like StandardJS, it aims
|
||||
to save time in the following ways:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue