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/protected_attributes/
Date: Sat, 06 May 2017 04:06:05
Message-Id: 1494043511.ca7b5a4f1aee901aa27e19d6588630885d87f7b2.graaff@gentoo
1 commit: ca7b5a4f1aee901aa27e19d6588630885d87f7b2
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 6 04:05:11 2017 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sat May 6 04:05:11 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca7b5a4f
7
8 dev-ruby/protected_attributes: add 1.1.4
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.1
11
12 dev-ruby/protected_attributes/Manifest | 1 +
13 .../protected_attributes-1.1.4.ebuild | 39 ++++++++++++++++++++++
14 2 files changed, 40 insertions(+)
15
16 diff --git a/dev-ruby/protected_attributes/Manifest b/dev-ruby/protected_attributes/Manifest
17 index 8bdd4c80afe..86b2d64d018 100644
18 --- a/dev-ruby/protected_attributes/Manifest
19 +++ b/dev-ruby/protected_attributes/Manifest
20 @@ -1 +1,2 @@
21 DIST protected_attributes-1.1.3.tar.gz 23148 SHA256 0dba89d47e96762b6e2c9cedc1d96a06a16bb307136e23cfc89830602bc97a4b SHA512 e20acd5c392eedc62af18745518249273351104dd0a05e33e459d2ac36706a7c6fdc151d4043370a4527d3e8e96417b26bad2e0f3b21cef3a512bd169d635d45 WHIRLPOOL 311cd7fd9634794d72fae25a903767cbf3894ea07814e8654739e30b3354a49cbe1417dd89462f94f7ed290e7d182132f57aa21106a1e9282be55f5c72508164
22 +DIST protected_attributes-1.1.4.tar.gz 23562 SHA256 6858cd3b18ec2d893539ff78fe542fec600b2f6c7848316bde10992ca7850d40 SHA512 02c55825ec21dde386e31b25e71df4ac48c2356bad303a82cc33703b930c5f8e36b57193761dba59dff3868d39a3b5458fb2a2c49809019e72ed4b4f4313bed3 WHIRLPOOL a96e8268c4b22f4205a054d61e91334bee873c67cb6835418f6f4e0b6acb404e43126d892e833decb63d571073c557d475f976855e069a944bd2a9d2b2207a20
23
24 diff --git a/dev-ruby/protected_attributes/protected_attributes-1.1.4.ebuild b/dev-ruby/protected_attributes/protected_attributes-1.1.4.ebuild
25 new file mode 100644
26 index 00000000000..99231a4a360
27 --- /dev/null
28 +++ b/dev-ruby/protected_attributes/protected_attributes-1.1.4.ebuild
29 @@ -0,0 +1,39 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +USE_RUBY="ruby21 ruby22 ruby23"
35 +
36 +RUBY_FAKEGEM_TASK_TEST="test"
37 +
38 +RUBY_FAKEGEM_TASK_DOC=""
39 +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
40 +
41 +inherit ruby-fakegem
42 +
43 +DESCRIPTION="Protect attributes from mass-assignment in ActiveRecord models"
44 +HOMEPAGE="https://github.com/rails/protected_attributes"
45 +SRC_URI="https://github.com/rails/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
46 +SLOT="1"
47 +
48 +LICENSE="MIT"
49 +
50 +KEYWORDS="~amd64 ~x86"
51 +IUSE="test"
52 +
53 +ruby_add_rdepend "
54 + =dev-ruby/activemodel-4*:* >=dev-ruby/activemodel-4.0.1:*
55 +"
56 +
57 +ruby_add_bdepend "test? (
58 + dev-ruby/bundler
59 + =dev-ruby/actionpack-4*
60 + =dev-ruby/activerecord-4*
61 + =dev-ruby/rails-4*
62 + dev-ruby/mocha
63 + dev-ruby/sqlite3
64 +)"
65 +
66 +all_ruby_prepare() {
67 + sed -i -e '/github/ s:^:#:' Gemfile || die
68 +}