octoauth 1.4.5 → 1.4.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22f9ebaa368b7492936e675f8e8d5d068d30eaa1
4
- data.tar.gz: a857414be43e0e5300db4b20557d20f6f24a1a40
3
+ metadata.gz: b40421375b04770b0bd92920aebc6d10f8548b3f
4
+ data.tar.gz: 39b0e4e57092f049b2cd8a97ca4317f5429e22d7
5
5
  SHA512:
6
- metadata.gz: 6d7e55e199b0e3be2a0e5a9319a39ea83a0fb4f88ffff38ce85f5246dca4af09192d4100044efdff1a2924725f7b9d9477a7ae8cdbb7363dd1856eb76a59a378
7
- data.tar.gz: 5a6023569f42220571d04d12f263bd5bece96e2b5b0fc9d1073e72bf4387dee695822a40e07d0b0b0d68793b91e553bdf3177765c338e5de8750f8b340ae0903
6
+ metadata.gz: 10696bd2082a3dbae414b33b637f4600bdc2f72fd325d8d465dca7db3aa7b30bde39fb24343004010084f6818f8457c3e28042620b39ef13daeb79581f722cbe
7
+ data.tar.gz: 16d461799b14940b43646617b9b30d15319c07b9b76c3cdad1a33a1da262d0e6958022708e2be13d5b567f4cc90c23ae0739675f8603bf4c276449caf82d27a6
data/.circle-ruby ADDED
@@ -0,0 +1,3 @@
1
+ 2.3.1
2
+ 2.2.5
3
+ 2.1.10
data/.gitignore CHANGED
@@ -7,3 +7,4 @@ spec/examples/config_save_test.yml
7
7
  spec/examples/priv_test.yml
8
8
  spec/examples/autosave.yml
9
9
  spec/examples/nil.yml
10
+ spec/examples/write_first_test.yml
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.4.6 / 2016-10-25
2
+
3
+ * [ENHANCEMENT] Update octokit to ~> 4.4.0
4
+
1
5
  # 1.4.5 / 2016-03-05
2
6
 
3
7
  * [ENHANCEMENT] Update octokit to ~> 4.3.0
data/README.md CHANGED
@@ -3,7 +3,7 @@ octoauth
3
3
 
