Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/mongoid: mongoid-2.4.6.ebuild ChangeLog
Date: Thu, 08 Mar 2012 01:56:38
Message-Id: 20120308015625.995942004B@flycatcher.gentoo.org
1 flameeyes 12/03/08 01:56:25
2
3 Modified: ChangeLog
4 Added: mongoid-2.4.6.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.0_alpha90/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.8 dev-ruby/mongoid/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/mongoid/ChangeLog?rev=1.8&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/mongoid/ChangeLog?rev=1.8&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/mongoid/ChangeLog?r1=1.7&r2=1.8
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/mongoid/ChangeLog,v
20 retrieving revision 1.7
21 retrieving revision 1.8
22 diff -u -r1.7 -r1.8
23 --- ChangeLog 22 Feb 2012 23:56:43 -0000 1.7
24 +++ ChangeLog 8 Mar 2012 01:56:25 -0000 1.8
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-ruby/mongoid
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mongoid/ChangeLog,v 1.7 2012/02/22 23:56:43 flameeyes Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mongoid/ChangeLog,v 1.8 2012/03/08 01:56:25 flameeyes Exp $
30 +
31 +*mongoid-2.4.6 (08 Mar 2012)
32 +
33 + 08 Mar 2012; Diego E. Pettenò <flameeyes@g.o> +mongoid-2.4.6.ebuild:
34 + Version bump.
35
36 *mongoid-2.4.5 (22 Feb 2012)
37
38
39
40
41 1.1 dev-ruby/mongoid/mongoid-2.4.6.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/mongoid/mongoid-2.4.6.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/mongoid/mongoid-2.4.6.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mongoid-2.4.6.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/mongoid/mongoid-2.4.6.ebuild,v 1.1 2012/03/08 01:56:25 flameeyes Exp $
51
52 EAPI=4
53 USE_RUBY="ruby18"
54
55 #RUBY_FAKEGEM_TASK_DOC=""
56 # functional testing crashes Ruby from within Portage, but works
57 # outside of it, needs to be investigated thoroughly, but at least
58 # unit testing works.
59 RUBY_FAKEGEM_TASK_TEST="spec:unit spec:functional"
60
61 RUBY_FAKEGEM_EXTRADOC="README.md CHANGELOG.md"
62
63 RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
64
65 GITHUB_USER="${PN}"
66 GITHUB_PROJECT="${PN}"
67 RUBY_S="${GITHUB_USER}-${GITHUB_PROJECT}-*"
68
69 inherit ruby-fakegem
70
71 DESCRIPTION="ODM (Object Document Mapper) Framework for MongoDB"
72 HOMEPAGE="http://mongoid.org/"
73 SRC_URI="https://github.com/${GITHUB_USER}/${GITHUB_PROJECT}/tarball/v${PV} -> ${GITHUB_PROJECT}-${PV}.tar.gz"
74 LICENSE="MIT"
75
76 SLOT="0"
77 KEYWORDS="~amd64"
78 IUSE="test"
79
80 ruby_add_rdepend "
81 >=dev-ruby/activemodel-3.1
82 >=dev-ruby/mongo-1.6
83 >=dev-ruby/tzinfo-0.3.22
84 "
85
86 ruby_add_bdepend "
87 test? (
88 dev-ruby/ammeter
89 dev-ruby/mocha
90 dev-ruby/rdoc
91 dev-ruby/rspec
92 dev-util/watchr
93 )"
94
95 DEPEND+=" test? ( dev-db/mongodb )"
96
97 all_ruby_prepare() {
98 # remove references to bundler, as the gemfile does not add anything
99 # we need to care about.
100 sed -i -e '/[bB]undler/d' Rakefile || die
101 # remove the Gemfile as well or it'll try to load it during testing
102 rm Gemfile || die
103
104 #epatch "${FILESDIR}"/${PN}-2.4.5-gentoo.patch
105 }
106
107 each_ruby_test() {
108 mkdir "${T}/mongodb_$(basename $RUBY)"
109 mongod --port 27017 --dbpath "${T}/mongodb_$(basename $RUBY)" \
110 --noprealloc --noauth --nohttpinterface --nounixsocket --nojournal \
111 --bind_ip 127.255.255.254 &
112 mongod_pid=$!
113 failed=0
114
115 sleep 2
116
117 export MONGOID_SPEC_HOST="127.255.255.254"
118 export MONGOID_SPEC_PORT="27017"
119
120 ${RUBY} -S rake ${RUBY_FAKEGEM_TASK_TEST} || failed=1
121 kill "${mongod_pid}"
122
123 [[ "${failed}" == "1" ]] && die "tests failed"
124 }