gemsmith 13.3.0 → 13.4.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/README.md +4 -0
- data/lib/gemsmith/cli.rb +49 -46
- data/lib/gemsmith/identity.rb +1 -1
- data/lib/gemsmith/templates/%gem_name%/%gem_name%.gemspec.tt +2 -1
- data/lib/gemsmith/templates/%gem_name%/.rubocop.yml.tt +4 -3
- data/lib/gemsmith/templates/%gem_name%/README.md.tt +4 -0
- data/lib/gemsmith/templates/%gem_name%/lib/%gem_path%/cli.rb.tt +5 -3
- data/lib/gemsmith/templates/%gem_name%/spec/spec_helper.rb.tt +9 -7
- data.tar.gz.sig +2 -2
- metadata +18 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42b3f07ddb0b759f1a2f42532a114aa99a1ac9da58b867affc203f418456b5d7
|
4
|
+
data.tar.gz: 3809dca94e0f528e73b941b804b85ae48e974259e173b9f8787ffd48f51c8e46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df4bdf715880b30227d320ef0c9f41033eaf59a73901cfd67d26071d3cbe9c46f33ce1a721083c9cacdb177ccf1e5c38e9e3d8bc5e32e2ad245c00bdb73b0ca2
|
7
|
+
data.tar.gz: f63bb2ea6c8ef9a3ecdc27d0160f908c21ff38955ca59bbffc73c0f5415cd63b001aa2808746a10efe001ef1c2bda2ccde18024696678fdce068767f7f3d527b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.md
CHANGED
data/lib/gemsmith/cli.rb
CHANGED
@@ -28,50 +28,51 @@ module Gemsmith
|
|
28
28
|
|
29
29
|
# rubocop:disable Metrics/MethodLength
|
30
30
|
def self.configuration
|
31
|
-
Runcom::Config.new Identity.name,
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
31
|
+
Runcom::Config.new Identity.name,
|
32
|
+
defaults: {
|
33
|
+
year: Time.now.year,
|
34
|
+
github_user: Git.github_user,
|
35
|
+
gem: {
|
36
|
+
label: "Undefined",
|
37
|
+
name: "undefined",
|
38
|
+
path: "undefined",
|
39
|
+
class: "Undefined",
|
40
|
+
platform: "Gem::Platform::RUBY",
|
41
|
+
url: Git.github_url("undefined"),
|
42
|
+
license: "MIT"
|
43
|
+
},
|
44
|
+
author: {
|
45
|
+
name: Git.config_value("user.name"),
|
46
|
+
email: Git.config_value("user.email"),
|
47
|
+
url: ""
|
48
|
+
},
|
49
|
+
organization: {
|
50
|
+
name: "",
|
51
|
+
url: ""
|
52
|
+
},
|
53
|
+
versions: {
|
54
|
+
ruby: RUBY_VERSION,
|
55
|
+
rails: "5.1"
|
56
|
+
},
|
57
|
+
generate: {
|
58
|
+
bundler_audit: true,
|
59
|
+
circle_ci: false,
|
60
|
+
cli: false,
|
61
|
+
code_climate: false,
|
62
|
+
git_cop: true,
|
63
|
+
git_hub: true,
|
64
|
+
guard: true,
|
65
|
+
pry: true,
|
66
|
+
engine: false,
|
67
|
+
reek: true,
|
68
|
+
rspec: true,
|
69
|
+
rubocop: true,
|
70
|
+
security: false
|
71
|
+
},
|
72
|
+
publish: {
|
73
|
+
sign: false
|
74
|
+
}
|
75
|
+
}
|
75
76
|
end
|
76
77
|
# rubocop:enable Metrics/MethodLength
|
77
78
|
|
@@ -193,11 +194,13 @@ module Gemsmith
|
|
193
194
|
method_option :edit,
|
194
195
|
aliases: "-e",
|
195
196
|
desc: "Edit gem configuration.",
|
196
|
-
type: :boolean,
|
197
|
+
type: :boolean,
|
198
|
+
default: false
|
197
199
|
method_option :info,
|
198
200
|
aliases: "-i",
|
199
201
|
desc: "Print gem configuration.",
|
200
|
-
type: :boolean,
|
202
|
+
type: :boolean,
|
203
|
+
default: false
|
201
204
|
def config
|
202
205
|
path = configuration.path
|
203
206
|
|
data/lib/gemsmith/identity.rb
CHANGED
@@ -52,7 +52,8 @@ Gem::Specification.new do |spec|
|
|
52
52
|
spec.add_development_dependency "<%= config.dig(:generate, :engine) ? "rspec-rails" : "rspec" %>", "~> 3.8"
|
53
53
|
<%- end -%>
|
54
54
|
<%- if config.dig(:generate, :rubocop) -%>
|
55
|
-
spec.add_development_dependency "rubocop", "~> 0.
|
55
|
+
spec.add_development_dependency "rubocop", "~> 0.67"
|
56
|
+
spec.add_development_dependency "rubocop-performance", "~> 1.1"
|
56
57
|
<%- end -%>
|
57
58
|
<%- if config.dig(:generate, :rubocop) && config.dig(:generate, :rspec) -%>
|
58
59
|
spec.add_development_dependency "rubocop-rspec", "~> 1.30"
|
@@ -1,10 +1,11 @@
|
|
1
1
|
inherit_from:
|
2
|
-
- https://raw.githubusercontent.com/bkuhlmann/code_quality/
|
2
|
+
- https://raw.githubusercontent.com/bkuhlmann/code_quality/4.0.0/configurations/rubocop/ruby.yml
|
3
|
+
- https://raw.githubusercontent.com/bkuhlmann/code_quality/4.0.0/configurations/rubocop/performance.yml
|
3
4
|
<%- if config.dig(:generate, :rspec) -%>
|
4
|
-
- https://raw.githubusercontent.com/bkuhlmann/code_quality/
|
5
|
+
- https://raw.githubusercontent.com/bkuhlmann/code_quality/4.0.0/configurations/rubocop/rspec.yml
|
5
6
|
<%- end -%>
|
6
7
|
<%- if config.dig(:generate, :engine) -%>
|
7
|
-
- https://raw.githubusercontent.com/bkuhlmann/code_quality/
|
8
|
+
- https://raw.githubusercontent.com/bkuhlmann/code_quality/4.0.0/configurations/rubocop/rails.yml
|
8
9
|
<%- end -%>
|
9
10
|
|
10
11
|
<%- if config.dig(:generate, :cli) -%>
|
@@ -1,3 +1,7 @@
|
|
1
|
+
<p align="center">
|
2
|
+
<img src="<%= config.dig(:gem, :name) %>.png" alt="<%= config.dig(:gem, :label) %> Icon"/>
|
3
|
+
</p>
|
4
|
+
|
1
5
|
# <%= config.dig(:gem, :label) %>
|
2
6
|
|
3
7
|
[![Gem Version](https://badge.fury.io/rb/<%= config.dig(:gem, :name) %>.svg)](http://badge.fury.io/rb/<%= config.dig(:gem, :name) %>)
|
@@ -25,18 +25,20 @@ require "runcom"
|
|
25
25
|
method_option :edit,
|
26
26
|
aliases: "-e",
|
27
27
|
desc: "Edit gem configuration.",
|
28
|
-
type: :boolean,
|
28
|
+
type: :boolean,
|
29
|
+
default: false
|
29
30
|
method_option :info,
|
30
31
|
aliases: "-i",
|
31
32
|
desc: "Print gem configuration.",
|
32
|
-
type: :boolean,
|
33
|
+
type: :boolean,
|
34
|
+
default: false
|
33
35
|
def config
|
34
36
|
path = configuration.path
|
35
37
|
|
36
38
|
if options.edit? then `#{ENV["EDITOR"]} #{path}`
|
37
39
|
elsif options.info?
|
38
40
|
path ? say(path) : say("Configuration doesn't exist.")
|
39
|
-
else help
|
41
|
+
else help :config
|
40
42
|
end
|
41
43
|
end
|
42
44
|
|
@@ -20,19 +20,21 @@ end
|
|
20
20
|
|
21
21
|
RSpec.configure do |config|
|
22
22
|
config.color = true
|
23
|
-
config.order = "random"
|
24
|
-
config.formatter = ENV["CI"] == "true" ? :progress : :documentation
|
25
23
|
config.disable_monkey_patching!
|
24
|
+
config.example_status_persistence_file_path = "./tmp/rspec-examples.txt"
|
26
25
|
config.filter_run_when_matching :focus
|
27
|
-
config.
|
26
|
+
config.formatter = ENV["CI"] == "true" ? :progress : :documentation
|
27
|
+
config.order = :random
|
28
28
|
config.shared_context_metadata_behavior = :apply_to_host_groups
|
29
|
-
|
30
|
-
config.mock_with :rspec do |mocks|
|
31
|
-
mocks.verify_partial_doubles = true
|
32
|
-
end
|
29
|
+
config.warnings = true
|
33
30
|
|
34
31
|
config.expect_with :rspec do |expectations|
|
35
32
|
expectations.syntax = :expect
|
36
33
|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
37
34
|
end
|
35
|
+
|
36
|
+
config.mock_with :rspec do |mocks|
|
37
|
+
mocks.verify_doubled_constant_names = true
|
38
|
+
mocks.verify_partial_doubles = true
|
39
|
+
end
|
38
40
|
end
|
data.tar.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
�
|
1
|
+
���v㘷��\�=��uƑ�k�)��������/g-=�ҙۿ��+�'���?�OfdCF�8�Խ�¤,���D�
|
2
|
+
u���f�"py�j�0��";L
|
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: 13.
|
4
|
+
version: 13.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -28,7 +28,7 @@ cert_chain:
|
|
28
28
|
dKvURM+1PwDCzC5tvRwjhUJIizau6+MtkFCvJHmaAj1aZL3odcPejHj5Hxt/0CUW
|
29
29
|
y84=
|
30
30
|
-----END CERTIFICATE-----
|
31
|
-
date: 2019-
|
31
|
+
date: 2019-05-02 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: milestoner
|
@@ -78,14 +78,14 @@ dependencies:
|
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '0.
|
81
|
+
version: '0.67'
|
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: '0.
|
88
|
+
version: '0.67'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: runcom
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -310,6 +310,20 @@ dependencies:
|
|
310
310
|
- - "~>"
|
311
311
|
- !ruby/object:Gem::Version
|
312
312
|
version: '3.8'
|
313
|
+
- !ruby/object:Gem::Dependency
|
314
|
+
name: rubocop-performance
|
315
|
+
requirement: !ruby/object:Gem::Requirement
|
316
|
+
requirements:
|
317
|
+
- - "~>"
|
318
|
+
- !ruby/object:Gem::Version
|
319
|
+
version: '1.1'
|
320
|
+
type: :development
|
321
|
+
prerelease: false
|
322
|
+
version_requirements: !ruby/object:Gem::Requirement
|
323
|
+
requirements:
|
324
|
+
- - "~>"
|
325
|
+
- !ruby/object:Gem::Version
|
326
|
+
version: '1.1'
|
313
327
|
- !ruby/object:Gem::Dependency
|
314
328
|
name: rubocop-rspec
|
315
329
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|