mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-04 18:38:57 -05:00
gnu: ruby-fast-gettext: Update to 2.3.0.
* gnu/packages/ruby.scm (ruby-fast-gettext): Update to 2.3.0. [arguments]: Update style and remove now unnecessary phases. [native-inputs]: Add ruby-rubocop-packaging.
This commit is contained in:
parent
c078d78714
commit
f8827a4416
1 changed files with 10 additions and 27 deletions
|
@ -4243,7 +4243,7 @@ (define-public ruby-connection-pool
|
||||||
(define-public ruby-fast-gettext
|
(define-public ruby-fast-gettext
|
||||||
(package
|
(package
|
||||||
(name "ruby-fast-gettext")
|
(name "ruby-fast-gettext")
|
||||||
(version "2.0.3")
|
(version "2.3.0")
|
||||||
(home-page "https://github.com/grosser/fast_gettext")
|
(home-page "https://github.com/grosser/fast_gettext")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
|
@ -4252,34 +4252,16 @@ (define-public ruby-fast-gettext
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1dg14apq5sfjshhcq0idphhs7aq9ikzswhqmn689p1h76mxqr1v6"))))
|
"0ba1wv96qarvvh19s8m1cgd26a9jgil4wl8nwgv4sl9fg5sqgksm"))))
|
||||||
(build-system ruby-build-system)
|
(build-system ruby-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:test-target "spec"
|
(list
|
||||||
#:phases (modify-phases %standard-phases
|
#:test-target "spec"
|
||||||
(add-before 'check 'remove-version-constraints
|
#:phases
|
||||||
(lambda _
|
#~(modify-phases %standard-phases
|
||||||
(delete-file "Gemfile.lock")
|
(add-before 'check 'remove-version-constraints
|
||||||
#t))
|
(lambda _
|
||||||
(add-before 'check 'remove-activerecord-test
|
(delete-file "Gemfile.lock"))))))
|
||||||
(lambda _
|
|
||||||
;; FIXME: This test fails because ActiveRecord depends on
|
|
||||||
;; a different version of ruby-sqlite than the currently
|
|
||||||
;; available one.
|
|
||||||
(delete-file
|
|
||||||
"spec/fast_gettext/translation_repository/db_spec.rb")
|
|
||||||
#t))
|
|
||||||
(add-before 'check 'disable-i18n-test
|
|
||||||
(lambda _
|
|
||||||
;; XXX: This test checks i18n intricasies with Rails 3 and
|
|
||||||
;; automatically disables itself for Rails 4.0, but does
|
|
||||||
;; not know about newer versions as it has not been updated
|
|
||||||
;; since 2014. Disable for later versions of Rails too.
|
|
||||||
(substitute* "spec/fast_gettext/vendor/string_spec.rb"
|
|
||||||
(((string-append "ActiveRecord::VERSION::MAJOR == 4 and "
|
|
||||||
"ActiveRecord::VERSION::MINOR == 0"))
|
|
||||||
"ActiveRecord::VERSION::MAJOR >= 4"))
|
|
||||||
#t)))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list ;; For tests.
|
(list ;; For tests.
|
||||||
ruby-activerecord
|
ruby-activerecord
|
||||||
|
@ -4288,6 +4270,7 @@ (define-public ruby-fast-gettext
|
||||||
ruby-forking-test-runner
|
ruby-forking-test-runner
|
||||||
ruby-i18n
|
ruby-i18n
|
||||||
ruby-rubocop
|
ruby-rubocop
|
||||||
|
ruby-rubocop-packaging
|
||||||
ruby-rspec
|
ruby-rspec
|
||||||
ruby-single-cov
|
ruby-single-cov
|
||||||
ruby-sqlite3
|
ruby-sqlite3
|
||||||
|
|
Loading…
Reference in a new issue