Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/best_in_place/
Date: Tue, 06 Jun 2017 04:58:03
Message-Id: 1496724829.ae91288541092627b0b2bfc4631d34234ed0cf21.graaff@gentoo
1 commit: ae91288541092627b0b2bfc4631d34234ed0cf21
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 6 04:53:49 2017 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 6 04:53:49 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae912885
7
8 dev-ruby/best_in_place: add 3.1.1
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.1
11
12 dev-ruby/best_in_place/Manifest | 1 +
13 dev-ruby/best_in_place/best_in_place-3.1.1.ebuild | 65 +++++++++++++++++++++++
14 2 files changed, 66 insertions(+)
15
16 diff --git a/dev-ruby/best_in_place/Manifest b/dev-ruby/best_in_place/Manifest
17 index ca025539597..89a68fde282 100644
18 --- a/dev-ruby/best_in_place/Manifest
19 +++ b/dev-ruby/best_in_place/Manifest
20 @@ -1 +1,2 @@
21 DIST best_in_place-3.1.0.gem 73728 SHA256 4bc57e238e2a4f4b01b7c464fec4ea814189b180431deb603cc1db3fe00bc33c SHA512 5296392d2534e8eb7c01eeee36530259a10c4d7cb5765bb2bd76944c9bc93e4202135cf2a656283bbf24041986f80b0bf2ec613c27c3368aeee7fae32c6bc6dd WHIRLPOOL 84f262964e42d767d5f355eb0236fbe2c8e948ff98292e7ddd3fe2315eb3707a900f2691dce6c0301da2b170828ce75767b2aac633c057b145a4d69e4438b317
22 +DIST best_in_place-3.1.1.gem 75264 SHA256 5a682a28b001a0f3bc557ea82085bc2bc29122115d662c8707b040a192aa2765 SHA512 f6a26590769f8d6ab6b6bf9ef955e2c26b6116ab82ccaf3bc26cfae435cb0bc594facae6dcb052bafdaaeb5806f7091eb9ad21e51940030eadd437ae342f1d33 WHIRLPOOL b3f4549b4ba2219376b759858637ccc4f3dbf277f0fc31e50d8c92506c35429fb07e2ac7d6d10c4f004ac45eec91bdb125b44afc5dc551da976b5293581c4c12
23
24 diff --git a/dev-ruby/best_in_place/best_in_place-3.1.1.ebuild b/dev-ruby/best_in_place/best_in_place-3.1.1.ebuild
25 new file mode 100644
26 index 00000000000..ec12f4326dc
27 --- /dev/null
28 +++ b/dev-ruby/best_in_place/best_in_place-3.1.1.ebuild
29 @@ -0,0 +1,65 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +USE_RUBY="ruby21 ruby22 ruby23"
35 +
36 +RUBY_FAKEGEM_TASK_DOC=""
37 +RUBY_FAKEGEM_EXTRADOC="README.md"
38 +
39 +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
40 +
41 +# if ever needed
42 +#GITHUB_USER="bernat"
43 +#GITHUB_PROJECT="${PN}"
44 +#RUBY_S="${GITHUB_USER}-${GITHUB_PROJECT}-*"
45 +
46 +inherit virtualx ruby-fakegem
47 +
48 +DESCRIPTION="In-place editor helper for Rails 3"
49 +HOMEPAGE="https://github.com/bernat/best_in_place"
50 +
51 +LICENSE="MIT"
52 +SLOT="3"
53 +KEYWORDS="~amd64"
54 +IUSE=""
55 +
56 +ruby_add_rdepend "
57 + >=dev-ruby/actionpack-3.2:*
58 + >=dev-ruby/railties-3.2:*
59 +"
60 +
61 +ruby_add_bdepend "
62 + test? (
63 + dev-ruby/rdiscount
64 + dev-ruby/rspec-rails:3
65 + >=dev-ruby/nokogiri-1.5.0
66 + >=dev-ruby/capybara-1.1.2
67 + >=dev-ruby/rails-3.2
68 + >=dev-ruby/sqlite3-1.3.4-r1
69 + dev-ruby/bundler
70 + )"
71 +
72 +all_ruby_prepare() {
73 + sed -i \
74 + -e '/git ls-files/d' \
75 + ${RUBY_FAKEGEM_GEMSPEC} || die
76 +
77 + # Tweak Gemfile so we can use it to run specs but can avoid missing
78 + # dependencies. Also use packaged versions of jquery and jquery-ui.
79 + sed -i -e '/\(rails-assets\|appraisal\)/ s:^:#:' \
80 + -e '2agem "rspec", "~>3.0"' \
81 + -e '2agem "jquery-rails"' -e '2agem "jquery-ui-rails"' \
82 + -e '/byebug/ s:^:#:' \
83 + -e '/\(launchy\|poltergeist\)/d' \
84 + Gemfile
85 + sed -i -e '/poltergeist/,/javascript_driver/ s:^:#:' spec/rails_helper.rb || die
86 +
87 + # Remove integration tests. They fail to run and depend on obsolete
88 + # poltergeist/phantomjs.
89 + rm -rf spec/integration || die
90 +}
91 +
92 +each_ruby_test() {
93 + ${RUBY} -S bundle exec rspec-3 spec || die
94 +}