# ChangeLog for dev-ruby/oauth2
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/oauth2/ChangeLog,v 1.5 2010/06/19 12:34:34 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/oauth2/ChangeLog,v 1.6 2010/06/19 17:34:01 flameeyes Exp $
+
+*oauth2-0.0.10 (19 Jun 2010)
+
+ 19 Jun 2010; Diego E. Pettenò <flameeyes@gentoo.org>
+ -oauth2-0.0.8.ebuild, -files/oauth2-0.0.8-gentoo.patch,
+ -oauth2-0.0.9.ebuild, -files/oauth2-0.0.9-gentoo.patch,
+ +oauth2-0.0.10.ebuild:
+ Version bump, remove patch.
*oauth2-0.0.9 (19 Jun 2010)
+++ /dev/null
-diff --git a/Rakefile b/Rakefile
-index 0667c9c..0a135d5 100644
---- a/Rakefile
-+++ b/Rakefile
-@@ -15,10 +15,13 @@ begin
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
- end
- Jeweler::GemcutterTasks.new
-+
-+ task :spec => :check_dependencies
- rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
- end
-
-+begin
- require 'spec/rake/spectask'
- Spec::Rake::SpecTask.new(:spec) do |spec|
- spec.libs << 'lib' << 'spec'
-@@ -31,9 +34,10 @@ Spec::Rake::SpecTask.new(:rcov) do |spec|
- spec.rcov = true
- end
-
--task :spec => :check_dependencies
--
- task :default => :spec
-+rescue LoadError
-+ puts "RSpec (or a dependency) not available. Install it with: gem install rspec"
-+end
-
- require 'rake/rdoctask'
- Rake::RDocTask.new do |rdoc|
+++ /dev/null
-diff --git a/Rakefile b/Rakefile
-index e4b0361..983d568 100644
---- a/Rakefile
-+++ b/Rakefile
-@@ -16,10 +16,13 @@ begin
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
- end
- Jeweler::GemcutterTasks.new
-+
-+ task :spec => :check_dependencies
- rescue LoadError
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
- end
-
-+begin
- require 'spec/rake/spectask'
- Spec::Rake::SpecTask.new(:spec) do |spec|
- spec.libs << 'lib' << 'spec'
-@@ -32,9 +35,10 @@ Spec::Rake::SpecTask.new(:rcov) do |spec|
- spec.rcov = true
- end
-
--task :spec => :check_dependencies
--
- task :default => :spec
-+rescue LoadError
-+ puts "RSpec (or a dependency) not available. Install it with: gem install rspec"
-+end
-
- require 'rake/rdoctask'
- Rake::RDocTask.new do |rdoc|
-diff --git a/lib/oauth2/strategy/web_server.rb b/lib/oauth2/strategy/web_server.rb
-index f8aa562..25bd5a9 100644
---- a/lib/oauth2/strategy/web_server.rb
-+++ b/lib/oauth2/strategy/web_server.rb
-@@ -13,7 +13,14 @@ module OAuth2
- # endpoints.
- def get_access_token(code, options = {})
- response = @client.request(:post, @client.access_token_url, access_token_params(code, options))
-- params = MultiJson.decode(response) rescue Rack::Utils.parse_query(response)
-+
-+ params = MultiJson.decode(response) rescue nil
-+ # the ActiveSupport JSON parser won't cause an exception when
-+ # given a formencoded string, so make sure that it was
-+ # actually parsed in an Hash. This covers even the case where
-+ # it caused an exception since it'll still be nil.
-+ params = Rack::Utils.parse_query(response) unless params.is_a? Hash
-+
- access = params['access_token']
- refresh = params['refresh_token']
- expires_in = params['expires_in']
-diff --git a/spec/oauth2/strategy/web_server_spec.rb b/spec/oauth2/strategy/web_server_spec.rb
-index aee0b76..14c5008 100644
---- a/spec/oauth2/strategy/web_server_spec.rb
-+++ b/spec/oauth2/strategy/web_server_spec.rb
-@@ -34,8 +34,8 @@ describe OAuth2::Strategy::WebServer do
- end
- end
-
-- describe "#get_access_token" do
- %w(json formencoded).each do |mode|
-+ describe "#get_access_token (#{mode})" do
- before do
- @mode = mode
- @access = subject.get_access_token('sushi')
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/oauth2/oauth2-0.0.8.ebuild,v 1.4 2010/05/18 18:45:34 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/oauth2/oauth2-0.0.10.ebuild,v 1.1 2010/06/19 17:34:01 flameeyes Exp $
EAPI="2"
KEYWORDS="~amd64 ~x86"
IUSE=""
-ruby_add_rdepend "dev-ruby/faraday"
+ruby_add_rdepend "dev-ruby/faraday >=dev-ruby/multi_json-0.0.4"
ruby_add_bdepend test ">=dev-ruby/rspec-1.2.9"
-
-all_ruby_prepare() {
- epatch "${FILESDIR}"/${P}-gentoo.patch
-}
+++ /dev/null
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/oauth2/oauth2-0.0.9.ebuild,v 1.1 2010/06/19 12:34:34 flameeyes Exp $
-
-EAPI="2"
-
-USE_RUBY="ruby18 ruby19 jruby"
-
-RUBY_FAKEGEM_TASK_TEST="spec"
-RUBY_FAKEGEM_TASK_DOC="rerdoc"
-
-RUBY_FAKEGEM_DOCDIR="rdoc"
-RUBY_FAKEGEM_EXTRADOC="README.rdoc CHANGELOG.rdoc"
-
-inherit ruby-fakegem eutils
-
-DESCRIPTION="Ruby wrapper for the OAuth 2.0 protocol built with a similar style to the original OAuth gem."
-HOMEPAGE="http://github.com/intridea/oauth2"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-ruby_add_rdepend "dev-ruby/faraday >=dev-ruby/multi_json-0.0.3-r1"
-ruby_add_bdepend test ">=dev-ruby/rspec-1.2.9"
-
-RUBY_PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )