diff options
author | Hans de Graaff <graaff@gentoo.org> | 2014-01-22 07:14:43 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2014-01-22 07:14:43 +0000 |
commit | 359b3b83ce145f2e60acaeb992a276bc9245f857 (patch) | |
tree | 44deb93eda4d8f826db38177a1e447f809fd39b8 /dev-ruby/faraday | |
parent | Include buffer overflow fix (bug 498876, thanks Hank Leininger), include mup... (diff) | |
download | gentoo-2-359b3b83ce145f2e60acaeb992a276bc9245f857.tar.gz gentoo-2-359b3b83ce145f2e60acaeb992a276bc9245f857.tar.bz2 gentoo-2-359b3b83ce145f2e60acaeb992a276bc9245f857.zip |
Version bump.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
Diffstat (limited to 'dev-ruby/faraday')
-rw-r--r-- | dev-ruby/faraday/ChangeLog | 9 | ||||
-rw-r--r-- | dev-ruby/faraday/faraday-0.9.0.ebuild | 60 |
2 files changed, 67 insertions, 2 deletions
diff --git a/dev-ruby/faraday/ChangeLog b/dev-ruby/faraday/ChangeLog index 215899340b26..09cfd928f537 100644 --- a/dev-ruby/faraday/ChangeLog +++ b/dev-ruby/faraday/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-ruby/faraday -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/faraday/ChangeLog,v 1.17 2013/12/25 18:58:22 graaff Exp $ +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/faraday/ChangeLog,v 1.18 2014/01/22 07:14:43 graaff Exp $ + +*faraday-0.9.0 (22 Jan 2014) + + 22 Jan 2014; Hans de Graaff <graaff@gentoo.org> +faraday-0.9.0.ebuild: + Version bump. *faraday-0.8.8 (25 Dec 2013) diff --git a/dev-ruby/faraday/faraday-0.9.0.ebuild b/dev-ruby/faraday/faraday-0.9.0.ebuild new file mode 100644 index 000000000000..96266bc923a6 --- /dev/null +++ b/dev-ruby/faraday/faraday-0.9.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/faraday/faraday-0.9.0.ebuild,v 1.1 2014/01/22 07:14:43 graaff Exp $ + +EAPI=5 + +USE_RUBY="ruby18 ruby19" + +RUBY_FAKEGEM_TASK_TEST="test" +RUBY_FAKEGEM_TASK_DOC="" + +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem eutils + +DESCRIPTION="HTTP/REST API client library with pluggable components" +HOMEPAGE="http://github.com/lostisland/faraday" +SRC_URI="https://github.com/lostisland/faraday/archive/v${PV}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +ruby_add_rdepend ">=dev-ruby/multipart-post-1.2.0" +USE_RUBY="ruby18" ruby_add_rdepend "dev-ruby/system_timer" +ruby_add_bdepend "test? ( + >=dev-ruby/test-unit-2.4 + dev-ruby/sinatra + dev-ruby/net-http-persistent + dev-ruby/patron + )" + +all_ruby_prepare() { + # Remove bundler support. + rm Gemfile || die + sed -i -e '/[Bb]undler/d' Rakefile test/helper.rb || die + sed -i -e '/bundler/,/^fi/ s:^:#:' script/test || die + + # Remove simplecov and coveralls support, not needed to run tests. + sed -i -e '/simplecov/,/^end/ s:^:#:' test/helper.rb || die + + # Remove tests for adapters that are not packaged for Gentoo. + rm test/adapters/em_http_test.rb test/adapters/em_synchrony_test.rb test/adapters/excon_test.rb test/adapters/typhoeus_test.rb || die +} + +each_ruby_prepare() { + # Make sure the test scripts use the right ruby interpreter + sed -i -e 's:ruby:'${RUBY}':' script/* || die +} + +each_ruby_test() { + each_fakegem_test + + # Sleep some time to allow the sinatra test server to die + einfo "Waiting for test server to stop" + sleep 10 +} |