targit 2.2.0 → 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +5 -5
  2. data/.circle-ruby +4 -3
  3. data/.prospectus +8 -8
  4. data/.rubocop.yml +2 -5
  5. data/.travis.yml +10 -0
  6. data/CHANGELOG.md +6 -0
  7. data/Gemfile +0 -1
  8. data/README.md +1 -2
  9. data/Rakefile +1 -2
  10. data/bin/targit +1 -0
  11. data/lib/targit/asset.rb +1 -1
  12. data/lib/targit/client.rb +3 -3
  13. data/lib/targit/version.rb +1 -1
  14. data/spec/fixtures/cassettes/asset_autocreate_release.yml +103 -94
  15. data/spec/fixtures/cassettes/asset_existence_check_fail.yml +79 -73
  16. data/spec/fixtures/cassettes/asset_existence_check_pass.yml +79 -73
  17. data/spec/fixtures/cassettes/asset_metadata_absent.yml +79 -76
  18. data/spec/fixtures/cassettes/asset_metadata_present.yml +251 -232
  19. data/spec/fixtures/cassettes/asset_url_absent.yml +154 -146
  20. data/spec/fixtures/cassettes/asset_url_present.yml +252 -237
  21. data/spec/fixtures/cassettes/asset_without_release.yml +26 -24
  22. data/spec/fixtures/cassettes/block_existing_asset.yml +79 -73
  23. data/spec/fixtures/cassettes/create_named_release.yml +80 -76
  24. data/spec/fixtures/cassettes/create_new_asset.yml +252 -237
  25. data/spec/fixtures/cassettes/create_new_release.yml +78 -71
  26. data/spec/fixtures/cassettes/current_asset.yml +22 -158
  27. data/spec/fixtures/cassettes/current_io_asset.yml +26 -24
  28. data/spec/fixtures/cassettes/current_releases.yml +26 -24
  29. data/spec/fixtures/cassettes/delete_asset.yml +207 -195
  30. data/spec/fixtures/cassettes/no_release_found.yml +26 -24
  31. data/spec/fixtures/cassettes/release_object.yml +26 -24
  32. data/spec/fixtures/cassettes/replace_existing_asset.yml +327 -304
  33. data/spec/spec_helper.rb +3 -13
  34. data/spec/targit/release_spec.rb +2 -1
  35. data/targit.gemspec +13 -11
  36. metadata +50 -37
  37. data/circle.yml +0 -7
@@ -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|
@@ -42,7 +42,8 @@ describe Targit do
42
42
  release = Targit::Release.new(
43
43
  'akerl/targit',
44
44
  'new_release',
45
- create: 'special',
45
+ create: true,
46
+ release_name: 'special',
46
47
  authfile: 'spec/.creds'
47
48
  )
48
49
  expect(release.data[:name]).to eql 'special'
@@ -1,13 +1,14 @@
1
- $:.unshift File.expand_path('../lib/', __FILE__)
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("%Y-%m-%d")
8
+ s.date = Time.now.strftime('%Y-%m-%d')
8
9
 
9
10
  s.summary = 'Tool for adding GitHub release assets'
10
- s.description = "Manages GitHub release assets for pushing binaries and other large files"
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 'rspec', '~> 3.6.0'
29
- s.add_development_dependency 'fuubar', '~> 2.2.0'
30
- s.add_development_dependency 'webmock', '~> 3.0.0'
31
- s.add_development_dependency 'vcr', '~> 3.0.0'
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.2.0
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: 2017-05-12 00:00:00.000000000 Z
11
+ date: 2020-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: octokit
14
+ name: mercenary
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 4.7.0
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: 4.7.0
26
+ version: 0.3.4
27
27
  - !ruby/object:Gem::Dependency
28
- name: octoauth
28
+ name: mime-types
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.4.7
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: 1.4.7
40
+ version: '3.0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: mercenary
42
+ name: octoauth
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.3.4
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: 0.3.4
54
+ version: 1.6.0
55
55
  - !ruby/object:Gem::Dependency
56
- name: mime-types
56
+ name: octokit
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.0'
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: '3.0'
68
+ version: 4.15.0
69
69
  - !ruby/object:Gem::Dependency
70
- name: rubocop
70
+ name: codecov
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.48.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.48.0
82
+ version: 0.1.1
83
83
  - !ruby/object:Gem::Dependency
84
- name: rake
84
+ name: fuubar
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 12.0.0
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: 12.0.0
96
+ version: 2.5.0
97
97
  - !ruby/object:Gem::Dependency
98
- name: codecov
98
+ name: goodcop
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.1.1
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.1.1
110
+ version: 0.8.0
111
111
  - !ruby/object:Gem::Dependency
112
- name: rspec
112
+ name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 3.6.0
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: 3.6.0
124
+ version: 13.0.0
125
125
  - !ruby/object:Gem::Dependency
126
- name: fuubar
126
+ name: rspec
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 2.2.0
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: 2.2.0
138
+ version: 3.9.0
139
139
  - !ruby/object:Gem::Dependency
140
- name: webmock
140
+ name: rubocop
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 3.0.0
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: 3.0.0
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: 3.0.0
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.0.0
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
- rubyforge_project:
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'