Gentoo Archives: gentoo-commits

From: "Hans de Graaff (graaff)" <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/activerecord: activerecord-4.2.0.ebuild ChangeLog
Date: Thu, 01 Jan 2015 10:21:36
Message-Id: 20150101102133.5E5FCEA16@oystercatcher.gentoo.org
1 graaff 15/01/01 10:21:33
2
3 Modified: ChangeLog
4 Added: activerecord-4.2.0.ebuild
5 Log:
6 Version bump for Rails 4.2. Dropped keywords tracked in bug 534186.
7
8 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
9
10 Revision Changes Path
11 1.285 dev-ruby/activerecord/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/activerecord/ChangeLog?rev=1.285&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/activerecord/ChangeLog?rev=1.285&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/activerecord/ChangeLog?r1=1.284&r2=1.285
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/activerecord/ChangeLog,v
20 retrieving revision 1.284
21 retrieving revision 1.285
22 diff -u -r1.284 -r1.285
23 --- ChangeLog 20 Dec 2014 07:29:49 -0000 1.284
24 +++ ChangeLog 1 Jan 2015 10:21:33 -0000 1.285
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-ruby/activerecord
27 -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/activerecord/ChangeLog,v 1.284 2014/12/20 07:29:49 graaff Exp $
29 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/activerecord/ChangeLog,v 1.285 2015/01/01 10:21:33 graaff Exp $
31 +
32 +*activerecord-4.2.0 (01 Jan 2015)
33 +
34 + 01 Jan 2015; Hans de Graaff <graaff@g.o> +activerecord-4.2.0.ebuild:
35 + Version bump for Rails 4.2. Dropped keywords tracked in bug 534186.
36
37 20 Dec 2014; Hans de Graaff <graaff@g.o> -activerecord-3.2.20.ebuild,
38 -activerecord-4.0.11.ebuild, -activerecord-4.1.7.ebuild:
39
40
41
42 1.1 dev-ruby/activerecord/activerecord-4.2.0.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/activerecord/activerecord-4.2.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/activerecord/activerecord-4.2.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: activerecord-4.2.0.ebuild
48 ===================================================================
49 # Copyright 1999-2015 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/activerecord/activerecord-4.2.0.ebuild,v 1.1 2015/01/01 10:21:33 graaff Exp $
52
53 EAPI=5
54 USE_RUBY="ruby19 ruby20 ruby21"
55
56 # this is not null so that the dependencies will actually be filled
57 RUBY_FAKEGEM_TASK_TEST="test"
58
59 RUBY_FAKEGEM_TASK_DOC=""
60 RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
61
62 RUBY_FAKEGEM_GEMSPEC="activerecord.gemspec"
63
64 inherit ruby-fakegem versionator
65
66 DESCRIPTION="Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM"
67 HOMEPAGE="https://github.com/rails/rails/"
68 SRC_URI="http://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
69
70 LICENSE="MIT"
71 SLOT="$(get_version_component_range 1-2)"
72 KEYWORDS="~amd64"
73 IUSE="mysql postgres sqlite3"
74
75 RUBY_S="rails-${PV}/${PN}"
76
77 ruby_add_rdepend "~dev-ruby/activesupport-${PV}
78 ~dev-ruby/activemodel-${PV}
79 >=dev-ruby/arel-6.0:6.0
80 sqlite3? ( >=dev-ruby/sqlite3-1.3.6 )
81 mysql? ( >=dev-ruby/mysql2-0.3.13:0.3 )
82 postgres? ( >=dev-ruby/pg-0.15.0 )"
83
84 ruby_add_bdepend "
85 test? (
86 dev-ruby/bundler
87 ~dev-ruby/actionpack-${PV}
88 ~dev-ruby/actionmailer-${PV}
89 >=dev-ruby/sqlite3-1.3.5
90 dev-ruby/mocha:0.13
91 <dev-ruby/minitest-5.4:5
92 )"
93
94 all_ruby_prepare() {
95 # Remove items from the common Gemfile that we don't need for this
96 # test run. This also requires handling some gemspecs.
97 sed -i -e "/\(uglifier\|system_timer\|sdoc\|w3c_validators\|pg\|jquery-rails\|'mysql'\|journey\|ruby-prof\|stackprof\|benchmark-ips\|kindlerb\|turbolinks\|coffee-rails\|debugger\|redcarpet\|minitest\)/ s:^:#:" \
98 -e '/:job/,/end/ s:^:#:' ../Gemfile || die
99 sed -i -e '/rack-ssl/d' -e 's/~> 3.4/>= 3.4/' ../railties/railties.gemspec || die
100 sed -i -e '/mail/d' ../actionmailer/actionmailer.gemspec || die
101
102 sed -i -e '/bcrypt/ s/3.0.0/3.0/' ../Gemfile || die
103
104 # Add back json in the Gemfile because we dropped some dependencies
105 # earlier that implicitly required it.
106 sed -i -e '$agem "json"' ../Gemfile || die
107
108 # Avoid test depending on mysql adapter which we don't support for
109 # this Rails version to simplify our dependencies.
110 rm test/cases/connection_specification/resolver_test.rb || die
111
112 # Avoid single test using mysql dependencies.
113 rm test/cases/invalid_connection_test.rb || die
114 }
115
116 each_ruby_test() {
117 if use sqlite3; then
118 ${RUBY} -S rake test_sqlite3 || die "sqlite3 tests failed"
119 fi
120 }