targit 2.2.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. checksums.yaml +5 -5
  2. data/.rubocop.yml +2 -5
  3. data/CHANGELOG.md +14 -0
  4. data/Gemfile +0 -1
  5. data/LICENSE +1 -1
  6. data/README.md +1 -2
  7. data/Rakefile +1 -2
  8. data/bin/targit +5 -6
  9. data/lib/targit/asset.rb +1 -1
  10. data/lib/targit/client.rb +3 -3
  11. data/lib/targit/release.rb +1 -1
  12. data/lib/targit/version.rb +1 -1
  13. data/spec/fixtures/cassettes/asset_autocreate_release.yml +103 -94
  14. data/spec/fixtures/cassettes/asset_existence_check_fail.yml +79 -73
  15. data/spec/fixtures/cassettes/asset_existence_check_pass.yml +79 -73
  16. data/spec/fixtures/cassettes/asset_metadata_absent.yml +79 -76
  17. data/spec/fixtures/cassettes/asset_metadata_present.yml +251 -232
  18. data/spec/fixtures/cassettes/asset_url_absent.yml +154 -146
  19. data/spec/fixtures/cassettes/asset_url_present.yml +252 -237
  20. data/spec/fixtures/cassettes/asset_without_release.yml +26 -24
  21. data/spec/fixtures/cassettes/block_existing_asset.yml +79 -73
  22. data/spec/fixtures/cassettes/create_named_release.yml +80 -76
  23. data/spec/fixtures/cassettes/create_new_asset.yml +252 -237
  24. data/spec/fixtures/cassettes/create_new_release.yml +78 -71
  25. data/spec/fixtures/cassettes/current_asset.yml +22 -158
  26. data/spec/fixtures/cassettes/current_io_asset.yml +26 -24
  27. data/spec/fixtures/cassettes/current_releases.yml +26 -24
  28. data/spec/fixtures/cassettes/delete_asset.yml +207 -195
  29. data/spec/fixtures/cassettes/no_release_found.yml +26 -24
  30. data/spec/fixtures/cassettes/release_object.yml +26 -24
  31. data/spec/fixtures/cassettes/replace_existing_asset.yml +327 -304
  32. data/spec/spec_helper.rb +3 -13
  33. data/spec/targit/release_spec.rb +2 -1
  34. data/targit.gemspec +14 -14
  35. metadata +29 -88
  36. data/.circle-ruby +0 -3
  37. data/.prospectus +0 -11
  38. data/circle.yml +0 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2136a6ade9f4ee00896194f3e50b2a600f220241
4
- data.tar.gz: a41d0b6ffeaa41d5e41d249ee39191f915f5583e
2
+ SHA256:
3
+ metadata.gz: f1dbfe58f889d2e3d928e5b05d7989171cc4fe35a00f712ab171ad130cfa365b
4
+ data.tar.gz: 0c9e3750b9448b66ccfa3fb64c64ea21a566f08363143ef93cd4eed0eb5e0872
5
5
  SHA512:
6
- metadata.gz: 38e2a82bf69ba8c1f42124cb0e46d76a1e1176933df5ffdd30402fc89d729b3bb6ab91f12272a4ec5120e2422e2a2784c1dc7e8c67202974d68a09bbffe7fdf2
7
- data.tar.gz: 775c81772f1f9ce0f811b5eed374a9ad2fe471c51b8ed710d2861ef6cfc2eba52771f692fbdfb6cdbb781d6e1e66e1c2bf07419d440a377b30b3b8c2d934c9cb
6
+ metadata.gz: a549b233a3a84c99b76226bc53caf90f6492aaa2eabbba843f18dd09538b3ea3067816d88ce532ebed80d9c30b996b9aecbcf51390efbd4c884baa40551904d4
7
+ data.tar.gz: 4a197f2503fdfdf037ff87453ed4ba6a564972d60ad439c4c690f86da2f490e3278c422cc6f9bd572b118a6ca3de54ce007d548548b08bb6d625d605e815f63a
data/.rubocop.yml CHANGED
@@ -1,5 +1,2 @@
1
- Encoding:
2
- Enabled: false
3
- Metrics/BlockLength:
4
- Exclude:
5
- - spec/**/*
1
+ inherit_gem:
2
+ goodcop: .rubocop.yml
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # 2.4.1 / 2022-03-29
2
+
3
+ * [BUGFIX] Handle timing mismatch for newly created releases
4
+
5
+ # 2.4.0 / 2022-03-23
6
+
7
+ * [BUGFIX] Update Octoauth dependency
8
+
9
+ # 2.3.0 / 2020-02-03
10
+
11
+ * [BUGFIX] Account for octokit api_endpoint bug
12
+ * [ENHANCEMENT] Update dependencies
13
+ * [BUGFIX] Regenerate test fixtures
14
+
1
15
  # 2.2.0 / 2017-05-12
