summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2016-04-02 08:16:13 +0200
committerHans de Graaff <graaff@gentoo.org>2016-04-02 09:01:06 +0200
commit8e682fa2bbcf03d570c66853a7495f3086f32248 (patch)
tree0eb3123f965e6462781954322c538e272823e70f /dev-ruby
parentdev-libs/libcdio-paranoia: fix compilation on Darwin and/or with Clang, bug #... (diff)
downloadgentoo-8e682fa2bbcf03d570c66853a7495f3086f32248.tar.gz
gentoo-8e682fa2bbcf03d570c66853a7495f3086f32248.tar.bz2
gentoo-8e682fa2bbcf03d570c66853a7495f3086f32248.zip
dev-ruby/dotenv: add 2.1.1
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/dotenv/Manifest1
-rw-r--r--dev-ruby/dotenv/dotenv-2.1.1.ebuild32
2 files changed, 33 insertions, 0 deletions
diff --git a/dev-ruby/dotenv/Manifest b/dev-ruby/dotenv/Manifest
index af712e2ca8d1..e0ad7a10a019 100644
--- a/dev-ruby/dotenv/Manifest
+++ b/dev-ruby/dotenv/Manifest
@@ -1 +1,2 @@
DIST dotenv-2.1.0.tar.gz 13925 SHA256 4ce85708c581c955b8c4e3bdecde191302ea37aa7e2fe6f539c5ce4d76347242 SHA512 c6f61a1550d224733fbf55c6f4792b08771358c450750fb06615c2722695a31004f6326071b0db5df4a36b3fa7d358a37cf27fb039efde8495951b9237f4f495 WHIRLPOOL 91d2df31d4069af992ce1acad6fe66765f673f746e3883572ccc0442c1367608975b9284ec073c525c0d35a809bb48abc4d7047fb84c4baa5f594e046cd7a6e1
+DIST dotenv-2.1.1.tar.gz 14019 SHA256 c1fb9da9dd85b9e92026e49766de2ef13117b7adbcb9a21876ae478653da3d59 SHA512 6e9e6604d698ae3bcdf2c10bcbdd169b278477eafd532c4031f592db1daf4e000e57486a4e98d032718c555cf6032189947bae02737bf2a46819b8638a8dc8ab WHIRLPOOL ddbf38c95633040774ae31268bf7eecb1a5d5c31f3cec5edad1e5fecec621d39d2418dfe73082dd3501d90d6bf9349b7261a1e8fce26599dab1c1fe74813709e
diff --git a/dev-ruby/dotenv/dotenv-2.1.1.ebuild b/dev-ruby/dotenv/dotenv-2.1.1.ebuild
new file mode 100644
index 000000000000..b7072eb2746e
--- /dev/null
+++ b/dev-ruby/dotenv/dotenv-2.1.1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby20 ruby21 ruby22"
+
+RUBY_FAKEGEM_EXTRADOC="README.md Changelog.md"
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Loads environment variables from .env into ENV"
+HOMEPAGE="https://github.com/bkeepers/dotenv"
+SRC_URI="https://github.com/bkeepers/dotenv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="MIT"
+
+KEYWORDS="~amd64 ~arm ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+SLOT="2"
+IUSE=""
+
+ruby_add_bdepend "test? ( dev-ruby/spring dev-ruby/rails )"
+
+all_ruby_prepare() {
+ sed -i -e '/:guard/,/end/ s:^:#:' \
+ -e '5igem "rspec", "~> 3.0"' Gemfile || die
+}
+
+each_ruby_prepare() {
+ sed -i -e "s:ruby -v:${RUBY} -v:g" spec/dotenv/parser_spec.rb || die
+}