oauth2-client 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/.gitignore +1 -0
- data/.travis.yml +4 -2
- data/CHANGELOG.md +0 -0
- data/Gemfile +1 -1
- data/README.md +1 -1
- data/Rakefile +0 -0
- data/certs/{tiabas.pem → tiabas-public.pem} +0 -0
- data/examples/github_client.rb +0 -0
- data/examples/google_client.rb +0 -0
- data/examples/yammer_client.rb +0 -0
- data/lib/oauth2.rb +0 -0
- data/lib/oauth2/client.rb +0 -0
- data/lib/oauth2/connection.rb +0 -0
- data/lib/oauth2/error.rb +0 -0
- data/lib/oauth2/grant.rb +0 -0
- data/lib/oauth2/grant/authorization_code.rb +0 -0
- data/lib/oauth2/grant/base.rb +0 -0
- data/lib/oauth2/grant/client_credentials.rb +0 -0
- data/lib/oauth2/grant/device.rb +0 -0
- data/lib/oauth2/grant/implicit.rb +0 -0
- data/lib/oauth2/grant/password.rb +0 -0
- data/lib/oauth2/grant/refresh_token.rb +0 -0
- data/lib/oauth2/helper.rb +0 -0
- data/lib/oauth2/version.rb +1 -1
- data/oauth2-client.gemspec +10 -3
- data/spec/examples/github_client_spec.rb +0 -2
- data/spec/examples/google_client_spec.rb +0 -0
- data/spec/examples/yammer_client_spec.rb +0 -0
- data/spec/oauth2/connection_spec.rb +0 -0
- data/spec/oauth2/grant/authorization_code_spec.rb +0 -0
- data/spec/oauth2/grant/base_spec.rb +0 -0
- data/spec/oauth2/grant/client_credentials_spec.rb +0 -0
- data/spec/oauth2/grant/device_spec.rb +0 -0
- data/spec/oauth2/grant/implicit_spec.rb +0 -0
- data/spec/oauth2/grant/password_spec.rb +0 -0
- data/spec/oauth2/grant/refresh_token_spec.rb +0 -0
- data/spec/spec_helper.rb +0 -0
- metadata +88 -8
- metadata.gz.sig +0 -0
- data/Gemfile.lock +0 -56
data.tar.gz.sig
CHANGED
Binary file
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/CHANGELOG.md
ADDED
File without changes
|
data/Gemfile
CHANGED
data/README.md
CHANGED
data/Rakefile
CHANGED
File without changes
|
File without changes
|
data/examples/github_client.rb
CHANGED
File without changes
|
data/examples/google_client.rb
CHANGED
File without changes
|
data/examples/yammer_client.rb
CHANGED
File without changes
|
data/lib/oauth2.rb
CHANGED
File without changes
|
data/lib/oauth2/client.rb
CHANGED
File without changes
|
data/lib/oauth2/connection.rb
CHANGED
File without changes
|
data/lib/oauth2/error.rb
CHANGED
File without changes
|
data/lib/oauth2/grant.rb
CHANGED
File without changes
|
File without changes
|
data/lib/oauth2/grant/base.rb
CHANGED
File without changes
|
File without changes
|
data/lib/oauth2/grant/device.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/oauth2/helper.rb
CHANGED
File without changes
|
data/lib/oauth2/version.rb
CHANGED
@@ -2,7 +2,7 @@ module OAuth2
|
|
2
2
|
class Version
|
3
3
|
MAJOR = 1 unless defined? OAuth2::Version::MAJOR
|
4
4
|
MINOR = 1 unless defined? OAuth2::Version::MINOR
|
5
|
-
PATCH =
|
5
|
+
PATCH = 3 unless defined? OAuth2::Version::PATCH
|
6
6
|
|
7
7
|
def self.to_s
|
8
8
|
[MAJOR, MINOR, PATCH].compact.join('.')
|
data/oauth2-client.gemspec
CHANGED
@@ -4,7 +4,7 @@ require 'oauth2/version'
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.add_dependency 'bcrypt-ruby', '~> 3.0.0'
|
7
|
-
spec.add_dependency 'addressable'
|
7
|
+
spec.add_dependency 'addressable', '~> 2.3.3'
|
8
8
|
spec.add_development_dependency 'bundler', '~> 1.0'
|
9
9
|
|
10
10
|
spec.authors = ["Kevin Mutyaba"]
|
@@ -20,6 +20,13 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.summary = "OAuth2 client wrapper in Ruby"
|
21
21
|
spec.version = OAuth2::Version
|
22
22
|
|
23
|
-
spec.cert_chain = ['certs/tiabas.pem']
|
24
|
-
spec.signing_key = File.expand_path("~/.gem/certs/private_key.pem")
|
23
|
+
spec.cert_chain = ['certs/tiabas-public.pem']
|
24
|
+
spec.signing_key = File.expand_path("~/.gem/certs/private_key.pem") if $0 =~ /gem\z/
|
25
|
+
|
26
|
+
spec.add_dependency 'addressable', '~> 2.3.3'
|
27
|
+
|
28
|
+
spec.add_development_dependency 'rake'
|
29
|
+
spec.add_development_dependency 'rspec'
|
30
|
+
spec.add_development_dependency 'simplecov', '>= 0.7.1'
|
31
|
+
spec.add_development_dependency 'webmock', '>= 1.9.0'
|
25
32
|
end
|
@@ -5,8 +5,6 @@ describe GithubClient do
|
|
5
5
|
|
6
6
|
subject do
|
7
7
|
GithubClient.new('https://github.com', '2945e6425da3d5d17ffc', '0a8f686f2835a70a79dbcece2ec63bc5079f40a8')
|
8
|
-
|
9
|
-
# GithubClient.new('https://github.com', '82f971d013e8d637a7e1', '1a1d59e1f8b8afa5f73e9dc9f17e25f7876e64ac')
|
10
8
|
end
|
11
9
|
|
12
10
|
describe "#webserver_authorization_url" do
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/spec_helper.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oauth2-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -61,17 +61,17 @@ dependencies:
|
|
61
61
|
requirement: !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|
64
|
-
- -
|
64
|
+
- - ~>
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version:
|
66
|
+
version: 2.3.3
|
67
67
|
type: :runtime
|
68
68
|
prerelease: false
|
69
69
|
version_requirements: !ruby/object:Gem::Requirement
|
70
70
|
none: false
|
71
71
|
requirements:
|
72
|
-
- -
|
72
|
+
- - ~>
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
74
|
+
version: 2.3.3
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: bundler
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -88,6 +88,86 @@ dependencies:
|
|
88
88
|
- - ~>
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: '1.0'
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: addressable
|
93
|
+
requirement: !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
96
|
+
- - ~>
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: 2.3.3
|
99
|
+
type: :runtime
|
100
|
+
prerelease: false
|
101
|
+
version_requirements: !ruby/object:Gem::Requirement
|
102
|
+
none: false
|
103
|
+
requirements:
|
104
|
+
- - ~>
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: 2.3.3
|
107
|
+
- !ruby/object:Gem::Dependency
|
108
|
+
name: rake
|
109
|
+
requirement: !ruby/object:Gem::Requirement
|
110
|
+
none: false
|
111
|
+
requirements:
|
112
|
+
- - ! '>='
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: '0'
|
115
|
+
type: :development
|
116
|
+
prerelease: false
|
117
|
+
version_requirements: !ruby/object:Gem::Requirement
|
118
|
+
none: false
|
119
|
+
requirements:
|
120
|
+
- - ! '>='
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: '0'
|
123
|
+
- !ruby/object:Gem::Dependency
|
124
|
+
name: rspec
|
125
|
+
requirement: !ruby/object:Gem::Requirement
|
126
|
+
none: false
|
127
|
+
requirements:
|
128
|
+
- - ! '>='
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
type: :development
|
132
|
+
prerelease: false
|
133
|
+
version_requirements: !ruby/object:Gem::Requirement
|
134
|
+
none: false
|
135
|
+
requirements:
|
136
|
+
- - ! '>='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: simplecov
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
none: false
|
143
|
+
requirements:
|
144
|
+
- - ! '>='
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: 0.7.1
|
147
|
+
type: :development
|
148
|
+
prerelease: false
|
149
|
+
version_requirements: !ruby/object:Gem::Requirement
|
150
|
+
none: false
|
151
|
+
requirements:
|
152
|
+
- - ! '>='
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: 0.7.1
|
155
|
+
- !ruby/object:Gem::Dependency
|
156
|
+
name: webmock
|
157
|
+
requirement: !ruby/object:Gem::Requirement
|
158
|
+
none: false
|
159
|
+
requirements:
|
160
|
+
- - ! '>='
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
version: 1.9.0
|
163
|
+
type: :development
|
164
|
+
prerelease: false
|
165
|
+
version_requirements: !ruby/object:Gem::Requirement
|
166
|
+
none: false
|
167
|
+
requirements:
|
168
|
+
- - ! '>='
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
version: 1.9.0
|
91
171
|
description: Create quick and dirty OAuth2 clients
|
92
172
|
email: tiabasnk@gmail.com
|
93
173
|
executables: []
|
@@ -96,13 +176,12 @@ extra_rdoc_files: []
|
|
96
176
|
files:
|
97
177
|
- .gitignore
|
98
178
|
- .travis.yml
|
179
|
+
- CHANGELOG.md
|
99
180
|
- Gemfile
|
100
|
-
- Gemfile.lock
|
101
181
|
- LICENSE.md
|
102
182
|
- README.md
|
103
183
|
- Rakefile
|
104
|
-
- certs/tiabas.pem
|
105
|
-
- doc/README
|
184
|
+
- certs/tiabas-public.pem
|
106
185
|
- examples/github_client.rb
|
107
186
|
- examples/google_client.rb
|
108
187
|
- examples/yammer_client.rb
|
@@ -160,3 +239,4 @@ signing_key:
|
|
160
239
|
specification_version: 3
|
161
240
|
summary: OAuth2 client wrapper in Ruby
|
162
241
|
test_files: []
|
242
|
+
has_rdoc:
|
metadata.gz.sig
CHANGED
Binary file
|
data/Gemfile.lock
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
oauth2-client (1.1.1)
|
5
|
-
addressable
|
6
|
-
bcrypt-ruby (~> 3.0.0)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
addressable (2.3.3)
|
12
|
-
bcrypt-ruby (3.0.1)
|
13
|
-
colorize (0.5.8)
|
14
|
-
coveralls (0.6.0)
|
15
|
-
colorize
|
16
|
-
multi_json (~> 1.3)
|
17
|
-
rest-client
|
18
|
-
simplecov (>= 0.7)
|
19
|
-
thor
|
20
|
-
crack (0.3.2)
|
21
|
-
diff-lcs (1.2.1)
|
22
|
-
json (1.7.7)
|
23
|
-
mime-types (1.21)
|
24
|
-
multi_json (1.6.1)
|
25
|
-
rake (10.0.3)
|
26
|
-
rest-client (1.6.7)
|
27
|
-
mime-types (>= 1.16)
|
28
|
-
rspec (2.13.0)
|
29
|
-
rspec-core (~> 2.13.0)
|
30
|
-
rspec-expectations (~> 2.13.0)
|
31
|
-
rspec-mocks (~> 2.13.0)
|
32
|
-
rspec-core (2.13.0)
|
33
|
-
rspec-expectations (2.13.0)
|
34
|
-
diff-lcs (>= 1.1.3, < 2.0)
|
35
|
-
rspec-mocks (2.13.0)
|
36
|
-
simplecov (0.7.1)
|
37
|
-
multi_json (~> 1.0)
|
38
|
-
simplecov-html (~> 0.7.1)
|
39
|
-
simplecov-html (0.7.1)
|
40
|
-
thor (0.17.0)
|
41
|
-
webmock (1.10.1)
|
42
|
-
addressable (>= 2.2.7)
|
43
|
-
crack (>= 0.3.2)
|
44
|
-
|
45
|
-
PLATFORMS
|
46
|
-
ruby
|
47
|
-
|
48
|
-
DEPENDENCIES
|
49
|
-
bundler (~> 1.0)
|
50
|
-
coveralls
|
51
|
-
json
|
52
|
-
oauth2-client!
|
53
|
-
rake
|
54
|
-
rspec (>= 2.11)
|
55
|
-
simplecov
|
56
|
-
webmock
|