summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby/ammeter')
-rw-r--r--dev-ruby/ammeter/ChangeLog9
-rw-r--r--dev-ruby/ammeter/ammeter-1.1.2.ebuild72
2 files changed, 79 insertions, 2 deletions
diff --git a/dev-ruby/ammeter/ChangeLog b/dev-ruby/ammeter/ChangeLog
index 17d7bbdd60cd..945bf3d12696 100644
--- a/dev-ruby/ammeter/ChangeLog
+++ b/dev-ruby/ammeter/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-ruby/ammeter
-# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ammeter/ChangeLog,v 1.16 2014/12/28 09:34:00 graaff Exp $
+# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ammeter/ChangeLog,v 1.17 2015/01/16 12:58:27 graaff Exp $
+
+*ammeter-1.1.2 (16 Jan 2015)
+
+ 16 Jan 2015; Hans de Graaff <graaff@gentoo.org> +ammeter-1.1.2.ebuild:
+ Version bump.
28 Dec 2014; Hans de Graaff <graaff@gentoo.org> ammeter-0.2.9-r1.ebuild:
Lock to rspec:2.
diff --git a/dev-ruby/ammeter/ammeter-1.1.2.ebuild b/dev-ruby/ammeter/ammeter-1.1.2.ebuild
new file mode 100644
index 000000000000..659353fe3455
--- /dev/null
+++ b/dev-ruby/ammeter/ammeter-1.1.2.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ammeter/ammeter-1.1.2.ebuild,v 1.1 2015/01/16 12:58:27 graaff Exp $
+
+EAPI=5
+USE_RUBY="ruby19 ruby20 ruby21"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Write specs for your Rails 3+ generators"
+HOMEPAGE="https://github.com/alexrothenberg/ammeter"
+LICENSE="MIT"
+
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+# Restrict tests since they now require the specific rspec version to be
+# provided in an environment variable.
+RESTRICT="test"
+
+ruby_add_rdepend "
+ >=dev-ruby/activesupport-3.0
+ >=dev-ruby/railties-3.0
+ >=dev-ruby/rspec-rails-2.2
+"
+
+# ruby_add_bdepend "
+# test? (
+# >=dev-ruby/rails-3.1
+# <dev-ruby/rails-4.1
+# dev-ruby/uglifier
+# dev-ruby/rake
+# dev-ruby/coffee-rails
+# dev-ruby/sass-rails
+# dev-ruby/jquery-rails
+# dev-util/cucumber
+# dev-util/aruba
+# dev-ruby/sqlite3
+# dev-ruby/bundler
+# )"
+
+all_ruby_prepare() {
+ # fix the gemspec; we remove the version dependencies from there, as
+ # it requires _older_ versions of its dependencies.. it doesn't
+ # really seem to be the case though. Also remove the references to
+ # git ls-files to avoid calling it.
+ sed -i \
+ -e '/git ls-files/d' \
+ -e '/\(cucumber\|aruba\)/s:,.*$::' \
+ ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ # Specs are not compatible with Rails 4.1
+ sed -i -e '23i s.add_development_dependency "rails", "<4.1"' ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ # Avoid spec that returns a different but valid response on ruby21
+ sed -e '/when the file is not there/,/^ end/ s:^:#:' -i spec/ammeter/rspec/generator/matchers/contain_spec.rb || die
+
+ # haml-rails is not packaged
+ sed -i -e '/haml-rails/d' ${RUBY_FAKEGEM_GEMSPEC} Gemfile || die
+}
+
+each_ruby_test() {
+ RSPEC_VERSION=3.1.0 ${RUBY} -S bundle exec ${RUBY} -S rspec-3 spec || die
+}