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,205 @@
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:22 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
+ - '4356'
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/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},{"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:20 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":"new_release"}'
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:22 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
+ - '4355'
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/426211
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
+ - '1545'
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/426211","assets_url":"https://api.github.com/repos/akerl/targit/releases/426211/assets","upload_url":"https://uploads.github.com/repos/akerl/targit/releases/426211/assets{?name}","html_url":"https://github.com/akerl/targit/releases/tag/new_release","id":426211,"tag_name":"new_release","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:22Z","assets":[],"tarball_url":"https://api.github.com/repos/akerl/targit/tarball/new_release","zipball_url":"https://api.github.com/repos/akerl/targit/zipball/new_release","body":null}'
136
+ http_version:
137
+ recorded_at: Sat, 12 Jul 2014 22:37:21 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:22 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
+ - '4354'
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/426211","assets_url":"https://api.github.com/repos/akerl/targit/releases/426211/assets","upload_url":"https://uploads.github.com/repos/akerl/targit/releases/426211/assets{?name}","html_url":"https://github.com/akerl/targit/releases/tag/new_release","id":426211,"tag_name":"new_release","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:22Z","assets":[],"tarball_url":"https://api.github.com/repos/akerl/targit/tarball/new_release","zipball_url":"https://api.github.com/repos/akerl/targit/zipball/new_release","body":null},{"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},{"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:21 GMT
205
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,208 @@
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:06 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Status:
28
+ - 200 OK
29
+ X-Ratelimit-Limit:
30
+ - '5000'
31
+ X-Ratelimit-Remaining:
32
+ - '4453'
33
+ X-Ratelimit-Reset:
34
+ - '1405206221'
35
+ Cache-Control:
36
+ - private, max-age=60, s-maxage=60
37
+ X-Oauth-Scopes:
38
+ - public_repo
39
+ X-Accepted-Oauth-Scopes:
40
+ - ''
41
+ Vary:
42
+ - Accept, Authorization, Cookie, X-GitHub-OTP
43
+ - Accept-Encoding
44
+ X-Github-Media-Type:
45
+ - github.v3; format=json
46
+ Link:
47
+ - <https://api.github.com/repositories/21316764/releases?per_page=100&page=0>;
48
+ rel="last"
49
+ X-Xss-Protection:
50
+ - 1; mode=block
51
+ X-Frame-Options:
52
+ - deny
53
+ Content-Security-Policy:
54
+ - default-src 'none'
55
+ Content-Length:
56
+ - '2'
57
+ Access-Control-Allow-Credentials:
58
+ - 'true'
59
+ Access-Control-Expose-Headers:
60
+ - ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
61
+ X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
62
+ Access-Control-Allow-Origin:
63
+ - "*"
64
+ Strict-Transport-Security:
65
+ - max-age=31536000; includeSubdomains
66
+ X-Content-Type-Options:
67
+ - nosniff
68
+ body:
69
+ encoding: UTF-8
70
+ string: "[]"
71
+ http_version:
72
+ recorded_at: Sat, 12 Jul 2014 22:37:05 GMT
73
+ - request:
74
+ method: post
75
+ uri: https://api.github.com/repos/akerl/targit/releases
76
+ body:
77
+ encoding: UTF-8
78
+ string: '{"tag_name":"testing"}'
79
+ headers:
80
+ Accept:
81
+ - application/vnd.github.v3+json
82
+ User-Agent:
83
+ - Octokit Ruby Gem 3.2.0
84
+ Accept-Encoding:
85
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
86
+ response:
87
+ status:
88
+ code: 201
89
+ message: Created
90
+ headers:
91
+ Server:
92
+ - GitHub.com
93
+ Date:
94
+ - Sat, 12 Jul 2014 22:37:06 GMT
95
+ Content-Type:
96
+ - application/json; charset=utf-8
97
+ Status:
98
+ - 201 Created
99
+ X-Ratelimit-Limit:
100
+ - '5000'
101
+ X-Ratelimit-Remaining:
102
+ - '4452'
103
+ X-Ratelimit-Reset:
104
+ - '1405206221'
105
+ Cache-Control:
106
+ - private, max-age=60, s-maxage=60
107
+ X-Oauth-Scopes:
108
+ - public_repo
109
+ X-Accepted-Oauth-Scopes:
110
+ - ''
111
+ Location:
112
+ - https://api.github.com/repos/akerl/targit/releases/426208
113
+ Vary:
114
+ - Accept, Authorization, Cookie, X-GitHub-OTP
115
+ X-Github-Media-Type:
116
+ - github.v3; format=json
117
+ X-Xss-Protection:
118
+ - 1; mode=block
119
+ X-Frame-Options:
120
+ - deny
121
+ Content-Security-Policy:
122
+ - default-src 'none'
123
+ Content-Length:
124
+ - '1529'
125
+ Access-Control-Allow-Credentials:
126
+ - 'true'
127
+ Access-Control-Expose-Headers:
128
+ - ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
129
+ X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
130
+ Access-Control-Allow-Origin:
131
+ - "*"
132
+ Strict-Transport-Security:
133
+ - max-age=31536000; includeSubdomains
134
+ X-Content-Type-Options:
135
+ - nosniff
136
+ body:
137
+ encoding: UTF-8
138
+ string: '{"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}'
139
+ http_version:
140
+ recorded_at: Sat, 12 Jul 2014 22:37:05 GMT
141
+ - request:
142
+ method: get
143
+ uri: https://api.github.com/repos/akerl/targit/releases?per_page=100
144
+ body:
145
+ encoding: US-ASCII
146
+ string: ''
147
+ headers:
148
+ Accept:
149
+ - application/vnd.github.v3+json
150
+ User-Agent:
151
+ - Octokit Ruby Gem 3.2.0
152
+ Accept-Encoding:
153
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
154
+ response:
155
+ status:
156
+ code: 200
157
+ message: OK
158
+ headers:
159
+ Server:
160
+ - GitHub.com
161
+ Date:
162
+ - Sat, 12 Jul 2014 22:37:06 GMT
163
+ Content-Type:
164
+ - application/json; charset=utf-8
165
+ Transfer-Encoding:
166
+ - chunked
167
+ Status:
168
+ - 200 OK
169
+ X-Ratelimit-Limit:
170
+ - '5000'
171
+ X-Ratelimit-Remaining:
172
+ - '4451'
173
+ X-Ratelimit-Reset:
174
+ - '1405206221'
175
+ Cache-Control:
176
+ - private, max-age=60, s-maxage=60
177
+ X-Oauth-Scopes:
178
+ - public_repo
179
+ X-Accepted-Oauth-Scopes:
180
+ - ''
181
+ Vary:
182
+ - Accept, Authorization, Cookie, X-GitHub-OTP
183
+ - Accept-Encoding
184
+ X-Github-Media-Type:
185
+ - github.v3; format=json
186
+ X-Xss-Protection:
187
+ - 1; mode=block
188
+ X-Frame-Options:
189
+ - deny
190
+ Content-Security-Policy:
191
+ - default-src 'none'
192
+ Access-Control-Allow-Credentials:
193
+ - 'true'
194
+ Access-Control-Expose-Headers:
195
+ - ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
196
+ X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
197
+ Access-Control-Allow-Origin:
198
+ - "*"
199
+ Strict-Transport-Security:
200
+ - max-age=31536000; includeSubdomains
201
+ X-Content-Type-Options:
202
+ - nosniff
203
+ body:
204
+ encoding: UTF-8
205
+ string: '[{"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}]'
206
+ http_version:
207
+ recorded_at: Sat, 12 Jul 2014 22:37:05 GMT
208
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,70 @@
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:07 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
+ - '4450'
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/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:05 GMT
70
+ recorded_with: VCR 2.9.2