gemsmith 14.8.0 → 15.0.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: 397efe531a69a9150f480648852be52e1c69d843e33f421881ac81ca487ca251
4
- data.tar.gz: cf890006f3f55b26e0e238fcbe2115fb12e3a129c28d80dc85f9ad64009e47de
3
+ metadata.gz: 7b93f0906b6ecc3a165d3afd1ff96476cae5796b1aa8a2ae821fbcc4411e79cc
4
+ data.tar.gz: d5a430092023af8d54bd9f06e1cc8a9524998b247766e4bd35d73aa360d68f87
5
5
  SHA512:
6
- metadata.gz: 2c5780aa9915f219aa495d092b418eeff1c821e5a437efc9e9f2f8390f936b8cd9e70f8ef504cd3bc6c0657a328749e2a4621416c690429953933440e5146021
7
- data.tar.gz: bb89f21fb86f7e6304626b98175e63c70e958cce5e47de2b6c83f757636ed340718c62ce16781c0e9118bd862ba50c41f2cc2234f82e93e406902dc24f1cfdb8
6
+ metadata.gz: d89d23d15d231c203e3e990347f4345f35f8d2bc1194da76680f17a0a1a6793f659f98eb12dab1c485fcebd9e34dd1878cb11301889dfadbcf0659c0d6f89485
7
+ data.tar.gz: 434780f815a7740bae28ebb2be05fc5a5a5707c752bc65c23ef82917e63da9e1a049b4f771db6da687a680e881055b39aaa2dec43998cefa5a32711490cebf37
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -13,13 +13,13 @@ module Gemsmith
13
13
  end
14
14
 
15
15
  def self.version_segments version
16
- String(version).split(Versionaire::DELIMITER).map(&:to_i)
16
+ String(version).split(Versionaire::Version.delimiter).map(&:to_i)
17
17
  end
18
18
 
19
19
  def self.for object
20
20
  case object
21
21
  when String
22
- operator, version = object.split " "
22
+ operator, version = object.split
23
23
  new operator: operator, raw_version: version
24
24
  else
25
25
  fail Errors::RequirementConversion,
@@ -22,7 +22,7 @@ module Gemsmith
22
22
  end
23
23
 
24
24
  def render_namespace &block
25
- body = capture(&block) if block_given?
25
+ body = capture(&block) if block
26
26
  concat Gem::ModuleFormatter.new(gem_class).render(body)
27
27
  end
28
28
  end
@@ -5,7 +5,7 @@ module Gemsmith
5
5
  module Identity
6
6
  NAME = "gemsmith"
7
7
  LABEL = "Gemsmith"
8
- VERSION = "14.8.0"
8
+ VERSION = "15.0.0"
9
9
  VERSION_LABEL = "#{LABEL} #{VERSION}"
10
10
  URL = "https://www.alchemists.io/projects/gemsmith"
11
11
  end
@@ -26,41 +26,9 @@ Gem::Specification.new do |spec|
26
26
  spec.add_dependency "rails", "~> <%= config.dig(:versions, :rails) %>"
27
27
  <%- end -%>
28
28
  <%- if config.dig(:generate, :cli) -%>
29
- spec.add_dependency "runcom", "~> 6.4"
29
+ spec.add_dependency "runcom", "~> 7.0"
30
30
  spec.add_dependency "thor", "~> 0.20"
31
31
  <%- end -%>
