summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2012-04-28 22:12:45 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2012-04-28 22:12:45 +0000
commit20f6f8a904098d2cbbcd75dc30c50be594610139 (patch)
tree3e27cd612e2f843698eecd9288e3337d37500694 /dev-ruby
parentVersion bump, thanks to Enrico. (diff)
downloadhistorical-20f6f8a904098d2cbbcd75dc30c50be594610139.tar.gz
historical-20f6f8a904098d2cbbcd75dc30c50be594610139.tar.bz2
historical-20f6f8a904098d2cbbcd75dc30c50be594610139.zip
Version bump.
Package-Manager: portage-2.2.0_alpha101/cvs/Linux x86_64
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/mongoid/ChangeLog7
-rw-r--r--dev-ruby/mongoid/mongoid-2.4.9.ebuild77
-rw-r--r--dev-ruby/stringex/ChangeLog7
-rw-r--r--dev-ruby/stringex/stringex-1.3.3.ebuild35
4 files changed, 124 insertions, 2 deletions
diff --git a/dev-ruby/mongoid/ChangeLog b/dev-ruby/mongoid/ChangeLog
index 4085f6a23092..ccb438b2ebda 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.9 2012/03/22 18:41:07 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mongoid/ChangeLog,v 1.10 2012/04/28 22:12:45 flameeyes Exp $
+
+*mongoid-2.4.9 (28 Apr 2012)
+
+ 28 Apr 2012; Diego E. Pettenò <flameeyes@gentoo.org> +mongoid-2.4.9.ebuild:
+ Version bump.
*mongoid-2.4.7 (22 Mar 2012)
diff --git a/dev-ruby/mongoid/mongoid-2.4.9.ebuild b/dev-ruby/mongoid/mongoid-2.4.9.ebuild
new file mode 100644
index 000000000000..bfe4e0e938a9
--- /dev/null
+++ b/dev-ruby/mongoid/mongoid-2.4.9.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.9.ebuild,v 1.1 2012/04/28 22:12:45 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"
+}
diff --git a/dev-ruby/stringex/ChangeLog b/dev-ruby/stringex/ChangeLog
index 2ff805311620..04e8eea79c0a 100644
--- a/dev-ruby/stringex/ChangeLog
+++ b/dev-ruby/stringex/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-ruby/stringex
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/stringex/ChangeLog,v 1.3 2012/02/17 22:15:21 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/stringex/ChangeLog,v 1.4 2012/04/28 22:11:07 flameeyes Exp $
+
+*stringex-1.3.3 (28 Apr 2012)
+
+ 28 Apr 2012; Diego E. Pettenò <flameeyes@gentoo.org> +stringex-1.3.3.ebuild:
+ Version bump.
*stringex-1.3.2 (17 Feb 2012)
diff --git a/dev-ruby/stringex/stringex-1.3.3.ebuild b/dev-ruby/stringex/stringex-1.3.3.ebuild
new file mode 100644
index 000000000000..6d286e8743f5
--- /dev/null
+++ b/dev-ruby/stringex/stringex-1.3.3.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/stringex/stringex-1.3.3.ebuild,v 1.1 2012/04/28 22:11:07 flameeyes Exp $
+
+EAPI=4
+USE_RUBY="ruby18 ruby19 ree18"
+
+RUBY_FAKEGEM_DOC_DIR="rdoc"
+RUBY_FAKEGEM_EXTRADOC="README.rdoc"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Extensions for Ruby's String class"
+HOMEPAGE="http://github.com/rsl/stringex"
+LICENSE="MIT"
+
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+# we could rely on activerecord[sqlite3], but since we do not remove the
+# sqlite3 adapter from activerecord when building -sqlite3, it's easier
+# to just add another dependency, so the user doesn't have to change the
+# USE flags at all.
+ruby_add_bdepend "
+ test? (
+ dev-ruby/activerecord
+ dev-ruby/sqlite3-ruby
+ dev-ruby/redcloth
+ )"
+
+each_ruby_test() {
+ # rake seems to break this
+ ${RUBY} -Ilib -S testrb test/*_test.rb || die "tests failed"
+}