targit 2.1.0 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +2 -5
- data/CHANGELOG.md +14 -0
- data/Gemfile +0 -1
- data/LICENSE +1 -1
- data/README.md +1 -2
- data/Rakefile +1 -2
- data/bin/targit +6 -6
- data/lib/targit/asset.rb +1 -1
- data/lib/targit/client.rb +3 -3
- data/lib/targit/version.rb +1 -1
- data/spec/fixtures/cassettes/asset_autocreate_release.yml +103 -94
- data/spec/fixtures/cassettes/asset_existence_check_fail.yml +79 -73
- data/spec/fixtures/cassettes/asset_existence_check_pass.yml +79 -73
- data/spec/fixtures/cassettes/asset_metadata_absent.yml +79 -76
- data/spec/fixtures/cassettes/asset_metadata_present.yml +251 -232
- data/spec/fixtures/cassettes/asset_url_absent.yml +154 -146
- data/spec/fixtures/cassettes/asset_url_present.yml +252 -237
- data/spec/fixtures/cassettes/asset_without_release.yml +26 -24
- data/spec/fixtures/cassettes/block_existing_asset.yml +79 -73
- data/spec/fixtures/cassettes/create_named_release.yml +80 -76
- data/spec/fixtures/cassettes/create_new_asset.yml +252 -237
- data/spec/fixtures/cassettes/create_new_release.yml +78 -71
- data/spec/fixtures/cassettes/current_asset.yml +22 -158
- data/spec/fixtures/cassettes/current_io_asset.yml +26 -24
- data/spec/fixtures/cassettes/current_releases.yml +26 -24
- data/spec/fixtures/cassettes/delete_asset.yml +207 -195
- data/spec/fixtures/cassettes/no_release_found.yml +26 -24
- data/spec/fixtures/cassettes/release_object.yml +26 -24
- data/spec/fixtures/cassettes/replace_existing_asset.yml +327 -304
- data/spec/spec_helper.rb +3 -13
- data/spec/targit/release_spec.rb +2 -1
- data/targit.gemspec +14 -14
- metadata +29 -88
- data/.circle-ruby +0 -3
- data/.prospectus +0 -11
- data/circle.yml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: dc0bb02032ce5ed9268be4d6cde113cc71c347d0e1b1deb794796c7679341409
|
4
|
+
data.tar.gz: 2117ee5cddd57ba8757d3baace8401429f0caffcce1edc45b8b8f7ba27793bab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 432d12c1b643666334dd0bbec036aa29b9d1bf03dd32146fac3aac316325aee6ff55bd6880c8a48c8d09560ffd1d2d4ed5940483ecf10cda0fb97e9513fe4364
|
7
|
+
data.tar.gz: b1272e44f8de3caf0556c04748be6a8e1f8c47150313cfc4fe86172726a3432cc6a2fbba3022c0be79e875f8d0fcbb77b393868d64cbd9e7ac952255bbbe0684
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
# 2.4.0 / 2022-03-23
|
2
|
+
|
3
|
+
* [BUGFIX] Update Octoauth dependency
|
4
|
+
|
5
|
+
# 2.3.0 / 2020-02-03
|
6
|
+
|
7
|
+
* [BUGFIX] Account for octokit api_endpoint bug
|
8
|
+
* [ENHANCEMENT] Update dependencies
|
9
|
+
* [BUGFIX] Regenerate test fixtures
|
10
|
+
|
11
|
+
# 2.2.0 / 2017-05-12
|
12
|
+
|
13
|
+
* [FEATURE] Support --endpoint in the CLI
|
14
|
+
|
1
15
|
# 2.1.0 / 2017-04-27
|
2
16
|
|
3
17
|
* [FEATURE] Support api_endpoint for octoauth tokens
|
data/Gemfile
CHANGED
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -2,8 +2,7 @@ targit
|
|
2
2
|
=========
|
3
3
|
|
4
4
|
[![Gem Version](https://img.shields.io/gem/v/targit.svg)](https://rubygems.org/gems/targit)
|
5
|
-
[![
|
6
|
-
[![Build Status](https://img.shields.io/circleci/project/akerl/targit/master.svg)](https://circleci.com/gh/akerl/targit)
|
5
|
+
[![Build Status](https://img.shields.io/travis/com/akerl/targit.svg)](https://travis-ci.com/akerl/targit)
|
7
6
|
[![Coverage Status](https://img.shields.io/codecov/c/github/akerl/targit.svg)](https://codecov.io/github/akerl/targit)
|
8
7
|
[![Code Quality](https://img.shields.io/codacy/596c329739534caeb1df1f14a5381355.svg)](https://www.codacy.com/app/akerl/targit)
|
9
8
|
[![MIT Licensed](https://img.shields.io/badge/license-MIT-green.svg)](https://tldrlegal.com/license/mit-license)
|
data/Rakefile
CHANGED
@@ -7,8 +7,7 @@ RSpec::Core::RakeTask.new(:spec)
|
|
7
7
|
|
8
8
|
desc 'Run Rubocop on the gem'
|
9
9
|
RuboCop::RakeTask.new(:rubocop) do |task|
|
10
|
-
task.patterns = ['lib/**/*.rb', 'spec/**/*.rb', 'bin/*']
|
11
10
|
task.fail_on_error = true
|
12
11
|
end
|
13
12
|
|
14
|
-
task default: [
|
13
|
+
task default: %i[spec rubocop build install]
|
data/bin/targit
CHANGED
@@ -15,14 +15,13 @@ Mercenary.program(:targit) do |p|
|
|
15
15
|
p.description 'Tool for adding GitHub release assets'
|
16
16
|
p.syntax 'targit [options] USER/REPO TAG /path/to/file'
|
17
17
|
|
18
|
-
# rubocop:disable Metrics/LineLength
|
19
18
|
p.option :force, '-f', '--force', 'Replace the asset if it already exists'
|
20
19
|
p.option :create, '-c', '--create', 'Create release if it does not exist'
|
21
20
|
p.option :release_name, '-r NAME', '--release NAME', 'Set the release name'
|
22
21
|
p.option :prerelease, '-p', '--prerelease', 'With -c, create as a dev release'
|
23
22
|
p.option :authfile, '-a FILE', '--authfile FILE', 'Set the auth files for GitHub credentials (comma-delimited)'
|
24
23
|
p.option :name, '-n NAME', '--name NAME', 'Set the name for the release asset'
|
25
|
-
|
24
|
+
p.option :api_endpoint, '--endpoint URL', 'Use a custom URL for the GitHub API'
|
26
25
|
|
27
26
|
p.action do |_, options|
|
28
27
|
repo, tag = ARGV.shift 2
|
@@ -30,15 +29,16 @@ Mercenary.program(:targit) do |p|
|
|
30
29
|
puts p
|
31
30
|
elsif !ARGV.empty?
|
32
31
|
ARGV.each { |file| raise("#{file} not found") unless File.exist? file }
|
33
|
-
ARGV.each do |file|
|
32
|
+
ARGV.each do |file| # rubocop:disable Style/CombinableLoops
|
34
33
|
puts "Adding #{file} on #{tag} of #{repo}"
|
35
34
|
upload file, repo, tag, options
|
36
35
|
end
|
37
|
-
elsif
|
36
|
+
elsif !$stdin.tty?
|
38
37
|
raise('Name required if file is passed via STDIN') unless options[:name]
|
39
|
-
upload
|
40
|
-
else
|
38
|
+
upload $stdin, repo, tag, options
|
39
|
+
else # rubocop:disable Lint/DuplicateBranch
|
41
40
|
puts p
|
42
41
|
end
|
43
42
|
end
|
44
43
|
end
|
44
|
+
# rubocop:enable Metrics/BlockLength
|
data/lib/targit/asset.rb
CHANGED
data/lib/targit/client.rb
CHANGED
@@ -13,12 +13,12 @@ module Targit
|
|
13
13
|
|
14
14
|
def _client
|
15
15
|
auth = Octoauth.new octoauth_options
|
16
|
-
Octokit::Client.new(
|
16
|
+
Octokit::Client.new({
|
17
17
|
access_token: auth.token,
|
18
18
|
api_endpoint: @options[:api_endpoint],
|
19
19
|
web_endpoint: @options[:api_endpoint],
|
20
20
|
auto_paginate: true
|
21
|
-
)
|
21
|
+
}.compact)
|
22
22
|
end
|
23
23
|
|
24
24
|
def octoauth_options
|
@@ -33,7 +33,7 @@ module Targit
|
|
33
33
|
|
34
34
|
def authfiles
|
35
35
|
return [:default] unless @options[:authfile]
|
36
|
-
@
|
36
|
+
@authfiles ||= @options[:authfile].split(',')
|
37
37
|
end
|
38
38
|
end
|
39
39
|
end
|
data/lib/targit/version.rb
CHANGED
@@ -10,7 +10,9 @@ http_interactions:
|
|
10
10
|
Accept:
|
11
11
|
- application/vnd.github.v3+json
|
12
12
|
User-Agent:
|
13
|
-
- Octokit Ruby Gem
|
13
|
+
- Octokit Ruby Gem 4.15.0
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
14
16
|
Accept-Encoding:
|
15
17
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
18
|
response:
|
@@ -21,7 +23,7 @@ http_interactions:
|
|
21
23
|
Server:
|
22
24
|
- GitHub.com
|
23
25
|
Date:
|
24
|
-
-
|
26
|
+
- Tue, 04 Feb 2020 07:23:35 GMT
|
25
27
|
Content-Type:
|
26
28
|
- application/json; charset=utf-8
|
27
29
|
Transfer-Encoding:
|
@@ -31,42 +33,42 @@ http_interactions:
|
|
31
33
|
X-Ratelimit-Limit:
|
32
34
|
- '5000'
|
33
35
|
X-Ratelimit-Remaining:
|
34
|
-
- '
|
36
|
+
- '4992'
|
35
37
|
X-Ratelimit-Reset:
|
36
|
-
- '
|
38
|
+
- '1580804477'
|
37
39
|
Cache-Control:
|
38
40
|
- private, max-age=60, s-maxage=60
|
39
|
-
X-Oauth-Scopes:
|
40
|
-
- public_repo
|
41
|
-
X-Accepted-Oauth-Scopes:
|
42
|
-
- ''
|
43
41
|
Vary:
|
44
42
|
- Accept, Authorization, Cookie, X-GitHub-OTP
|
45
|
-
-
|
43
|
+
X-Oauth-Scopes:
|
44
|
+
- read:org, read:user, repo
|
45
|
+
X-Accepted-Oauth-Scopes:
|
46
|
+
- repo
|
46
47
|
X-Github-Media-Type:
|
47
48
|
- 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
49
|
Access-Control-Expose-Headers:
|
57
|
-
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining,
|
58
|
-
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
50
|
+
- ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining,
|
51
|
+
X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval,
|
52
|
+
X-GitHub-Media-Type
|
59
53
|
Access-Control-Allow-Origin:
|
60
54
|
- "*"
|
61
55
|
Strict-Transport-Security:
|
62
|
-
- max-age=31536000; includeSubdomains
|
56
|
+
- max-age=31536000; includeSubdomains; preload
|
57
|
+
X-Frame-Options:
|
58
|
+
- deny
|
63
59
|
X-Content-Type-Options:
|
64
60
|
- nosniff
|
61
|
+
X-Xss-Protection:
|
62
|
+
- 1; mode=block
|
63
|
+
Referrer-Policy:
|
64
|
+
- origin-when-cross-origin, strict-origin-when-cross-origin
|
65
|
+
Content-Security-Policy:
|
66
|
+
- default-src 'none'
|
65
67
|
body:
|
66
|
-
encoding:
|
67
|
-
string: '[{"url":"https://api.github.com/repos/akerl/targit/releases/
|
68
|
+
encoding: ASCII-8BIT
|
69
|
+
string: '[{"url":"https://api.github.com/repos/akerl/targit/releases/23363520","assets_url":"https://api.github.com/repos/akerl/targit/releases/23363520/assets","upload_url":"https://uploads.github.com/repos/akerl/targit/releases/23363520/assets{?name,label}","html_url":"https://github.com/akerl/targit/releases/tag/testing","id":23363520,"node_id":"MDc6UmVsZWFzZTIzMzYzNTIw","tag_name":"testing","target_commitish":"master","name":null,"draft":false,"author":{"login":"akerl","id":491209,"node_id":"MDQ6VXNlcjQ5MTIwOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/491209?v=4","gravatar_id":"","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":"2019-10-31T18:56:45Z","published_at":"2020-02-04T07:22:02Z","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},{"url":"https://api.github.com/repos/akerl/targit/releases/1980148","assets_url":"https://api.github.com/repos/akerl/targit/releases/1980148/assets","upload_url":"https://uploads.github.com/repos/akerl/targit/releases/1980148/assets{?name,label}","html_url":"https://github.com/akerl/targit/releases/tag/1.1.0","id":1980148,"node_id":"MDc6UmVsZWFzZTE5ODAxNDg=","tag_name":"1.1.0","target_commitish":"master","name":null,"draft":false,"author":{"login":"akerl","id":491209,"node_id":"MDQ6VXNlcjQ5MTIwOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/491209?v=4","gravatar_id":"","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":"2015-10-14T02:33:04Z","published_at":"2015-10-19T05:15:22Z","assets":[],"tarball_url":"https://api.github.com/repos/akerl/targit/tarball/1.1.0","zipball_url":"https://api.github.com/repos/akerl/targit/zipball/1.1.0","body":null}]'
|
68
70
|
http_version:
|
69
|
-
recorded_at:
|
71
|
+
recorded_at: Tue, 04 Feb 2020 07:23:35 GMT
|
70
72
|
- request:
|
71
73
|
method: get
|
72
74
|
uri: https://api.github.com/repos/akerl/targit/releases?per_page=100
|
@@ -77,7 +79,9 @@ http_interactions:
|
|
77
79
|
Accept:
|
78
80
|
- application/vnd.github.v3+json
|
79
81
|
User-Agent:
|
80
|
-
- Octokit Ruby Gem
|
82
|
+
- Octokit Ruby Gem 4.15.0
|
83
|
+
Content-Type:
|
84
|
+
- application/json
|
81
85
|
Accept-Encoding:
|
82
86
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
83
87
|
response:
|
@@ -88,7 +92,7 @@ http_interactions:
|
|
88
92
|
Server:
|
89
93
|
- GitHub.com
|
90
94
|
Date:
|
91
|
-
-
|
95
|
+
- Tue, 04 Feb 2020 07:23:35 GMT
|
92
96
|
Content-Type:
|
93
97
|
- application/json; charset=utf-8
|
94
98
|
Transfer-Encoding:
|
@@ -98,42 +102,42 @@ http_interactions:
|
|
98
102
|
X-Ratelimit-Limit:
|
99
103
|
- '5000'
|
100
104
|
X-Ratelimit-Remaining:
|
101
|
-
- '
|
105
|
+
- '4991'
|
102
106
|
X-Ratelimit-Reset:
|
103
|
-
- '
|
107
|
+
- '1580804477'
|
104
108
|
Cache-Control:
|
105
109
|
- private, max-age=60, s-maxage=60
|
106
|
-
X-Oauth-Scopes:
|
107
|
-
- public_repo
|
108
|
-
X-Accepted-Oauth-Scopes:
|
109
|
-
- ''
|
110
110
|
Vary:
|
111
111
|
- Accept, Authorization, Cookie, X-GitHub-OTP
|
112
|
-
-
|
112
|
+
X-Oauth-Scopes:
|
113
|
+
- read:org, read:user, repo
|
114
|
+
X-Accepted-Oauth-Scopes:
|
115
|
+
- repo
|
113
116
|
X-Github-Media-Type:
|
114
117
|
- github.v3; format=json
|
115
|
-
X-Xss-Protection:
|
116
|
-
- 1; mode=block
|
117
|
-
X-Frame-Options:
|
118
|
-
- deny
|
119
|
-
Content-Security-Policy:
|
120
|
-
- default-src 'none'
|
121
|
-
Access-Control-Allow-Credentials:
|
122
|
-
- 'true'
|
123
118
|
Access-Control-Expose-Headers:
|
124
|
-
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining,
|
125
|
-
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
119
|
+
- ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining,
|
120
|
+
X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval,
|
121
|
+
X-GitHub-Media-Type
|
126
122
|
Access-Control-Allow-Origin:
|
127
123
|
- "*"
|
128
124
|
Strict-Transport-Security:
|
129
|
-
- max-age=31536000; includeSubdomains
|
125
|
+
- max-age=31536000; includeSubdomains; preload
|
126
|
+
X-Frame-Options:
|
127
|
+
- deny
|
130
128
|
X-Content-Type-Options:
|
131
129
|
- nosniff
|
130
|
+
X-Xss-Protection:
|
131
|
+
- 1; mode=block
|
132
|
+
Referrer-Policy:
|
133
|
+
- origin-when-cross-origin, strict-origin-when-cross-origin
|
134
|
+
Content-Security-Policy:
|
135
|
+
- default-src 'none'
|
132
136
|
body:
|
133
|
-
encoding:
|
134
|
-
string: '[{"url":"https://api.github.com/repos/akerl/targit/releases/
|
137
|
+
encoding: ASCII-8BIT
|
138
|
+
string: '[{"url":"https://api.github.com/repos/akerl/targit/releases/23363520","assets_url":"https://api.github.com/repos/akerl/targit/releases/23363520/assets","upload_url":"https://uploads.github.com/repos/akerl/targit/releases/23363520/assets{?name,label}","html_url":"https://github.com/akerl/targit/releases/tag/testing","id":23363520,"node_id":"MDc6UmVsZWFzZTIzMzYzNTIw","tag_name":"testing","target_commitish":"master","name":null,"draft":false,"author":{"login":"akerl","id":491209,"node_id":"MDQ6VXNlcjQ5MTIwOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/491209?v=4","gravatar_id":"","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":"2019-10-31T18:56:45Z","published_at":"2020-02-04T07:22:02Z","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},{"url":"https://api.github.com/repos/akerl/targit/releases/1980148","assets_url":"https://api.github.com/repos/akerl/targit/releases/1980148/assets","upload_url":"https://uploads.github.com/repos/akerl/targit/releases/1980148/assets{?name,label}","html_url":"https://github.com/akerl/targit/releases/tag/1.1.0","id":1980148,"node_id":"MDc6UmVsZWFzZTE5ODAxNDg=","tag_name":"1.1.0","target_commitish":"master","name":null,"draft":false,"author":{"login":"akerl","id":491209,"node_id":"MDQ6VXNlcjQ5MTIwOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/491209?v=4","gravatar_id":"","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":"2015-10-14T02:33:04Z","published_at":"2015-10-19T05:15:22Z","assets":[],"tarball_url":"https://api.github.com/repos/akerl/targit/tarball/1.1.0","zipball_url":"https://api.github.com/repos/akerl/targit/zipball/1.1.0","body":null}]'
|
135
139
|
http_version:
|
136
|
-
recorded_at:
|
140
|
+
recorded_at: Tue, 04 Feb 2020 07:23:35 GMT
|
137
141
|
- request:
|
138
142
|
method: post
|
139
143
|
uri: https://api.github.com/repos/akerl/targit/releases
|
@@ -144,7 +148,9 @@ http_interactions:
|
|
144
148
|
Accept:
|
145
149
|
- application/vnd.github.v3+json
|
146
150
|
User-Agent:
|
147
|
-
- Octokit Ruby Gem
|
151
|
+
- Octokit Ruby Gem 4.15.0
|
152
|
+
Content-Type:
|
153
|
+
- application/json
|
148
154
|
Accept-Encoding:
|
149
155
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
150
156
|
response:
|
@@ -155,53 +161,54 @@ http_interactions:
|
|
155
161
|
Server:
|
156
162
|
- GitHub.com
|
157
163
|
Date:
|
158
|
-
-
|
164
|
+
- Tue, 04 Feb 2020 07:23:36 GMT
|
159
165
|
Content-Type:
|
160
166
|
- application/json; charset=utf-8
|
167
|
+
Content-Length:
|
168
|
+
- '1605'
|
161
169
|
Status:
|
162
170
|
- 201 Created
|
163
171
|
X-Ratelimit-Limit:
|
164
172
|
- '5000'
|
165
173
|
X-Ratelimit-Remaining:
|
166
|
-
- '
|
174
|
+
- '4990'
|
167
175
|
X-Ratelimit-Reset:
|
168
|
-
- '
|
176
|
+
- '1580804477'
|
169
177
|
Cache-Control:
|
170
178
|
- private, max-age=60, s-maxage=60
|
179
|
+
Vary:
|
180
|
+
- Accept, Authorization, Cookie, X-GitHub-OTP
|
171
181
|
X-Oauth-Scopes:
|
172
|
-
-
|
182
|
+
- read:org, read:user, repo
|
173
183
|
X-Accepted-Oauth-Scopes:
|
174
|
-
-
|
184
|
+
- repo
|
175
185
|
Location:
|
176
|
-
- https://api.github.com/repos/akerl/targit/releases/
|
177
|
-
Vary:
|
178
|
-
- Accept, Authorization, Cookie, X-GitHub-OTP
|
186
|
+
- https://api.github.com/repos/akerl/targit/releases/23363537
|
179
187
|
X-Github-Media-Type:
|
180
188
|
- github.v3; format=json
|
181
|
-
X-Xss-Protection:
|
182
|
-
- 1; mode=block
|
183
|
-
X-Frame-Options:
|
184
|
-
- deny
|
185
|
-
Content-Security-Policy:
|
186
|
-
- default-src 'none'
|
187
|
-
Content-Length:
|
188
|
-
- '1549'
|
189
|
-
Access-Control-Allow-Credentials:
|
190
|
-
- 'true'
|
191
189
|
Access-Control-Expose-Headers:
|
192
|
-
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining,
|
193
|
-
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
190
|
+
- ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining,
|
191
|
+
X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval,
|
192
|
+
X-GitHub-Media-Type
|
194
193
|
Access-Control-Allow-Origin:
|
195
194
|
- "*"
|
196
195
|
Strict-Transport-Security:
|
197
|
-
- max-age=31536000; includeSubdomains
|
196
|
+
- max-age=31536000; includeSubdomains; preload
|
197
|
+
X-Frame-Options:
|
198
|
+
- deny
|
198
199
|
X-Content-Type-Options:
|
199
200
|
- nosniff
|
201
|
+
X-Xss-Protection:
|
202
|
+
- 1; mode=block
|
203
|
+
Referrer-Policy:
|
204
|
+
- origin-when-cross-origin, strict-origin-when-cross-origin
|
205
|
+
Content-Security-Policy:
|
206
|
+
- default-src 'none'
|
200
207
|
body:
|
201
208
|
encoding: UTF-8
|
202
|
-
string: '{"url":"https://api.github.com/repos/akerl/targit/releases/
|
209
|
+
string: '{"url":"https://api.github.com/repos/akerl/targit/releases/23363537","assets_url":"https://api.github.com/repos/akerl/targit/releases/23363537/assets","upload_url":"https://uploads.github.com/repos/akerl/targit/releases/23363537/assets{?name,label}","html_url":"https://github.com/akerl/targit/releases/tag/more_testing","id":23363537,"node_id":"MDc6UmVsZWFzZTIzMzYzNTM3","tag_name":"more_testing","target_commitish":"master","name":null,"draft":false,"author":{"login":"akerl","id":491209,"node_id":"MDQ6VXNlcjQ5MTIwOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/491209?v=4","gravatar_id":"","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":"2019-10-31T18:56:45Z","published_at":"2020-02-04T07:23:35Z","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}'
|
203
210
|
http_version:
|
204
|
-
recorded_at:
|
211
|
+
recorded_at: Tue, 04 Feb 2020 07:23:36 GMT
|
205
212
|
- request:
|
206
213
|
method: get
|
207
214
|
uri: https://api.github.com/repos/akerl/targit/releases?per_page=100
|
@@ -212,7 +219,9 @@ http_interactions:
|
|
212
219
|
Accept:
|
213
220
|
- application/vnd.github.v3+json
|
214
221
|
User-Agent:
|
215
|
-
- Octokit Ruby Gem
|
222
|
+
- Octokit Ruby Gem 4.15.0
|
223
|
+
Content-Type:
|
224
|
+
- application/json
|
216
225
|
Accept-Encoding:
|
217
226
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
218
227
|
response:
|
@@ -223,7 +232,7 @@ http_interactions:
|
|
223
232
|
Server:
|
224
233
|
- GitHub.com
|
225
234
|
Date:
|
226
|
-
-
|
235
|
+
- Tue, 04 Feb 2020 07:23:36 GMT
|
227
236
|
Content-Type:
|
228
237
|
- application/json; charset=utf-8
|
229
238
|
Transfer-Encoding:
|
@@ -233,40 +242,40 @@ http_interactions:
|
|
233
242
|
X-Ratelimit-Limit:
|
234
243
|
- '5000'
|
235
244
|
X-Ratelimit-Remaining:
|
236
|
-
- '
|
245
|
+
- '4989'
|
237
246
|
X-Ratelimit-Reset:
|
238
|
-
- '
|
247
|
+
- '1580804477'
|
239
248
|
Cache-Control:
|
240
249
|
- private, max-age=60, s-maxage=60
|
241
|
-
X-Oauth-Scopes:
|
242
|
-
- public_repo
|
243
|
-
X-Accepted-Oauth-Scopes:
|
244
|
-
- ''
|
245
250
|
Vary:
|
246
251
|
- Accept, Authorization, Cookie, X-GitHub-OTP
|
247
|
-
-
|
252
|
+
X-Oauth-Scopes:
|
253
|
+
- read:org, read:user, repo
|
254
|
+
X-Accepted-Oauth-Scopes:
|
255
|
+
- repo
|
248
256
|
X-Github-Media-Type:
|
249
257
|
- github.v3; format=json
|
250
|
-
X-Xss-Protection:
|
251
|
-
- 1; mode=block
|
252
|
-
X-Frame-Options:
|
253
|
-
- deny
|
254
|
-
Content-Security-Policy:
|
255
|
-
- default-src 'none'
|
256
|
-
Access-Control-Allow-Credentials:
|
257
|
-
- 'true'
|
258
258
|
Access-Control-Expose-Headers:
|
259
|
-
- ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining,
|
260
|
-
X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval
|
259
|
+
- ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining,
|
260
|
+
X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval,
|
261
|
+
X-GitHub-Media-Type
|
261
262
|
Access-Control-Allow-Origin:
|
262
263
|
- "*"
|
263
264
|
Strict-Transport-Security:
|
264
|
-
- max-age=31536000; includeSubdomains
|
265
|
+
- max-age=31536000; includeSubdomains; preload
|
266
|
+
X-Frame-Options:
|
267
|
+
- deny
|
265
268
|
X-Content-Type-Options:
|
266
269
|
- nosniff
|
270
|
+
X-Xss-Protection:
|
271
|
+
- 1; mode=block
|
272
|
+
Referrer-Policy:
|
273
|
+
- origin-when-cross-origin, strict-origin-when-cross-origin
|
274
|
+
Content-Security-Policy:
|
275
|
+
- default-src 'none'
|
267
276
|
body:
|
268
|
-
encoding:
|
269
|
-
string: '[{"url":"https://api.github.com/repos/akerl/targit/releases/
|
277
|
+
encoding: ASCII-8BIT
|
278
|
+
string: '[{"url":"https://api.github.com/repos/akerl/targit/releases/23363537","assets_url":"https://api.github.com/repos/akerl/targit/releases/23363537/assets","upload_url":"https://uploads.github.com/repos/akerl/targit/releases/23363537/assets{?name,label}","html_url":"https://github.com/akerl/targit/releases/tag/more_testing","id":23363537,"node_id":"MDc6UmVsZWFzZTIzMzYzNTM3","tag_name":"more_testing","target_commitish":"master","name":null,"draft":false,"author":{"login":"akerl","id":491209,"node_id":"MDQ6VXNlcjQ5MTIwOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/491209?v=4","gravatar_id":"","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":"2019-10-31T18:56:45Z","published_at":"2020-02-04T07:23:35Z","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/23363520","assets_url":"https://api.github.com/repos/akerl/targit/releases/23363520/assets","upload_url":"https://uploads.github.com/repos/akerl/targit/releases/23363520/assets{?name,label}","html_url":"https://github.com/akerl/targit/releases/tag/testing","id":23363520,"node_id":"MDc6UmVsZWFzZTIzMzYzNTIw","tag_name":"testing","target_commitish":"master","name":null,"draft":false,"author":{"login":"akerl","id":491209,"node_id":"MDQ6VXNlcjQ5MTIwOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/491209?v=4","gravatar_id":"","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":"2019-10-31T18:56:45Z","published_at":"2020-02-04T07:22:02Z","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},{"url":"https://api.github.com/repos/akerl/targit/releases/1980148","assets_url":"https://api.github.com/repos/akerl/targit/releases/1980148/assets","upload_url":"https://uploads.github.com/repos/akerl/targit/releases/1980148/assets{?name,label}","html_url":"https://github.com/akerl/targit/releases/tag/1.1.0","id":1980148,"node_id":"MDc6UmVsZWFzZTE5ODAxNDg=","tag_name":"1.1.0","target_commitish":"master","name":null,"draft":false,"author":{"login":"akerl","id":491209,"node_id":"MDQ6VXNlcjQ5MTIwOQ==","avatar_url":"https://avatars0.githubusercontent.com/u/491209?v=4","gravatar_id":"","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":"2015-10-14T02:33:04Z","published_at":"2015-10-19T05:15:22Z","assets":[],"tarball_url":"https://api.github.com/repos/akerl/targit/tarball/1.1.0","zipball_url":"https://api.github.com/repos/akerl/targit/zipball/1.1.0","body":null}]'
|
270
279
|
http_version:
|
271
|
-
recorded_at:
|
272
|
-
recorded_with: VCR
|
280
|
+
recorded_at: Tue, 04 Feb 2020 07:23:36 GMT
|
281
|
+
recorded_with: VCR 5.0.0
|