2
16
 
3
17
  * [FEATURE] Support --endpoint in the CLI
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
-
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2014 Les Aker
3
+ Copyright (c) 2022 Les Aker
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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
- [![Dependency Status](https://img.shields.io/gemnasium/akerl/targit.svg)](https://gemnasium.com/akerl/targit)
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: [:spec, :rubocop, :build, :install]
13
+ task default: %i[spec rubocop build install]
data/bin/targit CHANGED
@@ -15,7 +15,6 @@ 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'
@@ -23,7 +22,6 @@ Mercenary.program(:targit) do |p|
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
- # rubocop:enable Metrics/LineLength
27
25
 
28
26
  p.action do |_, options|
29
27
  repo, tag = ARGV.shift 2
@@ -31,15 +29,16 @@ Mercenary.program(:targit) do |p|
31
29
  puts p
32
30
  elsif !ARGV.empty?
33
31
  ARGV.each { |file| raise("#{file} not found") unless File.exist? file }
34
- ARGV.each do |file|
32
+ ARGV.each do |file| # rubocop:disable Style/CombinableLoops
35
33
  puts "Adding #{file} on #{tag} of #{repo}"
36
34
  upload file, repo, tag, options
37
35
  end
38
- elsif !STDIN.tty?
36
+ elsif !$stdin.tty?
39
37
  raise('Name required if file is passed via STDIN') unless options[:name]
40
- upload STDIN, repo, tag, options
41
- else
38
+ upload $stdin, repo, tag, options
39
+ else # rubocop:disable Lint/DuplicateBranch
42
40
  puts p
43
41
  end
44
42
  end
45
43
  end
44
+ # rubocop:enable Metrics/BlockLength
data/lib/targit/asset.rb CHANGED
@@ -8,7 +8,7 @@ module Targit
8
8
  class Asset
9
9
  include Targit::Client
10
10
 
11
- attr_reader :release, :asset, :name, :github_data
11
+ attr_reader :release, :asset, :name
12
12
 
13
13
  def initialize(asset, repo, tag, params = {})
14
14
  @options = params
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
- @authfile ||= @options[:authfile].split(',')
36
+ @authfiles ||= @options[:authfile].split(',')
37
37
  end
38
38
  end
39
39
  end
@@ -11,7 +11,7 @@ module Targit
11
11
  @tag = tag
12
12
  @options = params
13
13
  @options[:client] ||= client
14
- create if @options.include?(:create) && data.nil?
14
+ @data = create if @options.include?(:create) && data.nil?
15
15
  raise('No release found') if data.nil?
16
16
  end
17
17
 
@@ -3,5 +3,5 @@
3
3
  ##
4
4
  # Set the version (needed for Mercenary -v)
5
5
  module Targit
6
- VERSION = '2.2.0'.freeze
6
+ VERSION = '2.4.1'
7
7
  end
@@ -10,7 +10,9 @@ http_interactions:
10
10
  Accept:
11
11
  - application/vnd.github.v3+json
12
12
  User-Agent:
13
- - Octokit Ruby Gem 3.2.0
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
- - Sat, 12 Jul 2014 22:37:07 GMT
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
- - '4448'
36
+ - '4992'
35
37
  X-Ratelimit-Reset:
36
- - '1405206221'
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
- - Accept-Encoding
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, X-RateLimit-Reset,
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: 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
+ 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: Sat, 12 Jul 2014 22:37:06 GMT
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 3.2.0
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
- - Sat, 12 Jul 2014 22:37:07 GMT
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
- - '4447'
105
+ - '4991'
102
106
  X-Ratelimit-Reset:
103
- - '1405206221'
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
- - Accept-Encoding
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, X-RateLimit-Reset,
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: UTF-8
134
- 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}]'
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: Sat, 12 Jul 2014 22:37:06 GMT
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 3.2.0
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
- - Sat, 12 Jul 2014 22:37:07 GMT
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
- - '4446'
174
+ - '4990'
167
175
  X-Ratelimit-Reset:
