Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/date_validator/
Date: Sun, 18 Jul 2021 09:17:58
Message-Id: 1626599871.2b679952ddcdaa6f6b8f68142e26c2b59d0b8bd5.graaff@gentoo
1 commit: 2b679952ddcdaa6f6b8f68142e26c2b59d0b8bd5
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 18 09:17:14 2021 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 18 09:17:51 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b679952
7
8 dev-ruby/date_validator: add 0.12.0
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.2
11 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
12
13 dev-ruby/date_validator/Manifest | 1 +
14 .../date_validator/date_validator-0.12.0.ebuild | 50 ++++++++++++++++++++++
15 2 files changed, 51 insertions(+)
16
17 diff --git a/dev-ruby/date_validator/Manifest b/dev-ruby/date_validator/Manifest
18 index da30ccf91b7..4259f905a6d 100644
19 --- a/dev-ruby/date_validator/Manifest
20 +++ b/dev-ruby/date_validator/Manifest
21 @@ -1,2 +1,3 @@
22 DIST date_validator-0.10.0.gem 12800 BLAKE2B 0cbb11e70cb72a1203c2ec33581d4ed48be346af6998faa89e4323c8c6bf70b5c979b55bc79630153a940697c89ce140eb511538cd55adb0f12566f2f1a317a9 SHA512 4348835898ebfe311a8ea456adc10f7bbfd1dc21daf2678e32b1615ba3eef3d36671f67f533109882f40516c836f23d7e0a4072c9ecaa55a1b0eade0b6aa75b7
23 DIST date_validator-0.11.0.gem 12800 BLAKE2B ce45caa57bd1e29900ed0732bdbfbf81c68836de71efbf099bdc595a9b586872175960af40129af6d793ed5ce49ba222a3ca7d0172ef764ee02c88f4eae04e9e SHA512 269f3e234c8157a667c81d725497eafd21621cd35811f35707590242a3dc78065bd6dbe7b772a38761fdb8c95ae40f99976919444dac061f7bd2150fc9178afa
24 +DIST date_validator-0.12.0.gem 12800 BLAKE2B 235434dbd7e4441698bc90e0dd37bf9e5b8f1f742424e8155876e677e5d7dbe7beb4edd2f7dda7dba2729a024dcda72ac816e4f6a7dd38fdfaa4ea79f21d078e SHA512 e7796375d6d6af2fc9ce6e7d6174d59bd35ddbac90c4e5b54b321e33ed25f3e816c58013fa61f2003724e87fc96495ce81c132d056c9c9331bd1a236eb7dec38
25
26 diff --git a/dev-ruby/date_validator/date_validator-0.12.0.ebuild b/dev-ruby/date_validator/date_validator-0.12.0.ebuild
27 new file mode 100644
28 index 00000000000..31f9e00f8e9
29 --- /dev/null
30 +++ b/dev-ruby/date_validator/date_validator-0.12.0.ebuild
31 @@ -0,0 +1,50 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +USE_RUBY="ruby26 ruby27"
37 +
38 +RUBY_FAKEGEM_TASK_TEST="test"
39 +
40 +RUBY_FAKEGEM_TASK_DOC="docs"
41 +RUBY_FAKEGEM_EXTRADOC="Readme.md"
42 +
43 +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
44 +
45 +# if ever needed
46 +#GITHUB_USER="codegram"
47 +#GITHUB_PROJECT="${PN}"
48 +#RUBY_S="${GITHUB_USER}-${GITHUB_PROJECT}-*"
49 +
50 +inherit ruby-fakegem
51 +
52 +DESCRIPTION="Simple, ORM agnostic, Ruby 1.9 compatible date validator for Rails"
53 +HOMEPAGE="https://github.com/codegram/date_validator"
54 +
55 +LICENSE="MIT"
56 +SLOT="3"
57 +KEYWORDS="~amd64"
58 +IUSE=""
59 +
60 +ruby_add_rdepend "
61 + >=dev-ruby/activemodel-3.0:*
62 + >=dev-ruby/activesupport-3.0:*
63 +"
64 +
65 +ruby_add_bdepend "
66 + test? (
67 + dev-ruby/minitest
68 + >=dev-ruby/tzinfo-0.3
69 + >=dev-ruby/activesupport-3.0
70 + )
71 + doc? ( dev-ruby/yard )"
72 +
73 +all_ruby_prepare() {
74 + sed -i \
75 + -e '/git ls-files/d' \
76 + ${RUBY_FAKEGEM_GEMSPEC} || die
77 + sed -i \
78 + -e '/[Bb]undler/s/^/#/' Rakefile || die
79 + # Fix tests
80 + sed -i -e "1irequire 'active_support'; require 'active_support/core_ext/time/zones'" test/test_helper.rb || die
81 +}