targit 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circle-ruby +4 -3
- data/.prospectus +8 -8
- data/.rubocop.yml +2 -5
- data/.travis.yml +10 -0
- data/CHANGELOG.md +6 -0
- data/Gemfile +0 -1
- data/README.md +1 -2
- data/Rakefile +1 -2
- data/bin/targit +1 -0
- 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 +13 -11
- metadata +50 -37
- data/circle.yml +0 -7
data/spec/spec_helper.rb
CHANGED
@@ -1,17 +1,7 @@
|
|
1
|
-
if ENV['CI'] == 'true'
|
2
|
-
require 'simplecov'
|
3
|
-
require 'codecov'
|
4
|
-
SimpleCov.formatter = SimpleCov::Formatter::Codecov
|
5
|
-
SimpleCov.start do
|
6
|
-
add_filter '/spec/'
|
7
|
-
end
|
8
|
-
end
|
9
|
-
|
10
1
|
require 'rspec'
|
11
2
|
require 'targit'
|
12
|
-
require 'webmock'
|
13
|
-
|
14
|
-
WebMock.enable!
|
3
|
+
require 'webmock/rspec'
|
4
|
+
require 'vcr'
|
15
5
|
|
16
6
|
unless File.exist? 'spec/.creds'
|
17
7
|
File.open('spec/.creds', 'w') do |fh|
|
@@ -19,8 +9,8 @@ unless File.exist? 'spec/.creds'
|
|
19
9
|
end
|
20
10
|
end
|
21
11
|
|
22
|
-
require 'vcr'
|
23
12
|
VCR.configure do |c|
|
13
|
+
c.configure_rspec_metadata!
|
24
14
|
c.cassette_library_dir = 'spec/fixtures/cassettes'
|
25
15
|
c.hook_into :webmock
|
26
16
|
c.before_record do |i|
|
data/spec/targit/release_spec.rb
CHANGED
data/targit.gemspec
CHANGED
@@ -1,13 +1,14 @@
|
|
1
|
-
|
1
|
+
require 'English'
|
2
|
+
$LOAD_PATH.unshift File.expand_path('lib', __dir__)
|
2
3
|
require 'targit/version'
|
3
4
|
|
4
5
|
Gem::Specification.new do |s|
|
5
6
|
s.name = 'targit'
|
6
7
|
s.version = Targit::VERSION
|
7
|
-
s.date = Time.now.strftime(
|
8
|
+
s.date = Time.now.strftime('%Y-%m-%d')
|
8
9
|
|
9
10
|
s.summary = 'Tool for adding GitHub release assets'
|
10
|
-
s.description =
|
11
|
+
s.description = 'Manages GitHub release assets for pushing binaries and other large files' # rubocop:disable Metrics/LineLength
|
11
12
|
s.authors = ['Les Aker']
|
12
13
|
s.email = 'me@lesaker.org'
|
13
14
|
s.homepage = 'https://github.com/akerl/targit'
|
@@ -17,16 +18,17 @@ Gem::Specification.new do |s|
|
|
17
18
|
s.test_files = `git ls-files spec/*`.split
|
18
19
|
s.executables = ['targit']
|
19
20
|
|
20
|
-
s.add_dependency 'octokit', '~> 4.7.0'
|
21
|
-
s.add_dependency 'octoauth', '~> 1.4.7'
|
22
21
|
s.add_dependency 'mercenary', '~> 0.3.4'
|
23
22
|
s.add_dependency 'mime-types', '~> 3.0'
|
23
|
+
s.add_dependency 'octoauth', '~> 1.6.0'
|
24
|
+
s.add_dependency 'octokit', '~> 4.15.0'
|
24
25
|
|
25
|
-
s.add_development_dependency 'rubocop', '~> 0.48.0'
|
26
|
-
s.add_development_dependency 'rake', '~> 12.0.0'
|
27
26
|
s.add_development_dependency 'codecov', '~> 0.1.1'
|
28
|
-
s.add_development_dependency '
|
29
|
-
s.add_development_dependency '
|
30
|
-
s.add_development_dependency '
|
31
|
-
s.add_development_dependency '
|
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'
|
32
|
+
s.add_development_dependency 'vcr', '~> 5.0.0'
|
33
|
+
s.add_development_dependency 'webmock', '~> 3.8.0'
|
32
34
|
end
|
metadata
CHANGED
@@ -1,169 +1,183 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: targit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Les Aker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: mercenary
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.3.4
|
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:
|
26
|
+
version: 0.3.4
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: mime-types
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '3.0'
|
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:
|
40
|
+
version: '3.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: octoauth
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 1.6.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:
|
54
|
+
version: 1.6.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: octokit
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 4.15.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:
|
68
|
+
version: 4.15.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: codecov
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.1.1
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.1.1
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: fuubar
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 2.5.0
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 2.5.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: goodcop
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
103
|
+
version: 0.8.0
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
110
|
+
version: 0.8.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: rake
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 13.0.0
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: 13.0.0
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: rspec
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: 3.9.0
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: 3.9.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
140
|
+
name: rubocop
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
145
|
+
version: 0.76.0
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
152
|
+
version: 0.76.0
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: vcr
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
159
|
+
version: 5.0.0
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 5.0.0
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: webmock
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 3.8.0
|
160
174
|
type: :development
|
161
175
|
prerelease: false
|
162
176
|
version_requirements: !ruby/object:Gem::Requirement
|
163
177
|
requirements:
|
164
178
|
- - "~>"
|
165
179
|
- !ruby/object:Gem::Version
|
166
|
-
version: 3.
|
180
|
+
version: 3.8.0
|
167
181
|
description: Manages GitHub release assets for pushing binaries and other large files
|
168
182
|
email: me@lesaker.org
|
169
183
|
executables:
|
@@ -176,13 +190,13 @@ files:
|
|
176
190
|
- ".prospectus"
|
177
191
|
- ".rspec"
|
178
192
|
- ".rubocop.yml"
|
193
|
+
- ".travis.yml"
|
179
194
|
- CHANGELOG.md
|
180
195
|
- Gemfile
|
181
196
|
- LICENSE
|
182
197
|
- README.md
|
183
198
|
- Rakefile
|
184
199
|
- bin/targit
|
185
|
-
- circle.yml
|
186
200
|
- lib/targit.rb
|
187
201
|
- lib/targit/asset.rb
|
188
202
|
- lib/targit/client.rb
|
@@ -234,8 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
248
|
- !ruby/object:Gem::Version
|
235
249
|
version: '0'
|
236
250
|
requirements: []
|
237
|
-
|
238
|
-
rubygems_version: 2.6.11
|
251
|
+
rubygems_version: 3.0.1
|
239
252
|
signing_key:
|
240
253
|
specification_version: 4
|
241
254
|
summary: Tool for adding GitHub release assets
|
data/circle.yml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
dependencies:
|
2
|
-
override:
|
3
|
-
- 'for i in $(cat .circle-ruby) ; do rvm-exec $i gem update --system --no-doc || exit 1 ; done'
|
4
|
-
- 'for i in $(cat .circle-ruby) ; do rvm-exec $i bundle install || exit 1 ; done'
|
5
|
-
test:
|
6
|
-
override:
|
7
|
-
- 'for i in $(cat .circle-ruby) ; do rvm-exec $i bundle exec rake || exit 1 ; done'
|