168
- - '1405206221'
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
- - public_repo
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/426209
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, X-RateLimit-Reset,
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/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}'
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: Sat, 12 Jul 2014 22:37:06 GMT
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 3.2.0
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
- - Sat, 12 Jul 2014 22:37:07 GMT
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
- - '4445'
245
+ - '4989'
237
246
  X-Ratelimit-Reset:
238
- - '1405206221'
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
- - Accept-Encoding
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, X-RateLimit-Reset,
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: UTF-8
269
- string: '[{"url":"https://api.github.com/repos/akerl/targit/releases/426209","assets_url":"https://api.github.com/repos/akerl/targit/releases/426209/assets","upload_url":"https://uploads.github.com/repos/akerl/targit/releases/426209/assets{?name}","html_url":"https://github.com/akerl/targit/releases/tag/more_testing","id":426209,"tag_name":"more_testing","target_commitish":"master","name":null,"draft":false,"author":{"login":"akerl","id":491209,"avatar_url":"https://avatars.githubusercontent.com/u/491209?","gravatar_id":"819691dc5c197c042ccd16b894545673","url":"https://api.github.com/users/akerl","html_url":"https://github.com/akerl","followers_url":"https://api.github.com/users/akerl/followers","following_url":"https://api.github.com/users/akerl/following{/other_user}","gists_url":"https://api.github.com/users/akerl/gists{/gist_id}","starred_url":"https://api.github.com/users/akerl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akerl/subscriptions","organizations_url":"https://api.github.com/users/akerl/orgs","repos_url":"https://api.github.com/users/akerl/repos","events_url":"https://api.github.com/users/akerl/events{/privacy}","received_events_url":"https://api.github.com/users/akerl/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2014-07-12T20:38:20Z","published_at":"2014-07-12T22:37:07Z","assets":[],"tarball_url":"https://api.github.com/repos/akerl/targit/tarball/more_testing","zipball_url":"https://api.github.com/repos/akerl/targit/zipball/more_testing","body":null},{"url":"https://api.github.com/repos/akerl/targit/releases/426208","assets_url":"https://api.github.com/repos/akerl/targit/releases/426208/assets","upload_url":"https://uploads.github.com/repos/akerl/targit/releases/426208/assets{?name}","html_url":"https://github.com/akerl/targit/releases/tag/testing","id":426208,"tag_name":"testing","target_commitish":"master","name":null,"draft":false,"author":{"login":"akerl","id":491209,"avatar_url":"https://avatars.githubusercontent.com/u/491209?","gravatar_id":"819691dc5c197c042ccd16b894545673","url":"https://api.github.com/users/akerl","html_url":"https://github.com/akerl","followers_url":"https://api.github.com/users/akerl/followers","following_url":"https://api.github.com/users/akerl/following{/other_user}","gists_url":"https://api.github.com/users/akerl/gists{/gist_id}","starred_url":"https://api.github.com/users/akerl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akerl/subscriptions","organizations_url":"https://api.github.com/users/akerl/orgs","repos_url":"https://api.github.com/users/akerl/repos","events_url":"https://api.github.com/users/akerl/events{/privacy}","received_events_url":"https://api.github.com/users/akerl/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2014-07-12T20:38:20Z","published_at":"2014-07-12T22:37:06Z","assets":[],"tarball_url":"https://api.github.com/repos/akerl/targit/tarball/testing","zipball_url":"https://api.github.com/repos/akerl/targit/zipball/testing","body":null}]'
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: Sat, 12 Jul 2014 22:37:06 GMT
272
- recorded_with: VCR 2.9.2
280
+ recorded_at: Tue, 04 Feb 2020 07:23:36 GMT
281
+ recorded_with: VCR 5.0.0