gemsmith 10.2.0 → 10.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/gemsmith/cli.rb +6 -3
- data/lib/gemsmith/generators/rubocop.rb +1 -1
- data/lib/gemsmith/identity.rb +1 -1
- data/lib/gemsmith/templates/%gem_name%/%gem_name%.gemspec.tt +3 -3
- data/lib/gemsmith/templates/%gem_name%/.codeclimate.yml.tt +6 -1
- data/lib/gemsmith/templates/%gem_name%/.rubocop.yml.tt +2 -2
- data/lib/gemsmith/templates/%gem_name%/lib/%gem_path%/cli.rb.tt +8 -1
- data/lib/gemsmith/templates/%gem_name%/spec/spec_helper.rb.tt +1 -1
- metadata +51 -29
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c427876dec1141ae4826c38d072b491b33d2afe3
|
4
|
+
data.tar.gz: 7098bcf81ef3991b9f48c8eb9d6202ddd46faf25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18ba37e44ff1e19d21a1bc334fa761c2528e4ab815dae773ca3ab386d81938d7e7fde92848f4d6bcdbe7e63e2322e4ec6af593646e57f6d04946f1dfac455abf
|
7
|
+
data.tar.gz: f963eb4571ab762432f73108e568e15e293e45c9c24d29a8e458501e9b38eb3ba8edd2ae2d7942c40054586f64a6f3428b5fe01c754450bd87f5d6f862e3e56d
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
Binary file
|
data/lib/gemsmith/cli.rb
CHANGED
@@ -102,7 +102,9 @@ module Gemsmith
|
|
102
102
|
# Initialize.
|
103
103
|
def initialize args = [], options = {}, config = {}
|
104
104
|
super args, options, config
|
105
|
-
@configuration =
|
105
|
+
@configuration = self.class.configuration
|
106
|
+
rescue Runcom::Errors::Base => error
|
107
|
+
abort error.message
|
106
108
|
end
|
107
109
|
|
108
110
|
desc "-g, [--generate=GEM]", "Generate new gem."
|
@@ -203,7 +205,7 @@ module Gemsmith
|
|
203
205
|
desc: "Print gem configuration.",
|
204
206
|
type: :boolean, default: false
|
205
207
|
def config
|
206
|
-
path =
|
208
|
+
path = configuration.path
|
207
209
|
|
208
210
|
if options.edit? then `#{ENV["EDITOR"]} #{path}`
|
209
211
|
elsif options.info?
|
@@ -228,8 +230,9 @@ module Gemsmith
|
|
228
230
|
|
229
231
|
attr_reader :configuration
|
230
232
|
|
233
|
+
# :reek:FeatureEnvy
|
231
234
|
def setup_configuration name:, options: {}
|
232
|
-
@configuration =
|
235
|
+
@configuration = configuration.to_h.merge(
|
233
236
|
gem: {
|
234
237
|
label: name.titleize,
|
235
238
|
name: name,
|
@@ -10,7 +10,7 @@ module Gemsmith
|
|
10
10
|
cli.uncomment_lines "#{gem_name}/Rakefile", /require.+rubocop.+/
|
11
11
|
cli.uncomment_lines "#{gem_name}/Rakefile", /RuboCop.+/
|
12
12
|
cli.template "%gem_name%/.rubocop.yml.tt", configuration
|
13
|
-
cli.run "rubocop --auto-correct #{gem_name} > /dev/null"
|
13
|
+
cli.run "bundle exec rubocop --auto-correct #{gem_name} > /dev/null"
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
data/lib/gemsmith/identity.rb
CHANGED
@@ -20,8 +20,8 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.required_ruby_version = "~> <%= config.dig(:versions, :ruby)[/\d+\.\d+/] %>"
|
22
22
|
<%- if config.dig(:generate, :cli) -%>
|
23
|
-
spec.add_dependency "thor", "~> 0.
|
24
|
-
spec.add_dependency "runcom", "~> 1.
|
23
|
+
spec.add_dependency "thor", "~> 0.20"
|
24
|
+
spec.add_dependency "runcom", "~> 1.3"
|
25
25
|
<%- end -%>
|
26
26
|
<%- if config.dig(:generate, :rails) -%>
|
27
27
|
spec.add_dependency "rails", "~> <%= config.dig(:versions, :rails) %>"
|
@@ -40,7 +40,7 @@ Gem::Specification.new do |spec|
|
|
40
40
|
spec.add_development_dependency "guard-rspec", "~> 4.7"
|
41
41
|
<%- end -%>
|
42
42
|
<%- if config.dig(:generate, :git_cop) -%>
|
43
|
-
spec.add_development_dependency "git-cop", "~> 1.
|
43
|
+
spec.add_development_dependency "git-cop", "~> 1.6"
|
44
44
|
<%- end -%>
|
45
45
|
<%- if config.dig(:generate, :reek) -%>
|
46
46
|
spec.add_development_dependency "reek", "~> 4.7"
|
@@ -1,6 +1,11 @@
|
|
1
1
|
prepare:
|
2
2
|
fetch:
|
3
|
-
- https://raw.githubusercontent.com/bkuhlmann/code_quality/v1.
|
3
|
+
- url: https://raw.githubusercontent.com/bkuhlmann/code_quality/v1.2.0/configurations/rubocop/ruby.yml
|
4
|
+
path: .rubocop-https---raw-githubusercontent-com-bkuhlmann-code-quality-v1-2-0-configurations-rubocop-ruby-yml
|
5
|
+
<%- if config.dig(:generate, :rails) -%>
|
6
|
+
- url: https://raw.githubusercontent.com/bkuhlmann/code_quality/v1.2.0/configurations/rubocop/rails.yml
|
7
|
+
path: .rubocop-https---raw-githubusercontent-com-bkuhlmann-code-quality-v1-2-0-configurations-rubocop-rails-yml
|
8
|
+
<%- end -%>
|
4
9
|
engines:
|
5
10
|
shellcheck:
|
6
11
|
enabled: true
|
@@ -1,5 +1,5 @@
|
|
1
1
|
inherit_from:
|
2
|
-
- https://raw.githubusercontent.com/bkuhlmann/code_quality/v1.
|
2
|
+
- https://raw.githubusercontent.com/bkuhlmann/code_quality/v1.2.0/configurations/rubocop/ruby.yml
|
3
3
|
<%- if config.dig(:generate, :rails) -%>
|
4
|
-
- https://raw.githubusercontent.com/bkuhlmann/code_quality/v1.
|
4
|
+
- https://raw.githubusercontent.com/bkuhlmann/code_quality/v1.2.0/configurations/rubocop/rails.yml
|
5
5
|
<%- end -%>
|
@@ -15,6 +15,9 @@ require "runcom"
|
|
15
15
|
|
16
16
|
def initialize args = [], options = {}, config = {}
|
17
17
|
super args, options, config
|
18
|
+
@configuration = self.class.configuration
|
19
|
+
rescue Runcom::Errors::Base => error
|
20
|
+
abort error.message
|
18
21
|
end
|
19
22
|
|
20
23
|
desc "-c, [--config]", "Manage gem configuration."
|
@@ -28,7 +31,7 @@ require "runcom"
|
|
28
31
|
desc: "Print gem configuration.",
|
29
32
|
type: :boolean, default: false
|
30
33
|
def config
|
31
|
-
path =
|
34
|
+
path = configuration.path
|
32
35
|
|
33
36
|
if options.edit? then `#{ENV["EDITOR"]} #{path}`
|
34
37
|
elsif options.info?
|
@@ -48,5 +51,9 @@ require "runcom"
|
|
48
51
|
def help task = nil
|
49
52
|
say and super
|
50
53
|
end
|
54
|
+
|
55
|
+
private
|
56
|
+
|
57
|
+
attr_reader :configuration
|
51
58
|
end
|
52
59
|
<% end %>
|
@@ -18,7 +18,7 @@ end
|
|
18
18
|
RSpec.configure do |config|
|
19
19
|
config.color = true
|
20
20
|
config.order = "random"
|
21
|
-
config.formatter = :documentation
|
21
|
+
config.formatter = ENV["CI"] == "true" ? :progress : :documentation
|
22
22
|
config.disable_monkey_patching!
|
23
23
|
config.filter_run_when_matching :focus
|
24
24
|
config.example_status_persistence_file_path = "./tmp/rspec-status.txt"
|
metadata
CHANGED
@@ -1,14 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemsmith
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 10.
|
4
|
+
version: 10.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDeDCCAmCgAwIBAgIBATANBgkqhkiG9w0BAQUFADBBMQ8wDQYDVQQDDAZicm9v
|
14
|
+
a2UxGjA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29
|
+
4CcDYsJ1ywep8LDJDBBGdKz9moL+axryzpeTpgTT/fFYFzRzWrURPyDvPOikh9TX
|
30
|
+
n/LUZ1dKhIHzfKx1B4+TEIefArObGfkLIDM8+Dq1RX7TF1k81Men7iu4MgE9bYBn
|
31
|
+
3dE+xI3FdB5gWcdWxdtgRCmWjtXeYYyb4z6NQQ==
|
32
|
+
-----END CERTIFICATE-----
|
33
|
+
date: 2017-08-20 00:00:00.000000000 Z
|
12
34
|
dependencies:
|
13
35
|
- !ruby/object:Gem::Dependency
|
14
36
|
name: bundler
|
@@ -30,14 +52,14 @@ dependencies:
|
|
30
52
|
requirements:
|
31
53
|
- - "~>"
|
32
54
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
55
|
+
version: '0.20'
|
34
56
|
type: :runtime
|
35
57
|
prerelease: false
|
36
58
|
version_requirements: !ruby/object:Gem::Requirement
|
37
59
|
requirements:
|
38
60
|
- - "~>"
|
39
61
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
62
|
+
version: '0.20'
|
41
63
|
- !ruby/object:Gem::Dependency
|
42
64
|
name: refinements
|
43
65
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,56 +94,70 @@ dependencies:
|
|
72
94
|
requirements:
|
73
95
|
- - "~>"
|
74
96
|
- !ruby/object:Gem::Version
|
75
|
-
version: '1.
|
97
|
+
version: '1.3'
|
76
98
|
type: :runtime
|
77
99
|
prerelease: false
|
78
100
|
version_requirements: !ruby/object:Gem::Requirement
|
79
101
|
requirements:
|
80
102
|
- - "~>"
|
81
103
|
- !ruby/object:Gem::Version
|
82
|
-
version: '1.
|
104
|
+
version: '1.3'
|
83
105
|
- !ruby/object:Gem::Dependency
|
84
106
|
name: milestoner
|
85
107
|
requirement: !ruby/object:Gem::Requirement
|
86
108
|
requirements:
|
87
109
|
- - "~>"
|
88
110
|
- !ruby/object:Gem::Version
|
89
|
-
version: '6.
|
111
|
+
version: '6.2'
|
90
112
|
type: :runtime
|
91
113
|
prerelease: false
|
92
114
|
version_requirements: !ruby/object:Gem::Requirement
|
93
115
|
requirements:
|
94
116
|
- - "~>"
|
95
117
|
- !ruby/object:Gem::Version
|
96
|
-
version: '6.
|
118
|
+
version: '6.2'
|
97
119
|
- !ruby/object:Gem::Dependency
|
98
120
|
name: pragmater
|
99
121
|
requirement: !ruby/object:Gem::Requirement
|
100
122
|
requirements:
|
101
123
|
- - "~>"
|
102
124
|
- !ruby/object:Gem::Version
|
103
|
-
version: '4.
|
125
|
+
version: '4.2'
|
104
126
|
type: :runtime
|
105
127
|
prerelease: false
|
106
128
|
version_requirements: !ruby/object:Gem::Requirement
|
107
129
|
requirements:
|
108
130
|
- - "~>"
|
109
131
|
- !ruby/object:Gem::Version
|
110
|
-
version: '4.
|
132
|
+
version: '4.2'
|
111
133
|
- !ruby/object:Gem::Dependency
|
112
134
|
name: tocer
|
113
135
|
requirement: !ruby/object:Gem::Requirement
|
114
136
|
requirements:
|
115
137
|
- - "~>"
|
116
138
|
- !ruby/object:Gem::Version
|
117
|
-
version: '6.
|
139
|
+
version: '6.2'
|
140
|
+
type: :runtime
|
141
|
+
prerelease: false
|
142
|
+
version_requirements: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - "~>"
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '6.2'
|
147
|
+
- !ruby/object:Gem::Dependency
|
148
|
+
name: rubocop
|
149
|
+
requirement: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - "~>"
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0.49'
|
118
154
|
type: :runtime
|
119
155
|
prerelease: false
|
120
156
|
version_requirements: !ruby/object:Gem::Requirement
|
121
157
|
requirements:
|
122
158
|
- - "~>"
|
123
159
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
160
|
+
version: '0.49'
|
125
161
|
- !ruby/object:Gem::Dependency
|
126
162
|
name: rake
|
127
163
|
requirement: !ruby/object:Gem::Requirement
|
@@ -282,14 +318,14 @@ dependencies:
|
|
282
318
|
requirements:
|
283
319
|
- - "~>"
|
284
320
|
- !ruby/object:Gem::Version
|
285
|
-
version: '1.
|
321
|
+
version: '1.6'
|
286
322
|
type: :development
|
287
323
|
prerelease: false
|
288
324
|
version_requirements: !ruby/object:Gem::Requirement
|
289
325
|
requirements:
|
290
326
|
- - "~>"
|
291
327
|
- !ruby/object:Gem::Version
|
292
|
-
version: '1.
|
328
|
+
version: '1.6'
|
293
329
|
- !ruby/object:Gem::Dependency
|
294
330
|
name: reek
|
295
331
|
requirement: !ruby/object:Gem::Requirement
|
@@ -304,20 +340,6 @@ dependencies:
|
|
304
340
|
- - "~>"
|
305
341
|
- !ruby/object:Gem::Version
|
306
342
|
version: '4.7'
|
307
|
-
- !ruby/object:Gem::Dependency
|
308
|
-
name: rubocop
|
309
|
-
requirement: !ruby/object:Gem::Requirement
|
310
|
-
requirements:
|
311
|
-
- - "~>"
|
312
|
-
- !ruby/object:Gem::Version
|
313
|
-
version: '0.49'
|
314
|
-
type: :development
|
315
|
-
prerelease: false
|
316
|
-
version_requirements: !ruby/object:Gem::Requirement
|
317
|
-
requirements:
|
318
|
-
- - "~>"
|
319
|
-
- !ruby/object:Gem::Version
|
320
|
-
version: '0.49'
|
321
343
|
- !ruby/object:Gem::Dependency
|
322
344
|
name: codeclimate-test-reporter
|
323
345
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
ADDED
Binary file
|