targit 0.0.6 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/README.md +36 -0
  4. data/bin/targit +20 -7
  5. data/lib/targit.rb +1 -0
  6. data/lib/targit/asset.rb +8 -24
  7. data/lib/targit/client.rb +22 -0
  8. data/lib/targit/release.rb +6 -5
  9. data/lib/targit/version.rb +1 -1
  10. data/spec/examples/alpha +1 -0
  11. data/spec/examples/beta +1 -0
  12. data/spec/fixtures/cassettes/asset_autocreate_release.yml +272 -0
  13. data/spec/fixtures/cassettes/asset_existence_check_fail.yml +206 -0
  14. data/spec/fixtures/cassettes/asset_existence_check_pass.yml +206 -0
  15. data/spec/fixtures/cassettes/asset_metadata_absent.yml +209 -0
  16. data/spec/fixtures/cassettes/asset_metadata_present.yml +670 -0
  17. data/spec/fixtures/cassettes/asset_url_absent.yml +405 -0
  18. data/spec/fixtures/cassettes/asset_url_present.yml +674 -0
  19. data/spec/fixtures/cassettes/asset_without_release.yml +70 -0
  20. data/spec/fixtures/cassettes/block_existing_asset.yml +206 -0
  21. data/spec/fixtures/cassettes/create_new_asset.yml +674 -0
  22. data/spec/fixtures/cassettes/create_new_release.yml +205 -0
  23. data/spec/fixtures/cassettes/current_asset.yml +208 -0
  24. data/spec/fixtures/cassettes/current_io_asset.yml +70 -0
  25. data/spec/fixtures/cassettes/current_releases.yml +70 -0
  26. data/spec/fixtures/cassettes/delete_asset.yml +541 -0
  27. data/spec/fixtures/cassettes/no_release_found.yml +70 -0
  28. data/spec/fixtures/cassettes/release_object.yml +70 -0
  29. data/spec/fixtures/cassettes/replace_existing_asset.yml +867 -0
  30. data/spec/spec_helper.rb +18 -0
  31. data/spec/targit/asset_spec.rb +212 -0
  32. data/spec/targit/release_spec.rb +40 -0
  33. data/spec/targit/version_spec.rb +9 -0
  34. data/spec/targit_spec.rb +17 -0
  35. data/targit.gemspec +2 -0
  36. metadata +78 -4
