summaryrefslogtreecommitdiff
path: root/gnu/packages/ruby.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2021-09-12 12:57:26 +0300
committerEfraim Flashner <efraim@flashner.co.il>2021-09-12 14:04:56 +0300
commitfb204d0a217cc6eb35e236c932fff1f5724095df (patch)
treed7410a4a8c887746e871faf97f0a76dc52424c26 /gnu/packages/ruby.scm
parentdf10452b2f6b3cb171d7b06e53d0b54a81b7dffa (diff)
gnu: ruby-json-pure: Update to 2.3.1.
* gnu/packages/ruby.scm (ruby-json-pure): Update to 2.3.1. [arguments]: Remove custom 'regenerate-gemspec, 'fix-json-java.gemspec phases. Remove part of custom 'fix-rakefile phase. [native-inputs]: Add which.
Diffstat (limited to 'gnu/packages/ruby.scm')
-rw-r--r--gnu/packages/ruby.scm25
1 files changed, 5 insertions, 20 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 179cfdd7424..264e67fe4db 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -6225,13 +6225,13 @@ a native C extension.")
6225(define-public ruby-json-pure 6225(define-public ruby-json-pure
6226 (package 6226 (package
6227 (name "ruby-json-pure") 6227 (name "ruby-json-pure")
6228 (version "2.2.0") 6228 (version "2.3.1")
6229 (source (origin 6229 (source (origin
6230 (method url-fetch) 6230 (method url-fetch)
6231 (uri (rubygems-uri "json_pure" version)) 6231 (uri (rubygems-uri "json_pure" version))
6232 (sha256 6232 (sha256
6233 (base32 6233 (base32
6234 "0m0j1mfwv0mvw72kzqisb26xjl236ivqypw1741dkis7s63b8439")))) 6234 "00pziwkfqwk8vj19s65sdki31q1wvmf5v9b3sfglxm94qfvas1lx"))))
6235 (build-system ruby-build-system) 6235 (build-system ruby-build-system)
6236 (arguments 6236 (arguments
6237 `(#:phases 6237 `(#:phases
@@ -6240,28 +6240,13 @@ a native C extension.")
6240 (lambda _ 6240 (lambda _
6241 (substitute* "Rakefile" 6241 (substitute* "Rakefile"
6242 ;; Since this is not a git repository, do not call 'git'. 6242 ;; Since this is not a git repository, do not call 'git'.
6243 (("`git ls-files`") "`find . -type f |sort`") 6243 (("`git ls-files`") "`find . -type f |sort`")))))))
6244 ;; Loosen dependency constraint.
6245 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
6246 #t))
6247 (add-after 'replace-git-ls-files 'regenerate-gemspec
6248 (lambda _
6249 ;; Regenerate gemspec so loosened dependency constraints are
6250 ;; propagated.
6251 (invoke "rake" "gemspec")))
6252 (add-after 'regenerate-gemspec 'fix-json-java.gemspec
6253 (lambda _
6254 ;; This gemspec doesn't look to be generated by the above
6255 ;; command, so patch it separately.
6256 (substitute* "json-java.gemspec"
6257 (("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]")
6258 "%q<test-unit>.freeze, [\">= 2.0\"]"))
6259 #t)))))
6260 (native-inputs 6244 (native-inputs
6261 `(("bundler" ,bundler) 6245 `(("bundler" ,bundler)
6262 ("ragel" ,ragel) 6246 ("ragel" ,ragel)
6263 ("ruby-simplecov" ,ruby-simplecov) 6247 ("ruby-simplecov" ,ruby-simplecov)
6264 ("ruby-test-unit" ,ruby-test-unit))) 6248 ("ruby-test-unit" ,ruby-test-unit)
6249 ("which" ,which)))
6265 (synopsis "JSON implementation in pure Ruby") 6250 (synopsis "JSON implementation in pure Ruby")
6266 (description 6251 (description
6267 "This package provides a JSON implementation written in pure Ruby.") 6252 "This package provides a JSON implementation written in pure Ruby.")