summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-08-11 12:44:10 +0200
committerHans de Graaff <graaff@gentoo.org>2023-08-11 21:14:10 +0200
commit8f4675066a349038c83cfc259afdc8da6c517652 (patch)
treec7da350eb4e3855186bdd8c7319431c2fdaeba2e /dev-ruby/json_schema
parentdev-ruby/activeldap: enable ruby32 (diff)
downloadgentoo-8f4675066a349038c83cfc259afdc8da6c517652.tar.gz
gentoo-8f4675066a349038c83cfc259afdc8da6c517652.tar.bz2
gentoo-8f4675066a349038c83cfc259afdc8da6c517652.zip
dev-ruby/json_schema: add 0.21.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/json_schema')
-rw-r--r--dev-ruby/json_schema/Manifest1
-rw-r--r--dev-ruby/json_schema/json_schema-0.21.0.ebuild32
2 files changed, 33 insertions, 0 deletions
diff --git a/dev-ruby/json_schema/Manifest b/dev-ruby/json_schema/Manifest
index bb37f45dfecb..6a15e1d81a1a 100644
--- a/dev-ruby/json_schema/Manifest
+++ b/dev-ruby/json_schema/Manifest
@@ -1 +1,2 @@
DIST json_schema-0.20.9.tar.gz 36498 BLAKE2B 5eb79271b3a1627e2759783b176917d09ae9c20f84723f526f48653c99f1ce52f6e377ac9835bafee64ce2899222edc19ccbdd186e1fa82f66ab40601975800c SHA512 7dd2d7394fb7300d34dcd3e8b5fd6ee29259a762065b99cb55012248ef385dd89460fc58bfa4ac4c3f6255f1546cf3ba363310420d89057c27d1be55ef50ae73
+DIST json_schema-0.21.0.tar.gz 36563 BLAKE2B a7c0eca9ef738cdd78e6549f7ad8ec41dbde9986f957688411d65a8198c19fa235ff08730370be2397fab7bc0032bef42824bdf276b14b78da54bfd62842266f SHA512 753bcd9715ad384676c9ebb7dcaff7cb63295dc58e31fe51064c6c11ff46fdd32a4c573d6bc4722ce1def290759f28a7706a75efbc1544a56e9585435084ad1d
diff --git a/dev-ruby/json_schema/json_schema-0.21.0.ebuild b/dev-ruby/json_schema/json_schema-0.21.0.ebuild
new file mode 100644
index 000000000000..5a7f5c83c528
--- /dev/null
+++ b/dev-ruby/json_schema/json_schema-0.21.0.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby30 ruby31 ruby32"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.md TODO.md"
+
+RUBY_FAKEGEM_EXTRAINSTALL="schemas"
+
+RUBY_FAKEGEM_GEMSPEC="json_schema.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A JSON Schema V4 and Hyperschema V4 parser and validator"
+HOMEPAGE="https://github.com/brandur/json_schema"
+SRC_URI="https://github.com/brandur/json_schema/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv"
+IUSE=""
+
+ruby_add_bdepend "test? ( dev-ruby/ecma-re-validator )"
+
+all_ruby_prepare() {
+ sed -i -e '/bundler/I s:^:#:' Rakefile || die
+ sed -i -e '/^if/,/^end/ s:^:#:' test/test_helper.rb || die
+
+ sed -e '/validates date format successfully/askip "should fail like test after it"' \
+ -i test/json_schema/validator_test.rb || die
+}