From e4fb673a75c7a254070a8c27b8789b0e2e1f1a84 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 16 Feb 2021 20:12:35 +0200 Subject: gnu: ruby-gem-hadar: Update to 1.11.0. * gnu/packages/ruby.scm (ruby-gem-hadar): Update to 1.11.0. --- gnu/packages/ruby.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 9d855aeca0..90f885a379 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -7,7 +7,7 @@ ;;; Copyright © 2015, 2016, 2017 Ben Woodcroft ;;; Copyright © 2017 Nikita ;;; Copyright © 2017, 2019, 2020 Marius Bakke -;;; Copyright © 2017, 2018, 2019, 2020 Efraim Flashner +;;; Copyright © 2017, 2018, 2019, 2020, 2021 Efraim Flashner ;;; Copyright © 2017, 2018, 2020 Tobias Geerinckx-Rice ;;; Copyright © 2017 Clément Lassieur ;;; Copyright © 2017, 2018, 2019 Christopher Baines @@ -5852,13 +5852,13 @@ documentation for Ruby code.") (define-public ruby-gem-hadar (package (name "ruby-gem-hadar") - (version "1.9.1") + (version "1.11.0") (source (origin (method url-fetch) (uri (rubygems-uri "gem_hadar" version)) (sha256 (base32 - "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9")))) + "160abb3l4n3gkhd86f22n981bhqxkbf5ym6fhsk796pix6696pd5")))) (build-system ruby-build-system) ;; This gem needs itself at development time. We disable rebuilding of the ;; gemspec to avoid this loop. -- cgit v1.2.3 From f30382b42245a974c8e563b90da069c716f6b12d Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 17 Feb 2021 11:26:51 +0200 Subject: gnu: Add ruby-oedipus-lex. * gnu/packages/ruby.scm (ruby-oedipus-lex): New variable. --- gnu/packages/ruby.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 90f885a379..e6992f3e21 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -5519,6 +5519,29 @@ projects. It has very little overhead and can be easily integrated with development tools to catch coverage problems early.") (license license:expat))) +(define-public ruby-oedipus-lex + (package + (name "ruby-oedipus-lex") + (version "2.5.2") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "oedipus_lex" version)) + (sha256 + (base32 + "1v1rk78khwq87ar300lwll570zxpkq9rjnpgc9mgsyd6mm9qjz4w")))) + (build-system ruby-build-system) + (native-inputs + `(("ruby-hoe" ,ruby-hoe))) + (synopsis "Ruby lexer") + (description + "Oedipus Lex is a lexer generator in the same family as Rexical and Rex. +It is based primarily on generating code much like you would a hand-written +lexer. It uses StrScanner within a multi-level case statement. As such, +Oedipus matches on the first match, not the longest.") + (home-page "https://github.com/seattlerb/oedipus_lex") + (license license:expat))) + (define-public ruby-guard (package (name "ruby-guard") -- cgit v1.2.3 From 8c7f4e180a9a2e4cd54e4cc639615a4231122e43 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 17 Feb 2021 11:27:58 +0200 Subject: gnu: ruby-parser: Update to 3.0.0.0. * gnu/packages/ruby.scm (ruby-parser): Update to 3.0.0.0. --- gnu/packages/ruby.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index e6992f3e21..8a001806c0 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -5264,14 +5264,14 @@ across multiple CPU cores.") (define-public ruby-parser (package (name "ruby-parser") - (version "2.7.2.0") + (version "3.0.0.0") (source (origin (method url-fetch) (uri (rubygems-uri "parser" version)) (sha256 (base32 - "1f7gmm60yla325wlnd3qkxs59qm2y0aan8ljpg6k18rwzrrfil6z")))) + "1jixakyzmy0j5c1rb0fjrrdhgnyryvrr6vgcybs14jfw09akv5ml")))) (build-system ruby-build-system) (arguments '(#:tests? #f)) ; tests not included in gem -- cgit v1.2.3 From 6e3a85192ca48a749858c8c7f128c5ec59c2ff89 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 17 Feb 2021 11:29:27 +0200 Subject: gnu: ruby-rubocop-ast: Update to 1.4.1. * gnu/packages/ruby.scm (ruby-rubocop-ast): Update to 1.4.1. [arguments]: Remove 'disable-bundler phase. Add 'generate-lexer phase. [native-inputs]: Add ruby-oedipus-lex, ruby-pry, ruby-racc, ruby-rake, ruby-simplecov. --- gnu/packages/ruby.scm | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 8a001806c0..5c7f1f9aea 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -6978,7 +6978,7 @@ inspired by the Sinatra microframework style of specifying actions: (define-public ruby-rubocop-ast (package (name "ruby-rubocop-ast") - (version "0.3.0") + (version "1.4.1") (source (origin (method git-fetch) ;no test suite in distributed gem @@ -6988,16 +6988,15 @@ inspired by the Sinatra microframework style of specifying actions: (file-name (git-file-name name version)) (sha256 (base32 - "1ycf6qcj8nbzk2js72priim4642lkn56w5kbny1nlryjkckxgm04")))) + "1x2m7k4bn4zvvwmj7imzmv0dav6xnrbcvssad1m5lkprx7h5lzkq")))) (build-system ruby-build-system) (arguments `(#:test-target "spec" #:phases (modify-phases %standard-phases - (add-after 'unpack 'disable-bundler + (add-before 'build 'generate-lexer (lambda _ - (substitute* "Rakefile" - (("Bundler\\.setup.*") "nil\n")) - #t)) + (setenv "RUBOCOP_VERSION" "none") + (invoke "rake" "generate"))) (replace 'replace-git-ls-files (lambda _ (substitute* "rubocop-ast.gemspec" @@ -7006,7 +7005,12 @@ inspired by the Sinatra microframework style of specifying actions: #t))))) (native-inputs `(("ruby-bump" ,ruby-bump) - ("ruby-rspec" ,ruby-rspec))) + ("ruby-oedipus-lex" ,ruby-oedipus-lex) + ("ruby-pry" ,ruby-pry) + ("ruby-racc" ,ruby-racc) + ("ruby-rake" ,ruby-rake) + ("ruby-rspec" ,ruby-rspec) + ("ruby-simplecov" ,ruby-simplecov))) (propagated-inputs `(("ruby-parser" ,ruby-parser))) (synopsis "RuboCop's AST extensions and NodePattern functionality") -- cgit v1.2.3 From f7bd9d235eb7d6841ced42e406b896a7384ba7fe Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 17 Feb 2021 12:06:08 +0200 Subject: gnu: ruby-hashdiff: Update to 1.0.1. * gnu/packages/ruby.scm (ruby-hashdiff): Update to 1.0.1. --- gnu/packages/ruby.scm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 5c7f1f9aea..28ba7b403e 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -3092,20 +3092,19 @@ immutable queue or stack).") (define-public ruby-hashdiff (package (name "ruby-hashdiff") - (version "0.3.8") + (version "1.0.1") (source (origin (method url-fetch) (uri (rubygems-uri "hashdiff" version)) (sha256 (base32 - "19ykg5pax8798nh1yv71adkx0zzs7gn2rxjj86v7nsw0jba5lask")))) + "1nynpl0xbj0nphqx1qlmyggq58ms1phf5i03hk64wcc0a17x1m1c")))) (build-system ruby-build-system) (arguments '(#:phases (modify-phases %standard-phases - ;; Run tests directly via rspec to avoid Rake issue: - ;; NoMethodError: undefined method `last_comment' + ;; Run tests directly via rspec to avoid depending on rubocop. (replace 'check (lambda* (#:key tests? #:allow-other-keys) (when tests? -- cgit v1.2.3 From 4f8c551cf367c9b1f83e8b438df4764abaab2d41 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 17 Feb 2021 12:07:06 +0200 Subject: gnu: Add ruby-stackprof. * gnu/packages/ruby.scm (ruby-stackprof): New variable. --- gnu/packages/ruby.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 28ba7b403e..8dab0b6e1d 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -7556,6 +7556,28 @@ navigation capabilities to @code{pry}, using @code{byebug}.") (home-page "https://github.com/deivid-rodriguez/pry-byebug") (license license:expat))) +(define-public ruby-stackprof + (package + (name "ruby-stackprof") + (version "0.2.16") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "stackprof" version)) + (sha256 + (base32 + "147rb66p3n062vc433afqhkd99iazvkrqnghxgh871r62yhha93f")))) + (build-system ruby-build-system) + (native-inputs + `(("ruby-mocha" ,ruby-mocha) + ("ruby-rake-compiler" ,ruby-rake-compiler))) + (synopsis "Sampling profiler for Ruby code") + (description + "@code{stackprof} is a fast sampling profiler for Ruby code, with cpu, +wallclock and object allocation samplers.") + (home-page "http://github.com/tmm1/stackprof") + (license license:expat))) + (define-public ruby-binding-of-caller (package (name "ruby-binding-of-caller") -- cgit v1.2.3 From f499e12486cf69643ec8baa23530d9caad13502b Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 17 Feb 2021 12:07:32 +0200 Subject: gnu: Add ruby-memory-profiler. * gnu/packages/ruby.scm (ruby-memory-profiler): New variable. --- gnu/packages/ruby.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 8dab0b6e1d..3294b4e134 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -7700,6 +7700,29 @@ Profiling multiple threads simultaneously is supported. (home-page "https://github.com/ruby-prof/ruby-prof") (license license:bsd-2))) +(define-public ruby-memory-profiler + (package + (name "ruby-memory-profiler") + (version "1.0.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/SamSaffron/memory_profiler") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "07yqv11q68xg2fqkrhs6ysngryk8b9zq6qzh24rgx9xqv6qfnj0w")))) + (build-system ruby-build-system) + (native-inputs + `(("ruby-rake" ,ruby-rake))) + (synopsis "Memory profiling routines for Ruby") + (description + "This package provides memory profiling routines for Ruby.") + (home-page "https://github.com/SamSaffron/memory_profiler") + (license license:expat))) + (define-public ruby-cucumber-messages (package (name "ruby-cucumber-messages") -- cgit v1.2.3 From 16c0cc5cfe7283a0170662b1880dd640d99f8a4d Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 17 Feb 2021 12:35:03 +0200 Subject: gnu: ruby-crack: Update to 0.4.5. * gnu/packages/ruby.scm (ruby-crack): Update to 0.4.5. [propagated-inputs]: Remove ruby-safe-yaml. Add ruby-rexml. --- gnu/packages/ruby.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 3294b4e134..d1fe82b2ee 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -2047,14 +2047,14 @@ value is found.") (define-public ruby-crack (package (name "ruby-crack") - (version "0.4.3") + (version "0.4.5") (source (origin (method url-fetch) (uri (rubygems-uri "crack" version)) (sha256 (base32 - "0abb0fvgw00akyik1zxnq7yv391va148151qxdghnzngv66bl62k")))) + "1cr1kfpw3vkhysvkk3wg7c54m75kd68mbm9rs5azdjdq57xid13r")))) (build-system ruby-build-system) (arguments `(#:phases @@ -2068,7 +2068,7 @@ value is found.") (find-files "test" ".*rb$"))) #t))))) (propagated-inputs - `(("ruby-safe-yaml" ,ruby-safe-yaml))) + `(("ruby-rexml" ,ruby-rexml))) (synopsis "Simple JSON and XML parsing for Ruby") (description "@code{crack} provides really simple JSON and XML parsing, extracted from -- cgit v1.2.3 From cc128eefd7ec77c84c5d8a5cab4db03823d13112 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 17 Feb 2021 15:29:26 +0200 Subject: gnu: ruby-rubocop-performance: Update to 1.9.2. * gnu/packages/ruby.scm (ruby-rubocop-performance): Update to 1.9.2. [source]: Download from git uri. [arguments]: Replace 'replace-git-ls-files phase. Add 'set-home phase. [propagated-inputs]: Add ruby-rubocop-ast. [native-inputs]: Add ruby-bump, ruby-yard. --- gnu/packages/ruby.scm | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index d1fe82b2ee..1934a68c01 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -1549,19 +1549,38 @@ logic.") (define-public ruby-rubocop-performance (package (name "ruby-rubocop-performance") - (version "1.7.1") + (version "1.9.2") (source (origin - (method url-fetch) - (uri (rubygems-uri "rubocop-performance" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/rubocop-hq/rubocop-performance") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 (base32 - "04r8d4x62ygv17spvz9yyfxbmbf8qxwhijs0xycfvzr0q4pyg9sw")))) + "04lmkmz6c0ccs5miikrww7lakp7y6xz00g7b47ay7rn7sx5j6qyf")))) (build-system ruby-build-system) (arguments - `(#:tests? #f)) ;no test suite in the distributed gem + `(#:tests? #f ; tests require a git checkout of rubocop's source code. + #:phases + (modify-phases %standard-phases + (replace 'replace-git-ls-files + (lambda _ + (substitute* "rubocop-performance.gemspec" + (("`git ls-files -z config lib LICENSE.txt README.md`") + "`find config lib LICENSE.txt README.md -type f -print0 |sort -z`")) + #t)) + (add-before 'check 'set-HOME + (lambda _ + (setenv "HOME" "/tmp") + #t))))) (propagated-inputs - `(("ruby-rubocop" ,ruby-rubocop))) + `(("ruby-rubocop" ,ruby-rubocop) + ("ruby-rubocop-ast" ,ruby-rubocop-ast))) + (native-inputs + `(("ruby-bump" ,ruby-bump) + ("ruby-yard" ,ruby-yard))) (synopsis "Performance optimizations checkers for Ruby code") (description "This package provides a collection of RuboCop cops to check for performance optimizations in Ruby code.") -- cgit v1.2.3 From 8588e6683c72d7c9c5e5a3a0573f4494ba22211c Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 17 Feb 2021 15:30:36 +0200 Subject: gnu: Add ruby-rubocop-rspec. * gnu/packages/ruby.scm (ruby-rubocop-rspec): New variable. --- gnu/packages/ruby.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 1934a68c01..bad97e8918 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -1546,6 +1546,44 @@ logic.") (home-page "https://github.com/typhoeus/typhoeus") (license license:expat))) +(define-public ruby-rubocop-rspec + (package + (name "ruby-rubocop-rspec") + (version "2.2.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rubocop-hq/rubocop-rspec") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0gdpjpympb6qc77bang759z7z6lckf14ghkx8v6614agxg8l3g5y")))) + (build-system ruby-build-system) + (arguments + '(#:test-target "internal_investigation" + #:phases + (modify-phases %standard-phases + (add-before 'check 'set-HOME + (lambda _ + (setenv "HOME" "/tmp") + #t))))) + (propagated-inputs + `(("ruby-rubocop" ,ruby-rubocop) + ("ruby-rubocop-ast" ,ruby-rubocop-ast))) + (native-inputs + `(("ruby-rack" ,ruby-rack) + ("ruby-rspec" ,ruby-rspec) + ("ruby-rubocop-performance" ,ruby-rubocop-performance) + ("ruby-simplecov" ,ruby-simplecov) + ("ruby-yard" ,ruby-yard))) + (synopsis "Code style checking for RSpec files") + (description "This package provides a plugin for the RuboCop code style +enforcing & linting tool.") + (home-page "https://github.com/rubocop-hq/rubocop-rspec") + (license license:expat))) + (define-public ruby-rubocop-performance (package (name "ruby-rubocop-performance") -- cgit v1.2.3 From a4d61297e2e3e573ff53164c37c792d5c846cd46 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 17 Feb 2021 15:38:33 +0200 Subject: gnu: ruby-webmock: Update to 3.11.2. * gnu/packages/ruby.scm (ruby-webmock): Update to 3.11.2. (ruby-webmock-2): Inherit from ruby-webmock. (ruby-omniauth-oauth2, ruby-solargraph)[native-inputs]: Switch from ruby-webmock-2 to ruby-webmock. --- gnu/packages/ruby.scm | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index bad97e8918..58614a61ac 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -2353,7 +2353,7 @@ authentication.") ("ruby-rspec" ,ruby-rspec) ("ruby-simplecov" ,ruby-simplecov) ("ruby-rack-test" ,ruby-rack-test) - ("ruby-webmock" ,ruby-webmock-2))) + ("ruby-webmock" ,ruby-webmock))) (synopsis "Abstract OAuth2 strategy for OmniAuth") (description "This library provides a generic OAuth2 strategy for OmniAuth. It @@ -9063,17 +9063,17 @@ requests.") (home-page "https://github.com/opperator/warden-oauth2") (license license:expat))) -(define-public ruby-webmock-2 +(define-public ruby-webmock (package (name "ruby-webmock") - (version "2.3.2") + (version "3.11.2") (source (origin (method url-fetch) (uri (rubygems-uri "webmock" version)) (sha256 (base32 - "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5")))) + "1hdlbvfw316lkz251qnfk79drmaay7l51kidvicz41nhvw12xz8v")))) (build-system ruby-build-system) (native-inputs `(("bundler" ,bundler) @@ -9089,6 +9089,19 @@ requests. This is useful when testing software.") (home-page "https://github.com/bblimke/webmock") (license license:expat))) +(define-public ruby-webmock-2 + (package + (inherit ruby-webmock) + (name "ruby-webmock") + (version "2.3.2") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "webmock" version)) + (sha256 + (base32 + "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5")))))) + (define-public ruby-unicode-display-width (package (name "ruby-unicode-display-width") @@ -11950,7 +11963,7 @@ application.") `(("ruby-rspec" ,ruby-rspec) ("ruby-pry" ,ruby-pry) ("ruby-simplecov" ,ruby-simplecov) - ("ruby-webmock" ,ruby-webmock-2))) + ("ruby-webmock" ,ruby-webmock))) ;; FIXME: can't figure out how to run the tests properly: ;; An error occurred while loading spec_helper. -- cgit v1.2.3 From 301d1bacc1f33ed5f2f546488c3a1dbc66cc3f4f Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Wed, 17 Feb 2021 16:06:12 +0200 Subject: gnu: ruby-rubocop: Update to 1.10.0. * gnu/packages/ruby.scm (ruby-rubocop): Update to 1.10.0. [source]: Remove patch. [arguments]: Remove custom 'remove-problematic-tests, 'disable-bundler, 'replace-git-ls-files phases. Add custom 'check phase. [native-inputs]: Add ruby-memory-profiler, ruby-rake, ruby-rubocop-minimal, ruby-rubocop-performance-minimal, ruby-rubocop-rspec-minimal, ruby-simplecov, ruby-stackprof. Replace ruby-webmock-2 with ruby-webmock. (ruby-rubocop-minimal, ruby-rubocop-performance-minimal, ruby-rubocop-rspec-minimal): New variables. * gnu/packages/patches/ruby-rubocop-break-dependency-cycle.patch: Remove file. * gnu/local.mk (dist_patch_DATA): Remove it. --- gnu/local.mk | 1 - .../ruby-rubocop-break-dependency-cycle.patch | 101 --------------------- gnu/packages/ruby.scm | 78 ++++++++++------ 3 files changed, 49 insertions(+), 131 deletions(-) delete mode 100644 gnu/packages/patches/ruby-rubocop-break-dependency-cycle.patch (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/local.mk b/gnu/local.mk index 250901f6d9..c3398c62fd 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1597,7 +1597,6 @@ dist_patch_DATA = \ %D%/packages/patches/rnp-disable-ruby-rnp-tests.patch \ %D%/packages/patches/rnp-unbundle-googletest.patch \ %D%/packages/patches/ruby-rack-ignore-failing-test.patch \ - %D%/packages/patches/ruby-rubocop-break-dependency-cycle.patch\ %D%/packages/patches/ruby-sanitize-system-libxml.patch \ %D%/packages/patches/ruby-tzinfo-data-ignore-broken-test.patch\ %D%/packages/patches/runc-CVE-2019-5736.patch \ diff --git a/gnu/packages/patches/ruby-rubocop-break-dependency-cycle.patch b/gnu/packages/patches/ruby-rubocop-break-dependency-cycle.patch deleted file mode 100644 index 035a98fa33..0000000000 --- a/gnu/packages/patches/ruby-rubocop-break-dependency-cycle.patch +++ /dev/null @@ -1,101 +0,0 @@ -From ff3f00b7f33332ebf1c3c05abc4a781684775b3c Mon Sep 17 00:00:00 2001 -From: Maxim Cournoyer -Date: Tue, 14 Jul 2020 11:50:12 -0400 -Subject: [PATCH] config: Drop rubocop-performance, rubocop-rspec requirements. - -This patch removes Rubocop extensions from Rubocop's closure to break -a dependency cycle with itself. - -* .rubocop.yml: Remove rubocop-performance and rubocop-rspec and their -corresponding directives. -* .rubocop_todo.yml: Likewise. ---- - .rubocop.yml | 15 --------------- - .rubocop_todo.yml | 44 -------------------------------------------- - 2 files changed, 59 deletions(-) - -diff --git a/.rubocop.yml b/.rubocop.yml -index 4f05d5be2..f12ef7c06 100644 ---- a/.rubocop.yml -+++ b/.rubocop.yml -@@ -3,8 +3,6 @@ - inherit_from: .rubocop_todo.yml - require: - - rubocop/cop/internal_affairs -- - rubocop-performance -- - rubocop-rspec - - AllCops: - NewCops: enable -@@ -106,16 +104,3 @@ Metrics/ClassLength: - Metrics/ModuleLength: - Exclude: - - 'spec/**/*.rb' -- --RSpec/FilePath: -- Exclude: -- - spec/rubocop/formatter/junit_formatter_spec.rb -- --RSpec/PredicateMatcher: -- EnforcedStyle: explicit -- --RSpec/MessageSpies: -- EnforcedStyle: receive -- --RSpec/NestedGroups: -- Max: 7 -diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml -index 3f72042d1..fa637cd42 100644 ---- a/.rubocop_todo.yml -+++ b/.rubocop_todo.yml -@@ -24,47 +24,3 @@ Metrics/MethodLength: - # Configuration parameters: CountComments. - Metrics/ModuleLength: - Max: 132 -- --# Offense count: 10 --RSpec/AnyInstance: -- Exclude: -- - 'spec/rubocop/cli_spec.rb' -- - 'spec/rubocop/cop/lint/duplicate_methods_spec.rb' -- - 'spec/rubocop/cop/team_spec.rb' -- - 'spec/rubocop/target_finder_spec.rb' -- --# Offense count: 981 --# Configuration parameters: Prefixes. --# Prefixes: when, with, without --RSpec/ContextWording: -- Enabled: false -- --# Offense count: 3810 --# Configuration parameters: Max. --RSpec/ExampleLength: -- Enabled: false -- --# Offense count: 38 --RSpec/ExpectOutput: -- Exclude: -- - 'spec/rubocop/cli/cli_auto_gen_config_spec.rb' -- - 'spec/rubocop/cli/cli_options_spec.rb' -- - 'spec/rubocop/config_spec.rb' -- - 'spec/rubocop/cop/cop_spec.rb' -- - 'spec/rubocop/formatter/disabled_config_formatter_spec.rb' -- - 'spec/rubocop/formatter/formatter_set_spec.rb' -- - 'spec/rubocop/options_spec.rb' -- - 'spec/rubocop/rake_task_spec.rb' -- - 'spec/rubocop/result_cache_spec.rb' -- - 'spec/rubocop/target_finder_spec.rb' -- --# Offense count: 434 --RSpec/MultipleExpectations: -- Max: 25 -- --# Offense count: 5 --RSpec/SubjectStub: -- Exclude: -- - 'spec/rubocop/config_spec.rb' -- - 'spec/rubocop/formatter/json_formatter_spec.rb' -- - 'spec/rubocop/formatter/progress_formatter_spec.rb' --- -2.27.0 - diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 58614a61ac..6c9583b3cf 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -1584,6 +1584,16 @@ enforcing & linting tool.") (home-page "https://github.com/rubocop-hq/rubocop-rspec") (license license:expat))) +(define-public ruby-rubocop-rspec-minimal + (hidden-package + (package + (inherit ruby-rubocop-rspec) + (arguments + (substitute-keyword-arguments (package-arguments ruby-rubocop-rspec) + ((#:tests? _ #f) #f))) + (propagated-inputs '()) + (native-inputs '())))) + (define-public ruby-rubocop-performance (package (name "ruby-rubocop-performance") @@ -1625,6 +1635,16 @@ for performance optimizations in Ruby code.") (home-page "https://docs.rubocop.org/rubocop-performance/") (license license:expat))) +(define-public ruby-rubocop-performance-minimal + (hidden-package + (package + (inherit ruby-rubocop-performance) + (arguments + (substitute-keyword-arguments (package-arguments ruby-rubocop-performance) + ((#:tests? _ #f) #f))) + (propagated-inputs '()) + (native-inputs '())))) + (define-public ruby-gimme (let ((revision "1") (commit "4e71f0236f1271871916dd403261d26533db34c0")) @@ -7270,7 +7290,7 @@ run.") (define-public ruby-rubocop (package (name "ruby-rubocop") - (version "0.88.0") + (version "1.10.0") (source (origin (method git-fetch) ;no tests in distributed gem @@ -7280,42 +7300,25 @@ run.") (file-name (git-file-name name version)) (sha256 (base32 - "1d06893jp8pd85fvgp5d16vqcf31bafi430v4f4y746ihyvhzz5r")) - (patches (search-patches "ruby-rubocop-break-dependency-cycle.patch")))) + "0wjw9vpzr4f3nf1zf010bag71w4hdi0haybdn7r5rlmw45pmim29")))) (build-system ruby-build-system) (arguments '(#:test-target "default" #:phases (modify-phases %standard-phases - (add-after 'unpack 'remove-problematic-tests - ;; These tests depend on Rubocop extensions, which cannot be - ;; included as they cause a dependency cycle with Rubocop itself. - (lambda _ - (delete-file "spec/rubocop/config_loader_spec.rb") - (substitute* "Gemfile" - ((".*'rubocop-performance'.*") "") - ((".*'rubocop-rspec'.*") "")) - ;; Prevent "Unnecessary disabling of RSpec/* (unknown cop)" - ;; errors. - (substitute* (find-files "spec/rubocop/cop/" "_spec\\.rb$") - (("# (rubocop:(enable|disable) RSpec.*)" _ what) - (string-append "# Disabled: " what))) - #t)) - (add-after 'unpack 'disable-bundler - (lambda _ - (substitute* "Rakefile" - (("Bundler\\.setup.*") "nil\n")) - #t)) - (replace 'replace-git-ls-files - (lambda _ - (substitute* "rubocop.gemspec" - (("`git ls-files(.*)`" _ files) - (format #f "`find ~a -type f| sort`" files))) - #t)) (add-before 'check 'set-home (lambda _ (setenv "HOME" (getcwd)) #t)) + ;; Rubocop depends on itself for tests, directly and indirectly. By + ;; regenerating the TODO list we test rubocop against itself and + ;; forgo adjusting the test suite to our environment each release. + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (make-file-writable ".rubocop_todo.yml") + (invoke "./exe/rubocop" "--auto-gen-config")) + #t)) (add-before 'check 'make-adoc-files-writable (lambda _ (let ((adoc-files (find-files "docs/modules/ROOT/pages" @@ -7324,10 +7327,17 @@ run.") #t))))) (native-inputs `(("ruby-bump" ,ruby-bump) + ("ruby-memory-profiler" ,ruby-memory-profiler) ("ruby-pry" ,ruby-pry) + ("ruby-rake" ,ruby-rake) ("ruby-rspec" ,ruby-rspec) + ("ruby-rubocop-minimal" ,ruby-rubocop-minimal) + ("ruby-rubocop-performance-minimal" ,ruby-rubocop-performance-minimal) + ("ruby-rubocop-rspec-minimal" ,ruby-rubocop-rspec-minimal) + ("ruby-simplecov" ,ruby-simplecov) + ("ruby-stackprof" ,ruby-stackprof) ("ruby-test-queue" ,ruby-test-queue) - ("ruby-webmock" ,ruby-webmock-2) + ("ruby-webmock" ,ruby-webmock) ("ruby-yard" ,ruby-yard))) (propagated-inputs `(("ruby-parallel" ,ruby-parallel) @@ -7345,6 +7355,16 @@ the community-driven Ruby Style Guide.") (home-page "https://github.com/rubocop-hq/rubocop") (license license:expat))) +(define-public ruby-rubocop-minimal + (hidden-package + (package + (inherit ruby-rubocop) + (arguments + (substitute-keyword-arguments (package-arguments ruby-rubocop) + ((#:tests? _ #f) #f))) + (propagated-inputs '()) + (native-inputs '())))) + (define-public ruby-contest (package (name "ruby-contest") -- cgit v1.2.3 From d51c11fea3894c08821d92279424b0b71f317ebb Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Feb 2021 14:39:22 +0200 Subject: gnu: ruby-rack-protection: Update to 2.0.8.1. * gnu/packages/ruby.scm (ruby-rack-protection): Update to 2.0.8.1. --- gnu/packages/ruby.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 6c9583b3cf..3a3be592ce 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -6921,14 +6921,14 @@ testing libraries to build on.") (define-public ruby-rack-protection (package (name "ruby-rack-protection") - (version "2.0.5") + (version "2.0.8.1") (source (origin (method url-fetch) (uri (rubygems-uri "rack-protection" version)) (sha256 (base32 - "15167q25rmxipqwi6hjqj3i1byi9iwl3xq9b7mdar7qiz39pmjsk")))) + "1zyj97bfr1shfgwk4ddmdbw0mdkm4qdyh9s1hl0k7accf3kxx1yi")))) (build-system ruby-build-system) (arguments '(;; Tests missing from the gem. -- cgit v1.2.3 From 984d64388dcc1a4c5d9ea746700300abcac84d3e Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 22 Feb 2021 16:27:54 +0200 Subject: gnu: ruby-omniauth: Update to 2.0.3. * gnu/packages/ruby.scm (ruby-omniauth): Update to 2.0.3. [arguments]: Don't skip tests. [propagated-inputs]: Add ruby-rack-protector. [native-inputs]: Add ruby-rspec. --- gnu/packages/ruby.scm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 3a3be592ce..6412bf92c1 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -2320,19 +2320,20 @@ with a similar style to the original OAuth spec.") (define-public ruby-omniauth (package (name "ruby-omniauth") - (version "1.9.1") + (version "2.0.3") (source (origin (method url-fetch) (uri (rubygems-uri "omniauth" version)) (sha256 - (base32 "002vi9gwamkmhf0dsj2im1d47xw2n1jfhnzl18shxf3ampkqfmyz")))) + (base32 "105mzgvmn2kjaacxw01h4wqv33r7hfn5z8fxlkk3jcjar14j71bh")))) (build-system ruby-build-system) - (arguments - '(#:tests? #f)) ; No included tests (propagated-inputs `(("ruby-hashie" ,ruby-hashie) - ("ruby-rack" ,ruby-rack))) + ("ruby-rack" ,ruby-rack) + ("ruby-rack-protection" ,ruby-rack-protection))) + (native-inputs + `(("ruby-rspec" ,ruby-rspec))) (synopsis "Generalized Rack framework for multiple-provider authentication") (description "This package provides a generalized Rack framework for multiple-provider -- cgit v1.2.3 From 51b3ea8d5bf6ad7eecc413fec9eec1d94f9d8c1f Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 22 Feb 2021 16:30:07 +0200 Subject: gnu: ruby-omniauth-oauth2: Update to 1.7.1. * gnu/packages/ruby.scm (ruby-omniauth-oauth2): Update to 1.7.1. --- gnu/packages/ruby.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 6412bf92c1..fb0396dc52 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -2344,14 +2344,14 @@ authentication.") (define-public ruby-omniauth-oauth2 (package (name "ruby-omniauth-oauth2") - (version "1.6.0") + (version "1.7.1") (source (origin (method url-fetch) (uri (rubygems-uri "omniauth-oauth2" version)) (sha256 (base32 - "11mi36l9d97r77q99jnafdc1yaa0a9wahhpp7dj7ank8q52g7g79")))) + "10fr2b58sp7l6nfdvxpbi67374hkrvsf507cvda89jjs0jacy319")))) (build-system ruby-build-system) (arguments '(#:phases -- cgit v1.2.3 From ae17c6c31da82d98e429751642bcf7a7cca142f5 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 23 Feb 2021 15:05:37 +0200 Subject: gnu: Add ruby-mini-mime. * gnu/packages/ruby.scm (ruby-mini-mime): New variable. --- gnu/packages/ruby.scm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index fb0396dc52..d374e40b1c 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -8823,6 +8823,23 @@ definitions.") (home-page "https://github.com/mime-types/ruby-mime-types") (license license:expat))) +(define-public ruby-mini-mime + (package + (name "ruby-mini-mime") + (version "1.0.2") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "mini_mime" version)) + (sha256 + (base32 + "1axm0rxyx3ss93wbmfkm78a6x03l8y4qy60rhkkiq0aza0vwq3ha")))) + (build-system ruby-build-system) + (synopsis "Lightweight mime type lookup toy") + (description "This package provides a lightweight mime type lookup toy.") + (home-page "https://github.com/discourse/mini_mime") + (license license:expat))) + (define-public ruby-fivemat (package (name "ruby-fivemat") -- cgit v1.2.3 From ab4b6ae6afb69dd142641225626512691abd9c88 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 23 Feb 2021 15:06:55 +0200 Subject: gnu: ruby-mail: Update to 2.7.1. * gnu/packages/ruby.scm (ruby-mail): Update to 2.7.1. [propagated-inputs]: Remove ruby-mime-types, add ruby-mini-mime. [arguments]: Adjust comment about skipping tests. --- gnu/packages/ruby.scm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index d374e40b1c..9d394eef29 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -10077,21 +10077,19 @@ of the more insecure basic authentication scheme.") (define-public ruby-mail (package (name "ruby-mail") - (version "2.6.6") + (version "2.7.1") (source (origin (method url-fetch) (uri (rubygems-uri "mail" version)) (sha256 (base32 - "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9")))) + "00wwz6ys0502dpk8xprwcqfwyf3hmnx6lgxaiq6vj43mkx43sapc")))) (build-system ruby-build-system) (propagated-inputs - `(("ruby-mime-types" ,ruby-mime-types))) + `(("ruby-mini-mime" ,ruby-mini-mime))) (arguments - ;; Tests require extra gems not included in the Gemfile. - ;; XXX: Try enabling this for the next version with mini_mime. - `(#:tests? #f)) + '(#:tests? #f)) ; no rakefile (synopsis "Mail library for Ruby") (description "Mail is an internet library for Ruby that is designed to handle email -- cgit v1.2.3 From 8bb7ebc3d8c0b5a5980bf18421a2e981ca25fa27 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 23 Feb 2021 15:08:41 +0200 Subject: gnu: ruby-loofah: Update to 2.3.1. * gnu/packages/ruby.scm (ruby-loofah): Update to 2.3.1. [arguments]: Adjust custom 'remove-unnecessary-dependencies phase for upstream changes. --- gnu/packages/ruby.scm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 9d394eef29..df8d097444 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -6335,14 +6335,14 @@ you about the changes.") (define-public ruby-loofah (package (name "ruby-loofah") - (version "2.2.3") + (version "2.3.1") (source (origin (method url-fetch) (uri (rubygems-uri "loofah" version)) (sha256 (base32 - "1ccsid33xjajd0im2xv941aywi58z7ihwkvaf1w2bv89vn5bhsjg")))) + "0npqav026zd7r4qdidq9x5nxcp2dzg71bnp421xxx7sngbxf2xbd")))) (build-system ruby-build-system) (arguments '(#:phases @@ -6351,11 +6351,9 @@ you about the changes.") (lambda _ ;; concourse is a development tool which is unused, so remove it ;; so it's not required. - (substitute* "Gemfile" - ((".*\"concourse\".*") "\n")) (substitute* "Rakefile" - (("require 'concourse'") "") - (("Concourse\\.new.*") "\n")) + (("require \"concourse\"") "") + (("Concourse\\.new.*") "task :concourse do\n")) #t))))) (native-inputs `(("ruby-hoe" ,ruby-hoe) -- cgit v1.2.3 From 76e1093b2bbd4f8ad49ed100e5cafe3dc7eb1783 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 23 Feb 2021 15:13:08 +0200 Subject: gnu: ruby-tzinfo: Update to 2.0.4. * gnu/packages/ruby.scm (ruby-tzinfo): Update to 2.0.4. [source]: Download using git-fetch. [arguments]: Add custom 'pre-check, 'check phases. [propagated-inputs]: Remove ruby-thread-safe, add ruby-concurrent. [native-inputs]: Add ruby-simplecov. --- gnu/packages/ruby.scm | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index df8d097444..dc38171176 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -5770,14 +5770,18 @@ utilities for Ruby.") (define-public ruby-tzinfo (package (name "ruby-tzinfo") - (version "1.2.4") + (version "2.0.4") (source (origin - (method url-fetch) - (uri (rubygems-uri "tzinfo" version)) + (method git-fetch) + (uri (git-reference + ;; Pull from git because the gem has no tests. + (url "https://github.com/tzinfo/tzinfo") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 (base32 - "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp")))) + "0jaq1givdaz5jxz47xngyj3j315n872rk97mnpm5njwm48wy45yh")))) (build-system ruby-build-system) (arguments '(#:phases @@ -5788,9 +5792,22 @@ utilities for Ruby.") (("def safe_test\\(options = \\{\\}\\)") "def safe_test(options = {}) skip('The Guix build environment has an unsafe load path')")) + #t)) + (add-before 'check 'pre-check + (lambda _ + (setenv "HOME" (getcwd)) + (substitute* "Gemfile" + (("simplecov.*") "simplecov'\n")) + #t)) + (replace 'check + (lambda* (#:key tests? test-target #:allow-other-keys) + (when tests? + (invoke "bundler" "exec" "rake" test-target)) #t))))) (propagated-inputs - `(("ruby-thread-safe" ,ruby-thread-safe))) + `(("ruby-concurrent-ruby" ,ruby-concurrent))) + (native-inputs + `(("ruby-simplecov" ,ruby-simplecov))) (synopsis "Time zone library for Ruby") (description "TZInfo is a Ruby library that provides daylight savings aware transformations between times in different time zones.") -- cgit v1.2.3 From ebd8e447e99c4847bc5cdb5738ac5413a7278ba2 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 23 Feb 2021 15:15:02 +0200 Subject: gnu: ruby-tzinfo-data: Update to 1.2021.1. * gnu/packages/ruby.scm (ruby-tzinfo-data): Update to 1.2021.1. [source]: Remove patch. [arguments]: Add custom 'patch-source, 'pre-check phases. [native-inputs]: Add IANA timezone data files. * gnu/packages/patches/ruby-tzinfo-data-ignore-broken-test.patch: Remove file. * gnu/local.mk (dist_patch_DATA): Remove it. --- gnu/local.mk | 1 - .../ruby-tzinfo-data-ignore-broken-test.patch | 13 ----- gnu/packages/ruby.scm | 61 +++++++++++++++++++--- 3 files changed, 54 insertions(+), 21 deletions(-) delete mode 100644 gnu/packages/patches/ruby-tzinfo-data-ignore-broken-test.patch (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/local.mk b/gnu/local.mk index b8bccc1b7c..3591295f0c 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1598,7 +1598,6 @@ dist_patch_DATA = \ %D%/packages/patches/rnp-unbundle-googletest.patch \ %D%/packages/patches/ruby-rack-ignore-failing-test.patch \ %D%/packages/patches/ruby-sanitize-system-libxml.patch \ - %D%/packages/patches/ruby-tzinfo-data-ignore-broken-test.patch\ %D%/packages/patches/runc-CVE-2019-5736.patch \ %D%/packages/patches/rust-1.19-mrustc.patch \ %D%/packages/patches/rust-1.25-accept-more-detailed-gdb-lines.patch \ diff --git a/gnu/packages/patches/ruby-tzinfo-data-ignore-broken-test.patch b/gnu/packages/patches/ruby-tzinfo-data-ignore-broken-test.patch deleted file mode 100644 index 5d1f04b994..0000000000 --- a/gnu/packages/patches/ruby-tzinfo-data-ignore-broken-test.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/test/tc_definitions.rb b/test/tc_definitions.rb -index 7b20a3d..75b9798 100644 ---- a/test/tc_definitions.rb -+++ b/test/tc_definitions.rb -@@ -58,7 +58,7 @@ class TCDefinitions < Minitest::Test - identifier = $3.to_sym - is_dst = $4 == '1' - -- if utc && local -+ if utc && local && !line.match(/Sun Oct 25 01:59:59 2037 UT = Sun Oct 25 02:59:59 2037 WEST isdst=1 gmtoff=3600/) - tzi_local = zone.utc_to_local(utc) - tzi_period = zone.period_for_utc(utc) - tzi_identifier = tzi_period.zone_identifier diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index dc38171176..bd25bd5373 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -78,6 +78,7 @@ #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) + #:use-module (guix gexp) #:use-module (guix utils) #:use-module (guix build-system gnu) #:use-module (gnu packages xml) @@ -5817,7 +5818,7 @@ aware transformations between times in different time zones.") (define-public ruby-tzinfo-data (package (name "ruby-tzinfo-data") - (version "1.2017.3") + (version "1.2021.1") (source (origin (method git-fetch) @@ -5829,15 +5830,61 @@ aware transformations between times in different time zones.") (file-name (git-file-name name version)) (sha256 (base32 - "0v3phl5l3jrm6waxcszqmj2dkjhqawxfsxb6mss7vkp1hlckqcdp")) - ;; Remove the known test failure. - ;; https://github.com/tzinfo/tzinfo-data/issues/10 - ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128 - (patches (search-patches - "ruby-tzinfo-data-ignore-broken-test.patch")))) + "0yzyr3rf8qaw6kxfc0gwpxsb7gl3rhfpx9g1c2z15vapyminhi60")))) (build-system ruby-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-source + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "Rakefile" + (("https://data.iana.org/time-zones/releases") + (assoc-ref inputs "tzdata"))) + #t)) + (add-before 'check 'pre-check + (lambda _ + (setenv "HOME" (getcwd)) + (substitute* "Rakefile" + ;; Don't need gpg, and it may break after a time. + (("gpg ") "echo ") + ((" sh\\(\\\"make -C" text) + (string-append " sh(\"sed -i 's@/bin/sh@sh@' #{tzdb_combined_path}/Makefile \")\n" + " sh(\"sed -i 's@cc=@cc?=@' #{tzdb_combined_path}/Makefile \")\n" text))) + (setenv "cc" ,(cc-for-target)) + #t))))) (propagated-inputs `(("ruby-tzinfo" ,ruby-tzinfo))) + (native-inputs + `(("tzdata" + ,(file-union "tzdata-for-ruby-tzdata-info" + `(("tzdata2021a.tar.gz" + ,(origin + (method url-fetch) + (uri "https://data.iana.org/time-zones/releases/tzdata2021a.tar.gz") + (sha256 + (base32 + "022fn6gkmp7pamlgab04x0dm5hnyn2m2fcnyr3pvm36612xd5rrr")))) + ("tzdata2021a.tar.gz.asc" + ,(origin + (method url-fetch) + (uri "https://data.iana.org/time-zones/releases/tzdata2021a.tar.gz.asc") + (sha256 + (base32 + "0n7h2w8ji1lrxpk0d44wyfshlhr7c9jmwj6lqbxlyvqnfi3gbicx")))) + ("tzcode2021a.tar.gz" + ,(origin + (method url-fetch) + (uri "https://data.iana.org/time-zones/releases/tzcode2021a.tar.gz") + (sha256 + (base32 + "1l02b0jiwp3fl0xd6227i69d26rmx3yrnq0ssq9vvdmm4jhvyipb")))) + ("tzcode2021a.tar.gz.asc" + ,(origin + (method url-fetch) + (uri "https://data.iana.org/time-zones/releases/tzcode2021a.tar.gz.asc") + (sha256 + (base32 + "1qhlj4lr810s47s1lwcvv1sgvg2sflf98w4sbg1lc8wzv5qxxv7g"))))))))) (synopsis "Data from the IANA Time Zone database") (description "This library provides @code{TZInfo::Data}, which contains data from the -- cgit v1.2.3 From 8bad3c8ddf9f71000bd6339ac33d98d6f0e8f12c Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 23 Feb 2021 15:26:11 +0200 Subject: gnu: Add ruby-zeitwerk. * gnu/packages/ruby.scm (ruby-zeitwerk): New variable. --- gnu/packages/ruby.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index bd25bd5373..1a86862ebd 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -12112,6 +12112,35 @@ which snapshots to consider and what files to include.") "https://github.com/hartator/wayback-machine-downloader") (license license:expat))) +(define-public ruby-zeitwerk + (package + (name "ruby-zeitwerk") + (version "2.4.2") + (source + (origin + (method git-fetch) + (uri (git-reference + ;; No tests in the released gem. + (url "https://github.com/fxn/zeitwerk") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "119fgdyb57gmss2yvfwfr47wcy8nny38sai72446krpihyavpizw")))) + (build-system ruby-build-system) + (native-inputs + `(("ruby-minitest" ,ruby-minitest) + ("ruby-minitest-focus" ,ruby-minitest-focus) + ("ruby-minitest-reporters" ,ruby-minitest-reporters))) + (synopsis "Efficient and thread-safe code loader for Ruby") + (description + "Zeitwerk implements constant autoloading with Ruby semantics. Each gem +and application may have their own independent autoloader, with its own +configuration, inflector, and logger. Supports autoloading, reloading, and +eager loading.") + (home-page "https://github.com/fxn/zeitwerk") + (license license:expat))) + (define-public ruby-wwtd (package (name "ruby-wwtd") -- cgit v1.2.3 From c2fdc528dde477c74a59954b925b69c12a3f208c Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 23 Feb 2021 15:29:13 +0200 Subject: gnu: ruby-rack: Update to 2.2.3. * gnu/packages/ruby.scm (ruby-rack): Update to 2.2.3. [source]: Remove patch. Add snippet. [arguments]: Adjust custom 'fix-tests phase. Remove 'make-files-writable phase. [native-inputs]: Remove ruby-minitest-sprint, which. Add ruby-minitest-global-expectations. [propagated-inputs]: Remove ruby-concurrent. * gnu/packages/patches/ruby-rack-ignore-failing-test.patch: Remove file. * gnu/local.mk (dist_patch_DATA): Remove it. --- gnu/local.mk | 1 - .../patches/ruby-rack-ignore-failing-test.patch | 13 --------- gnu/packages/ruby.scm | 34 +++++++++------------- 3 files changed, 13 insertions(+), 35 deletions(-) delete mode 100644 gnu/packages/patches/ruby-rack-ignore-failing-test.patch (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/local.mk b/gnu/local.mk index 3591295f0c..a9294047eb 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -1596,7 +1596,6 @@ dist_patch_DATA = \ %D%/packages/patches/rnp-add-version.cmake.patch \ %D%/packages/patches/rnp-disable-ruby-rnp-tests.patch \ %D%/packages/patches/rnp-unbundle-googletest.patch \ - %D%/packages/patches/ruby-rack-ignore-failing-test.patch \ %D%/packages/patches/ruby-sanitize-system-libxml.patch \ %D%/packages/patches/runc-CVE-2019-5736.patch \ %D%/packages/patches/rust-1.19-mrustc.patch \ diff --git a/gnu/packages/patches/ruby-rack-ignore-failing-test.patch b/gnu/packages/patches/ruby-rack-ignore-failing-test.patch deleted file mode 100644 index f50d68c9c4..0000000000 --- a/gnu/packages/patches/ruby-rack-ignore-failing-test.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/test/spec_server.rb b/test/spec_server.rb -index a3690bc..16c9536 100644 ---- a/test/spec_server.rb -+++ b/test/spec_server.rb -@@ -161,7 +161,7 @@ describe Rack::Server do - it "check pid file presence and not owned process" do - pidfile = Tempfile.open('pidfile') { |f| f.write(1); break f }.path - server = Rack::Server.new(:pid => pidfile) -- server.send(:pidfile_process_status).must_equal :not_owned -+ #server.send(:pidfile_process_status).must_equal :not_owned - end - - it "not write pid file when it is created after check" do diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 1a86862ebd..8f3166ff31 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -45,7 +45,6 @@ (define-module (gnu packages ruby) #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu packages) - #:use-module (gnu packages base) #:use-module (gnu packages bison) #:use-module (gnu packages c) #:use-module (gnu packages check) @@ -6890,21 +6889,25 @@ generates Ruby program.") (define-public ruby-rack (package (name "ruby-rack") - (version "2.0.6") + (version "2.2.3") (source (origin (method git-fetch) - ;; Download from GitHub so that the patch can be applied. + ;; Download from GitHub so that the snippet can be applied and tests run. (uri (git-reference (url "https://github.com/rack/rack") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 - "1n7z4g1x6yxip096cdc04wq7yk7ywpinq28g2xjb46r4nlv5h0j6")) + "1qrm5z5v586738bnkr9188dvz0s25nryw6sgvx18jjlkizayw1g4")) ;; Ignore test which fails inside the build environment but works ;; outside. - (patches (search-patches "ruby-rack-ignore-failing-test.patch")))) + (modules '((guix build utils))) + (snippet + '(begin (substitute* "test/spec_files.rb" + (("res.body.must_equal expected_body") "")) + #t)))) (build-system ruby-build-system) (arguments '(#:phases @@ -6918,30 +6921,19 @@ generates Ruby program.") ;; "/gnu/store". (let ((size-diff (- (string-length (which "ruby")) (string-length "/usr/bin/env ruby")))) - (substitute* '("test/spec_file.rb") - (("193") - (number->string (+ 193 size-diff))) + (substitute* '("test/spec_files.rb") + (("208" bytes) + (number->string (+ (string->number bytes) size-diff))) (("bytes(.)22-33" all delimiter) (string-append "bytes" delimiter (number->string (+ 22 size-diff)) "-" (number->string (+ 33 size-diff)))))) - #t)) - (add-before 'reset-gzip-timestamps 'make-files-writable - (lambda* (#:key outputs #:allow-other-keys) - ;; Make sure .gz files are writable so that the - ;; 'reset-gzip-timestamps' phase can do its work. - (let ((out (assoc-ref outputs "out"))) - (for-each make-file-writable - (find-files out "\\.gz$")) - #t)))))) + #t))))) (native-inputs `(("ruby-minitest" ,ruby-minitest) - ("ruby-minitest-sprint" ,ruby-minitest-sprint) - ("which" ,which))) - (propagated-inputs - `(("ruby-concurrent" ,ruby-concurrent))) + ("ruby-minitest-global-expectations" ,ruby-minitest-global-expectations))) (synopsis "Unified web application interface for Ruby") (description "Rack provides a minimal, modular and adaptable interface for developing web applications in Ruby. By wrapping HTTP requests and responses, -- cgit v1.2.3 From 3c548c3e0eade12d3e86b1201dbd95863ca64ea7 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 23 Feb 2021 15:35:49 +0200 Subject: gnu: ruby-rails: Update to 6.1.3. * gnu/packages/rails.scm (ruby-activemodel, ruby-activerecord, ruby-actionview, ruby-actionpack, ruby-actioncable, ruby-activejob, ruby-activestorage, ruby-actionmailer, ruby-railties, ruby-rails): Update to 6.1.3. (ruby-actiontext, ruby-actionmailbox): New variables. (ruby-actioncable)[propagated-inputs]: Add ruby-activesupport. (ruby-activestorage)[propagated-inputs]: Add ruby-activejob, ruby-activesupport, ruby-mimemagic. (ruby-actionmailer)[propagated-inputs]: Add ruby-activesupport. (ruby-railties)[propagated-inputs]: Add ruby-rake. (ruby-rails)[propagated-inputs]: Add ruby-actionmailbox, ruby-actiontext. * gnu/packages/ruby.scm (ruby-activesupport): Update to 6.1.3. [propagated-inputs]: Add ruby-zeitwerk. [home-page]: Use https. --- gnu/packages/rails.scm | 117 +++++++++++++++++++++++++++++++++++++------------ gnu/packages/ruby.scm | 9 ++-- 2 files changed, 95 insertions(+), 31 deletions(-) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/rails.scm b/gnu/packages/rails.scm index 5a0f3f94b3..e9c390a1a0 100644 --- a/gnu/packages/rails.scm +++ b/gnu/packages/rails.scm @@ -180,14 +180,14 @@ Can I Use website.") (define-public ruby-activemodel (package (name "ruby-activemodel") - (version "5.2.2.1") + (version "6.1.3") (source (origin (method url-fetch) (uri (rubygems-uri "activemodel" version)) (sha256 (base32 - "1idmvqvpgri34k31s44pjb88rc3jad3yxra7fd1kpidpnv5f3v65")))) + "07m85r00cd1dzxg65zr9wjrdqppw51b5ka9c5mrz92vnw18kfb70")))) (build-system ruby-build-system) (arguments '(;; No included tests @@ -205,14 +205,14 @@ serialization, internationalization, and testing.") (define-public ruby-activerecord (package (name "ruby-activerecord") - (version "5.2.2.1") + (version "6.1.3") (source (origin (method url-fetch) (uri (rubygems-uri "activerecord" version)) (sha256 (base32 - "1c5cz9v7ggpqjxf0fqs1xhy1pb9m34cp31pxarhs9aqb71qjl98v")))) + "03kr6vslwd9iw89jidjpjlp7prr2rf7kpsfa4fz03g9by0kliivs")))) (build-system ruby-build-system) (arguments '(;; No included tests @@ -309,17 +309,44 @@ useful when writing tests.") (home-page "https://github.com/rails/rails-dom-testing") (license license:expat))) +(define-public ruby-actiontext + (package + (name "ruby-actiontext") + (version "6.1.3") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "actiontext" version)) + (sha256 + (base32 + "04k4z4xj40sbzbgx0x9m6i8k0nc22jb6dkrlslj16p2z2dfnwhqg")))) + (build-system ruby-build-system) + (arguments + '(;; No included tests + #:tests? #f)) + (propagated-inputs + `(("ruby-actionpack" ,ruby-actionpack) + ("ruby-activerecord" ,ruby-activerecord) + ("ruby-activestorage" ,ruby-activestorage) + ("ruby-activesupport" ,ruby-activesupport) + ("ruby-nokogiri" ,ruby-nokogiri))) + (synopsis "Edit and display rich text in Rails applications") + (description + "ActionText edits and displays rich text in Rails applications.") + (home-page "https://rubyonrails.org") + (license license:expat))) + (define-public ruby-actionview (package (name "ruby-actionview") - (version "5.2.2.1") + (version "6.1.3") (source (origin (method url-fetch) (uri (rubygems-uri "actionview" version)) (sha256 (base32 - "0832vlx37rly8ryfgi01b20mld8b3bv9cg62n5wax4zpzgn6jdxb")))) + "1s5kc1abi7id1g54lz1npgc42zl7pbz172wp8pi7j3s7qljafzw5")))) (build-system ruby-build-system) (arguments '(;; No included tests @@ -340,14 +367,14 @@ Ruby.") (define-public ruby-actionpack (package (name "ruby-actionpack") - (version "5.2.2.1") + (version "6.1.3") (source (origin (method url-fetch) (uri (rubygems-uri "actionpack" version)) (sha256 (base32 - "1lxqzxa728dqg42yw0q4hqkaawqagiw1k0392an2ghjfgb16pafx")))) + "030yyaskzlic5cp4d9zbwwr3rhf4k6hsls44a7ihsfd6r8mlivq5")))) (build-system ruby-build-system) (arguments '(;; No included tests @@ -369,20 +396,21 @@ applications. These work with any Rack-compatible server.") (define-public ruby-actioncable (package (name "ruby-actioncable") - (version "5.2.2.1") + (version "6.1.3") (source (origin (method url-fetch) (uri (rubygems-uri "actioncable" version)) (sha256 (base32 - "1x5fxhsr2mxq5r6258s48xsn7ld081d3qaavppvj7yp7w9vqn871")))) + "1cgb1l0gml1vklxka2djpi5q5b4bgzgm5pahzfjvvgm5vzvrvi9v")))) (build-system ruby-build-system) (arguments '(;; No included tests #:tests? #f)) (propagated-inputs `(("ruby-actionpack" ,ruby-actionpack) + ("ruby-activesupport" ,ruby-activesupport) ("ruby-nio4r" ,ruby-nio4r) ("ruby-websocket-driver" ,ruby-websocket-driver))) (synopsis "Integrate integrates WebSockets with Rails applications") @@ -395,14 +423,14 @@ WebSockets it allows for real-time features in web applications.") (define-public ruby-activejob (package (name "ruby-activejob") - (version "5.2.2.1") + (version "6.1.3") (source (origin (method url-fetch) (uri (rubygems-uri "activejob" version)) (sha256 (base32 - "1zma452lc3qp4a7r10zbdmsci0kv9a3gnk4da2apbdrc8fib5mr3")))) + "175d8q0achdlsxjsvq0w9znvfqfkgbj75kbmdrvg4fb277wwplmf")))) (build-system ruby-build-system) (arguments '(;; No included tests @@ -420,40 +448,71 @@ applications.") (define-public ruby-activestorage (package (name "ruby-activestorage") - (version "5.2.2.1") + (version "6.1.3") (source (origin (method url-fetch) (uri (rubygems-uri "activestorage" version)) (sha256 (base32 - "155xpbzrz0kr0argx0vsh5prvadd2h1g1m61kdiabvfy2iygc02n")))) + "0gkxvbi5w8zmdxpiyz3b10kzz8cxqqh9bj81sjl3fp8wa3v2ld4i")))) (build-system ruby-build-system) (arguments '(;; No included tests #:tests? #f)) (propagated-inputs `(("ruby-actionpack" ,ruby-actionpack) + ("ruby-activejob" ,ruby-activejob) ("ruby-activerecord" ,ruby-activerecord) - ("ruby-marcel" ,ruby-marcel))) + ("ruby-activesupport" ,ruby-activesupport) + ("ruby-marcel" ,ruby-marcel) + ("ruby-mimemagic" ,ruby-mimemagic))) (synopsis "Integrate file storage services in to Rails applications") (description "ActiveStorage integrates file storage services with Rails applications, -allowing files to be attached to ActiveRecord models..") +allowing files to be attached to ActiveRecord models.") (home-page "https://rubyonrails.org/") (license license:expat))) +(define-public ruby-actionmailbox + (package + (name "ruby-actionmailbox") + (version "6.1.3") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "actionmailbox" version)) + (sha256 + (base32 + "0wv2p24xn4f0kj8kiyagkn934hzrcp98vzjqxwd4r75qq0cijadp")))) + (build-system ruby-build-system) + (arguments + '(;; No included tests + #:tests? #f)) + (propagated-inputs + `(("ruby-actionpack" ,ruby-actionpack) + ("ruby-activejob" ,ruby-activejob) + ("ruby-activerecord" ,ruby-activerecord) + ("ruby-activestorage" ,ruby-activestorage) + ("ruby-activesupport" ,ruby-activesupport) + ("ruby-mail" ,ruby-mail))) + (synopsis "Receive and process incoming emails in Rails applications") + (description + "ActionMailbox receives and processes incoming emails in Rails applications.") + (home-page "https://rubyonrails.org") + (license license:expat))) + (define-public ruby-actionmailer (package (name "ruby-actionmailer") - (version "5.2.2.1") + (version "6.1.3") (source (origin (method url-fetch) (uri (rubygems-uri "actionmailer" version)) (sha256 (base32 - "10n2v2al68rsq5ghrdp7cpycsc1q0m19fcd8cd5i528n30nl23iw")))) + "0lic4mc6wqi3p9ipdqljl64vd9ndabm0k8hww0m07sfdhwsl5ba9")))) (build-system ruby-build-system) (arguments '(;; No included tests @@ -462,6 +521,7 @@ allowing files to be attached to ActiveRecord models..") `(("ruby-actionpack" ,ruby-actionpack) ("ruby-actionview" ,ruby-actionview) ("ruby-activejob" ,ruby-activejob) + ("ruby-activesupport" ,ruby-activesupport) ("ruby-mail" ,ruby-mail) ("ruby-rails-dom-testing" ,ruby-rails-dom-testing))) (synopsis "Work with emails using the controller/view pattern") @@ -474,14 +534,14 @@ pattern. Including support for multipart email and attachments.") (define-public ruby-railties (package (name "ruby-railties") - (version "5.2.2.1") + (version "6.1.3") (source (origin (method url-fetch) (uri (rubygems-uri "railties" version)) (sha256 (base32 - "0al6mvh2jvr3n7cxkx0yvhgiiarby6gxc93vl5xg1yxkvx27qzd6")))) + "1685y5dcfgcq0b38j13vrpkhiiblmrl64wa9w065669bkgmkw4ra")))) (build-system ruby-build-system) (arguments '(;; No included tests @@ -490,6 +550,7 @@ pattern. Including support for multipart email and attachments.") `(("ruby-actionpack" ,ruby-actionpack) ("ruby-activesupport" ,ruby-activesupport) ("ruby-method-source" ,ruby-method-source) + ("ruby-rake" ,ruby-rake) ("ruby-thor" ,ruby-thor))) (synopsis "Rails internals, including application bootup and generators") (description @@ -605,14 +666,14 @@ for locks.") (define-public ruby-rails (package (name "ruby-rails") - (version "5.2.2.1") + (version "6.1.3") (source (origin (method url-fetch) (uri (rubygems-uri "rails" version)) (sha256 (base32 - "1jxmwrykwgbn116hhmi7h75hcsdifhj89wk12m7ch2f3mn1lrmp9")))) + "0hdancysa617lzyy5gmrcmnpgyb1mz1lawy0l34ycz2wary7y2bz")))) (build-system ruby-build-system) (arguments '(#:phases @@ -635,17 +696,19 @@ for locks.") (invoke "ruby" "-e" "gem 'rails'")) #t))))) (propagated-inputs - `(("ruby-activesupport" ,ruby-activesupport) + `(("ruby-actioncable" ,ruby-actioncable) + ("ruby-actionmailbox" ,ruby-actionmailbox) + ("ruby-actionmailer" ,ruby-actionmailer) ("ruby-actionpack" ,ruby-actionpack) + ("ruby-actiontext" ,ruby-actiontext) ("ruby-actionview" ,ruby-actionview) + ("ruby-activejob" ,ruby-activejob) ("ruby-activemodel" ,ruby-activemodel) ("ruby-activerecord" ,ruby-activerecord) - ("ruby-actionmailer" ,ruby-actionmailer) - ("ruby-activejob" ,ruby-activejob) - ("ruby-actioncable" ,ruby-actioncable) ("ruby-activestorage" ,ruby-activestorage) - ("ruby-railties" ,ruby-railties) + ("ruby-activesupport" ,ruby-activesupport) ("bundler" ,bundler) + ("ruby-railties" ,ruby-railties) ("ruby-sprockets-rails" ,ruby-sprockets-rails))) (synopsis "Full-stack web framework optimized for programmer happiness") (description diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 8f3166ff31..4c9829612f 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -6434,14 +6434,14 @@ documents and fragments. It's built on top of Nokogiri and libxml2.") (define-public ruby-activesupport (package (name "ruby-activesupport") - (version "5.2.2.1") + (version "6.1.3") (source (origin (method url-fetch) (uri (rubygems-uri "activesupport" version)) (sha256 (base32 - "161bp4p01v1a1lvszrhd1a02zf9x1p1l1yhw79a3rix1kvzkkdqb")))) + "00a4db64g8w5yyk6hzak2nqrmdfvyh5zc9cvnm9gglwbi87ss28h")))) (build-system ruby-build-system) (arguments `(#:phases @@ -6455,12 +6455,13 @@ documents and fragments. It's built on top of Nokogiri and libxml2.") ("ruby-i18n" ,ruby-i18n) ("ruby-minitest" ,ruby-minitest) ("ruby-tzinfo" ,ruby-tzinfo) - ("ruby-tzinfo-data" ,ruby-tzinfo-data))) + ("ruby-tzinfo-data" ,ruby-tzinfo-data) + ("ruby-zeitwerk" ,ruby-zeitwerk))) (synopsis "Ruby on Rails utility library") (description "ActiveSupport is a toolkit of support libraries and Ruby core extensions extracted from the Rails framework. It includes support for multibyte strings, internationalization, time zones, and testing.") - (home-page "http://www.rubyonrails.org") + (home-page "https://www.rubyonrails.org") (license license:expat))) (define-public ruby-crass -- cgit v1.2.3 From 42daea6503281dd29e093ba1f7185e6ae9d9a1b0 Mon Sep 17 00:00:00 2001 From: Tomás Ortín Fernández Date: Mon, 28 Dec 2020 01:27:53 +0100 Subject: gnu: Add ruby-e2mmap. * gnu/packages/ruby.scm (ruby-e2mmap): New variable. --- gnu/packages/ruby.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 4c9829612f..c3a15abe4d 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -26,6 +26,7 @@ ;;; Copyright © 2020 Holgr Peters ;;; Copyright © 2020 Giacomo Leidi ;;; Copyright © 2021 EuAndreh +;;; Copyright © 2020 Tomás Ortín Fernández ;;; ;;; This file is part of GNU Guix. ;;; @@ -12239,3 +12240,25 @@ multiple adapters, various log level combinations and message formatting options.") (home-page "https://github.com/rudionrails/yell") (license license:expat))) + +(define-public ruby-e2mmap + (package + (name "ruby-e2mmap") + (version "0.1.0") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "e2mmap" version)) + (sha256 + (base32 + "0n8gxjb63dck3vrmsdcqqll7xs7f3wk78mw8w0gdk9wp5nx6pvj5")))) + (build-system ruby-build-system) + (arguments + `(#:tests? #f)) ;; There is a rakefile but no tests + (synopsis + "Module for defining custom exceptions with specific messages") + (description + "Exception2MessageMapper (e2mmap) is a helper module for easily defining +exceptions with predefined messages.") + (home-page "https://github.com/ruby/e2mmap") + (license license:bsd-2))) -- cgit v1.2.3 From 2e932dc352aa090120f70c54480d68ffa70ea784 Mon Sep 17 00:00:00 2001 From: Tomás Ortín Fernández Date: Mon, 28 Dec 2020 01:36:46 +0100 Subject: gnu: Add ruby-benchmark. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/ruby.scm (ruby-benchmark): New variable. Signed-off-by: Björn Höfling --- gnu/packages/ruby.scm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index c3a15abe4d..f2171c3c08 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -12262,3 +12262,21 @@ options.") exceptions with predefined messages.") (home-page "https://github.com/ruby/e2mmap") (license license:bsd-2))) + +(define-public ruby-benchmark + (package + (name "ruby-benchmark") + (version "0.1.1") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "benchmark" version)) + (sha256 + (base32 + "1jvrl7400fv7v2jjri1r7ilj3sri36hzipwwgpn5psib4c9c59c6")))) + (build-system ruby-build-system) + (synopsis "Performance benchmarking library") + (description "This package provides methods for benchmarking Ruby code, +giving detailed reports on the time taken for each task.") + (home-page "https://github.com/ruby/benchmark") + (license license:bsd-2))) -- cgit v1.2.3 From cc628f255248777225b4fe4e4a011f6bb503632b Mon Sep 17 00:00:00 2001 From: Tomás Ortín Fernández Date: Mon, 28 Dec 2020 01:54:52 +0100 Subject: gnu: ruby-solargraph: Update to 0.40.3. * gnu/packages/ruby.scm (ruby-solargraph): Update to 0.40.3. [propagated-inputs]: Add ruby-benchmark, ruby-e2emap, ruby-kramdown, ruby-kramdown-parser-gfm. Remove ruby-htmlentities. --- gnu/packages/ruby.scm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index f2171c3c08..cdb3502109 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -12029,20 +12029,23 @@ application.") (define-public ruby-solargraph (package (name "ruby-solargraph") - (version "0.36.0") + (version "0.40.3") (source (origin (method url-fetch) (uri (rubygems-uri "solargraph" version)) (sha256 (base32 - "0b93xzkgd1h06da9gdnwivj1mzbil8lc072y2838dy6i7bxgpy9i")))) + "1gf049rm0yvw4r8r5yyi890idbfg8qh0dikqx5prvkh11srl73bz")))) (build-system ruby-build-system) (propagated-inputs `(("ruby-backport" ,ruby-backport) ("bundler" ,bundler) - ("ruby-htmlentities" ,ruby-htmlentities) + ("ruby-benchmark" ,ruby-benchmark) + ("ruby-e2mmap" ,ruby-e2mmap) ("ruby-jaro-winkler" ,ruby-jaro-winkler) + ("ruby-kramdown" ,ruby-kramdown) + ("ruby-kramdown-parser-gfm" ,ruby-kramdown-parser-gfm) ("ruby-maruku" ,ruby-maruku) ("ruby-nokogiri" ,ruby-nokogiri) ("ruby-parser" ,ruby-parser) -- cgit v1.2.3 From 8b2ec036a476f6017d3555680d3d0de909aa2e9d Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 28 Feb 2021 11:51:16 +0100 Subject: gnu: ruby-haml: Use HTTPS home page URI. * gnu/packages/ruby.scm (ruby-haml)[home-page]: Use HTTPS URI. --- gnu/packages/ruby.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index cdb3502109..88b0028df6 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -21,7 +21,7 @@ ;;; Copyright © 2019 Diego N. Barbato ;;; Copyright © 2019 Brett Gilio ;;; Copyright © 2020 Maxim Cournoyer -;;; Copyright © 2020 Nicolas Goaziou +;;; Copyright © 2020, 2021 Nicolas Goaziou ;;; Copyright © 2020 Michael Rohleder ;;; Copyright © 2020 Holgr Peters ;;; Copyright © 2020 Giacomo Leidi @@ -3119,7 +3119,7 @@ HTML or XML that is designed to express the structure of documents using indentation rather than closing tags. It was originally envisioned as a plugin for Ruby on Rails, but it can function as a stand-alone templating engine.") - (home-page "http://haml.info/") + (home-page "https://haml.info/") (license license:expat))) (define-public ruby-hamster -- cgit v1.2.3 From 7e3fd007b78bdb651dd04021f95533e219f89625 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 28 Feb 2021 11:51:40 +0100 Subject: gnu: ruby-racc: Use HTTPS home page URI. * gnu/packages/ruby.scm (ruby-racc)[home-page]: Use HTTPS URI. --- gnu/packages/ruby.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 88b0028df6..f9202b7a77 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -6881,7 +6881,7 @@ differences (added or removed nodes) between two XML/HTML documents.") (description "Racc is a LALR(1) parser generator. It is written in Ruby itself, and generates Ruby program.") - (home-page "http://i.loveruby.net/en/projects/racc/") + (home-page "https://i.loveruby.net/en/projects/racc/") (license (list ;; Generally licensed under the LGPL2.1, and some files also ;; available under the same license as Ruby. -- cgit v1.2.3 From 3c3ce6768bb759b0c666af3c4c0e9dc63f1de194 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 28 Feb 2021 11:52:09 +0100 Subject: gnu: ruby-stackprof: Use HTTPS home page URI. * gnu/packages/ruby.scm (ruby-stackprof)[home-page]: Use HTTPS URI. --- gnu/packages/ruby.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index f9202b7a77..8d3646847a 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -7709,7 +7709,7 @@ navigation capabilities to @code{pry}, using @code{byebug}.") (description "@code{stackprof} is a fast sampling profiler for Ruby code, with cpu, wallclock and object allocation samplers.") - (home-page "http://github.com/tmm1/stackprof") + (home-page "https://github.com/tmm1/stackprof") (license license:expat))) (define-public ruby-binding-of-caller -- cgit v1.2.3 From d4baac70b85ec5f9690328c5e0b0adee84b6b420 Mon Sep 17 00:00:00 2001 From: Giacomo Leidi Date: Mon, 4 Jan 2021 02:00:12 +0100 Subject: gnu: Add ruby-jekyll-feed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/ruby.scm (ruby-jekyll-feed): New variable. Signed-off-by: Björn Höfling --- gnu/packages/ruby.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 8d3646847a..01f78fdb43 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -12283,3 +12283,28 @@ exceptions with predefined messages.") giving detailed reports on the time taken for each task.") (home-page "https://github.com/ruby/benchmark") (license license:bsd-2))) + +(define-public ruby-jekyll-feed + (package + (name "ruby-jekyll-feed") + (version "0.15.1") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "jekyll-feed" version)) + (sha256 + (base32 + "1zxqkrnix0xiw98531h5ga6h69jhzlx2jh9qhvcl67p8nq3sgza9")))) + (build-system ruby-build-system) + (arguments + `(#:tests? #false)) ;there are none + (propagated-inputs + `(("jekyll" ,jekyll))) + (synopsis + "Jekyll plugin to generate an Atom feed of your Jekyll posts") + (description + "This package provides a Jekyll plugin to generate an Atom feed +of your Jekyll posts.") + (home-page + "https://github.com/jekyll/jekyll-feed") + (license license:expat))) -- cgit v1.2.3 From f815e88ed0f1cc0c5dd391fbc450710008483b53 Mon Sep 17 00:00:00 2001 From: Giacomo Leidi Date: Mon, 4 Jan 2021 02:00:13 +0100 Subject: gnu: Add ruby-jekyll-sitemap. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/ruby.scm (ruby-jekyll-sitemap): New variable. Signed-off-by: Björn Höfling --- gnu/packages/ruby.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 01f78fdb43..fc946a705e 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -12308,3 +12308,28 @@ of your Jekyll posts.") (home-page "https://github.com/jekyll/jekyll-feed") (license license:expat))) + +(define-public ruby-jekyll-sitemap + (package + (name "ruby-jekyll-sitemap") + (version "1.4.0") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "jekyll-sitemap" version)) + (sha256 + (base32 + "0622rwsn5i0m5xcyzdn86l68wgydqwji03lqixdfm1f1xdfqrq0d")))) + (build-system ruby-build-system) + (arguments + `(#:tests? #false)) ;there are none + (propagated-inputs + `(("jekyll" ,jekyll))) + (synopsis + "Automatically generate a sitemap.xml for your Jekyll site") + (description + "This package provides a Jekyll plugin to silently generate +a sitemaps.org compliant sitemap for your Jekyll site.") + (home-page + "https://github.com/jekyll/jekyll-sitemap") + (license license:expat))) -- cgit v1.2.3 From 3d5c5cf611cc09c03e9d641094d86e3afc96d6c6 Mon Sep 17 00:00:00 2001 From: Giacomo Leidi Date: Mon, 4 Jan 2021 02:00:14 +0100 Subject: gnu: Add ruby-jekyll-seo-tag. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/ruby.scm (ruby-jekyll-seo-tag): New variable. Signed-off-by: Björn Höfling --- gnu/packages/ruby.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index fc946a705e..231402d9f5 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -12333,3 +12333,28 @@ a sitemaps.org compliant sitemap for your Jekyll site.") (home-page "https://github.com/jekyll/jekyll-sitemap") (license license:expat))) + +(define-public ruby-jekyll-seo-tag + (package + (name "ruby-jekyll-seo-tag") + (version "2.7.1") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "jekyll-seo-tag" version)) + (sha256 + (base32 + "0fsi75hymk2wswy216fs224p5ycrzjw1kshw1bsl5czhv42wr2w3")))) + (build-system ruby-build-system) + (arguments + `(#:tests? #false)) + (propagated-inputs + `(("jekyll" ,jekyll))) + (synopsis + "Jekyll plugin to add metadata tags for search engines and social networks") + (description + "This package provides a Jekyll plugin to add metadata tags for search engines +and social networks to better index and display your site's content.") + (home-page + "https://github.com/jekyll/jekyll-seo-tag") + (license license:expat))) -- cgit v1.2.3 From e8fe0304bc62008c75f635157e6fdf0a5df9b3cc Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 4 Mar 2021 17:28:44 +0200 Subject: gnu: ruby-builder: Update to 3.2.4. * gnu/packages/ruby.scm (ruby-builder): Update to 3.2.4. --- gnu/packages/ruby.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 231402d9f5..94ca522da3 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -958,13 +958,13 @@ specified in a \"Gemfile\", as well as their dependencies.") (define-public ruby-builder (package (name "ruby-builder") - (version "3.2.3") + (version "3.2.4") (source (origin (method url-fetch) (uri (rubygems-uri "builder" version)) (sha256 (base32 - "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1")))) + "045wzckxpwcqzrjr353cxnyaxgf0qg22jh00dcx7z38cys5g1jlr")))) (build-system ruby-build-system) (arguments `(#:phases -- cgit v1.2.3 From bc10203475ede3f88416a7614b7e9343fca8de75 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 4 Mar 2021 18:06:55 +0200 Subject: gnu: ruby-minitest: Update to 5.12.2. * gnu/packages/ruby.scm (ruby-minitest): Update to 5.12.2. --- gnu/packages/ruby.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/ruby.scm') diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 94ca522da3..39e1792471 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -4418,13 +4418,13 @@ client protocol.") (define-public ruby-minitest (package (name "ruby-minitest") - (version "5.11.3") + (version "5.12.2") (source (origin (method url-fetch) (uri (rubygems-uri "minitest" version)) (sha256 (base32 - "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq")))) + "0zjm24aiz42i9n37mcw8lydd7n0y7wfk27by06jx77ypcld3qvkw")))) (build-system ruby-build-system) (native-inputs `(("ruby-hoe" ,ruby-hoe))) -- cgit v1.2.3