4
4
  [![Gem Version](https://img.shields.io/gem/v/octoauth.svg)](https://rubygems.org/gems/octoauth)
5
5
  [![Dependency Status](https://img.shields.io/gemnasium/akerl/octoauth.svg)](https://gemnasium.com/akerl/octoauth)
6
- [![Build Status](https://img.shields.io/circleci/project/akerl/octoauth.svg)](https://circleci.com/gh/akerl/octoauth)
6
+ [![Build Status](https://img.shields.io/circleci/project/akerl/octoauth/master.svg)](https://circleci.com/gh/akerl/octoauth)
7
7
  [![Coverage Status](https://img.shields.io/codecov/c/github/akerl/octoauth.svg)](https://codecov.io/github/akerl/octoauth)
8
8
  [![Code Quality](https://img.shields.io/codacy/648fd8ebe3374dd4acc5449b8922f2e0.svg)](https://www.codacy.com/app/akerl/octoauth)
9
9
  [![MIT Licensed](https://img.shields.io/badge/license-MIT-green.svg)](https://tldrlegal.com/license/mit-license)
data/circle.yml CHANGED
@@ -1,13 +1,6 @@
1
1
  dependencies:
2
2
  override:
3
- - 'rvm-exec 1.9.3-p551 bundle install'
4
- - 'rvm-exec 2.0.0-p645 bundle install'
5
- - 'rvm-exec 2.1.6 bundle install'
6
- - 'rvm-exec 2.2.2 bundle install'
3
+ - 'for i in $(cat .circle-ruby) ; do rvm-exec $i bundle install || exit 1 ; done'
7
4
  test:
8
5
  override:
9
- - 'rvm-exec 1.9.3-p551 bundle exec rake'
10
- - 'rvm-exec 2.0.0-p645 bundle exec rake'
11
- - 'rvm-exec 2.1.6 bundle exec rake'
12
- - 'rvm-exec 2.2.2 bundle exec rake'
13
-
6
+ - 'for i in $(cat .circle-ruby) ; do rvm-exec $i bundle exec rake || exit 1 ; done'
@@ -26,7 +26,7 @@ module Octoauth
26
26
  def write
27
27
  new = get
28
28
  new[@note] = @token
29
- File.open(@file, 'w', 0600) { |fh| fh.write new.to_yaml }
29
+ File.open(@file, 'w', 0o0600) { |fh| fh.write new.to_yaml }
30
30
  end
31
31
 
32
32
  private
data/octoauth.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'octoauth'
3
- s.version = '1.4.5'
3
+ s.version = '1.4.6'
4
4
  s.date = Time.now.strftime("%Y-%m-%d")
5
5
 
6
6
  s.summary = 'Auth token helper for GitHub API'
@@ -13,14 +13,14 @@ Gem::Specification.new do |s|
13
13
  s.files = `git ls-files`.split
14
14
  s.test_files = `git ls-files spec/*`.split
15
15
 
16
- s.add_dependency 'octokit', '~> 4.3.0'
16
+ s.add_dependency 'octokit', '~> 4.4.0'
17
17
  s.add_dependency 'userinput', '~> 1.0.0'
18
18
 
19
- s.add_development_dependency 'rubocop', '~> 0.37.0'
20
- s.add_development_dependency 'rake', '~> 10.5.0'
19
+ s.add_development_dependency 'rubocop', '~> 0.44.1'
20
+ s.add_development_dependency 'rake', '~> 11.3.0'
21
21
  s.add_development_dependency 'codecov', '~> 0.1.1'
22
- s.add_development_dependency 'rspec', '~> 3.4.0'
23
- s.add_development_dependency 'fuubar', '~> 2.0.0'
24
- s.add_development_dependency 'webmock', '~> 1.24.0'
25
- s.add_development_dependency 'vcr', '~> 3.0.0'
22
+ s.add_development_dependency 'rspec', '~> 3.5.0'
23
+ s.add_development_dependency 'fuubar', '~> 2.2.0'
24
+ s.add_development_dependency 'webmock', '~> 2.1.0'
25
+ s.add_development_dependency 'vcr', '~> 3.0.3'
26
26
  end
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: https://<USER>:<PASSWORD>@example.org/api/v3/authorizations
5
+ uri: https://example.org/api/v3/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:39 GMT
26
+ - Mon, 08 Aug 2016 01:30:56 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
- - '4972'
36
+ - '4990'
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":23673464,"url":"https://example.org/api/v3/authorizations/23673464","app":{"name":"create_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"5296cd63dbc0add3fb40fd96e5c6bf2346464e15a6400183930c6765d8894899","token_last_eight":"f1c8d660","note":"create_token/bean","note_url":null,"created_at":"2015-10-26T02:23:06Z","updated_at":"2015-10-26T02:23:06Z","scopes":[],"fingerprint":null},{"id":23673465,"url":"https://example.org/api/v3/authorizations/23673465","app":{"name":"two_factor_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"cf1ef3274bbd1cb0f25cf3c0ae62bba97fb19d6d1278da37c87b60bbbbfd58e9","token_last_eight":"6f534ee7","note":"two_factor_token/bean","note_url":null,"created_at":"2015-10-26T02:23:06Z","updated_at":"2015-10-26T02:23:06Z","scopes":[],"fingerprint":null},{"id":23673471,"url":"https://example.org/api/v3/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://example.org/api/v3/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://example.org/api/v3/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://example.org/api/v3/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}]'
66
- http_version:
67
- recorded_at: Mon, 26 Oct 2015 02:45:39 GMT
68
- - request:
69
- method: delete
70
- uri: https://<USER>:<PASSWORD>@example.org/api/v3/authorizations/23673464
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:39 GMT
92
- Status:
93
- - 204 No Content
94
- X-Ratelimit-Limit:
95
- - '5000'
96
- X-Ratelimit-Remaining:
97
- - '4971'
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://example.org/api/v3/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://example.org/api/v3/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://example.org/api/v3/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}]'
124
64
  http_version:
125
- recorded_at: Mon, 26 Oct 2015 02:45:40 GMT
65
+ recorded_at: Mon, 08 Aug 2016 01:30:56 GMT
126
66
  - request:
127
67
  method: post
128
- uri: https://<USER>:<PASSWORD>@example.org/api/v3/authorizations
68
+ uri: https://example.org/api/v3/authorizations
129
69
  body:
130
70
  encoding: UTF-8
131
71
  string: '{"note":"create_token/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:40 GMT
89
+ - Mon, 08 Aug 2016 01:30:56 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
- - '4970'
99
+ - '4989'
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://example.org/api/v3/authorizations/23673997
166
104
  Vary:
167
105
  - Accept, Authorization, Cookie, X-GitHub-OTP
168
106
  - Accept-Encoding
107
+ Location:
108
+ - https://example.org/api/v3/authorizations/44102340
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":23673997,"url":"https://example.org/api/v3/authorizations/23673997","app":{"name":"create_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"created_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}'
128
+ string: '{"id":44102340,"url":"https://example.org/api/v3/authorizations/44102340","app":{"name":"create_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"created_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}'
191
129
  http_version:
192
- recorded_at: Mon, 26 Oct 2015 02:45:40 GMT
193
- recorded_with: VCR 2.9.3
130
+ recorded_at: Mon, 08 Aug 2016 01:30:56 GMT
131
+ recorded_with: VCR 3.0.3
@@ -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:38 GMT
26
+ - Mon, 08 Aug 2016 01:30:55 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
- - '4981'
36
+ - '4997'
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":23673435,"url":"https://api.github.com/authorizations/23673435","app":{"name":"autosave_test/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"d04e11d46f3358c2ccc9ff61a10af5e4bc9de0c468404f6821e6ca3342c6477f","token_last_eight":"4c625306","note":"autosave_test/bean","note_url":null,"created_at":"2015-10-26T02:22:04Z","updated_at":"2015-10-26T02:22:04Z","scopes":[],"fingerprint":null},{"id":23673463,"url":"https://api.github.com/authorizations/23673463","app":{"name":"existing_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"81058c676b8a2de95487b5ad9ed1090f74efa8a581ba69487f274c4552b4716a","token_last_eight":"f9a2fcda","note":"existing_token/bean","note_url":null,"created_at":"2015-10-26T02:23:05Z","updated_at":"2015-10-26T02:23:05Z","scopes":[],"fingerprint":null},{"id":23673464,"url":"https://api.github.com/authorizations/23673464","app":{"name":"create_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"5296cd63dbc0add3fb40fd96e5c6bf2346464e15a6400183930c6765d8894899","token_last_eight":"f1c8d660","note":"create_token/bean","note_url":null,"created_at":"2015-10-26T02:23:06Z","updated_at":"2015-10-26T02:23:06Z","scopes":[],"fingerprint":null},{"id":23673465,"url":"https://api.github.com/authorizations/23673465","app":{"name":"two_factor_token/bean","url":"https://developer.github.com/v3/oauth_authorizations/","client_id":"00000000000000000000"},"token":"","hashed_token":"cf1ef3274bbd1cb0f25cf3c0ae62bba97fb19d6d1278da37c87b60bbbbfd58e9","token_last_eight":"6f534ee7","note":"two_factor_token/bean","note_url":null,"created_at":"2015-10-26T02:23:06Z","updated_at":"2015-10-26T02:23:06Z","scopes":[],"fingerprint":null},{"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}]'
66
- http_version:
67
- recorded_at: Mon, 26 Oct 2015 02:45:38 GMT
68
- - request:
69
- method: delete
70
- uri: https://<USER>:<PASSWORD>@api.github.com/authorizations/23673435
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:38 GMT
92
- Status:
93
- - 204 No Content
94
- X-Ratelimit-Limit:
95
- - '5000'
96
- X-Ratelimit-Remaining:
97
- - '4980'
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}]'
124
64
  http_version:
125
- recorded_at: Mon, 26 Oct 2015 02:45:38 GMT
65
+ recorded_at: Mon, 08 Aug 2016 01:30:55 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":"autosave_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:38 GMT
89
+ - Mon, 08 Aug 2016 01:30:55 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
- - '4979'
99
+ - '4996'
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/23673993
166
104
  Vary:
167
105
  - Accept, Authorization, Cookie, X-GitHub-OTP
168
106
  - Accept-Encoding
107
+ Location:
108
+ - https://api.github.com/authorizations/44102335
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":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":"autosaved_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}'
128
+ string: '{"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":"autosaved_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}'
191
129
  http_version:
192
- recorded_at: Mon, 26 Oct 2015 02:45:38 GMT
193
- recorded_with: VCR 2.9.3
130
+ recorded_at: Mon, 08 Aug 2016 01:30:55 GMT
131
+ recorded_with: VCR 3.0.3