32
- <%- if config.dig(:generate, :bundler_audit) -%>
33
- spec.add_development_dependency "bundler-audit", "~> 0.7"
34
- <%- end -%>
35
- spec.add_development_dependency "gemsmith", "~> <%= Gemsmith::Identity::VERSION[/\d+\.\d+/] %>"
36
- <%- if config.dig(:generate, :git_lint) -%>
37
- spec.add_development_dependency "git-lint", "~> 1.0"
38
- <%- end -%>
39
- <%- if config.dig(:generate, :guard) -%>
40
- spec.add_development_dependency "guard-rspec", "~> 4.7"
41
- <%- end -%>
42
- <%- if config.dig(:generate, :pry) -%>
43
- spec.add_development_dependency "pry", "~> 0.13"
44
- spec.add_development_dependency "pry-byebug", "~> 3.9"
45
- <%- end -%>
46
- spec.add_development_dependency "rake", "~> 13.0"
47
- <%- if config.dig(:generate, :reek) -%>
48
- spec.add_development_dependency "reek", "~> 6.0"
49
- <%- end -%>
50
- <%- if config.dig(:generate, :rspec) -%>
51
- spec.add_development_dependency "<%= config.dig(:generate, :engine) ? "rspec-rails" : "rspec" %>", "~> 3.9"
52
- <%- end -%>
53
- <%- if config.dig(:generate, :rubocop) -%>
54
- spec.add_development_dependency "rubocop", "~> 1.3"
55
- spec.add_development_dependency "rubocop-performance", "~> 1.8"
56
- spec.add_development_dependency "rubocop-rake", "~> 0.5"
57
- <%- end -%>
58
- <%- if config.dig(:generate, :rubocop) && config.dig(:generate, :rspec) -%>
59
- spec.add_development_dependency "rubocop-rspec", "~> 2.0"
60
- <%- end -%>
61
- <%- if config.dig(:generate, :simple_cov) -%>
62
- spec.add_development_dependency "simplecov", "~> 0.19"
63
- <%- end -%>
64
32
 
65
33
  <%- if config.dig(:generate, :engine) -%>
66
34
  spec.files = Dir["app/**/*", "bin/**/*", "config/**/*", "lib/**/*", "vendor/**/*"]
@@ -1,2 +1,47 @@
1
1
  source "https://rubygems.org"
2
+
2
3
  gemspec
4
+
5
+ group :code_quality do
6
+ <%- if config.dig(:generate, :bundler_audit) -%>
7
+ gem "bundler-audit", "~> 0.7"
8
+ <%- end -%>
9
+ <%- if config.dig(:generate, :git_lint) -%>
10
+ gem "git-lint", "~> 2.0"
11
+ <%- end -%>
12
+ <%- if config.dig(:generate, :reek) -%>
13
+ gem "reek", "~> 6.0"
14
+ <%- end -%>
15
+ <%- if config.dig(:generate, :rubocop) -%>
16
+ gem "rubocop", "~> 1.5"
17
+ gem "rubocop-performance", "~> 1.8"
18
+ gem "rubocop-rake", "~> 0.5"
19
+ <%- end -%>
20
+ <%- if config.dig(:generate, :rubocop) && config.dig(:generate, :rspec) -%>
21
+ gem "rubocop-rspec", "~> 2.0"
22
+ <%- end -%>
23
+ <%- if config.dig(:generate, :simple_cov) -%>
24
+ gem "simplecov", "~> 0.20"
25
+ <%- end -%>
26
+ end
27
+
28
+ group :development do
29
+ gem "gemsmith", "~> <%= Gemsmith::Identity::VERSION[/\d+\.\d+/] %>"
30
+ gem "rake", "~> 13.0"
31
+ end
32
+
33
+ group :test do
34
+ <%- if config.dig(:generate, :guard) -%>
35
+ gem "guard-rspec", "~> 4.7", require: false
36
+ <%- end -%>
37
+ <%- if config.dig(:generate, :rspec) -%>
38
+ gem "<%= config.dig(:generate, :engine) ? "rspec-rails" : "rspec" %>", "~> 3.9"
39
+ <%- end -%>
40
+ end
41
+
42
+ group :tools do
43
+ <%- if config.dig(:generate, :pry) -%>
44
+ gem "pry", "~> 0.13"
45
+ gem "pry-byebug", "~> 3.9"
46
+ <%- end -%>
47
+ end
@@ -1,3 +1,4 @@
1
+ require "bundler/setup"
1
2
  require "bundler/audit/task"
2
3
  require "gemsmith/rake/setup"
3
4
  require "git/lint/rake/setup"
@@ -2,11 +2,9 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  require "bundler/setup"
5
+ Bundler.require :tools
6
+
5
7
  require "<%= config.dig :gem, :path %>"
6
- <%- if config.dig(:generate, :pry) -%>
7
- require "pry"
8
- require "pry-byebug"
9
- <%- end -%>
10
8
  require "irb"
11
9
 
12
10
  IRB.start __FILE__
@@ -25,9 +25,9 @@ jobs:
25
25
  - run:
26
26
  name: Ruby Install
