diff options
author | Hans de Graaff <graaff@gentoo.org> | 2010-09-18 09:58:03 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2010-09-18 09:58:03 +0000 |
commit | f7896a8300395d835368cccfca9c06f384d56e2e (patch) | |
tree | 1bbc948546cb51d13f9499e087ce1367f148e2c3 /dev-ruby | |
parent | Stable on amd64 wrt bug #335750 (diff) | |
download | gentoo-2-f7896a8300395d835368cccfca9c06f384d56e2e.tar.gz gentoo-2-f7896a8300395d835368cccfca9c06f384d56e2e.tar.bz2 gentoo-2-f7896a8300395d835368cccfca9c06f384d56e2e.zip |
Version bump. Update optional tests patch. Weaken rails requirement to fix bug 332913.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/oauth/ChangeLog | 9 | ||||
-rw-r--r-- | dev-ruby/oauth/files/oauth-0.4.3-optional-tests.patch | 123 | ||||
-rw-r--r-- | dev-ruby/oauth/oauth-0.4.3.ebuild | 31 |
3 files changed, 162 insertions, 1 deletions
diff --git a/dev-ruby/oauth/ChangeLog b/dev-ruby/oauth/ChangeLog index 9b73254c2e08..ac0a5995e87e 100644 --- a/dev-ruby/oauth/ChangeLog +++ b/dev-ruby/oauth/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-ruby/oauth # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/oauth/ChangeLog,v 1.10 2010/08/13 06:38:37 graaff Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/oauth/ChangeLog,v 1.11 2010/09/18 09:58:03 graaff Exp $ + +*oauth-0.4.3 (18 Sep 2010) + + 18 Sep 2010; Hans de Graaff <graaff@gentoo.org> +oauth-0.4.3.ebuild, + +files/oauth-0.4.3-optional-tests.patch: + Version bump. Update optional tests patch. Weaken rails requirement to fix + bug 332913. 13 Aug 2010; Hans de Graaff <graaff@gentoo.org> -oauth-0.3.6.ebuild, -oauth-0.3.6-r1.ebuild, -files/oauth-0.3.6-newgem.patch: diff --git a/dev-ruby/oauth/files/oauth-0.4.3-optional-tests.patch b/dev-ruby/oauth/files/oauth-0.4.3-optional-tests.patch new file mode 100644 index 000000000000..7a5b8b983d82 --- /dev/null +++ b/dev-ruby/oauth/files/oauth-0.4.3-optional-tests.patch @@ -0,0 +1,123 @@ +commit d71057125981d613aa77100cbd1edd278257aa40 +Author: Hans de Graaff <hans@degraaff.org> +Date: Fri Jun 25 22:53:36 2010 +0200 + + Fix LoadError rescue: return can't be used in this context. + + Using return leads to this error: + ./test/test_curb_request_proxy.rb:8: unexpected return (LocalJumpError) + + Without using return the rescue needs to be placed at the end. + +diff --git a/test/test_curb_request_proxy.rb b/test/test_curb_request_proxy.rb +index 582b18f..8abf245 100644 +--- a/test/test_curb_request_proxy.rb ++++ b/test/test_curb_request_proxy.rb +@@ -1,12 +1,9 @@ + require File.expand_path('../test_helper', __FILE__) + + begin +- require 'oauth/request_proxy/curb_request' +- require 'curb' +-rescue LoadError => e +- warn "! problems loading curb, skipping these tests: #{e}" +- return +-end ++ ++require 'oauth/request_proxy/curb_request' ++require 'curb' + + + class CurbRequestProxyTest < Test::Unit::TestCase +@@ -74,3 +71,7 @@ class CurbRequestProxyTest < Test::Unit::TestCase + assert_equal 'http://example.com/test', request_proxy.normalized_uri + end + end ++ ++rescue LoadError => e ++ warn "! problems loading curb, skipping these tests: #{e}" ++end +diff --git a/test/test_em_http_client.rb b/test/test_em_http_client.rb +index 9d0994f..603fd8b 100644 +--- a/test/test_em_http_client.rb ++++ b/test/test_em_http_client.rb +@@ -1,10 +1,7 @@ + require File.expand_path('../test_helper', __FILE__) + begin +- require 'oauth/client/em_http' +-rescue LoadError => e +- warn "! problem loading em-http, skipping these tests: #{e}" +- return +-end ++ ++require 'oauth/client/em_http' + + class EmHttpClientTest < Test::Unit::TestCase + +@@ -77,3 +74,7 @@ class EmHttpClientTest < Test::Unit::TestCase + end + + end ++ ++rescue LoadError => e ++ warn "! problem loading em-http, skipping these tests: #{e}" ++end +diff --git a/test/test_em_http_request_proxy.rb b/test/test_em_http_request_proxy.rb +index 7b9b12b..ab0b5a5 100644 +--- a/test/test_em_http_request_proxy.rb ++++ b/test/test_em_http_request_proxy.rb +@@ -1,12 +1,9 @@ + require File.expand_path('../test_helper', __FILE__) + + begin +- require 'em-http' +- require 'oauth/request_proxy/em_http_request' +-rescue LoadError => e +- warn "! problem loading em-http, skipping these tests: #{e}" +- return +-end ++ ++require 'em-http' ++require 'oauth/request_proxy/em_http_request' + + + class EmHttpRequestProxyTest < Test::Unit::TestCase +@@ -110,5 +107,9 @@ class EmHttpRequestProxyTest < Test::Unit::TestCase + arguments = opts.delete(:proxy_options) || {} + OAuth::RequestProxy.proxy(create_client(opts), arguments) + end ++ ++end + ++rescue LoadError => e ++ warn "! problem loading em-http, skipping these tests: #{e}" + end +diff --git a/test/test_typhoeus_request_proxy.rb b/test/test_typhoeus_request_proxy.rb +index ce69fb2..c809a6f 100644 +--- a/test/test_typhoeus_request_proxy.rb ++++ b/test/test_typhoeus_request_proxy.rb +@@ -1,13 +1,9 @@ + require File.expand_path('../test_helper', __FILE__) + + begin +- require 'oauth/request_proxy/typhoeus_request' +- require 'typhoeus' +-rescue LoadError => e +- warn "! problem loading typhoeus, skipping these tests: #{e}" +- return +-end + ++require 'oauth/request_proxy/typhoeus_request' ++require 'typhoeus' + + class TyphoeusRequestProxyTest < Test::Unit::TestCase + +@@ -78,3 +74,8 @@ class TyphoeusRequestProxyTest < Test::Unit::TestCase + assert_equal 'POST', request_proxy.method + end + end ++ ++rescue LoadError => e ++ warn "! problem loading typhoeus, skipping these tests: #{e}" ++end ++ diff --git a/dev-ruby/oauth/oauth-0.4.3.ebuild b/dev-ruby/oauth/oauth-0.4.3.ebuild new file mode 100644 index 000000000000..6a7498653a94 --- /dev/null +++ b/dev-ruby/oauth/oauth-0.4.3.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/oauth/oauth-0.4.3.ebuild,v 1.1 2010/09/18 09:58:03 graaff Exp $ + +EAPI="2" +USE_RUBY="ruby18" + +RUBY_FAKEGEM_TASK_DOC="" + +RUBY_FAKEGEM_EXTRADOC="HISTORY README.rdoc TODO" + +inherit ruby-fakegem + +DESCRIPTION="A RubyGem for implementing both OAuth clients and servers." +HOMEPAGE="http://oauth.rubyforge.org/" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RUBY_PATCHES=( "${P}-optional-tests.patch" ) + +ruby_add_bdepend "test? ( virtual/ruby-test-unit + >=dev-ruby/actionpack-2.3.8:2.3 + dev-ruby/mocha )" + +all_ruby_prepare() { + # Let this test work with a wider range of rails versions. + sed -i "s/'2.3.8'/'~>2.3.8'/" test/test_action_controller_request_proxy.rb || die +} |