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,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: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
+ - '4353'
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/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}]'
68
+ http_version:
69
+ recorded_at: Sat, 12 Jul 2014 22:37:21 GMT
70
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,541 @@
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:14 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
+ - '4403'
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":[{"url":"https://api.github.com/repos/akerl/targit/releases/assets/182358","id":182358,"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:12Z","updated_at":"2014-07-12T22:37:12Z","browser_download_url":"https://github.com/akerl/targit/releases/download/testing/beta"}],"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:13 GMT
70
+ - request:
71
+ method: get
72
+ uri: https://api.github.com/repos/akerl/targit/releases/426208
73
+ body:
74
+ encoding: US-ASCII
75
+ string: ''
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: 200
86
+ message: OK
87
+ headers:
88
+ Server:
89
+ - GitHub.com
90
+ Date:
91
+ - Sat, 12 Jul 2014 22:37:14 GMT
92
+ Content-Type:
93
+ - application/json; charset=utf-8
94
+ Transfer-Encoding:
95
+ - chunked
96
+ Status:
97
+ - 200 OK
98
+ X-Ratelimit-Limit:
99
+ - '5000'
100
+ X-Ratelimit-Remaining:
101
+ - '4402'
102
+ X-Ratelimit-Reset:
103
+ - '1405206221'
104
+ Cache-Control:
105
+ - private, max-age=60, s-maxage=60
106
+ Last-Modified:
107
+ - Sat, 12 Jul 2014 22:37:06 GMT
108
+ X-Oauth-Scopes:
109
+ - public_repo
110
+ X-Accepted-Oauth-Scopes:
111
+ - ''
112
+ Vary:
113
+ - Accept, Authorization, Cookie, X-GitHub-OTP
114
+ - Accept-Encoding
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
+ Access-Control-Allow-Credentials:
124
+ - 'true'
125
+ Access-Control-Expose-Headers:
126
+ - ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
127
+ X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
128
+ Access-Control-Allow-Origin:
129
+ - "*"
130
+ Strict-Transport-Security:
131
+ - max-age=31536000; includeSubdomains
132
+ X-Content-Type-Options:
133
+ - nosniff
134
+ body:
135
+ encoding: UTF-8
136
+ 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":[{"url":"https://api.github.com/repos/akerl/targit/releases/assets/182358","id":182358,"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:12Z","updated_at":"2014-07-12T22:37:12Z","browser_download_url":"https://github.com/akerl/targit/releases/download/testing/beta"}],"tarball_url":"https://api.github.com/repos/akerl/targit/tarball/testing","zipball_url":"https://api.github.com/repos/akerl/targit/zipball/testing","body":null}'
137
+ http_version:
138
+ recorded_at: Sat, 12 Jul 2014 22:37:13 GMT
139
+ - request:
140
+ method: get
141
+ uri: https://api.github.com/repos/akerl/targit/releases/426208/assets?per_page=100
142
+ body:
143
+ encoding: US-ASCII
144
+ string: ''
145
+ headers:
146
+ Accept:
147
+ - application/vnd.github.v3+json
148
+ User-Agent:
149
+ - Octokit Ruby Gem 3.2.0
150
+ Accept-Encoding:
151
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
152
+ response:
153
+ status:
154
+ code: 200
155
+ message: OK
156
+ headers:
157
+ Server:
158
+ - GitHub.com
159
+ Date:
160
+ - Sat, 12 Jul 2014 22:37:14 GMT
161
+ Content-Type:
162
+ - application/json; charset=utf-8
163
+ Transfer-Encoding:
164
+ - chunked
165
+ Status:
166
+ - 200 OK
167
+ X-Ratelimit-Limit:
168
+ - '5000'
169
+ X-Ratelimit-Remaining:
170
+ - '4401'
171
+ X-Ratelimit-Reset:
172
+ - '1405206221'
173
+ Cache-Control:
174
+ - private, max-age=60, s-maxage=60
175
+ X-Oauth-Scopes:
176
+ - public_repo
177
+ X-Accepted-Oauth-Scopes:
178
+ - ''
179
+ Vary:
180
+ - Accept, Authorization, Cookie, X-GitHub-OTP
181
+ - Accept-Encoding
182
+ X-Github-Media-Type:
183
+ - github.v3; format=json
184
+ X-Xss-Protection:
185
+ - 1; mode=block
186
+ X-Frame-Options:
187
+ - deny
188
+ Content-Security-Policy:
189
+ - default-src 'none'
190
+ Access-Control-Allow-Credentials:
191
+ - 'true'
192
+ Access-Control-Expose-Headers:
193
+ - ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
194
+ X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
195
+ Access-Control-Allow-Origin:
196
+ - "*"
197
+ Strict-Transport-Security:
198
+ - max-age=31536000; includeSubdomains
199
+ X-Content-Type-Options:
200
+ - nosniff
201
+ body:
202
+ encoding: UTF-8
203
+ string: '[{"url":"https://api.github.com/repos/akerl/targit/releases/assets/182358","id":182358,"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:12Z","updated_at":"2014-07-12T22:37:12Z","browser_download_url":"https://github.com/akerl/targit/releases/download/testing/beta"}]'
204
+ http_version:
205
+ recorded_at: Sat, 12 Jul 2014 22:37:13 GMT
206
+ - request:
207
+ method: get
208
+ uri: https://api.github.com/repos/akerl/targit/releases/426208
209
+ body:
210
+ encoding: US-ASCII
211
+ string: ''
212
+ headers:
213
+ Accept:
214
+ - application/vnd.github.v3+json
215
+ User-Agent:
216
+ - Octokit Ruby Gem 3.2.0
217
+ Accept-Encoding:
218
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
219
+ response:
220
+ status:
221
+ code: 200
222
+ message: OK
223
+ headers:
224
+ Server:
225
+ - GitHub.com
226
+ Date:
227
+ - Sat, 12 Jul 2014 22:37:15 GMT
228
+ Content-Type:
229
+ - application/json; charset=utf-8
230
+ Transfer-Encoding:
231
+ - chunked
232
+ Status:
233
+ - 200 OK
234
+ X-Ratelimit-Limit:
235
+ - '5000'
236
+ X-Ratelimit-Remaining:
237
+ - '4400'
238
+ X-Ratelimit-Reset:
239
+ - '1405206221'
240
+ Cache-Control:
241
+ - private, max-age=60, s-maxage=60
242
+ Last-Modified:
243
+ - Sat, 12 Jul 2014 22:37:06 GMT
244
+ X-Oauth-Scopes:
245
+ - public_repo
246
+ X-Accepted-Oauth-Scopes:
247
+ - ''
248
+ Vary:
249
+ - Accept, Authorization, Cookie, X-GitHub-OTP
250
+ - Accept-Encoding
251
+ X-Github-Media-Type:
252
+ - github.v3; format=json
253
+ X-Xss-Protection:
254
+ - 1; mode=block
255
+ X-Frame-Options:
256
+ - deny
257
+ Content-Security-Policy:
258
+ - default-src 'none'
259
+ Access-Control-Allow-Credentials:
260
+ - 'true'
261
+ Access-Control-Expose-Headers:
262
+ - ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
263
+ X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
264
+ Access-Control-Allow-Origin:
265
+ - "*"
266
+ Strict-Transport-Security:
267
+ - max-age=31536000; includeSubdomains
268
+ X-Content-Type-Options:
269
+ - nosniff
270
+ body:
271
+ encoding: UTF-8
272
+ 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":[{"url":"https://api.github.com/repos/akerl/targit/releases/assets/182358","id":182358,"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:12Z","updated_at":"2014-07-12T22:37:12Z","browser_download_url":"https://github.com/akerl/targit/releases/download/testing/beta"}],"tarball_url":"https://api.github.com/repos/akerl/targit/tarball/testing","zipball_url":"https://api.github.com/repos/akerl/targit/zipball/testing","body":null}'
273
+ http_version:
274
+ recorded_at: Sat, 12 Jul 2014 22:37:13 GMT
275
+ - request:
276
+ method: get
277
+ uri: https://api.github.com/repos/akerl/targit/releases/426208/assets?per_page=100
278
+ body:
279
+ encoding: US-ASCII
280
+ string: ''
281
+ headers:
282
+ Accept:
283
+ - application/vnd.github.v3+json
284
+ User-Agent:
285
+ - Octokit Ruby Gem 3.2.0
286
+ Accept-Encoding:
287
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
288
+ response:
289
+ status:
290
+ code: 200
291
+ message: OK
292
+ headers:
293
+ Server:
294
+ - GitHub.com
295
+ Date:
296
+ - Sat, 12 Jul 2014 22:37:15 GMT
297
+ Content-Type:
298
+ - application/json; charset=utf-8
299
+ Transfer-Encoding:
300
+ - chunked
301
+ Status:
302
+ - 200 OK
303
+ X-Ratelimit-Limit:
304
+ - '5000'
305
+ X-Ratelimit-Remaining:
306
+ - '4399'
307
+ X-Ratelimit-Reset:
308
+ - '1405206221'
309
+ Cache-Control:
310
+ - private, max-age=60, s-maxage=60
311
+ X-Oauth-Scopes:
312
+ - public_repo
313
+ X-Accepted-Oauth-Scopes:
314
+ - ''
315
+ Vary:
316
+ - Accept, Authorization, Cookie, X-GitHub-OTP
317
+ - Accept-Encoding
318
+ X-Github-Media-Type:
319
+ - github.v3; format=json
320
+ X-Xss-Protection:
321
+ - 1; mode=block
322
+ X-Frame-Options:
323
+ - deny
324
+ Content-Security-Policy:
325
+ - default-src 'none'
326
+ Access-Control-Allow-Credentials:
327
+ - 'true'
328
+ Access-Control-Expose-Headers:
329
+ - ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
330
+ X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
331
+ Access-Control-Allow-Origin:
332
+ - "*"
333
+ Strict-Transport-Security:
334
+ - max-age=31536000; includeSubdomains
335
+ X-Content-Type-Options:
336
+ - nosniff
337
+ body:
338
+ encoding: UTF-8
339
+ string: '[{"url":"https://api.github.com/repos/akerl/targit/releases/assets/182358","id":182358,"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:12Z","updated_at":"2014-07-12T22:37:12Z","browser_download_url":"https://github.com/akerl/targit/releases/download/testing/beta"}]'
340
+ http_version:
341
+ recorded_at: Sat, 12 Jul 2014 22:37:13 GMT
342
+ - request:
343
+ method: delete
344
+ uri: https://api.github.com/repos/akerl/targit/releases/assets/182358
345
+ body:
346
+ encoding: UTF-8
347
+ string: "{}"
348
+ headers:
349
+ Accept:
350
+ - application/vnd.github.v3+json
351
+ User-Agent:
352
+ - Octokit Ruby Gem 3.2.0
353
+ Accept-Encoding:
354
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
355
+ response:
356
+ status:
357
+ code: 204
358
+ message: No Content
359
+ headers:
360
+ Server:
361
+ - GitHub.com
362
+ Date:
363
+ - Sat, 12 Jul 2014 22:37:15 GMT
364
+ Status:
365
+ - 204 No Content
366
+ X-Ratelimit-Limit:
367
+ - '5000'
368
+ X-Ratelimit-Remaining:
369
+ - '4398'
370
+ X-Ratelimit-Reset:
371
+ - '1405206221'
372
+ X-Oauth-Scopes:
373
+ - public_repo
374
+ X-Accepted-Oauth-Scopes:
375
+ - ''
376
+ X-Github-Media-Type:
377
+ - github.v3; format=json
378
+ X-Xss-Protection:
379
+ - 1; mode=block
380
+ X-Frame-Options:
381
+ - deny
382
+ Content-Security-Policy:
383
+ - default-src 'none'
384
+ Access-Control-Allow-Credentials:
385
+ - 'true'
386
+ Access-Control-Expose-Headers:
387
+ - ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
388
+ X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
389
+ Access-Control-Allow-Origin:
390
+ - "*"
391
+ Strict-Transport-Security:
392
+ - max-age=31536000; includeSubdomains
393
+ X-Content-Type-Options:
394
+ - nosniff
395
+ Vary:
396
+ - Accept-Encoding
397
+ body:
398
+ encoding: UTF-8
399
+ string: ''
400
+ http_version:
401
+ recorded_at: Sat, 12 Jul 2014 22:37:14 GMT
402
+ - request:
403
+ method: get
404
+ uri: https://api.github.com/repos/akerl/targit/releases/426208
405
+ body:
406
+ encoding: US-ASCII
407
+ string: ''
408
+ headers:
409
+ Accept:
410
+ - application/vnd.github.v3+json
411
+ User-Agent:
412
+ - Octokit Ruby Gem 3.2.0
413
+ Accept-Encoding:
414
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
415
+ response:
416
+ status:
417
+ code: 200
418
+ message: OK
419
+ headers:
420
+ Server:
421
+ - GitHub.com
422
+ Date:
423
+ - Sat, 12 Jul 2014 22:37:15 GMT
424
+ Content-Type:
425
+ - application/json; charset=utf-8
426
+ Transfer-Encoding:
427
+ - chunked
428
+ Status:
429
+ - 200 OK
430
+ X-Ratelimit-Limit:
431
+ - '5000'
432
+ X-Ratelimit-Remaining:
433
+ - '4397'
434
+ X-Ratelimit-Reset:
435
+ - '1405206221'
436
+ Cache-Control:
437
+ - private, max-age=60, s-maxage=60
438
+ Last-Modified:
439
+ - Sat, 12 Jul 2014 22:37:06 GMT
440
+ X-Oauth-Scopes:
441
+ - public_repo
442
+ X-Accepted-Oauth-Scopes:
443
+ - ''
444
+ Vary:
445
+ - Accept, Authorization, Cookie, X-GitHub-OTP
446
+ - Accept-Encoding
447
+ X-Github-Media-Type:
448
+ - github.v3; format=json
449
+ X-Xss-Protection:
450
+ - 1; mode=block
451
+ X-Frame-Options:
452
+ - deny
453
+ Content-Security-Policy:
454
+ - default-src 'none'
455
+ Access-Control-Allow-Credentials:
456
+ - 'true'
457
+ Access-Control-Expose-Headers:
458
+ - ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
459
+ X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
460
+ Access-Control-Allow-Origin:
461
+ - "*"
462
+ Strict-Transport-Security:
463
+ - max-age=31536000; includeSubdomains
464
+ X-Content-Type-Options:
465
+ - nosniff
466
+ body:
467
+ encoding: UTF-8
468
+ 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}'
469
+ http_version:
470
+ recorded_at: Sat, 12 Jul 2014 22:37:14 GMT
471
+ - request:
472
+ method: get
473
+ uri: https://api.github.com/repos/akerl/targit/releases/426208/assets?per_page=100
474
+ body:
475
+ encoding: US-ASCII
476
+ string: ''
477
+ headers:
478
+ Accept:
479
+ - application/vnd.github.v3+json
480
+ User-Agent:
481
+ - Octokit Ruby Gem 3.2.0
482
+ Accept-Encoding:
483
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
484
+ response:
485
+ status:
486
+ code: 200
487
+ message: OK
488
+ headers:
489
+ Server:
490
+ - GitHub.com
491
+ Date:
492
+ - Sat, 12 Jul 2014 22:37:15 GMT
493
+ Content-Type:
494
+ - application/json; charset=utf-8
495
+ Status:
496
+ - 200 OK
497
+ X-Ratelimit-Limit:
498
+ - '5000'
499
+ X-Ratelimit-Remaining:
500
+ - '4396'
501
+ X-Ratelimit-Reset:
502
+ - '1405206221'
503
+ Cache-Control:
504
+ - private, max-age=60, s-maxage=60
505
+ X-Oauth-Scopes:
506
+ - public_repo
507
+ X-Accepted-Oauth-Scopes:
508
+ - ''
509
+ Vary:
510
+ - Accept, Authorization, Cookie, X-GitHub-OTP
511
+ - Accept-Encoding
512
+ X-Github-Media-Type:
513
+ - github.v3; format=json
514
+ Link:
515
+ - <https://api.github.com/repositories/21316764/releases/426208/assets?per_page=100&page=0>;
516
+ rel="last"
517
+ X-Xss-Protection:
518
+ - 1; mode=block
519
+ X-Frame-Options:
520
+ - deny
521
+ Content-Security-Policy:
522
+ - default-src 'none'
523
+ Content-Length:
524
+ - '2'
525
+ Access-Control-Allow-Credentials:
526
+ - 'true'
527
+ Access-Control-Expose-Headers:
528
+ - ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset,
529
+ X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
530
+ Access-Control-Allow-Origin:
531
+ - "*"
532
+ Strict-Transport-Security:
533
+ - max-age=31536000; includeSubdomains
534
+ X-Content-Type-Options:
535
+ - nosniff
536
+ body:
537
+ encoding: UTF-8
538
+ string: "[]"
539
+ http_version:
540
+ recorded_at: Sat, 12 Jul 2014 22:37:14 GMT
541
+ recorded_with: VCR 2.9.2