targit 2.3.0 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f5dafa01a783e6660f0cc3d9cb8eead6db80c5609419ec09b2ca06938db1ab4
4
- data.tar.gz: f6a3901c13fb99f67f38ab6720bd82ec179f6fbee31fe7a47a3e9492f94aaad7
3
+ metadata.gz: dc0bb02032ce5ed9268be4d6cde113cc71c347d0e1b1deb794796c7679341409
4
+ data.tar.gz: 2117ee5cddd57ba8757d3baace8401429f0caffcce1edc45b8b8f7ba27793bab
5
5
  SHA512:
6
- metadata.gz: 6f43b12a023e4735c70ea85098a8560db64d65a0a7e72b57cf18da984418c63f5de4ffec17e111ddf267c52e6082d5ea2e2fab30d42cbb33fb91fa98e281db66
7
- data.tar.gz: ec25b1de61dff06866a8a5dad10b1f3f3e303e095ef57deca322200b4ae505a82d856dddc79638181671ebc37b04a7a8147380393d5cd875cbc6ab16e15bc48c
6
+ metadata.gz: 432d12c1b643666334dd0bbec036aa29b9d1bf03dd32146fac3aac316325aee6ff55bd6880c8a48c8d09560ffd1d2d4ed5940483ecf10cda0fb97e9513fe4364
7
+ data.tar.gz: b1272e44f8de3caf0556c04748be6a8e1f8c47150313cfc4fe86172726a3432cc6a2fbba3022c0be79e875f8d0fcbb77b393868d64cbd9e7ac952255bbbe0684
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 2.4.0 / 2022-03-23
2
+
3
+ * [BUGFIX] Update Octoauth dependency
4
+
1
5
  # 2.3.0 / 2020-02-03
2
6
 
3
7
  * [BUGFIX] Account for octokit api_endpoint bug
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/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,14 +29,14 @@ 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
@@ -3,5 +3,5 @@
3
3
  ##
4
4
  # Set the version (needed for Mercenary -v)
5
5
  module Targit
6
- VERSION = '2.3.0'
6
+ VERSION = '2.4.0'
7
7
  end
data/targit.gemspec CHANGED
@@ -5,10 +5,11 @@ require 'targit/version'
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'targit'
7
7
  s.version = Targit::VERSION
8
- s.date = Time.now.strftime('%Y-%m-%d')
8
+
9
+ s.required_ruby_version = '>= 3.0'
9
10
 
10
11
  s.summary = 'Tool for adding GitHub release assets'
11
- s.description = 'Manages GitHub release assets for pushing binaries and other large files' # rubocop:disable Metrics/LineLength
12
+ s.description = 'Manages GitHub release assets for pushing binaries and other large files'
12
13
  s.authors = ['Les Aker']
13
14
  s.email = 'me@lesaker.org'
14
15
  s.homepage = 'https://github.com/akerl/targit'
@@ -18,17 +19,14 @@ Gem::Specification.new do |s|
18
19
  s.test_files = `git ls-files spec/*`.split
19
20
  s.executables = ['targit']
20
21
 
21
- s.add_dependency 'mercenary', '~> 0.3.4'
22
- s.add_dependency 'mime-types', '~> 3.0'
23
- s.add_dependency 'octoauth', '~> 1.6.0'
24
- s.add_dependency 'octokit', '~> 4.15.0'
22
+ s.add_dependency 'mercenary', '~> 0.4.0'
23
+ s.add_dependency 'mime-types', '~> 3.4.1'
24
+ s.add_dependency 'octoauth', '~> 1.9.0'
25
+ s.add_dependency 'octokit', '~> 4.22.0'
25
26
 
26
- s.add_development_dependency 'codecov', '~> 0.1.1'
27
- s.add_development_dependency 'fuubar', '~> 2.5.0'
28
- s.add_development_dependency 'goodcop', '~> 0.8.0'
29
- s.add_development_dependency 'rake', '~> 13.0.0'
30
- s.add_development_dependency 'rspec', '~> 3.9.0'
31
- s.add_development_dependency 'rubocop', '~> 0.76.0'
27
+ s.add_development_dependency 'goodcop', '~> 0.9.5'
32
28
  s.add_development_dependency 'vcr', '~> 5.0.0'
33
29
  s.add_development_dependency 'webmock', '~> 3.8.0'
30
+
31
+ s.metadata['rubygems_mfa_required'] = 'true'
34
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: targit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-04 00:00:00.000000000 Z
11
+ date: 2022-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mercenary
@@ -16,140 +16,70 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.3.4
19
+ version: 0.4.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.3.4
26
+ version: 0.4.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mime-types
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '3.0'
33
+ version: 3.4.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '3.0'
40
+ version: 3.4.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: octoauth
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.6.0
47
+ version: 1.9.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.6.0
54
+ version: 1.9.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: octokit
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 4.15.0
61
+ version: 4.22.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 4.15.0
69
- - !ruby/object:Gem::Dependency
70
- name: codecov
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: 0.1.1
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: 0.1.1
83
- - !ruby/object:Gem::Dependency
84
- name: fuubar
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: 2.5.0
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: 2.5.0
68
+ version: 4.22.0
97
69
  - !ruby/object:Gem::Dependency
98
70
  name: goodcop
