signet 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +19 -11
- data/lib/signet/oauth_1/client.rb +1 -4
- data/lib/signet/oauth_2/client.rb +2 -4
- data/lib/signet/version.rb +1 -1
- data/tasks/gem.rake +1 -1
- data/tasks/wiki.rake +1 -0
- data/tasks/yard.rake +1 -1
- metadata +55 -4
data/CHANGELOG.md
CHANGED
@@ -1,49 +1,57 @@
|
|
1
|
-
|
1
|
+
# 0.3.1
|
2
|
+
|
3
|
+
* Fixed a warning while determining grant type
|
4
|
+
* Removed requirement that a connection be supplied when authorizing requests
|
5
|
+
* Updated addressable dependency to avoid minor bug
|
6
|
+
* Fixed some documentation stuff around markdown formatting
|
7
|
+
* Added support for Google Code wiki format output when generating docs
|
8
|
+
|
9
|
+
# 0.3.0
|
2
10
|
|
3
11
|
* Replaced httpadapter gem dependency with faraday
|
4
12
|
* Replaced json gem dependency with multi_json
|
5
13
|
* Updated to OAuth 2.0 draft 22
|
6
14
|
* Complete test coverage
|
7
15
|
|
8
|
-
|
16
|
+
# 0.2.4
|
9
17
|
|
10
18
|
* Updated to incorporate changes to the Google OAuth endpoints
|
11
19
|
|
12
|
-
|
20
|
+
# 0.2.3
|
13
21
|
|
14
22
|
* Added support for JWT-formatted ID tokens.
|
15
23
|
* Added :issued_at option to #update_token! method.
|
16
24
|
|
17
|
-
|
25
|
+
# 0.2.2
|
18
26
|
|
19
27
|
* Lowered requirements for json gem
|
20
28
|
|
21
|
-
|
29
|
+
# 0.2.1
|
22
30
|
|
23
31
|
* Updated to keep in sync with the new httpadapter changes
|
24
32
|
|
25
|
-
|
33
|
+
# 0.2.0
|
26
34
|
|
27
35
|
* Added support for OAuth 2.0 draft 10
|
28
36
|
|
29
|
-
|
37
|
+
# 0.1.4
|
30
38
|
|
31
39
|
* Added support for a two-legged authorization flow
|
32
40
|
|
33
|
-
|
41
|
+
# 0.1.3
|
34
42
|
|
35
43
|
* Fixed issue with headers passed in as a Hash
|
36
44
|
* Fixed incompatibilities with Ruby 1.8.6
|
37
45
|
|
38
|
-
|
46
|
+
# 0.1.2
|
39
47
|
|
40
48
|
* Fixed bug with overzealous normalization
|
41
49
|
|
42
|
-
|
50
|
+
# 0.1.1
|
43
51
|
|
44
52
|
* Fixed bug with missing StringIO require
|
45
53
|
* Fixed issue with dependency on unreleased features of addressable
|
46
54
|
|
47
|
-
|
55
|
+
# 0.1.0
|
48
56
|
|
49
57
|
* Initial release
|
@@ -855,10 +855,7 @@ module Signet
|
|
855
855
|
if options[:request].kind_of?(Array)
|
856
856
|
method, uri, headers, body = options[:request]
|
857
857
|
elsif options[:request].kind_of?(Faraday::Request)
|
858
|
-
|
859
|
-
raise ArgumentError,
|
860
|
-
"Faraday::Request used, requires a connection to be provided."
|
861
|
-
end
|
858
|
+
options[:connection] ||= Faraday.default_connection
|
862
859
|
method = options[:request].method.to_s.downcase.to_sym
|
863
860
|
uri = options[:connection].build_url(
|
864
861
|
options[:request].path, options[:request].params
|
@@ -607,6 +607,7 @@ module Signet
|
|
607
607
|
# @return [String]
|
608
608
|
# The inferred grant type.
|
609
609
|
def grant_type
|
610
|
+
@grant_type ||= nil
|
610
611
|
if @grant_type
|
611
612
|
return @grant_type
|
612
613
|
else
|
@@ -756,10 +757,7 @@ module Signet
|
|
756
757
|
if options[:request].kind_of?(Array)
|
757
758
|
method, uri, headers, body = options[:request]
|
758
759
|
elsif options[:request].kind_of?(Faraday::Request)
|
759
|
-
|
760
|
-
raise ArgumentError,
|
761
|
-
"Faraday::Request used, requires a connection to be provided."
|
762
|
-
end
|
760
|
+
options[:connection] ||= Faraday.default_connection
|
763
761
|
method = options[:request].method.to_s.downcase.to_sym
|
764
762
|
uri = options[:connection].build_url(
|
765
763
|
options[:request].path, options[:request].params
|
data/lib/signet/version.rb
CHANGED
data/tasks/gem.rake
CHANGED
@@ -22,7 +22,7 @@ namespace :gem do
|
|
22
22
|
s.extra_rdoc_files = %w( README.md )
|
23
23
|
s.rdoc_options.concat ["--main", "README.md"]
|
24
24
|
|
25
|
-
s.add_runtime_dependency("addressable", "~> 2.2.
|
25
|
+
s.add_runtime_dependency("addressable", "~> 2.2.3")
|
26
26
|
s.add_runtime_dependency("faraday", "~> 0.7.0")
|
27
27
|
s.add_runtime_dependency("multi_json", ">= 1.0.0")
|
28
28
|
s.add_runtime_dependency("jwt", ">= 0.1.4")
|
data/tasks/wiki.rake
CHANGED
data/tasks/yard.rake
CHANGED
@@ -8,7 +8,7 @@ begin
|
|
8
8
|
desc 'Generate Yardoc documentation'
|
9
9
|
YARD::Rake::YardocTask.new do |yardoc|
|
10
10
|
yardoc.name = 'yard'
|
11
|
-
yardoc.options = ['--verbose']
|
11
|
+
yardoc.options = ['--verbose', '--markup', 'markdown']
|
12
12
|
yardoc.files = [
|
13
13
|
'lib/**/*.rb', 'ext/**/*.c', 'README.md', 'CHANGELOG.md', 'LICENSE'
|
14
14
|
]
|
metadata
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: signet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 17
|
4
5
|
prerelease:
|
5
|
-
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 3
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
6
11
|
platform: ruby
|
7
12
|
authors:
|
8
13
|
- Bob Aman
|
@@ -10,7 +15,7 @@ autorequire:
|
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
17
|
|
13
|
-
date: 2012-01-
|
18
|
+
date: 2012-01-30 00:00:00 Z
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: addressable
|
@@ -20,7 +25,12 @@ dependencies:
|
|
20
25
|
requirements:
|
21
26
|
- - ~>
|
22
27
|
- !ruby/object:Gem::Version
|
23
|
-
|
28
|
+
hash: 1
|
29
|
+
segments:
|
30
|
+
- 2
|
31
|
+
- 2
|
32
|
+
- 3
|
33
|
+
version: 2.2.3
|
24
34
|
type: :runtime
|
25
35
|
version_requirements: *id001
|
26
36
|
- !ruby/object:Gem::Dependency
|
@@ -31,6 +41,11 @@ dependencies:
|
|
31
41
|
requirements:
|
32
42
|
- - ~>
|
33
43
|
- !ruby/object:Gem::Version
|
44
|
+
hash: 3
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
- 7
|
48
|
+
- 0
|
34
49
|
version: 0.7.0
|
35
50
|
type: :runtime
|
36
51
|
version_requirements: *id002
|
@@ -42,6 +57,11 @@ dependencies:
|
|
42
57
|
requirements:
|
43
58
|
- - ">="
|
44
59
|
- !ruby/object:Gem::Version
|
60
|
+
hash: 23
|
61
|
+
segments:
|
62
|
+
- 1
|
63
|
+
- 0
|
64
|
+
- 0
|
45
65
|
version: 1.0.0
|
46
66
|
type: :runtime
|
47
67
|
version_requirements: *id003
|
@@ -53,6 +73,11 @@ dependencies:
|
|
53
73
|
requirements:
|
54
74
|
- - ">="
|
55
75
|
- !ruby/object:Gem::Version
|
76
|
+
hash: 19
|
77
|
+
segments:
|
78
|
+
- 0
|
79
|
+
- 1
|
80
|
+
- 4
|
56
81
|
version: 0.1.4
|
57
82
|
type: :runtime
|
58
83
|
version_requirements: *id004
|
@@ -64,6 +89,11 @@ dependencies:
|
|
64
89
|
requirements:
|
65
90
|
- - ~>
|
66
91
|
- !ruby/object:Gem::Version
|
92
|
+
hash: 57
|
93
|
+
segments:
|
94
|
+
- 0
|
95
|
+
- 8
|
96
|
+
- 3
|
67
97
|
version: 0.8.3
|
68
98
|
type: :development
|
69
99
|
version_requirements: *id005
|
@@ -75,6 +105,11 @@ dependencies:
|
|
75
105
|
requirements:
|
76
106
|
- - ~>
|
77
107
|
- !ruby/object:Gem::Version
|
108
|
+
hash: 5
|
109
|
+
segments:
|
110
|
+
- 1
|
111
|
+
- 1
|
112
|
+
- 11
|
78
113
|
version: 1.1.11
|
79
114
|
type: :development
|
80
115
|
version_requirements: *id006
|
@@ -86,6 +121,11 @@ dependencies:
|
|
86
121
|
requirements:
|
87
122
|
- - ~>
|
88
123
|
- !ruby/object:Gem::Version
|
124
|
+
hash: 15
|
125
|
+
segments:
|
126
|
+
- 2
|
127
|
+
- 0
|
128
|
+
- 0
|
89
129
|
version: 2.0.0
|
90
130
|
type: :development
|
91
131
|
version_requirements: *id007
|
@@ -97,6 +137,11 @@ dependencies:
|
|
97
137
|
requirements:
|
98
138
|
- - ~>
|
99
139
|
- !ruby/object:Gem::Version
|
140
|
+
hash: 23
|
141
|
+
segments:
|
142
|
+
- 1
|
143
|
+
- 1
|
144
|
+
- 2
|
100
145
|
version: 1.1.2
|
101
146
|
type: :development
|
102
147
|
version_requirements: *id008
|
@@ -162,17 +207,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
162
207
|
requirements:
|
163
208
|
- - ">="
|
164
209
|
- !ruby/object:Gem::Version
|
210
|
+
hash: 3
|
211
|
+
segments:
|
212
|
+
- 0
|
165
213
|
version: "0"
|
166
214
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
167
215
|
none: false
|
168
216
|
requirements:
|
169
217
|
- - ">="
|
170
218
|
- !ruby/object:Gem::Version
|
219
|
+
hash: 3
|
220
|
+
segments:
|
221
|
+
- 0
|
171
222
|
version: "0"
|
172
223
|
requirements: []
|
173
224
|
|
174
225
|
rubyforge_project: signet
|
175
|
-
rubygems_version: 1.8.
|
226
|
+
rubygems_version: 1.8.15
|
176
227
|
signing_key:
|
177
228
|
specification_version: 3
|
178
229
|
summary: Package Summary
|