@@ -0,0 +1,670 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.github.com/repos/akerl/targit/releases?per_page=100
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/vnd.github.v3+json
12
+ User-Agent:
13
+ - Octokit Ruby Gem 3.2.0
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Server:
22
+ - GitHub.com
23
+ Date:
24
+ - Sat, 12 Jul 2014 22:37:16 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Status:
30
+ - 200 OK
31
+ X-Ratelimit-Limit:
32
+ - '5000'
33
+ X-Ratelimit-Remaining:
34
+ - '4395'
35
+ X-Ratelimit-Reset:
36
+ - '1405206221'
37
+ Cache-Control:
38
+ - private, max-age=60, s-maxage=60
39
+ X-Oauth-Scopes:
40
+ - public_repo
41
+ X-Accepted-Oauth-Scopes:
42
+ - ''
43
+ Vary:
44
+ - Accept, Authorization, Cookie, X-GitHub-OTP
45
+ - Accept-Encoding
46
+ X-Github-Media-Type:
47
+ - github.v3; format=json
48
+ X-Xss-Protection:
49
+ - 1; mode=block
50
+ X-Frame-Options:
51
+ - deny
52
+ Content-Security-Policy:
53
+ - default-src 'none'
54
+ Access-Control-Allow-Credentials:
55
+ - 'true'
56
+ Access-Control-Expose-Headers:
57
+ - ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
58
+ X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
59
+ Access-Control-Allow-Origin:
60
+ - "*"
61
+ Strict-Transport-Security:
62
+ - max-age=31536000; includeSubdomains
63
+ X-Content-Type-Options:
64
+ - nosniff
65
+ body:
66
+ encoding: UTF-8
67
+ string: '[{"url":"https://api.github.com/repos/akerl/targit/releases/426209","assets_url":"https://api.github.com/repos/akerl/targit/releases/426209/assets","upload_url":"https://uploads.github.com/repos/akerl/targit/releases/426209/assets{?name}","html_url":"https://github.com/akerl/targit/releases/tag/more_testing","id":426209,"tag_name":"more_testing","target_commitish":"master","name":null,"draft":false,"author":{"login":"akerl","id":491209,"avatar_url":"https://avatars.githubusercontent.com/u/491209?","gravatar_id":"819691dc5c197c042ccd16b894545673","url":"https://api.github.com/users/akerl","html_url":"https://github.com/akerl","followers_url":"https://api.github.com/users/akerl/followers","following_url":"https://api.github.com/users/akerl/following{/other_user}","gists_url":"https://api.github.com/users/akerl/gists{/gist_id}","starred_url":"https://api.github.com/users/akerl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akerl/subscriptions","organizations_url":"https://api.github.com/users/akerl/orgs","repos_url":"https://api.github.com/users/akerl/repos","events_url":"https://api.github.com/users/akerl/events{/privacy}","received_events_url":"https://api.github.com/users/akerl/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2014-07-12T20:38:20Z","published_at":"2014-07-12T22:37:07Z","assets":[],"tarball_url":"https://api.github.com/repos/akerl/targit/tarball/more_testing","zipball_url":"https://api.github.com/repos/akerl/targit/zipball/more_testing","body":null},{"url":"https://api.github.com/repos/akerl/targit/releases/426208","assets_url":"https://api.github.com/repos/akerl/targit/releases/426208/assets","upload_url":"https://uploads.github.com/repos/akerl/targit/releases/426208/assets{?name}","html_url":"https://github.com/akerl/targit/releases/tag/testing","id":426208,"tag_name":"testing","target_commitish":"master","name":null,"draft":false,"author":{"login":"akerl","id":491209,"avatar_url":"https://avatars.githubusercontent.com/u/491209?","gravatar_id":"819691dc5c197c042ccd16b894545673","url":"https://api.github.com/users/akerl","html_url":"https://github.com/akerl","followers_url":"https://api.github.com/users/akerl/followers","following_url":"https://api.github.com/users/akerl/following{/other_user}","gists_url":"https://api.github.com/users/akerl/gists{/gist_id}","starred_url":"https://api.github.com/users/akerl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akerl/subscriptions","organizations_url":"https://api.github.com/users/akerl/orgs","repos_url":"https://api.github.com/users/akerl/repos","events_url":"https://api.github.com/users/akerl/events{/privacy}","received_events_url":"https://api.github.com/users/akerl/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2014-07-12T20:38:20Z","published_at":"2014-07-12T22:37:06Z","assets":[],"tarball_url":"https://api.github.com/repos/akerl/targit/tarball/testing","zipball_url":"https://api.github.com/repos/akerl/targit/zipball/testing","body":null}]'
68
+ http_version:
69
+ recorded_at: Sat, 12 Jul 2014 22:37:14 GMT
70
+ - request:
71
+ method: post
72
+ uri: https://api.github.com/repos/akerl/targit/releases
73
+ body:
74
+ encoding: UTF-8
75
+ string: '{"tag_name":"meta_testing"}'
76
+ headers:
77
+ Accept:
78
+ - application/vnd.github.v3+json
79
+ User-Agent:
80
+ - Octokit Ruby Gem 3.2.0
81
+ Accept-Encoding:
82
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
83
+ response:
84
+ status:
85
+ code: 201
86
+ message: Created
87
+ headers:
88
+ Server:
89
+ - GitHub.com
90
+ Date:
91
+ - Sat, 12 Jul 2014 22:37:16 GMT
92
+ Content-Type:
93
+ - application/json; charset=utf-8
94
+ Status:
95
+ - 201 Created
96
+ X-Ratelimit-Limit:
97
+ - '5000'
98
+ X-Ratelimit-Remaining:
99
+ - '4394'
100
+ X-Ratelimit-Reset:
101
+ - '1405206221'
102
+ Cache-Control:
103
+ - private, max-age=60, s-maxage=60
104
+ X-Oauth-Scopes:
105
+ - public_repo
106
+ X-Accepted-Oauth-Scopes:
107
+ - ''
108
+ Location:
109
+ - https://api.github.com/repos/akerl/targit/releases/426210
110
+ Vary:
111
+ - Accept, Authorization, Cookie, X-GitHub-OTP
112
+ X-Github-Media-Type:
113
+ - github.v3; format=json
114
+ X-Xss-Protection:
115
+ - 1; mode=block
116
+ X-Frame-Options:
117
+ - deny
118
+ Content-Security-Policy:
119
+ - default-src 'none'
120
+ Content-Length:
121
+ - '1549'
122
+ Access-Control-Allow-Credentials:
123
+ - 'true'
124
+ Access-Control-Expose-Headers:
125
+ - ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
126
+ X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
127
+ Access-Control-Allow-Origin:
128
+ - "*"
129
+ Strict-Transport-Security:
130
+ - max-age=31536000; includeSubdomains
131
+ X-Content-Type-Options:
132
+ - nosniff
133
+ body:
134
+ encoding: UTF-8
135
+ string: '{"url":"https://api.github.com/repos/akerl/targit/releases/426210","assets_url":"https://api.github.com/repos/akerl/targit/releases/426210/assets","upload_url":"https://uploads.github.com/repos/akerl/targit/releases/426210/assets{?name}","html_url":"https://github.com/akerl/targit/releases/tag/meta_testing","id":426210,"tag_name":"meta_testing","target_commitish":"master","name":null,"draft":false,"author":{"login":"akerl","id":491209,"avatar_url":"https://avatars.githubusercontent.com/u/491209?","gravatar_id":"819691dc5c197c042ccd16b894545673","url":"https://api.github.com/users/akerl","html_url":"https://github.com/akerl","followers_url":"https://api.github.com/users/akerl/followers","following_url":"https://api.github.com/users/akerl/following{/other_user}","gists_url":"https://api.github.com/users/akerl/gists{/gist_id}","starred_url":"https://api.github.com/users/akerl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akerl/subscriptions","organizations_url":"https://api.github.com/users/akerl/orgs","repos_url":"https://api.github.com/users/akerl/repos","events_url":"https://api.github.com/users/akerl/events{/privacy}","received_events_url":"https://api.github.com/users/akerl/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2014-07-12T20:38:20Z","published_at":"2014-07-12T22:37:16Z","assets":[],"tarball_url":"https://api.github.com/repos/akerl/targit/tarball/meta_testing","zipball_url":"https://api.github.com/repos/akerl/targit/zipball/meta_testing","body":null}'
136
+ http_version:
137
+ recorded_at: Sat, 12 Jul 2014 22:37:14 GMT
138
+ - request:
139
+ method: get
140
+ uri: https://api.github.com/repos/akerl/targit/releases?per_page=100
141
+ body:
142
+ encoding: US-ASCII
143
+ string: ''
144
+ headers:
145
+ Accept:
146
+ - application/vnd.github.v3+json
147
+ User-Agent:
148
+ - Octokit Ruby Gem 3.2.0
149
+ Accept-Encoding:
150
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
151
+ response:
152
+ status:
153
+ code: 200
154
+ message: OK
155
+ headers:
156
+ Server:
157
+ - GitHub.com
158
+ Date:
159
+ - Sat, 12 Jul 2014 22:37:16 GMT
160
+ Content-Type:
161
+ - application/json; charset=utf-8
162
+ Transfer-Encoding:
163
+ - chunked
164
+ Status:
165
+ - 200 OK
166
+ X-Ratelimit-Limit:
167
+ - '5000'
168
+ X-Ratelimit-Remaining:
169
+ - '4393'
170
+ X-Ratelimit-Reset:
171
+ - '1405206221'
172
+ Cache-Control:
173
+ - private, max-age=60, s-maxage=60
174
+ X-Oauth-Scopes:
175
+ - public_repo
176
+ X-Accepted-Oauth-Scopes:
177
+ - ''
178
+ Vary:
179
+ - Accept, Authorization, Cookie, X-GitHub-OTP
180
+ - Accept-Encoding
181
+ X-Github-Media-Type:
182
+ - github.v3; format=json
183
+ X-Xss-Protection:
184
+ - 1; mode=block
185
+ X-Frame-Options:
186
+ - deny
187
+ Content-Security-Policy:
188
+ - default-src 'none'
189
+ Access-Control-Allow-Credentials:
190
+ - 'true'
191
+ Access-Control-Expose-Headers:
192
+ - ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
193
+ X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
194
+ Access-Control-Allow-Origin:
195
+ - "*"
196
+ Strict-Transport-Security:
197
+ - max-age=31536000; includeSubdomains
198
+ X-Content-Type-Options:
199
+ - nosniff
200
+ body:
201
+ encoding: UTF-8
202
+ string: '[{"url":"https://api.github.com/repos/akerl/targit/releases/426210","assets_url":"https://api.github.com/repos/akerl/targit/releases/426210/assets","upload_url":"https://uploads.github.com/repos/akerl/targit/releases/426210/assets{?name}","html_url":"https://github.com/akerl/targit/releases/tag/meta_testing","id":426210,"tag_name":"meta_testing","target_commitish":"master","name":null,"draft":false,"author":{"login":"akerl","id":491209,"avatar_url":"https://avatars.githubusercontent.com/u/491209?","gravatar_id":"819691dc5c197c042ccd16b894545673","url":"https://api.github.com/users/akerl","html_url":"https://github.com/akerl","followers_url":"https://api.github.com/users/akerl/followers","following_url":"https://api.github.com/users/akerl/following{/other_user}","gists_url":"https://api.github.com/users/akerl/gists{/gist_id}","starred_url":"https://api.github.com/users/akerl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akerl/subscriptions","organizations_url":"https://api.github.com/users/akerl/orgs","repos_url":"https://api.github.com/users/akerl/repos","events_url":"https://api.github.com/users/akerl/events{/privacy}","received_events_url":"https://api.github.com/users/akerl/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2014-07-12T20:38:20Z","published_at":"2014-07-12T22:37:16Z","assets":[],"tarball_url":"https://api.github.com/repos/akerl/targit/tarball/meta_testing","zipball_url":"https://api.github.com/repos/akerl/targit/zipball/meta_testing","body":null},{"url":"https://api.github.com/repos/akerl/targit/releases/426209","assets_url":"https://api.github.com/repos/akerl/targit/releases/426209/assets","upload_url":"https://uploads.github.com/repos/akerl/targit/releases/426209/assets{?name}","html_url":"https://github.com/akerl/targit/releases/tag/more_testing","id":426209,"tag_name":"more_testing","target_commitish":"master","name":null,"draft":false,"author":{"login":"akerl","id":491209,"avatar_url":"https://avatars.githubusercontent.com/u/491209?","gravatar_id":"819691dc5c197c042ccd16b894545673","url":"https://api.github.com/users/akerl","html_url":"https://github.com/akerl","followers_url":"https://api.github.com/users/akerl/followers","following_url":"https://api.github.com/users/akerl/following{/other_user}","gists_url":"https://api.github.com/users/akerl/gists{/gist_id}","starred_url":"https://api.github.com/users/akerl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akerl/subscriptions","organizations_url":"https://api.github.com/users/akerl/orgs","repos_url":"https://api.github.com/users/akerl/repos","events_url":"https://api.github.com/users/akerl/events{/privacy}","received_events_url":"https://api.github.com/users/akerl/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2014-07-12T20:38:20Z","published_at":"2014-07-12T22:37:07Z","assets":[],"tarball_url":"https://api.github.com/repos/akerl/targit/tarball/more_testing","zipball_url":"https://api.github.com/repos/akerl/targit/zipball/more_testing","body":null},{"url":"https://api.github.com/repos/akerl/targit/releases/426208","assets_url":"https://api.github.com/repos/akerl/targit/releases/426208/assets","upload_url":"https://uploads.github.com/repos/akerl/targit/releases/426208/assets{?name}","html_url":"https://github.com/akerl/targit/releases/tag/testing","id":426208,"tag_name":"testing","target_commitish":"master","name":null,"draft":false,"author":{"login":"akerl","id":491209,"avatar_url":"https://avatars.githubusercontent.com/u/491209?","gravatar_id":"819691dc5c197c042ccd16b894545673","url":"https://api.github.com/users/akerl","html_url":"https://github.com/akerl","followers_url":"https://api.github.com/users/akerl/followers","following_url":"https://api.github.com/users/akerl/following{/other_user}","gists_url":"https://api.github.com/users/akerl/gists{/gist_id}","starred_url":"https://api.github.com/users/akerl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akerl/subscriptions","organizations_url":"https://api.github.com/users/akerl/orgs","repos_url":"https://api.github.com/users/akerl/repos","events_url":"https://api.github.com/users/akerl/events{/privacy}","received_events_url":"https://api.github.com/users/akerl/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2014-07-12T20:38:20Z","published_at":"2014-07-12T22:37:06Z","assets":[],"tarball_url":"https://api.github.com/repos/akerl/targit/tarball/testing","zipball_url":"https://api.github.com/repos/akerl/targit/zipball/testing","body":null}]'
203
+ http_version:
204
+ recorded_at: Sat, 12 Jul 2014 22:37:14 GMT
205
+ - request:
206
+ method: get
207
+ uri: https://api.github.com/repos/akerl/targit/releases/426210
208
+ body:
209
+ encoding: US-ASCII
210
+ string: ''
211
+ headers:
212
+ Accept:
213
+ - application/vnd.github.v3+json
214
+ User-Agent:
215
+ - Octokit Ruby Gem 3.2.0
216
+ Accept-Encoding:
217
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
218
+ response:
219
+ status:
220
+ code: 200
221
+ message: OK
222
+ headers:
223
+ Server:
224
+ - GitHub.com
225
+ Date:
226
+ - Sat, 12 Jul 2014 22:37:16 GMT
227
+ Content-Type:
228
+ - application/json; charset=utf-8
229
+ Transfer-Encoding:
230
+ - chunked
231
+ Status:
232
+ - 200 OK
233
+ X-Ratelimit-Limit:
234
+ - '5000'
235
+ X-Ratelimit-Remaining:
236
+ - '4392'
237
+ X-Ratelimit-Reset:
238
+ - '1405206221'
239
+ Cache-Control:
240
+ - private, max-age=60, s-maxage=60
241
+ Last-Modified:
242
+ - Sat, 12 Jul 2014 22:37:16 GMT
243
+ X-Oauth-Scopes:
244
+ - public_repo
245
+ X-Accepted-Oauth-Scopes:
246
+ - ''
247
+ Vary:
248
+ - Accept, Authorization, Cookie, X-GitHub-OTP
249
+ - Accept-Encoding
250
+ X-Github-Media-Type:
251
+ - github.v3; format=json
252
+ X-Xss-Protection:
253
+ - 1; mode=block
254
+ X-Frame-Options:
255
+ - deny
256
+ Content-Security-Policy:
257
+ - default-src 'none'
258
+ Access-Control-Allow-Credentials:
259
+ - 'true'
260
+ Access-Control-Expose-Headers:
261
+ - ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
262
+ X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
263
+ Access-Control-Allow-Origin:
264
+ - "*"
265
+ Strict-Transport-Security:
266
+ - max-age=31536000; includeSubdomains
267
+ X-Content-Type-Options:
268
+ - nosniff
269
+ body:
270
+ encoding: UTF-8
271
+ string: '{"url":"https://api.github.com/repos/akerl/targit/releases/426210","assets_url":"https://api.github.com/repos/akerl/targit/releases/426210/assets","upload_url":"https://uploads.github.com/repos/akerl/targit/releases/426210/assets{?name}","html_url":"https://github.com/akerl/targit/releases/tag/meta_testing","id":426210,"tag_name":"meta_testing","target_commitish":"master","name":null,"draft":false,"author":{"login":"akerl","id":491209,"avatar_url":"https://avatars.githubusercontent.com/u/491209?","gravatar_id":"819691dc5c197c042ccd16b894545673","url":"https://api.github.com/users/akerl","html_url":"https://github.com/akerl","followers_url":"https://api.github.com/users/akerl/followers","following_url":"https://api.github.com/users/akerl/following{/other_user}","gists_url":"https://api.github.com/users/akerl/gists{/gist_id}","starred_url":"https://api.github.com/users/akerl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akerl/subscriptions","organizations_url":"https://api.github.com/users/akerl/orgs","repos_url":"https://api.github.com/users/akerl/repos","events_url":"https://api.github.com/users/akerl/events{/privacy}","received_events_url":"https://api.github.com/users/akerl/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2014-07-12T20:38:20Z","published_at":"2014-07-12T22:37:16Z","assets":[],"tarball_url":"https://api.github.com/repos/akerl/targit/tarball/meta_testing","zipball_url":"https://api.github.com/repos/akerl/targit/zipball/meta_testing","body":null}'
272
+ http_version:
273
+ recorded_at: Sat, 12 Jul 2014 22:37:15 GMT
274
+ - request:
275
+ method: get
276
+ uri: https://api.github.com/repos/akerl/targit/releases/426210/assets?per_page=100
277
+ body:
278
+ encoding: US-ASCII
279
+ string: ''
280
+ headers:
281
+ Accept:
282
+ - application/vnd.github.v3+json
283
+ User-Agent:
284
+ - Octokit Ruby Gem 3.2.0
285
+ Accept-Encoding:
286
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
287
+ response:
288
+ status:
289
+ code: 200
290
+ message: OK
291
+ headers:
292
+ Server:
293
+ - GitHub.com
294
+ Date:
295
+ - Sat, 12 Jul 2014 22:37:16 GMT
296
+ Content-Type:
297
+ - application/json; charset=utf-8
298
+ Status:
299
+ - 200 OK
300
+ X-Ratelimit-Limit:
301
+ - '5000'
302
+ X-Ratelimit-Remaining:
303
+ - '4391'
304
+ X-Ratelimit-Reset:
305
+ - '1405206221'
306
+ Cache-Control:
307
+ - private, max-age=60, s-maxage=60
308
+ X-Oauth-Scopes:
309
+ - public_repo
310
+ X-Accepted-Oauth-Scopes:
311
+ - ''
312
+ Vary:
313
+ - Accept, Authorization, Cookie, X-GitHub-OTP
314
+ - Accept-Encoding
315
+ X-Github-Media-Type:
316
+ - github.v3; format=json
317
+ Link:
318
+ - <https://api.github.com/repositories/21316764/releases/426210/assets?per_page=100&page=0>;
319
+ rel="last"
320
+ X-Xss-Protection:
321
+ - 1; mode=block
322
+ X-Frame-Options:
323
+ - deny
324
+ Content-Security-Policy:
325
+ - default-src 'none'
326
+ Content-Length:
327
+ - '2'
328
+ Access-Control-Allow-Credentials:
329
+ - 'true'
330
+ Access-Control-Expose-Headers:
331
+ - ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
332
+ X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
333
+ Access-Control-Allow-Origin:
334
+ - "*"
335
+ Strict-Transport-Security:
336
+ - max-age=31536000; includeSubdomains
337
+ X-Content-Type-Options:
338
+ - nosniff
339
+ body:
340
+ encoding: UTF-8
341
+ string: "[]"
342
+ http_version:
343
+ recorded_at: Sat, 12 Jul 2014 22:37:15 GMT
344
+ - request:
345
+ method: get
346
+ uri: https://api.github.com/repos/akerl/targit/releases/426210
347
+ body:
348
+ encoding: US-ASCII
349
+ string: ''
350
+ headers:
351
+ Accept:
352
+ - application/vnd.github.v3+json
353
+ User-Agent:
354
+ - Octokit Ruby Gem 3.2.0
355
+ Accept-Encoding:
356
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
357
+ response:
358
+ status:
359
+ code: 200
360
+ message: OK
361
+ headers:
362
+ Server:
363
+ - GitHub.com
364
+ Date:
365
+ - Sat, 12 Jul 2014 22:37:17 GMT
366
+ Content-Type:
367
+ - application/json; charset=utf-8
368
+ Transfer-Encoding:
369
+ - chunked
370
+ Status:
371
+ - 200 OK
372
+ X-Ratelimit-Limit:
373
+ - '5000'
374
+ X-Ratelimit-Remaining:
375
+ - '4390'
376
+ X-Ratelimit-Reset:
377
+ - '1405206221'
378
+ Cache-Control:
379
+ - private, max-age=60, s-maxage=60
380
+ Last-Modified:
381
+ - Sat, 12 Jul 2014 22:37:16 GMT
382
+ X-Oauth-Scopes:
383
+ - public_repo
384
+ X-Accepted-Oauth-Scopes:
385
+ - ''
386
+ Vary:
387
+ - Accept, Authorization, Cookie, X-GitHub-OTP
388
+ - Accept-Encoding
389
+ X-Github-Media-Type:
390
+ - github.v3; format=json
391
+ X-Xss-Protection:
392
+ - 1; mode=block
393
+ X-Frame-Options:
394
+ - deny
395
+ Content-Security-Policy:
396
+ - default-src 'none'
397
+ Access-Control-Allow-Credentials:
398
+ - 'true'
399
+ Access-Control-Expose-Headers:
400
+ - ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
401
+ X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
402
+ Access-Control-Allow-Origin:
403
+ - "*"
404
+ Strict-Transport-Security:
405
+ - max-age=31536000; includeSubdomains
406
+ X-Content-Type-Options:
407
+ - nosniff
408
+ body:
409
+ encoding: UTF-8
410
+ string: '{"url":"https://api.github.com/repos/akerl/targit/releases/426210","assets_url":"https://api.github.com/repos/akerl/targit/releases/426210/assets","upload_url":"https://uploads.github.com/repos/akerl/targit/releases/426210/assets{?name}","html_url":"https://github.com/akerl/targit/releases/tag/meta_testing","id":426210,"tag_name":"meta_testing","target_commitish":"master","name":null,"draft":false,"author":{"login":"akerl","id":491209,"avatar_url":"https://avatars.githubusercontent.com/u/491209?","gravatar_id":"819691dc5c197c042ccd16b894545673","url":"https://api.github.com/users/akerl","html_url":"https://github.com/akerl","followers_url":"https://api.github.com/users/akerl/followers","following_url":"https://api.github.com/users/akerl/following{/other_user}","gists_url":"https://api.github.com/users/akerl/gists{/gist_id}","starred_url":"https://api.github.com/users/akerl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akerl/subscriptions","organizations_url":"https://api.github.com/users/akerl/orgs","repos_url":"https://api.github.com/users/akerl/repos","events_url":"https://api.github.com/users/akerl/events{/privacy}","received_events_url":"https://api.github.com/users/akerl/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2014-07-12T20:38:20Z","published_at":"2014-07-12T22:37:16Z","assets":[],"tarball_url":"https://api.github.com/repos/akerl/targit/tarball/meta_testing","zipball_url":"https://api.github.com/repos/akerl/targit/zipball/meta_testing","body":null}'
411
+ http_version:
412
+ recorded_at: Sat, 12 Jul 2014 22:37:15 GMT
413
+ - request:
414
+ method: post
415
+ uri: https://uploads.github.com/repos/akerl/targit/releases/426210/assets?name=beta
416
+ body:
417
+ encoding: ASCII-8BIT
418
+ string: |
419
+ hello world
420
+ headers:
421
+ Accept:
422
+ - application/vnd.github.v3+json
423
+ User-Agent:
424
+ - Octokit Ruby Gem 3.2.0
425
+ Content-Type:
426
+ - application/octet-stream
427
+ Accept-Encoding:
428
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
429
+ response:
430
+ status:
431
+ code: 201
432
+ message: Created
433
+ headers:
434
+ Cache-Control:
435
+ - no-cache
436
+ Content-Security-Policy:
437
+ - default-src 'none'
438
+ Content-Type:
439
+ - application/json; charset=utf-8
440
+ Last-Modified:
441
+ - Sat, 12 Jul 2014 22:37:17 GMT
442
+ Strict-Transport-Security:
443
+ - max-age=2592000
444
+ Vary:
445
+ - Accept, Authorization, Cookie, X-GitHub-OTP
446
+ X-Content-Type-Options:
447
+ - nosniff
448
+ X-Frame-Options:
449
+ - deny
450
+ X-Github-Media-Type:
451
+ - github.v3; format=json
452
+ X-Oauth-Scopes:
453
+ - public_repo
454
+ X-Xss-Protection:
455
+ - 1; mode=block
456
+ Date:
457
+ - Sat, 12 Jul 2014 22:37:17 GMT
458
+ Transfer-Encoding:
459
+ - chunked
460
+ body:
461
+ encoding: UTF-8
462
+ string: '{"url":"https://api.github.com/repos/akerl/targit/releases/assets/182359","id":182359,"name":"beta","label":null,"uploader":{"login":"akerl","id":491209,"avatar_url":"https://avatars.githubusercontent.com/u/491209?","gravatar_id":"819691dc5c197c042ccd16b894545673","url":"https://api.github.com/users/akerl","html_url":"https://github.com/akerl","followers_url":"https://api.github.com/users/akerl/followers","following_url":"https://api.github.com/users/akerl/following{/other_user}","gists_url":"https://api.github.com/users/akerl/gists{/gist_id}","starred_url":"https://api.github.com/users/akerl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akerl/subscriptions","organizations_url":"https://api.github.com/users/akerl/orgs","repos_url":"https://api.github.com/users/akerl/repos","events_url":"https://api.github.com/users/akerl/events{/privacy}","received_events_url":"https://api.github.com/users/akerl/received_events","type":"User","site_admin":false},"content_type":"application/octet-stream","state":"uploaded","size":12,"download_count":0,"created_at":"2014-07-12T22:37:17Z","updated_at":"2014-07-12T22:37:17Z","browser_download_url":"https://github.com/akerl/targit/releases/download/meta_testing/beta"}'
463
+ http_version:
464
+ recorded_at: Sat, 12 Jul 2014 22:37:16 GMT
465
+ - request:
466
+ method: get
467
+ uri: https://api.github.com/repos/akerl/targit/releases/assets/182359
468
+ body:
469
+ encoding: US-ASCII
470
+ string: ''
471
+ headers:
472
+ Accept:
473
+ - application/vnd.github.v3+json
474
+ User-Agent:
475
+ - Octokit Ruby Gem 3.2.0
476
+ Accept-Encoding:
477
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
478
+ response:
479
+ status:
480
+ code: 200
481
+ message: OK
482
+ headers:
483
+ Server:
484
+ - GitHub.com
485
+ Date:
486
+ - Sat, 12 Jul 2014 22:37:17 GMT
487
+ Content-Type:
488
+ - application/json; charset=utf-8
489
+ Transfer-Encoding:
490
+ - chunked
491
+ Status:
492
+ - 200 OK
493
+ X-Ratelimit-Limit:
494
+ - '5000'
495
+ X-Ratelimit-Remaining:
496
+ - '4386'
497
+ X-Ratelimit-Reset:
498
+ - '1405206221'
499
+ Cache-Control:
500
+ - private, max-age=60, s-maxage=60
501
+ Last-Modified:
502
+ - Sat, 12 Jul 2014 22:37:17 GMT
503
+ X-Oauth-Scopes:
504
+ - public_repo
505
+ X-Accepted-Oauth-Scopes:
506
+ - ''
507
+ Vary:
508
+ - Accept, Authorization, Cookie, X-GitHub-OTP
509
+ - Accept-Encoding
510
+ X-Github-Media-Type:
511
+ - github.v3; format=json
512
+ X-Xss-Protection:
513
+ - 1; mode=block
514
+ X-Frame-Options:
515
+ - deny
516
+ Content-Security-Policy:
517
+ - default-src 'none'
518
+ Access-Control-Allow-Credentials:
519
+ - 'true'
520
+ Access-Control-Expose-Headers:
521
+ - ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
522
+ X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
523
+ Access-Control-Allow-Origin:
524
+ - "*"
525
+ Strict-Transport-Security:
526
+ - max-age=31536000; includeSubdomains
527
+ X-Content-Type-Options:
528
+ - nosniff
529
+ body:
530
+ encoding: UTF-8
531
+ string: '{"url":"https://api.github.com/repos/akerl/targit/releases/assets/182359","id":182359,"name":"beta","label":null,"uploader":{"login":"akerl","id":491209,"avatar_url":"https://avatars.githubusercontent.com/u/491209?","gravatar_id":"819691dc5c197c042ccd16b894545673","url":"https://api.github.com/users/akerl","html_url":"https://github.com/akerl","followers_url":"https://api.github.com/users/akerl/followers","following_url":"https://api.github.com/users/akerl/following{/other_user}","gists_url":"https://api.github.com/users/akerl/gists{/gist_id}","starred_url":"https://api.github.com/users/akerl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akerl/subscriptions","organizations_url":"https://api.github.com/users/akerl/orgs","repos_url":"https://api.github.com/users/akerl/repos","events_url":"https://api.github.com/users/akerl/events{/privacy}","received_events_url":"https://api.github.com/users/akerl/received_events","type":"User","site_admin":false},"content_type":"application/octet-stream","state":"uploaded","size":12,"download_count":0,"created_at":"2014-07-12T22:37:17Z","updated_at":"2014-07-12T22:37:17Z","browser_download_url":"https://github.com/akerl/targit/releases/download/meta_testing/beta"}'
532
+ http_version:
533
+ recorded_at: Sat, 12 Jul 2014 22:37:16 GMT
534
+ - request:
535
+ method: get
536
+ uri: https://api.github.com/repos/akerl/targit/releases/426210
537
+ body:
538
+ encoding: US-ASCII
539
+ string: ''
540
+ headers:
541
+ Accept:
542
+ - application/vnd.github.v3+json
543
+ User-Agent:
544
+ - Octokit Ruby Gem 3.2.0
545
+ Accept-Encoding:
546
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
547
+ response:
548
+ status:
549
+ code: 200
550
+ message: OK
551
+ headers:
552
+ Server:
553
+ - GitHub.com
554
+ Date:
555
+ - Sat, 12 Jul 2014 22:37:17 GMT
556
+ Content-Type:
557
+ - application/json; charset=utf-8
558
+ Transfer-Encoding:
559
+ - chunked
560
+ Status:
561
+ - 200 OK
562
+ X-Ratelimit-Limit:
563
+ - '5000'
564
+ X-Ratelimit-Remaining:
565
+ - '4385'
566
+ X-Ratelimit-Reset:
567
+ - '1405206221'
568
+ Cache-Control:
569
+ - private, max-age=60, s-maxage=60
570
+ Last-Modified:
571
+ - Sat, 12 Jul 2014 22:37:16 GMT
572
+ X-Oauth-Scopes:
573
+ - public_repo
574
+ X-Accepted-Oauth-Scopes:
575
+ - ''
576
+ Vary:
577
+ - Accept, Authorization, Cookie, X-GitHub-OTP
578
+ - Accept-Encoding
579
+ X-Github-Media-Type:
580
+ - github.v3; format=json
581
+ X-Xss-Protection:
582
+ - 1; mode=block
583
+ X-Frame-Options:
584
+ - deny
585
+ Content-Security-Policy:
586
+ - default-src 'none'
587
+ Access-Control-Allow-Credentials:
588
+ - 'true'
589
+ Access-Control-Expose-Headers:
590
+ - ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
591
+ X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
592
+ Access-Control-Allow-Origin:
593
+ - "*"
594
+ Strict-Transport-Security:
595
+ - max-age=31536000; includeSubdomains
596
+ X-Content-Type-Options:
597
+ - nosniff
598
+ body:
599
+ encoding: UTF-8
600
+ string: '{"url":"https://api.github.com/repos/akerl/targit/releases/426210","assets_url":"https://api.github.com/repos/akerl/targit/releases/426210/assets","upload_url":"https://uploads.github.com/repos/akerl/targit/releases/426210/assets{?name}","html_url":"https://github.com/akerl/targit/releases/tag/meta_testing","id":426210,"tag_name":"meta_testing","target_commitish":"master","name":null,"draft":false,"author":{"login":"akerl","id":491209,"avatar_url":"https://avatars.githubusercontent.com/u/491209?","gravatar_id":"819691dc5c197c042ccd16b894545673","url":"https://api.github.com/users/akerl","html_url":"https://github.com/akerl","followers_url":"https://api.github.com/users/akerl/followers","following_url":"https://api.github.com/users/akerl/following{/other_user}","gists_url":"https://api.github.com/users/akerl/gists{/gist_id}","starred_url":"https://api.github.com/users/akerl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akerl/subscriptions","organizations_url":"https://api.github.com/users/akerl/orgs","repos_url":"https://api.github.com/users/akerl/repos","events_url":"https://api.github.com/users/akerl/events{/privacy}","received_events_url":"https://api.github.com/users/akerl/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2014-07-12T20:38:20Z","published_at":"2014-07-12T22:37:16Z","assets":[{"url":"https://api.github.com/repos/akerl/targit/releases/assets/182359","id":182359,"name":"beta","label":null,"uploader":{"login":"akerl","id":491209,"avatar_url":"https://avatars.githubusercontent.com/u/491209?","gravatar_id":"819691dc5c197c042ccd16b894545673","url":"https://api.github.com/users/akerl","html_url":"https://github.com/akerl","followers_url":"https://api.github.com/users/akerl/followers","following_url":"https://api.github.com/users/akerl/following{/other_user}","gists_url":"https://api.github.com/users/akerl/gists{/gist_id}","starred_url":"https://api.github.com/users/akerl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akerl/subscriptions","organizations_url":"https://api.github.com/users/akerl/orgs","repos_url":"https://api.github.com/users/akerl/repos","events_url":"https://api.github.com/users/akerl/events{/privacy}","received_events_url":"https://api.github.com/users/akerl/received_events","type":"User","site_admin":false},"content_type":"application/octet-stream","state":"uploaded","size":12,"download_count":0,"created_at":"2014-07-12T22:37:17Z","updated_at":"2014-07-12T22:37:17Z","browser_download_url":"https://github.com/akerl/targit/releases/download/meta_testing/beta"}],"tarball_url":"https://api.github.com/repos/akerl/targit/tarball/meta_testing","zipball_url":"https://api.github.com/repos/akerl/targit/zipball/meta_testing","body":null}'
601
+ http_version:
602
+ recorded_at: Sat, 12 Jul 2014 22:37:16 GMT
603
+ - request:
604
+ method: get
605
+ uri: https://api.github.com/repos/akerl/targit/releases/426210/assets?per_page=100
606
+ body:
607
+ encoding: US-ASCII
608
+ string: ''
609
+ headers:
610
+ Accept:
611
+ - application/vnd.github.v3+json
612
+ User-Agent:
613
+ - Octokit Ruby Gem 3.2.0
614
+ Accept-Encoding:
615
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
616
+ response:
617
+ status:
618
+ code: 200
619
+ message: OK
620
+ headers:
621
+ Server:
622
+ - GitHub.com
623
+ Date:
624
+ - Sat, 12 Jul 2014 22:37:18 GMT
625
+ Content-Type:
626
+ - application/json; charset=utf-8
627
+ Transfer-Encoding:
628
+ - chunked
629
+ Status:
630
+ - 200 OK
631
+ X-Ratelimit-Limit:
632
+ - '5000'
633
+ X-Ratelimit-Remaining:
634
+ - '4384'
635
+ X-Ratelimit-Reset:
636
+ - '1405206221'
637
+ Cache-Control:
638
+ - private, max-age=60, s-maxage=60
639
+ X-Oauth-Scopes:
640
+ - public_repo
641
+ X-Accepted-Oauth-Scopes:
642
+ - ''
643
+ Vary:
644
+ - Accept, Authorization, Cookie, X-GitHub-OTP
645
+ - Accept-Encoding
646
+ X-Github-Media-Type:
647
+ - github.v3; format=json
648
+ X-Xss-Protection:
649
+ - 1; mode=block
650
+ X-Frame-Options:
651
+ - deny
652
+ Content-Security-Policy:
653
+ - default-src 'none'
654
+ Access-Control-Allow-Credentials:
655
+ - 'true'
656
+ Access-Control-Expose-Headers:
657
+ - ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
658
+ X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
659
+ Access-Control-Allow-Origin:
660
+ - "*"
661
+ Strict-Transport-Security:
662
+ - max-age=31536000; includeSubdomains
663
+ X-Content-Type-Options:
664
+ - nosniff
665
+ body:
666
+ encoding: UTF-8
667
+ string: '[{"url":"https://api.github.com/repos/akerl/targit/releases/assets/182359","id":182359,"name":"beta","label":null,"uploader":{"login":"akerl","id":491209,"avatar_url":"https://avatars.githubusercontent.com/u/491209?","gravatar_id":"819691dc5c197c042ccd16b894545673","url":"https://api.github.com/users/akerl","html_url":"https://github.com/akerl","followers_url":"https://api.github.com/users/akerl/followers","following_url":"https://api.github.com/users/akerl/following{/other_user}","gists_url":"https://api.github.com/users/akerl/gists{/gist_id}","starred_url":"https://api.github.com/users/akerl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akerl/subscriptions","organizations_url":"https://api.github.com/users/akerl/orgs","repos_url":"https://api.github.com/users/akerl/repos","events_url":"https://api.github.com/users/akerl/events{/privacy}","received_events_url":"https://api.github.com/users/akerl/received_events","type":"User","site_admin":false},"content_type":"application/octet-stream","state":"uploaded","size":12,"download_count":0,"created_at":"2014-07-12T22:37:17Z","updated_at":"2014-07-12T22:37:17Z","browser_download_url":"https://github.com/akerl/targit/releases/download/meta_testing/beta"}]'
668
+ http_version:
669
+ recorded_at: Sat, 12 Jul 2014 22:37:16 GMT
670
+ recorded_with: VCR 2.9.2