diff options
Diffstat (limited to 'dev-ruby/ammeter')
-rw-r--r-- | dev-ruby/ammeter/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/ammeter/ammeter-1.1.5.ebuild | 65 |
2 files changed, 67 insertions, 0 deletions
diff --git a/dev-ruby/ammeter/Manifest b/dev-ruby/ammeter/Manifest index 2c011ad8d062..fcb5b581f431 100644 --- a/dev-ruby/ammeter/Manifest +++ b/dev-ruby/ammeter/Manifest @@ -1,3 +1,5 @@ DIST ammeter-1.1.4.gem 19968 BLAKE2B dbc773e4db83d820e5ef1c6ae3af2e65f87ff1a10a09759c66a4dad87cd175e5e8af857435b6df6cb93167869d31fb1f43dcf220e063db03d048aa8926c7daaf SHA512 57d24c67be85fe34ded8feda045771974be7cdd828780a82ff0b2f6b52d0b35b48c2eb7e59dae70700fba676242918ef6463448090d7729d49db0f05f04b0131 +DIST ammeter-1.1.5.gem 19968 BLAKE2B e4a7af65c8ee798b24f0c8a312315461779f5e1c31d97da1663d73b1a9cc65b99ed9f693259eed01a4152ab220d34ddb91ee4632657035fc1768897fae60d60e SHA512 35758fccaa51c9873747f24710168bdc0a0b25bd825d15e434cd17341d07f73a5078293d5045dcf88061765e92fe08f9b2470b4f206d859e82ec7befe64c1d93 EBUILD ammeter-1.1.4-r1.ebuild 1603 BLAKE2B ff60de580e6934d7f0d2a8b3c233e19667c174c769e9bb6b0bb78431f91fbe9520a3d39cbf44be1b05bc2d2388602185c457085ce08af747c5bc6b066d76e03a SHA512 7c205c8fd66eaa67a39595c877a866814c6f9d3b77e312dac918c78685ced25b029ca5bbf6eb0928c75cfd3ebd1e185028d6f3b76c54415a9a535642d4481d78 +EBUILD ammeter-1.1.5.ebuild 1589 BLAKE2B f6a7690d853908ab94ed9964af20649b992045bcb0aa4df697631f3f21ae816b9c4c78f6252b2a7115ace9b625af013d39eb1f9a70d5a6487de5c5556f7b795e SHA512 6b98780c315a37592fe87dab6c31aab0dcf10f8f01f811763d47283edada178dc2cea3a5ea0e3393e5b95802b8dbf46c88a2c6ea30e79cb6c27d57f44c2ad949 MISC metadata.xml 348 BLAKE2B 1eae86b63a0e04b8b5e8d8d9438b102b029a919af6fdb0cf2319b11a3c50ee282a255dedd7bad0bc3098ea8d1c0c05e17a5d98b382fa454feebbd304b18d3f57 SHA512 f81eb53098c1d67a4d5cfe32c9b3aace294cb90788775c639e189cf3932ef8101466d9a1541ceada391ebdacfedf926d9549f4591b42efd6c391e5fe6b0e72f1 diff --git a/dev-ruby/ammeter/ammeter-1.1.5.ebuild b/dev-ruby/ammeter/ammeter-1.1.5.ebuild new file mode 100644 index 000000000000..00f45c94f10f --- /dev/null +++ b/dev-ruby/ammeter/ammeter-1.1.5.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +USE_RUBY="ruby25 ruby26" + +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-4.0 + >=dev-ruby/uglifier-1.3 + >=dev-ruby/rake-0.10 + >=dev-ruby/coffee-rails-4.0 + >=dev-ruby/sass-rails-4.0 + >=dev-ruby/jquery-rails-3.0 + 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 + + # haml-rails is not packaged + sed -i -e '/haml-rails/d' ${RUBY_FAKEGEM_GEMSPEC} Gemfile || die + rm -f spec/ammeter/rspec/generator/matchers/have_correct_syntax_spec.rb || die +} + +each_ruby_test() { + ${RUBY} -S bundle exec ${RUBY} -S rspec-3 spec || die +} |