octoauth 1.4.5 → 1.4.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://<USER>:<PASSWORD>@api.github.com/authorizations
5
+ uri: https://api.github.com/authorizations
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -10,7 +10,7 @@ http_interactions:
10
10
  Accept:
11
11
  - application/vnd.github.v3+json
12
12
  User-Agent:
13
- - Octokit Ruby Gem 4.1.1
13
+ - Octokit Ruby Gem 4.3.0
14
14
  Content-Type:
15
15
  - application/json
16
16
  Accept-Encoding:
@@ -23,7 +23,7 @@ http_interactions:
23
23
  Server:
24
24
  - GitHub.com
25
25
  Date:
26
- - Mon, 26 Oct 2015 02:45:40 GMT
26
+ - Mon, 08 Aug 2016 01:30:57 GMT
27
27
  Content-Type:
28
28
  - application/json; charset=utf-8
29
29
  Transfer-Encoding:
@@ -33,9 +33,9 @@ http_interactions:
33
33
  X-Ratelimit-Limit:
34
34
  - '5000'
35
35
  X-Ratelimit-Remaining:
36
- - '4966'
36
+ - '4986'
37
37
  X-Ratelimit-Reset:
38
- - '1445829724'
38
+ - '1470623455'
39
39
  Cache-Control:
40
40
  - private, max-age=60, s-maxage=60
41
41
  Vary:
@@ -43,89 +43,29 @@ http_interactions:
43
43
  - Accept-Encoding
44
44
  X-Github-Media-Type:
45
45
  - github.v3; format=json
46
- X-Xss-Protection:
47
- - 1; mode=block
48
- X-Frame-Options:
49
- - deny
50
- Content-Security-Policy:
51
- - default-src 'none'
52
- Access-Control-Allow-Credentials:
53
- - 'true'
54
46
  Access-Control-Expose-Headers:
55
47
  - ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
56
48
  X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
57
49
  Access-Control-Allow-Origin:
58
50
  - "*"