27
27
  command: |
28
- curl https://cache.ruby-lang.org/pub/ruby/${CI_RUBY_VERSION::-2}/ruby-$CI_RUBY_VERSION.tar.bz2 > ../ruby-$CI_RUBY_VERSION.tar.gz
29
28
  cd ..
30
- tar --extract --bzip2 --verbose --file ruby-$CI_RUBY_VERSION.tar.gz
29
+ curl https://cache.ruby-lang.org/pub/ruby/${CI_RUBY_VERSION::-2}/ruby-$CI_RUBY_VERSION.tar.gz > ruby-$CI_RUBY_VERSION.tar.gz
30
+ tar --extract --gzip --verbose --file ruby-$CI_RUBY_VERSION.tar.gz
31
31
  cd ruby-$CI_RUBY_VERSION
32
32
  ./configure
33
33
  make
@@ -49,7 +49,8 @@ jobs:
49
49
  name: Bundler Install
50
50
  command: |
51
51
  gem update --system
52
- bundle install --path vendor/bundle
52
+ bundle config set path "vendor/bundle"
53
+ bundle install
53
54
 
54
55
  - type: cache-save
55
56
  name: Bundler Store
@@ -19,7 +19,7 @@ RSpec.describe <%= config.dig(:gem, :class) %>::CLI do
19
19
  shared_examples_for "a version command" do
20
20
  it "prints version" do
21
21
  result = -> { cli }
22
- pattern = /#{Regexp.escape <%= config.dig(:gem, :class) %>::Identity::VERSION_LABEL}\n/
22
+ pattern = /#{Regexp.escape <%= config.dig(:gem, :class) %>::Identity::VERSION_LABEL}\n/o
23
23
 
24
24
  expect(result).to output(pattern).to_stdout
25
25
  end
@@ -28,7 +28,7 @@ RSpec.describe <%= config.dig(:gem, :class) %>::CLI do
28
28
  shared_examples_for "a help command" do
29
29
  it "prints usage" do
30
30
  result = -> { cli }
31
- pattern = /#{Regexp.escape <%= config.dig(:gem, :class) %>::Identity::VERSION_LABEL}\scommands:\n/
31
+ pattern = /#{Regexp.escape <%= config.dig(:gem, :class) %>::Identity::VERSION_LABEL}\scommands:\n/o
32
32
 
33
33
  expect(result).to output(pattern).to_stdout
34
34
  end
@@ -1,19 +1,16 @@
1
1
  require "bundler/setup"
2
+ Bundler.require :tools
2
3
 
3
4
  <%- if config.dig(:generate, :simple_cov) -%>
4
5
  require "simplecov"
5
6
  SimpleCov.start { enable_coverage :branch }
6
7
  <%- end -%>
7
8
 
8
- <%- if config.dig(:generate, :pry) -%>
9
- require "pry"
10
- require "pry-byebug"
11
- <%- end -%>
12
9
  <%- unless config.dig(:generate, :engine) -%>
13
10
  require "<%= config.dig(:gem, :path) %>"
14
11
  <%- end -%>
15
12
 
16
- Dir[File.join(__dir__, "support", "shared_contexts", "**/*.rb")].sort.each(&method(:require))
13
+ Dir[File.join(__dir__, "support", "shared_contexts", "**/*.rb")].sort.each { |path| require path }
17
14
 
18
15
  RSpec.configure do |config|
19
16
  config.color = true
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemsmith
3
3
  version: !ruby/object:Gem::Version
4
- version: 14.8.0
4
+ version: 15.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -28,7 +28,7 @@ cert_chain:
28
28
  2XV8FRa7/JimI07sPLC13eLY3xd/aYTi85Z782KIA4j0G8XEEWAX0ouBhlXPocZv
29
29
  QWc=
30
30
  -----END CERTIFICATE-----
31
- date: 2020-11-14 00:00:00.000000000 Z
31
+ date: 2020-12-30 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: milestoner
@@ -36,70 +36,70 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '10.4'
39
+ version: '11.0'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '10.4'
46
+ version: '11.0'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: pragmater
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '8.1'
53
+ version: '9.0'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '8.1'
60
+ version: '9.0'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: refinements
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '7.14'
67
+ version: '8.0'
68
68
  type: :runtime
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '7.14'
74
+ version: '8.0'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: rubocop
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '1.3'
81
+ version: '1.5'
82
82
  type: :runtime
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '1.3'
88
+ version: '1.5'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: runcom
91
91
  requirement: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '6.4'
