From 2bb2edcc01bc990c8deff36d51e936c131982ea3 Mon Sep 17 00:00:00 2001 From: Bodertz Date: Sat, 20 Sep 2025 18:23:36 +0200 Subject: [PATCH] gnu: Add ruby-neatjson --- gnu/packages/ruby-xyz.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/ruby-xyz.scm b/gnu/packages/ruby-xyz.scm index 95a3f65958f..6e9bd60374c 100644 --- a/gnu/packages/ruby-xyz.scm +++ b/gnu/packages/ruby-xyz.scm @@ -3185,6 +3185,36 @@ take some source key material and generate suitable cryptographic keys from it." (home-page "https://github.com/jtdowney/hkdf") (license license:expat))) +(define-public ruby-neatjson + (package + (name "ruby-neatjson") + (version "0.10.5") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "neatjson" version)) + (sha256 + (base32 "0wm1lq8yl6rzysh3wg6fa55w5534k6ppiz0qb7jyvdy582mk5i0s")))) + (build-system ruby-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (if tests? + (invoke "ruby" "test/test_neatjson.rb") + (format #t "test suite not run~%"))))))) + (synopsis + "Generate JSON strings from Ruby objects with flexible formatting options") + (description + "Pretty-print JSON with more formatting options than the built-in + @code{JSON.pretty_generate}, such as keeping arrays and objects on a single + line when possible, aligning or sorting object keys, customizing numeric + representation, and more.") + (home-page "https://github.com/Phrogz/NeatJSON") + (license license:expat))) + (define-public ruby-nenv (package (name "ruby-nenv")