59
- Strict-Transport-Security:
60
- - max-age=31536000; includeSubdomains; preload
61
- X-Content-Type-Options:
62
- - nosniff
63
- body:
64
- encoding: ASCII-8BIT
65
- string: '[{"id":23673471,"url":"https://api.github.com/authorizations/23673471","app":{"name":"write_first_test/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"e1ffd7c1465879b3c776c7be6fe7777f64f2dddb6d09da06f264e563e7c49fa7","token_last_eight":"49a5dcbd","note":"write_first_test/bean","note_url":null,"created_at":"2015-10-26T02:23:24Z","updated_at":"2015-10-26T02:23:24Z","scopes":[],"fingerprint":null},{"id":23673992,"url":"https://api.github.com/authorizations/23673992","app":{"name":"requesting_scopes/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"e41f77be9fe2994e5505437dce25574472b2d64f512305ccb25af6ec36cc9fc5","token_last_eight":"fc1217c4","note":"requesting_scopes/bean","note_url":null,"created_at":"2015-10-26T02:45:38Z","updated_at":"2015-10-26T02:45:38Z","scopes":["gist","delete_repo"],"fingerprint":null},{"id":23673993,"url":"https://api.github.com/authorizations/23673993","app":{"name":"autosave_test/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"db9bfd126cdb10eca25a06df972099ef8f1ff85014a982755efc2f0ef07bc975","token_last_eight":"da02795d","note":"autosave_test/bean","note_url":null,"created_at":"2015-10-26T02:45:38Z","updated_at":"2015-10-26T02:45:38Z","scopes":[],"fingerprint":null},{"id":23673996,"url":"https://api.github.com/authorizations/23673996","app":{"name":"existing_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"55a64a37a4d738582ec4d054ce00591588a04ee8ec55a4dda4d53aaf8057a98f","token_last_eight":"c1e9e2ec","note":"existing_token/bean","note_url":null,"created_at":"2015-10-26T02:45:39Z","updated_at":"2015-10-26T02:45:39Z","scopes":[],"fingerprint":null},{"id":23673997,"url":"https://api.github.com/authorizations/23673997","app":{"name":"create_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"9be225308ddbc5da3152e399ca3937f5bd19c784dc85f9975015eb5e775c7a00","token_last_eight":"dde1fdd1","note":"create_token/bean","note_url":null,"created_at":"2015-10-26T02:45:40Z","updated_at":"2015-10-26T02:45:40Z","scopes":[],"fingerprint":null},{"id":23673998,"url":"https://api.github.com/authorizations/23673998","app":{"name":"two_factor_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"343a80905d4861145447d5d965051ae2e4d181d01240e070bf26b8e79eb5e85b","token_last_eight":"982feb05","note":"two_factor_token/bean","note_url":null,"created_at":"2015-10-26T02:45:40Z","updated_at":"2015-10-26T02:45:40Z","scopes":[],"fingerprint":null}]'
66
- http_version:
67
- recorded_at: Mon, 26 Oct 2015 02:45:40 GMT
68
- - request:
69
- method: delete
70
- uri: https://<USER>:<PASSWORD>@api.github.com/authorizations/23673471
71
- body:
72
- encoding: UTF-8
73
- string: "{}"
74
- headers:
75
- Accept:
76
- - application/vnd.github.v3+json
77
- User-Agent:
78
- - Octokit Ruby Gem 4.1.1
79
- Content-Type:
80
- - application/json
81
- Accept-Encoding:
82
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
83
- response:
84
- status:
85
- code: 204
86
- message: No Content
87
- headers:
88
- Server:
89
- - GitHub.com
90
- Date:
91
- - Mon, 26 Oct 2015 02:45:40 GMT
92
- Status:
93
- - 204 No Content
94
- X-Ratelimit-Limit:
95
- - '5000'
96
- X-Ratelimit-Remaining:
97
- - '4965'
98
- X-Ratelimit-Reset:
99
- - '1445829724'
100
- X-Github-Media-Type:
101
- - github.v3; format=json
102
- X-Xss-Protection:
103
- - 1; mode=block
104
- X-Frame-Options:
105
- - deny
106
51
  Content-Security-Policy:
107
52
  - default-src 'none'
108
- Access-Control-Allow-Credentials:
109
- - 'true'
110
- Access-Control-Expose-Headers:
111
- - ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
112
- X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
113
- Access-Control-Allow-Origin:
114
- - "*"
115
53
  Strict-Transport-Security:
116
54
  - max-age=31536000; includeSubdomains; preload
117
55
  X-Content-Type-Options:
118
56
  - nosniff
119
- Vary:
120
- - Accept-Encoding
57
+ X-Frame-Options:
58
+ - deny
59
+ X-Xss-Protection:
60
+ - 1; mode=block
121
61
  body:
122
- encoding: UTF-8
123
- string: ''
62
+ encoding: ASCII-8BIT
63
+ string: '[{"id":44102334,"url":"https://api.github.com/authorizations/44102334","app":{"name":"requesting_scopes/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"edd6c8f41d0c8aa694dcc13650882b3f4496a1e000cf23c8d480c21965ac2080","token_last_eight":"ddf64216","note":"requesting_scopes/bean","note_url":null,"created_at":"2016-08-08T01:30:55Z","updated_at":"2016-08-08T01:30:55Z","scopes":["gist","delete_repo"],"fingerprint":null},{"id":44102335,"url":"https://api.github.com/authorizations/44102335","app":{"name":"autosave_test/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"8330b0b6605edb4668d26d5e3aa081d99a2bc09daaf081512fda5687f70923b0","token_last_eight":"e501b9f8","note":"autosave_test/bean","note_url":null,"created_at":"2016-08-08T01:30:55Z","updated_at":"2016-08-08T01:30:55Z","scopes":[],"fingerprint":null},{"id":44102337,"url":"https://api.github.com/authorizations/44102337","app":{"name":"existing_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"1949df82da02bdbc43ead25b3184fa25e66715b41a5cdd071eccfec396770a82","token_last_eight":"8aff0fb9","note":"existing_token/bean","note_url":null,"created_at":"2016-08-08T01:30:56Z","updated_at":"2016-08-08T01:30:56Z","scopes":[],"fingerprint":null},{"id":44102340,"url":"https://api.github.com/authorizations/44102340","app":{"name":"create_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"5faf76dc41257005d7380584aedcb5ce0e80631334da4510bb2ea808fbdc02c8","token_last_eight":"f5bb1d26","note":"create_token/bean","note_url":null,"created_at":"2016-08-08T01:30:56Z","updated_at":"2016-08-08T01:30:56Z","scopes":[],"fingerprint":null},{"id":44102341,"url":"https://api.github.com/authorizations/44102341","app":{"name":"two_factor_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"46f6b204e62d2f697856873ad654398566e51309db1107edd56afee1f6302930","token_last_eight":"5f2de63c","note":"two_factor_token/bean","note_url":null,"created_at":"2016-08-08T01:30:57Z","updated_at":"2016-08-08T01:30:57Z","scopes":[],"fingerprint":null}]'
124
64
  http_version:
125
- recorded_at: Mon, 26 Oct 2015 02:45:41 GMT
65
+ recorded_at: Mon, 08 Aug 2016 01:30:57 GMT
126
66
  - request:
127
67
  method: post
128
- uri: https://<USER>:<PASSWORD>@api.github.com/authorizations
68
+ uri: https://api.github.com/authorizations
129
69
  body:
130
70
  encoding: UTF-8
131
71
  string: '{"note":"write_first_test/bean","scopes":[]}'
@@ -133,7 +73,7 @@ http_interactions:
133
73
  Accept:
134
74
  - application/vnd.github.v3+json
135
75
  User-Agent:
136
- - Octokit Ruby Gem 4.1.1
76
+ - Octokit Ruby Gem 4.3.0
137
77
  Content-Type:
138
78
  - application/json
139
79
  Accept-Encoding:
@@ -146,7 +86,7 @@ http_interactions:
146
86
  Server:
147
87
  - GitHub.com
148
88
  Date:
149
- - Mon, 26 Oct 2015 02:45:41 GMT
89
+ - Mon, 08 Aug 2016 01:30:57 GMT
150
90
  Content-Type:
151
91
  - application/json; charset=utf-8
152
92
  Content-Length:
@@ -156,38 +96,36 @@ http_interactions:
156
96
  X-Ratelimit-Limit:
157
97
  - '5000'
158
98
  X-Ratelimit-Remaining:
159
- - '4964'
99
+ - '4985'
160
100
  X-Ratelimit-Reset:
161
- - '1445829724'
101
+ - '1470623455'
162
102
  Cache-Control:
163
103
  - private, max-age=60, s-maxage=60
164
- Location:
165
- - https://api.github.com/authorizations/23674000
166
104
  Vary:
167
105
  - Accept, Authorization, Cookie, X-GitHub-OTP
168
106
  - Accept-Encoding
107
+ Location:
108
+ - https://api.github.com/authorizations/44102342
169
109
  X-Github-Media-Type:
170
110
  - github.v3; format=json
171
- X-Xss-Protection:
172
- - 1; mode=block
173
- X-Frame-Options:
174
- - deny
175
- Content-Security-Policy:
176
- - default-src 'none'
177
- Access-Control-Allow-Credentials:
178
- - 'true'
179
111
  Access-Control-Expose-Headers:
180
112
  - ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
181
113
  X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
182
114
  Access-Control-Allow-Origin:
183
115
  - "*"
116
+ Content-Security-Policy:
117
+ - default-src 'none'
184
118
  Strict-Transport-Security:
185
119
  - max-age=31536000; includeSubdomains; preload
186
120
  X-Content-Type-Options:
187
121
  - nosniff
122
+ X-Frame-Options:
123
+ - deny
124
+ X-Xss-Protection:
125
+ - 1; mode=block
188
126
  body:
189
127
  encoding: UTF-8
