summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/mongoid/ChangeLog7
-rw-r--r--dev-ruby/mongoid/Manifest4
-rw-r--r--dev-ruby/mongoid/mongoid-2.4.7.ebuild77
3 files changed, 86 insertions, 2 deletions
diff --git a/dev-ruby/mongoid/ChangeLog b/dev-ruby/mongoid/ChangeLog
index 9bce017fe4bb..4085f6a23092 100644
--- a/dev-ruby/mongoid/ChangeLog
+++ b/dev-ruby/mongoid/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-ruby/mongoid
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mongoid/ChangeLog,v 1.8 2012/03/08 01:56:25 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mongoid/ChangeLog,v 1.9 2012/03/22 18:41:07 flameeyes Exp $
+
+*mongoid-2.4.7 (22 Mar 2012)
+
+ 22 Mar 2012; Diego E. Pettenò <flameeyes@gentoo.org> +mongoid-2.4.7.ebuild:
+ Version bump.
*mongoid-2.4.6 (08 Mar 2012)
diff --git a/dev-ruby/mongoid/Manifest b/dev-ruby/mongoid/Manifest
index e4ebd1855fe7..e68b75e94f9e 100644
--- a/dev-ruby/mongoid/Manifest
+++ b/dev-ruby/mongoid/Manifest
@@ -2,8 +2,10 @@ AUX mongoid-2.4.5-gentoo.patch 1203 RMD160 87999193a3316f1f1f6f8696163364fdf467e
DIST mongoid-2.4.4.tar.gz 355335 RMD160 79df645eba21a5da93609c2cd5c507557093ec46 SHA1 00d8dbe0df78571dde62af1fae935b6a98027dc0 SHA256 b4776e37b1550448203e1e70d676c991b1e6e5ec77ece2c6f578a31f2bee6939
DIST mongoid-2.4.5.tar.gz 356386 RMD160 cc4e78af1d11167ff70f6fde6f4ef75d90f377c8 SHA1 14f703d52ab2036161117e1daa02d7ecdff28789 SHA256 8faeaf0f2adc435f0b45fe9b0a2868f344a60e8543ec95fd6724eae96feead2b
DIST mongoid-2.4.6.tar.gz 357290 RMD160 0ea0ce89680f9c5205584f9fe22f1cc27de8ec81 SHA1 a7b2ff503155105e3a9ca69f771f71da022e61d0 SHA256 97fbda23da25fb6a708a579e34f580ab3b567169ad83ed126172501707f5cb30
+DIST mongoid-2.4.7.tar.gz 358447 RMD160 25416f9e31ef354b4830b247c707a08708ea351d SHA1 da8ff684368b19e706f731b46fafd2d9dd437799 SHA256 bffffea5af0f5641359828512a8bf8e05986dd891d3681d8c053716dbcbd7edc
EBUILD mongoid-2.4.4.ebuild 1900 RMD160 6461382fad51d05e99161044d1bcd73723679937 SHA1 3a28fa40261d06b4610e4074ab6f21d04f69e138 SHA256 430fc03ea709022ba540c33f88da08af266d43eb58ea252fda88e7554a578512
EBUILD mongoid-2.4.5.ebuild 1941 RMD160 9ed077f34eea10f5ee5752e1f1de1ed1433bbb29 SHA1 727cd9d2b7042993ea223360ba30dbee3bf34bff SHA256 90a185574113dd9d3459e829b8c01577d5d5087567909283b844e8fb10d60731
EBUILD mongoid-2.4.6.ebuild 1962 RMD160 0e59e129ce10a518f9a41cbf56981cf3a1c0051e SHA1 d9e77f6de2aaa296b3aba677957fa49b36ee0207 SHA256 992c64f539fa818aa87933465435ab3345890e2ec3975d259228ee8595c5cb32
-MISC ChangeLog 1560 RMD160 d44d99e0fbe2d722479868c1f36bae569ca1662a SHA1 19bb7b0ef983c8a51fc29e8ff33e1d382c0ef05f SHA256 612a6157875023750300c81d7e93cd60c8e99c058de0a12d5c5ae704b870a837
+EBUILD mongoid-2.4.7.ebuild 1962 RMD160 b64a28af81556c63d43307aa76dd7e5e749df10b SHA1 5135b008e4753e6d8db87b449224062d54b7e095 SHA256 14e77e997222b566fad14e0781cf1453d303ae2f534f72d9eb55b8346bf8191a
+MISC ChangeLog 1686 RMD160 4aaf8fee1f05a960e0f19dce0087af52fa93db6a SHA1 489ef4b2aa7ee5207b38364f68c5c81d5dd4600f SHA256 6305a9df07d125d719dc1f4315c0c8b482b2dd476a36a15d37d6c88bd1c1feb1
MISC metadata.xml 157 RMD160 5d9e2c7ecba96ffebd936d38acedf859cdea84e1 SHA1 8ce15dcc608eeb5616aeec610dc695cbe6f93e02 SHA256 11fba03a217e2d996f5cd8895493a5692ece8ddac2c1a2dfc71d0e830555121c
diff --git a/dev-ruby/mongoid/mongoid-2.4.7.ebuild b/dev-ruby/mongoid/mongoid-2.4.7.ebuild
new file mode 100644
index 000000000000..2a76269ee4cf
--- /dev/null
+++ b/dev-ruby/mongoid/mongoid-2.4.7.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mongoid/mongoid-2.4.7.ebuild,v 1.1 2012/03/22 18:41:07 flameeyes Exp $
+
+EAPI=4
+USE_RUBY="ruby18"
+
+#RUBY_FAKEGEM_TASK_DOC=""
+# functional testing crashes Ruby from within Portage, but works
+# outside of it, needs to be investigated thoroughly, but at least
+# unit testing works.
+RUBY_FAKEGEM_TASK_TEST="spec:unit spec:functional"
+
+RUBY_FAKEGEM_EXTRADOC="README.md CHANGELOG.md"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+GITHUB_USER="${PN}"
+GITHUB_PROJECT="${PN}"
+RUBY_S="${GITHUB_USER}-${GITHUB_PROJECT}-*"
+
+inherit ruby-fakegem
+
+DESCRIPTION="ODM (Object Document Mapper) Framework for MongoDB"
+HOMEPAGE="http://mongoid.org/"
+SRC_URI="https://github.com/${GITHUB_USER}/${GITHUB_PROJECT}/tarball/v${PV} -> ${GITHUB_PROJECT}-${PV}.tar.gz"
+LICENSE="MIT"
+
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+ruby_add_rdepend "
+ >=dev-ruby/activemodel-3.1
+ >=dev-ruby/mongo-1.6
+ >=dev-ruby/tzinfo-0.3.22
+"
+
+ruby_add_bdepend "
+ test? (
+ dev-ruby/ammeter
+ dev-ruby/mocha
+ dev-ruby/rdoc
+ dev-ruby/rspec
+ dev-util/watchr
+ )"
+
+DEPEND+=" test? ( dev-db/mongodb )"
+
+all_ruby_prepare() {
+ # remove references to bundler, as the gemfile does not add anything
+ # we need to care about.
+ sed -i -e '/[bB]undler/d' Rakefile || die
+ # remove the Gemfile as well or it'll try to load it during testing
+ rm Gemfile || die
+
+ #epatch "${FILESDIR}"/${PN}-2.4.5-gentoo.patch
+}
+
+each_ruby_test() {
+ mkdir "${T}/mongodb_$(basename $RUBY)"
+ mongod --port 27017 --dbpath "${T}/mongodb_$(basename $RUBY)" \
+ --noprealloc --noauth --nohttpinterface --nounixsocket --nojournal \
+ --bind_ip 127.255.255.254 &
+ mongod_pid=$!
+ failed=0
+
+ sleep 2
+
+ export MONGOID_SPEC_HOST="127.255.255.254"
+ export MONGOID_SPEC_PORT="27017"
+
+ ${RUBY} -S rake ${RUBY_FAKEGEM_TASK_TEST} || failed=1
+ kill "${mongod_pid}"
+
+ [[ "${failed}" == "1" ]] && die "tests failed"
+}