99
71
  requirement: !ruby/object:Gem::Requirement
100
72
  requirements:
101
73
  - - "~>"
102
74
  - !ruby/object:Gem::Version
103
- version: 0.8.0
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: 0.8.0
111
- - !ruby/object:Gem::Dependency
112
- name: rake
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: 13.0.0
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: 13.0.0
125
- - !ruby/object:Gem::Dependency
126
- name: rspec
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: 3.9.0
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: 3.9.0
139
- - !ruby/object:Gem::Dependency
140
- name: rubocop
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: 0.76.0
75
+ version: 0.9.5
146
76
  type: :development
147
77
  prerelease: false
148
78
  version_requirements: !ruby/object:Gem::Requirement
149
79
  requirements:
150
80
  - - "~>"
151
81
  - !ruby/object:Gem::Version
152
- version: 0.76.0
82
+ version: 0.9.5
153
83
  - !ruby/object:Gem::Dependency
154
84
  name: vcr
155
85
  requirement: !ruby/object:Gem::Requirement
@@ -185,12 +115,9 @@ executables:
185
115
  extensions: []
186
116
  extra_rdoc_files: []
187
117
  files:
188
- - ".circle-ruby"
189
118
  - ".gitignore"
190
- - ".prospectus"
191
119
  - ".rspec"
192
120
  - ".rubocop.yml"
193
- - ".travis.yml"
194
121
  - CHANGELOG.md
195
122
  - Gemfile
196
123
  - LICENSE
@@ -232,8 +159,9 @@ files:
232
159
  homepage: https://github.com/akerl/targit
233
160
  licenses:
234
161
  - MIT
235
- metadata: {}
236
- post_install_message:
162
+ metadata:
163
+ rubygems_mfa_required: 'true'
164
+ post_install_message:
237
165
  rdoc_options: []
238
166
  require_paths:
239
167
  - lib
@@ -241,15 +169,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
241
169
  requirements:
242
170
  - - ">="
243
171
  - !ruby/object:Gem::Version
244
- version: '0'
172
+ version: '3.0'
245
173
  required_rubygems_version: !ruby/object:Gem::Requirement
246
174
  requirements:
247
175
  - - ">="
248
176
  - !ruby/object:Gem::Version
249
177
  version: '0'
250
178
  requirements: []
251
- rubygems_version: 3.0.1
252
- signing_key:
179
+ rubygems_version: 3.3.7
180
+ signing_key:
253
181
  specification_version: 4
254
182
  summary: Tool for adding GitHub release assets
255
183
  test_files:
data/.circle-ruby DELETED
@@ -1,4 +0,0 @@
1
- 2.6.1
2
- 2.5.3
3
- 2.4.5
4
- 2.3.8
data/.prospectus DELETED
@@ -1,11 +0,0 @@
1
- my_slug = 'akerl/targit'
2
-
3
- Prospectus.extra_dep('file', 'prospectus_travis')
4
- Prospectus.extra_dep('file', 'prospectus_gems')
5
-
6
- item do
7
- noop
8
-
9
- extend ProspectusGems::Gemspec.new
10
- extend ProspectusTravis::Build.new(my_slug)
11
- end
data/.travis.yml DELETED
@@ -1,10 +0,0 @@
1
- dist: xenial
2
- install:
3
- - for i in $(cat .circle-ruby) ; do rvm install $i || exit 1 ; done
4
- - for i in $(cat .circle-ruby) ; do rvm-exec $i bundle install || exit 1 ; done
5
- script:
6
- - for i in $(cat .circle-ruby) ; do rvm-exec $i bundle exec rake || exit 1 ; done
7
- notifications:
8
- email: false
9
- slack:
10
- secure: CGqRjSwOFvW7AE8puUc35Us+VcAMsGsS+jnSox3FE+svyAd/0ZzIYYomgPp+5hgZx4Z62OZWfx7B+YZHoYy2oatgPDjSgOQAnyrvwgTwoEMo6IC9TtKpizWvBoQPwhrTIPdCDNsRBVjsbljbZdwqeowmTB0wZVgN9NiBtZ5oT1k15avejGIwLX+GCaVgFk7k/cPt0qBkReiOOwKKwtdKVnhxsZy6CSwcFAnx/suB/YM9y6vCd/AQKv2FJZtUaekDpD2b+z5wlasxzIURBStNu3rSSt5rmbwNRVI8sYqD+zlg0Gt2M9Zm47uSN16DhJOzwUiQqgQmYkNbbB8Gv/bhN9oFfKeRrIJDgU/NSWsKJ4MA+K3eOfPkI4vIcKuzq4q1omduMoSqEEBxY47Q3HUtImvTrjWmPngizMzI90+aGDsa4SWMSP0socZaaHjraLoGiyG/odJWUQmt/8mbkD9o3EaYy/DE1mJCERneuK6rLTn0HNZ9EV15b4mciwzHNGEBp6F4/vF8zdSjbR306RxEB9IulsGJ3JT1CsU26UU94FziEFQzQGq1R4FjaE73lHkwz9VUo/PqYMUzcV9dffhANHGZhrASAl9VCUpZpjYhDeQnFjHqkSBQPSmMNPFMBY2FlI3ku8puJyZ3nN07ru+7l9TzA8sO53qyQN2H4woENVA=