95
+ version: '7.0'
96
96
  type: :runtime
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '6.4'
102
+ version: '7.0'
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: thor
105
105
  requirement: !ruby/object:Gem::Requirement
@@ -120,224 +120,28 @@ dependencies:
120
120
  requirements:
121
121
  - - "~>"
122
122
  - !ruby/object:Gem::Version
123
- version: '10.4'
123
+ version: '11.0'
124
124
  type: :runtime
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
- version: '10.4'
130
+ version: '11.0'
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: versionaire
133
133
  requirement: !ruby/object:Gem::Requirement
134
134
  requirements:
135
135
  - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: '8.4'
137
+ version: '9.0'
138
138
  type: :runtime
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: '8.4'
145
- - !ruby/object:Gem::Dependency
146
- name: bundler-audit
147
- requirement: !ruby/object:Gem::Requirement
148
- requirements:
149
- - - "~>"
150
- - !ruby/object:Gem::Version
151
- version: '0.7'
152
- type: :development
153
- prerelease: false
154
- version_requirements: !ruby/object:Gem::Requirement
155
- requirements:
156
- - - "~>"
157
- - !ruby/object:Gem::Version
158
- version: '0.7'
159
- - !ruby/object:Gem::Dependency
160
- name: bundler-leak
161
- requirement: !ruby/object:Gem::Requirement
162
- requirements:
163
- - - "~>"
164
- - !ruby/object:Gem::Version
165
- version: '0.2'
166
- type: :development
167
- prerelease: false
168
- version_requirements: !ruby/object:Gem::Requirement
169
- requirements:
170
- - - "~>"
171
- - !ruby/object:Gem::Version
172
- version: '0.2'
173
- - !ruby/object:Gem::Dependency
174
- name: climate_control
175
- requirement: !ruby/object:Gem::Requirement
176
- requirements:
177
- - - "~>"
178
- - !ruby/object:Gem::Version
179
- version: '0.2'
180
- type: :development
181
- prerelease: false
182
- version_requirements: !ruby/object:Gem::Requirement
183
- requirements:
184
- - - "~>"
185
- - !ruby/object:Gem::Version
186
- version: '0.2'
187
- - !ruby/object:Gem::Dependency
188
- name: git-lint
189
- requirement: !ruby/object:Gem::Requirement
190
- requirements:
191
- - - "~>"
192
- - !ruby/object:Gem::Version
193
- version: '1.0'
194
- type: :development
195
- prerelease: false
196
- version_requirements: !ruby/object:Gem::Requirement
197
- requirements:
198
- - - "~>"
199
- - !ruby/object:Gem::Version
200
- version: '1.0'
201
- - !ruby/object:Gem::Dependency
202
- name: guard-rspec
203
- requirement: !ruby/object:Gem::Requirement
204
- requirements:
205
- - - "~>"
206
- - !ruby/object:Gem::Version
207
- version: '4.7'
208
- type: :development
209
- prerelease: false
210
- version_requirements: !ruby/object:Gem::Requirement
211
- requirements:
212
- - - "~>"
213
- - !ruby/object:Gem::Version
214
- version: '4.7'
215
- - !ruby/object:Gem::Dependency
216
- name: pry
217
- requirement: !ruby/object:Gem::Requirement
218
- requirements:
219
- - - "~>"
220
- - !ruby/object:Gem::Version
221
- version: '0.13'
222
- type: :development
223
- prerelease: false
224
- version_requirements: !ruby/object:Gem::Requirement
225
- requirements:
226
- - - "~>"
227
- - !ruby/object:Gem::Version
228
- version: '0.13'
229
- - !ruby/object:Gem::Dependency
230
- name: pry-byebug
231
- requirement: !ruby/object:Gem::Requirement
232
- requirements:
233
- - - "~>"
234
- - !ruby/object:Gem::Version
235
- version: '3.9'
236
- type: :development
237
- prerelease: false
238
- version_requirements: !ruby/object:Gem::Requirement
239
- requirements:
240
- - - "~>"
241
- - !ruby/object:Gem::Version
242
- version: '3.9'
243
- - !ruby/object:Gem::Dependency
244
- name: rake
245
- requirement: !ruby/object:Gem::Requirement
246
- requirements:
247
- - - "~>"
248
- - !ruby/object:Gem::Version
249
- version: '13.0'
250
- type: :development
251
- prerelease: false
252
- version_requirements: !ruby/object:Gem::Requirement
253
- requirements:
254
- - - "~>"
255
- - !ruby/object:Gem::Version
256
- version: '13.0'
257
- - !ruby/object:Gem::Dependency
258
- name: reek
259
- requirement: !ruby/object:Gem::Requirement
260
- requirements:
261
- - - "~>"
262
- - !ruby/object:Gem::Version
263
- version: '6.0'
264
- type: :development
265
- prerelease: false
266
- version_requirements: !ruby/object:Gem::Requirement
267
- requirements:
268
- - - "~>"
269
- - !ruby/object:Gem::Version
270
- version: '6.0'
271
- - !ruby/object:Gem::Dependency
272
- name: rspec
273
- requirement: !ruby/object:Gem::Requirement
274
- requirements:
275
- - - "~>"
276
- - !ruby/object:Gem::Version
277
- version: '3.10'
278
- type: :development
279
- prerelease: false
280
- version_requirements: !ruby/object:Gem::Requirement
281
- requirements:
282
- - - "~>"
283
- - !ruby/object:Gem::Version
284
- version: '3.10'
285
- - !ruby/object:Gem::Dependency
286
- name: rubocop-performance
287
- requirement: !ruby/object:Gem::Requirement
288
- requirements:
289
- - - "~>"
290
- - !ruby/object:Gem::Version
291
- version: '1.8'
292
- type: :development
293
- prerelease: false
294
- version_requirements: !ruby/object:Gem::Requirement
295
- requirements:
296
- - - "~>"
297
- - !ruby/object:Gem::Version
298
- version: '1.8'
299
- - !ruby/object:Gem::Dependency
300
- name: rubocop-rake
301
- requirement: !ruby/object:Gem::Requirement
302
- requirements:
303
- - - "~>"
304
- - !ruby/object:Gem::Version
305
- version: '0.5'
306
- type: :development
307
- prerelease: false
308
- version_requirements: !ruby/object:Gem::Requirement
309
- requirements:
310
- - - "~>"
311
- - !ruby/object:Gem::Version
312
- version: '0.5'
313
- - !ruby/object:Gem::Dependency
314
- name: rubocop-rspec
315
- requirement: !ruby/object:Gem::Requirement
316
- requirements:
317
- - - "~>"
318
- - !ruby/object:Gem::Version
319
- version: '2.0'
320
- type: :development
321
- prerelease: false
322
- version_requirements: !ruby/object:Gem::Requirement
323
- requirements:
324
- - - "~>"
325
- - !ruby/object:Gem::Version
326
- version: '2.0'
327
- - !ruby/object:Gem::Dependency
328
- name: simplecov
329
- requirement: !ruby/object:Gem::Requirement
330
- requirements:
331
- - - "~>"
332
- - !ruby/object:Gem::Version
333
- version: '0.19'
334
- type: :development
335
- prerelease: false
336
- version_requirements: !ruby/object:Gem::Requirement
337
- requirements:
338
- - - "~>"
339
- - !ruby/object:Gem::Version
340
- version: '0.19'
144
+ version: '9.0'
341
145
  description:
342
146
  email:
343
147
  - brooke@alchemists.io
@@ -438,14 +242,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
438
242
  requirements:
439
243
  - - "~>"
440
244
  - !ruby/object:Gem::Version
441
- version: '2.7'
245
+ version: '3.0'
442
246
  required_rubygems_version: !ruby/object:Gem::Requirement
443
247
  requirements:
444
248
  - - ">="
445
249
  - !ruby/object:Gem::Version
446
250
  version: '0'
447
251
  requirements: []
448
- rubygems_version: 3.1.4
252
+ rubygems_version: 3.2.3
449
253
  signing_key:
450
254
  specification_version: 4
451
255
  summary: A command line interface for smithing Ruby gems.
metadata.gz.sig CHANGED
Binary file