Browse files

Minor bug fixes for point release.

  • Loading branch information...
1 parent b1a47c6 commit 330c351d62474ea8d04459e429459cd6cce48ba9 Bob Aman committed Jan 30, 2012
Showing with 26 additions and 22 deletions.
  1. +19 −11 CHANGELOG.md
  2. +1 −4 lib/signet/oauth_1/client.rb
  3. +2 −4 lib/signet/oauth_2/client.rb
  4. +1 −1 lib/signet/version.rb
  5. +1 −1 tasks/gem.rake
  6. +1 −0 tasks/wiki.rake
  7. +1 −1 tasks/yard.rake
View
30 CHANGELOG.md
@@ -1,49 +1,57 @@
-== 0.3.0
+# 0.3.1
+
+* Fixed a warning while determining grant type
+* Removed requirement that a connection be supplied when authorizing requests
+* Updated addressable dependency to avoid minor bug
+* Fixed some documentation stuff around markdown formatting
+* Added support for Google Code wiki format output when generating docs
+
+# 0.3.0
* Replaced httpadapter gem dependency with faraday
* Replaced json gem dependency with multi_json
* Updated to OAuth 2.0 draft 22
* Complete test coverage
-== 0.2.4
+# 0.2.4
* Updated to incorporate changes to the Google OAuth endpoints
-== 0.2.3
+# 0.2.3
* Added support for JWT-formatted ID tokens.
* Added :issued_at option to #update_token! method.
-== 0.2.2
+# 0.2.2
* Lowered requirements for json gem
-== 0.2.1
+# 0.2.1
* Updated to keep in sync with the new httpadapter changes
-== 0.2.0
+# 0.2.0
* Added support for OAuth 2.0 draft 10
-== 0.1.4
+# 0.1.4
* Added support for a two-legged authorization flow
-== 0.1.3
+# 0.1.3
* Fixed issue with headers passed in as a Hash
* Fixed incompatibilities with Ruby 1.8.6
-== 0.1.2
+# 0.1.2
* Fixed bug with overzealous normalization
-== 0.1.1
+# 0.1.1
* Fixed bug with missing StringIO require
* Fixed issue with dependency on unreleased features of addressable
-== 0.1.0
+# 0.1.0
* Initial release
View
5 lib/signet/oauth_1/client.rb
@@ -855,10 +855,7 @@ def generate_authenticated_request(options={})
if options[:request].kind_of?(Array)
method, uri, headers, body = options[:request]
elsif options[:request].kind_of?(Faraday::Request)
- unless options[:connection]
- raise ArgumentError,
- "Faraday::Request used, requires a connection to be provided."
- end
+ options[:connection] ||= Faraday.default_connection
method = options[:request].method.to_s.downcase.to_sym
uri = options[:connection].build_url(
options[:request].path, options[:request].params
View
6 lib/signet/oauth_2/client.rb
@@ -607,6 +607,7 @@ def expired?
# @return [String]
# The inferred grant type.
def grant_type
+ @grant_type ||= nil
if @grant_type
return @grant_type
else
@@ -756,10 +757,7 @@ def generate_authenticated_request(options={})
if options[:request].kind_of?(Array)
method, uri, headers, body = options[:request]
elsif options[:request].kind_of?(Faraday::Request)
- unless options[:connection]
- raise ArgumentError,
- "Faraday::Request used, requires a connection to be provided."
- end
+ options[:connection] ||= Faraday.default_connection
method = options[:request].method.to_s.downcase.to_sym
uri = options[:connection].build_url(
options[:request].path, options[:request].params
View
2 lib/signet/version.rb
@@ -18,7 +18,7 @@ module Signet
module VERSION
MAJOR = 0
MINOR = 3
- TINY = 0
+ TINY = 1
STRING = [MAJOR, MINOR, TINY].join('.')
end
View
2 tasks/gem.rake
@@ -22,7 +22,7 @@ namespace :gem do
s.extra_rdoc_files = %w( README.md )
s.rdoc_options.concat ["--main", "README.md"]
- s.add_runtime_dependency("addressable", "~> 2.2.1")
+ s.add_runtime_dependency("addressable", "~> 2.2.3")
s.add_runtime_dependency("faraday", "~> 0.7.0")
s.add_runtime_dependency("multi_json", ">= 1.0.0")
s.add_runtime_dependency("jwt", ">= 0.1.4")
View
1 tasks/wiki.rake
@@ -20,6 +20,7 @@ begin
yardoc.name = 'reference'
yardoc.options = [
'--verbose',
+ '--markup', 'markdown',
'-e', 'yard/lib/yard-google-code.rb',
'-p', 'yard/templates',
'-f', 'wiki',
View
2 tasks/yard.rake
@@ -8,7 +8,7 @@ begin
desc 'Generate Yardoc documentation'
YARD::Rake::YardocTask.new do |yardoc|
yardoc.name = 'yard'
- yardoc.options = ['--verbose']
+ yardoc.options = ['--verbose', '--markup', 'markdown']
yardoc.files = [
'lib/**/*.rb', 'ext/**/*.c', 'README.md', 'CHANGELOG.md', 'LICENSE'
]

0 comments on commit 330c351

Please sign in to comment.