diff options
| author | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-03-21 23:39:43 -0400 |
|---|---|---|
| committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2022-03-21 23:39:43 -0400 |
| commit | a9429c8f2207841c649438187d6e19046d323a16 (patch) | |
| tree | a06e4b8a87b6a42742cf6750276746a10b6c2139 /gnu/packages/ruby.scm | |
| parent | f0136b36ae8c1e9c174043bd50e0e24413c0f345 (diff) | |
| parent | 49b350fafc2c3ea1db66461b73d4e304cd13ec92 (diff) | |
Merge branch 'staging' into core-updates.
Diffstat (limited to 'gnu/packages/ruby.scm')
| -rw-r--r-- | gnu/packages/ruby.scm | 76 |
1 files changed, 54 insertions, 22 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 62c268c7075..b91d8c0af2f 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm | |||
| @@ -1,13 +1,13 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2014, 2015 Pjotr Prins <pjotr.guix@thebird.nl> | 2 | ;;; Copyright © 2014, 2015 Pjotr Prins <pjotr.guix@thebird.nl> |
| 3 | ;;; Copyright © 2014, 2015, 2016, 2017, 2021 Ludovic Courtès <ludo@gnu.org> | 3 | ;;; Copyright © 2014-2017, 2021-2022 Ludovic Courtès <ludo@gnu.org> |
| 4 | ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org> | 4 | ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org> |
| 5 | ;;; Copyright © 2014, 2015 David Thompson <davet@gnu.org> | 5 | ;;; Copyright © 2014, 2015 David Thompson <davet@gnu.org> |
| 6 | ;;; Copyright © 2015, 2019 Ricardo Wurmus <rekado@elephly.net> | 6 | ;;; Copyright © 2015, 2019 Ricardo Wurmus <rekado@elephly.net> |
| 7 | ;;; Copyright © 2015, 2016, 2017 Ben Woodcroft <donttrustben@gmail.com> | 7 | ;;; Copyright © 2015, 2016, 2017 Ben Woodcroft <donttrustben@gmail.com> |
| 8 | ;;; Copyright © 2017 Nikita <nikita@n0.is> | 8 | ;;; Copyright © 2017 Nikita <nikita@n0.is> |
| 9 | ;;; Copyright © 2017, 2019, 2020, 2021 Marius Bakke <marius@gnu.org> | 9 | ;;; Copyright © 2017, 2019, 2020, 2021 Marius Bakke <marius@gnu.org> |
| 10 | ;;; Copyright © 2017, 2018, 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il> | 10 | ;;; Copyright © 2017, 2018, 2019, 2020, 2021, 2022 Efraim Flashner <efraim@flashner.co.il> |
| 11 | ;;; Copyright © 2017, 2018, 2020, 2021 Tobias Geerinckx-Rice <me@tobias.gr> | 11 | ;;; Copyright © 2017, 2018, 2020, 2021 Tobias Geerinckx-Rice <me@tobias.gr> |
| 12 | ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org> | 12 | ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org> |
| 13 | ;;; Copyright © 2017, 2018, 2019 Christopher Baines <mail@cbaines.net> | 13 | ;;; Copyright © 2017, 2018, 2019 Christopher Baines <mail@cbaines.net> |
| @@ -200,6 +200,20 @@ a focus on simplicity and productivity.") | |||
| 200 | (base32 | 200 | (base32 |
| 201 | "0h2w2ms4gx2s96v3lzdr3add94bd2qqkhdjzaycmaqhg21rpf3jp")))))) | 201 | "0h2w2ms4gx2s96v3lzdr3add94bd2qqkhdjzaycmaqhg21rpf3jp")))))) |
| 202 | 202 | ||
| 203 | (define-public ruby-3.1 | ||
| 204 | (package | ||
| 205 | (inherit ruby-2.7) | ||
| 206 | (version "3.1.1") | ||
| 207 | (source | ||
| 208 | (origin | ||
| 209 | (method url-fetch) | ||
| 210 | (uri (string-append "http://cache.ruby-lang.org/pub/ruby/" | ||
| 211 | (version-major+minor version) | ||
| 212 | "/ruby-" version ".tar.xz")) | ||
| 213 | (sha256 | ||
| 214 | (base32 | ||
| 215 | "1akcl7vhmwfm6ybj7493kzy58ykh2r39ri9f4xfm2xmhg1msmvvs")))))) | ||
| 216 | |||
| 203 | (define-public ruby-2.5 | 217 | (define-public ruby-2.5 |
| 204 | (package | 218 | (package |
| 205 | (inherit ruby-2.6) | 219 | (inherit ruby-2.6) |
| @@ -5717,7 +5731,14 @@ aware transformations between times in different time zones.") | |||
| 5717 | (uri "https://data.iana.org/time-zones/releases/tzcode2021a.tar.gz.asc") | 5731 | (uri "https://data.iana.org/time-zones/releases/tzcode2021a.tar.gz.asc") |
| 5718 | (sha256 | 5732 | (sha256 |
| 5719 | (base32 | 5733 | (base32 |
| 5720 | "1qhlj4lr810s47s1lwcvv1sgvg2sflf98w4sbg1lc8wzv5qxxv7g"))))))))) | 5734 | "1qhlj4lr810s47s1lwcvv1sgvg2sflf98w4sbg1lc8wzv5qxxv7g"))))) |
| 5735 | |||
| 5736 | ;; XXX: Explicitly depend on 'guile-final', which was previously | ||
| 5737 | ;; implied via the '%guile-for-build' fluid but not explicit. | ||
| 5738 | ;; TODO: Remove this argument on the next rebuild cycle. | ||
| 5739 | #:guile (module-ref (resolve-interface | ||
| 5740 | '(gnu packages commencement)) | ||
| 5741 | 'guile-final))))) | ||
| 5721 | (synopsis "Data from the IANA Time Zone database") | 5742 | (synopsis "Data from the IANA Time Zone database") |
| 5722 | (description | 5743 | (description |
| 5723 | "This library provides @code{TZInfo::Data}, which contains data from the | 5744 | "This library provides @code{TZInfo::Data}, which contains data from the |
| @@ -7139,7 +7160,9 @@ run.") | |||
| 7139 | "0wjw9vpzr4f3nf1zf010bag71w4hdi0haybdn7r5rlmw45pmim29")))) | 7160 | "0wjw9vpzr4f3nf1zf010bag71w4hdi0haybdn7r5rlmw45pmim29")))) |
| 7140 | (build-system ruby-build-system) | 7161 | (build-system ruby-build-system) |
| 7141 | (arguments | 7162 | (arguments |
| 7142 | '(#:test-target "default" | 7163 | `(#:test-target "default" |
| 7164 | ;; TODO: Figure out why test hangs. | ||
| 7165 | #:tests? ,(not (target-riscv64?)) | ||
| 7143 | #:phases | 7166 | #:phases |
| 7144 | (modify-phases %standard-phases | 7167 | (modify-phases %standard-phases |
| 7145 | (add-before 'check 'set-home | 7168 | (add-before 'check 'set-home |
| @@ -7349,11 +7372,11 @@ library.") | |||
| 7349 | (base32 | 7372 | (base32 |
| 7350 | "14a5kxfnf8l3ngyk8hgmk30z07aj1324ll8i48z67ps6pz2kpsrg")))) | 7373 | "14a5kxfnf8l3ngyk8hgmk30z07aj1324ll8i48z67ps6pz2kpsrg")))) |
| 7351 | (build-system ruby-build-system) | 7374 | (build-system ruby-build-system) |
| 7352 | (arguments '(#:tests? #t | 7375 | (arguments '(#:phases (modify-phases %standard-phases |
| 7353 | #:phases (modify-phases %standard-phases | ||
| 7354 | (replace 'check | 7376 | (replace 'check |
| 7355 | (lambda _ | 7377 | (lambda* (#:key tests? #:allow-other-keys) |
| 7356 | (invoke "rspec")))))) | 7378 | (when tests? |
| 7379 | (invoke "rspec"))))))) | ||
| 7357 | (native-inputs | 7380 | (native-inputs |
| 7358 | (list ruby-rspec)) | 7381 | (list ruby-rspec)) |
| 7359 | (propagated-inputs | 7382 | (propagated-inputs |
| @@ -7476,11 +7499,16 @@ navigation capabilities to @code{pry}, using @code{byebug}.") | |||
| 7476 | `(#:phases | 7499 | `(#:phases |
| 7477 | (modify-phases %standard-phases | 7500 | (modify-phases %standard-phases |
| 7478 | (add-before 'check 'skip-dubious-test | 7501 | (add-before 'check 'skip-dubious-test |
| 7479 | ;; This unreliable test can fail with "Expected 0 to be >= 1." | ||
| 7480 | (lambda _ | 7502 | (lambda _ |
| 7481 | (substitute* "test/test_stackprof.rb" | 7503 | ,@(if (or (target-riscv64?) |
| 7482 | (("def test_(cputime)" _ name) | 7504 | (target-ppc32?)) |
| 7483 | (string-append "def skip_" name))))) | 7505 | ;; This unreliable test can fail with "Expected 32 to be <= 25." |
| 7506 | '((substitute* "test/test_stackprof.rb" | ||
| 7507 | ((".*assert_operator profile\\[:missed_samples.*") ""))) | ||
| 7508 | ;; This unreliable test can fail with "Expected 0 to be >= 1." | ||
| 7509 | '((substitute* "test/test_stackprof.rb" | ||
| 7510 | (("def test_(cputime)" _ name) | ||
| 7511 | (string-append "def skip_" name))))))) | ||
| 7484 | (add-before 'check 'build-tests | 7512 | (add-before 'check 'build-tests |
| 7485 | (lambda _ | 7513 | (lambda _ |
| 7486 | (invoke "rake" "compile")))))) | 7514 | (invoke "rake" "compile")))))) |
| @@ -8252,8 +8280,8 @@ definitions.") | |||
| 8252 | (inherit ruby-yard) | 8280 | (inherit ruby-yard) |
| 8253 | (name "ruby-yard-with-tests") | 8281 | (name "ruby-yard-with-tests") |
| 8254 | (arguments | 8282 | (arguments |
| 8255 | (substitute-keyword-arguments (package-arguments ruby-yard) | 8283 | (substitute-keyword-arguments |
| 8256 | ((#:tests? _ #t) #t) | 8284 | (strip-keyword-arguments '(#:tests?) (package-arguments ruby-yard)) |
| 8257 | ((#:test-target _ "default") "default") | 8285 | ((#:test-target _ "default") "default") |
| 8258 | ((#:phases phases '%standard-phases) | 8286 | ((#:phases phases '%standard-phases) |
| 8259 | `(modify-phases ,phases | 8287 | `(modify-phases ,phases |
| @@ -8266,13 +8294,8 @@ definitions.") | |||
| 8266 | (delete-file "Gemfile") | 8294 | (delete-file "Gemfile") |
| 8267 | ;; $HOME needs to be set to somewhere writeable for tests to | 8295 | ;; $HOME needs to be set to somewhere writeable for tests to |
| 8268 | ;; run. | 8296 | ;; run. |
| 8269 | (setenv "HOME" "/tmp")) | 8297 | (setenv "HOME" "/tmp")))))))) |
| 8270 | #t)))))) | 8298 | (native-inputs (list ruby-rspec ruby-rack ruby-redcloth ruby-asciidoctor)))) |
| 8271 | (native-inputs | ||
| 8272 | `(("ruby-rspec" ,ruby-rspec) | ||
| 8273 | ("ruby-rack" ,ruby-rack) | ||
| 8274 | ("ruby-redcloth" ,ruby-redcloth) | ||
| 8275 | ("ruby-asciidoc" ,ruby-asciidoctor))))) | ||
| 8276 | 8299 | ||
| 8277 | (define-public ruby-spectroscope | 8300 | (define-public ruby-spectroscope |
| 8278 | (package | 8301 | (package |
| @@ -11386,7 +11409,16 @@ serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.") | |||
| 11386 | (base32 "1l0p4wx15mi3wnamfv92ipkia4nsx8qi132c6g51jfdma3fiz2ch")))) | 11409 | (base32 "1l0p4wx15mi3wnamfv92ipkia4nsx8qi132c6g51jfdma3fiz2ch")))) |
| 11387 | (build-system ruby-build-system) | 11410 | (build-system ruby-build-system) |
| 11388 | (native-inputs | 11411 | (native-inputs |
| 11389 | (list ruby-simplecov)) | 11412 | `(("ruby-simplecov" ,ruby-simplecov) |
| 11413 | ("test-patch" | ||
| 11414 | ,(search-patch "ruby-mustache-1.1.1-fix-race-condition-tests.patch")))) | ||
| 11415 | (arguments | ||
| 11416 | `(#:phases | ||
| 11417 | (modify-phases %standard-phases | ||
| 11418 | (add-after 'unpack 'patch-tests | ||
| 11419 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 11420 | (invoke "patch" "-p1" "--batch" "-i" | ||
| 11421 | (assoc-ref inputs "test-patch"))))))) | ||
| 11390 | (synopsis "framework-agnostic way to render logic-free views") | 11422 | (synopsis "framework-agnostic way to render logic-free views") |
| 11391 | (description | 11423 | (description |
| 11392 | "Mustache is a framework-agnostic way to render logic-free views. | 11424 | "Mustache is a framework-agnostic way to render logic-free views. |
