diff options
Diffstat (limited to 'dev-ruby/safe_yaml')
-rw-r--r-- | dev-ruby/safe_yaml/Manifest | 5 | ||||
-rw-r--r-- | dev-ruby/safe_yaml/files/safe_yaml-1.0.4-datetime.patch | 19 | ||||
-rw-r--r-- | dev-ruby/safe_yaml/metadata.xml | 8 | ||||
-rw-r--r-- | dev-ruby/safe_yaml/safe_yaml-1.0.4-r3.ebuild | 32 | ||||
-rw-r--r-- | dev-ruby/safe_yaml/safe_yaml-1.0.4-r4.ebuild | 38 |
5 files changed, 102 insertions, 0 deletions
diff --git a/dev-ruby/safe_yaml/Manifest b/dev-ruby/safe_yaml/Manifest new file mode 100644 index 000000000000..1f381ad52dd0 --- /dev/null +++ b/dev-ruby/safe_yaml/Manifest @@ -0,0 +1,5 @@ +AUX safe_yaml-1.0.4-datetime.patch 537 BLAKE2B 0d66465613a1ddc61d0c27ccf287c496e387c55e7d979ac7f2d9c59e1039030e72005792e444bee403ed7f8c7b20c42d0a393fbb044572ecada63ed7762753ec SHA512 4cb1c2b9cefc8fe2940cad36f090bb8345d31d129e3cc548553c6548ebab00d4795e635ed930bd1625411046123e3ce5475f824c7f2a014ffe9c4e70bd36ec71 +DIST safe_yaml-1.0.4.gem 30208 BLAKE2B f77318c098dc6f6202c3818c2095e6e412c988d227be3a962210947bc4ac29c733b4433c7ba050f26dbb115675bbd9564e020be915aed0c5749b5c09cafd4d09 SHA512 ecc944a6e5f0862acf1413d7ab38bd35b56405893bb8064be2b8a056f0164d3710afaa2f6ef65868770e855ecf54a87bf9ddae2241c3c2957ca001ca04b04c5a +EBUILD safe_yaml-1.0.4-r3.ebuild 844 BLAKE2B e19c40fb6adaa775a40c31d5770b70b141ba7f8a9ed3d7ecb78c7f9bc2f49e741f9ef9df8d0eb25b4f9df262b33599582867e112282f03b8cdd1b491327b543e SHA512 12e96740dbb67443236ed3b33cb26f5a2c93085c927c2f4f3213dedfa1dcb1696edfa8a840394931de418084351aeba091e5404a86c4059101d02f18da27a5c3 +EBUILD safe_yaml-1.0.4-r4.ebuild 1011 BLAKE2B 624eb6e02721bcca98ca7583d3ffa7da63cc686a26fd67c7b01a98c4016fc76764deb547e4f7599ec84b6ae7c81df10b7517e3d23680cea9ff76e7c88d135184 SHA512 054678854f84e7519d6947f81d494dcc83372646524be72eaad93fc1c701f8460dd75454644008361cff0b56c0a43106809e0bd23f429652d0910ef824500711 +MISC metadata.xml 247 BLAKE2B 7717702c51c35b2a20983332abc6218047b2b5036e6b4c09d3d58b4339e8f9e776879cd116cfda60d3bcf4188859993fb9f3f779aaf595f155d53e85288f3dcc SHA512 ea4c044637b751a2c28c6ac226121e74ef18196af4b594e60413fec907bbab29c6b0c7735c3f503485df16dcfb36ddb86038394d92e2cd18c8f04626628e9f09 diff --git a/dev-ruby/safe_yaml/files/safe_yaml-1.0.4-datetime.patch b/dev-ruby/safe_yaml/files/safe_yaml-1.0.4-datetime.patch new file mode 100644 index 000000000000..92e5505985cb --- /dev/null +++ b/dev-ruby/safe_yaml/files/safe_yaml-1.0.4-datetime.patch @@ -0,0 +1,19 @@ +From 9dd1e8d9ad0396a8c9092c2e9f17d498c58e0208 Mon Sep 17 00:00:00 2001 +From: elifoster <elifosterwy@gmail.com> +Date: Tue, 5 Dec 2017 14:30:13 -0800 +Subject: [PATCH] Fix uninitialized constant DateTime Close #80 + +--- + lib/safe_yaml/parse/date.rb | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/lib/safe_yaml/parse/date.rb b/lib/safe_yaml/parse/date.rb +index cd3c62a..3a30a8b 100644 +--- a/lib/safe_yaml/parse/date.rb ++++ b/lib/safe_yaml/parse/date.rb +@@ -1,3 +1,5 @@ ++require 'time' ++ + module SafeYAML + class Parse + class Date diff --git a/dev-ruby/safe_yaml/metadata.xml b/dev-ruby/safe_yaml/metadata.xml new file mode 100644 index 000000000000..28ab0c15f206 --- /dev/null +++ b/dev-ruby/safe_yaml/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>ruby@gentoo.org</email> + <name>Gentoo Ruby Project</name> +</maintainer> +</pkgmetadata> diff --git a/dev-ruby/safe_yaml/safe_yaml-1.0.4-r3.ebuild b/dev-ruby/safe_yaml/safe_yaml-1.0.4-r3.ebuild new file mode 100644 index 000000000000..7885db44db5d --- /dev/null +++ b/dev-ruby/safe_yaml/safe_yaml-1.0.4-r3.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +USE_RUBY="ruby23 ruby24 ruby25" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="README.md" +RUBY_FAKEGEM_RECIPE_TEST="none" + +inherit ruby-fakegem + +DESCRIPTION="Parse YAML safely, alternative implementation of YAML.load" +HOMEPAGE="https://dtao.github.com/safe_yaml" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 x86 ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="test" + +ruby_add_bdepend "test? ( dev-ruby/hashie + dev-ruby/heredoc_unindent + dev-ruby/rspec:3 )" + +each_ruby_test() { + # Run specs with monkeypatch + ${RUBY} -S rspec-3 --tag ~libraries || die + + # Running specs without monkeypatch + ${RUBY} -S rspec-3 --tag libraries || die +} diff --git a/dev-ruby/safe_yaml/safe_yaml-1.0.4-r4.ebuild b/dev-ruby/safe_yaml/safe_yaml-1.0.4-r4.ebuild new file mode 100644 index 000000000000..5fe2d736f5eb --- /dev/null +++ b/dev-ruby/safe_yaml/safe_yaml-1.0.4-r4.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby23 ruby24 ruby25" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="README.md" +RUBY_FAKEGEM_RECIPE_TEST="none" + +inherit ruby-fakegem + +DESCRIPTION="Parse YAML safely, alternative implementation of YAML.load" +HOMEPAGE="https://dtao.github.com/safe_yaml" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="test" + +PATCHES=( "${FILESDIR}/${P}-datetime.patch" ) + +ruby_add_bdepend "test? ( dev-ruby/hashie + dev-ruby/heredoc_unindent + dev-ruby/rspec:3 )" + +all_ruby_prepare() { + sed -i -e '/local timezone/askip "timezone"' spec/transform/to_date_spec.rb || die +} + +each_ruby_test() { + # Run specs with monkeypatch + ${RUBY} -S rspec-3 spec --tag ~libraries || die + + # Running specs without monkeypatch + ${RUBY} -S rspec-3 spec --tag libraries || die +} |