190
- string: '{"id":23674000,"url":"https://api.github.com/authorizations/23674000","app":{"name":"write_first_test/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"write_first_test_token","hashed_token":"e636e08ef6d6a5fed226e42d69a9a7885324337d313eea93727ab79c19b3d81b","token_last_eight":"1f6e7bdf","note":"write_first_test/bean","note_url":null,"created_at":"2015-10-26T02:45:41Z","updated_at":"2015-10-26T02:45:41Z","scopes":[],"fingerprint":null}'
128
+ string: '{"id":44102342,"url":"https://api.github.com/authorizations/44102342","app":{"name":"write_first_test/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"write_first_test_token","hashed_token":"e54a047c1c4269f92fc237452a1571c7320b4eb76772ec8ad7a997878a75c8c6","token_last_eight":"1d1df405","note":"write_first_test/bean","note_url":null,"created_at":"2016-08-08T01:30:57Z","updated_at":"2016-08-08T01:30:57Z","scopes":[],"fingerprint":null}'
191
129
  http_version:
192
- recorded_at: Mon, 26 Oct 2015 02:45:41 GMT
193
- recorded_with: VCR 2.9.3
130
+ recorded_at: Mon, 08 Aug 2016 01:30:57 GMT
131
+ recorded_with: VCR 3.0.3
@@ -7,10 +7,6 @@ LOGIN = ENV['OCTOAUTH_LOGIN'] || 'user'
7
7
  PASSWORD = ENV['OCTOAUTH_PASSWORD'] || 'pw'
8
8
  TWOFACTOR = ENV['OCTOAUTH_TFA'] || '123456'
9
9
 
10
- ##
11
- # Shim object for mocking auth resources
12
- AuthShim = Struct.new(:note, :token)
13
-
14
10
  describe Octoauth do
15
11
  describe Octoauth::Auth do
16
12
  describe '#initialize' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octoauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.5
4
+ version: 1.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-06 00:00:00.000000000 Z
11
+ date: 2016-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 4.3.0
19
+ version: 4.4.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 4.3.0
26
+ version: 4.4.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: userinput
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.37.0
47
+ version: 0.44.1
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.37.0
54
+ version: 0.44.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 10.5.0
61
+ version: 11.3.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 10.5.0
68
+ version: 11.3.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: codecov
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -86,62 +86,63 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 3.4.0
89
+ version: 3.5.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 3.4.0
96
+ version: 3.5.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: fuubar
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 2.0.0
103
+ version: 2.2.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 2.0.0
110
+ version: 2.2.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: webmock
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.24.0
117
+ version: 2.1.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 1.24.0
124
+ version: 2.1.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: vcr
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 3.0.0
131
+ version: 3.0.3
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 3.0.0
138
+ version: 3.0.3
139
139
  description: Lightweight wrapper to sanely handle OAuth tokens with Octokit
140
140
  email: me@lesaker.org
141
141
  executables: []
142
142
  extensions: []
143
143
  extra_rdoc_files: []
144
144
  files:
145
+ - ".circle-ruby"
145
146
  - ".gitignore"
146
147
  - ".prospectus"
147
148
  - ".rspec"
@@ -157,7 +158,6 @@ files:
157
158
  - lib/octoauth/configfile.rb
158
159
  - octoauth.gemspec
159
160
  - spec/examples/existing_token.yml
160
- - spec/examples/write_first_test.yml
161
161
  - spec/fixtures/cassettes/alternate_endpoints.yml
162
162
  - spec/fixtures/cassettes/autosaving_config_file.yml
163
163
  - spec/fixtures/cassettes/create_token.yml
@@ -195,7 +195,6 @@ specification_version: 4
195
195
  summary: Auth token helper for GitHub API
196
196
  test_files:
197
197
  - spec/examples/existing_token.yml
198
- - spec/examples/write_first_test.yml
199
198
  - spec/fixtures/cassettes/alternate_endpoints.yml
200
199
  - spec/fixtures/cassettes/autosaving_config_file.yml
201
200
  - spec/fixtures/cassettes/create_token.yml
@@ -1,2 +0,0 @@
1
- ---
2
- write_first_test: write_first_test_token