rubysmith 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.adoc +2 -5
- data/lib/rubysmith/builder.rb +1 -3
- data/lib/rubysmith/cli/configuration/content.rb +0 -1
- data/lib/rubysmith/cli/configuration/defaults.yml +0 -1
- data/lib/rubysmith/cli/parsers/build.rb +0 -6
- data/lib/rubysmith/cli/processors/build.rb +1 -3
- data/lib/rubysmith/cli/shell.rb +0 -1
- data/lib/rubysmith/identity.rb +1 -1
- data/lib/rubysmith/templates/%project_name%/Gemfile.erb +1 -4
- data/lib/rubysmith/templates/%project_name%/Rakefile.erb +1 -7
- metadata +5 -5
- 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: ae1f7e375e5e5d37e378cb82620d52dead76d846f2ea22cbbd32b76f714fc076
|
4
|
+
data.tar.gz: c2fb2727fd8af69b4cbbc35e55b9ff3dc1cdc96f0d05609d505ffaf10ba2e444
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ee1ad6e82cac22883971e4cf1ff46c606173385f507908be37cc2839fe9c4b9fd8104c1354a74fb7784c592f2cf0bcae44ae5feee71f4db12892c4a971b9fef
|
7
|
+
data.tar.gz: e29e0e144ca76fe0819bfceb8ca936171b0267c67c144acfd6c5aebc6cca8d84f3ecb165cd9f7f69f142a6c28685d2be20c45b68f605d741dfaec25e782eb459
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
@@ -26,7 +26,6 @@ toc::[]
|
|
26
26
|
* Uses link:https://www.alchemists.io/projects/runcom[Runcom] for resource configuration management.
|
27
27
|
* Uses link:https://www.alchemists.io/projects/pragmater[Pragmater] for Ruby source pragma directives.
|
28
28
|
* Supports link:https://github.com/amazing-print/amazing_print[Amazing Print].
|
29
|
-
* Supports link:https://github.com/rubysec/bundler-audit[Bundler Audit].
|
30
29
|
* Supports link:https://github.com/rubymem/bundler-leak[Bundler Leak].
|
31
30
|
* Supports link:https://git-scm.com[Git].
|
32
31
|
* Supports link:https://www.alchemists.io/projects/git-lint[Git Lint].
|
@@ -79,13 +78,12 @@ From the command line, type: `rubysmith --help`
|
|
79
78
|
....
|
80
79
|
USAGE:
|
81
80
|
-b, --build NAME [options] Build new project.
|
82
|
-
-v, --version Show gem version.
|
83
|
-
-h, --help Show this message.
|
84
81
|
-c, --config ACTION Manage gem configuration: edit or view.
|
82
|
+
-h, --help Show this message.
|
83
|
+
-v, --version Show gem version.
|
85
84
|
|
86
85
|
BUILD OPTIONS:
|
87
86
|
--[no-]amazing_print Add Amazing Print.
|
88
|
-
--[no-]bundler-audit Add Bundler Audit.
|
89
87
|
--[no-]bundler-leak Add Bundler Leak.
|
90
88
|
--[no-]console Add console script.
|
91
89
|
--[no-]documentation Add documentation.
|
@@ -161,7 +159,6 @@ The default configuration is as follows:
|
|
161
159
|
:license: "mit"
|
162
160
|
:build:
|
163
161
|
:amazing_print: true
|
164
|
-
:bundler_audit: true
|
165
162
|
:bundler_leak: true
|
166
163
|
:console: true
|
167
164
|
:documentation: true
|
data/lib/rubysmith/builder.rb
CHANGED
@@ -19,9 +19,7 @@ module Rubysmith
|
|
19
19
|
logger: LOGGER
|
20
20
|
}.freeze
|
21
21
|
|
22
|
-
def self.call configuration, helpers:
|
23
|
-
new configuration, helpers: helpers
|
24
|
-
end
|
22
|
+
def self.call(configuration, helpers: HELPERS) = new(configuration, helpers: helpers)
|
25
23
|
|
26
24
|
def initialize configuration, helpers: HELPERS
|
27
25
|
@configuration = configuration
|
@@ -35,12 +35,6 @@ module Rubysmith
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
-
def add_bundler_audit
|
39
|
-
client.on "--[no-]bundler-audit", "Add Bundler Audit." do |value|
|
40
|
-
options[:build_bundler_audit] = value
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
38
|
def add_bundler_leak
|
45
39
|
client.on "--[no-]bundler-leak", "Add Bundler Leak." do |value|
|
46
40
|
options[:build_bundler_leak] = value
|
@@ -37,9 +37,7 @@ module Rubysmith
|
|
37
37
|
Builders::Git::Commit
|
38
38
|
].freeze
|
39
39
|
|
40
|
-
def self.with_minimum
|
41
|
-
new builders: MINIMUM
|
42
|
-
end
|
40
|
+
def self.with_minimum = new(builders: MINIMUM)
|
43
41
|
|
44
42
|
def initialize configuration: Configuration::Loader.call, builders: MAXIMUM
|
45
43
|
@configuration = configuration
|
data/lib/rubysmith/cli/shell.rb
CHANGED
data/lib/rubysmith/identity.rb
CHANGED
@@ -8,9 +8,6 @@ source "https://rubygems.org"
|
|
8
8
|
<% end %>
|
9
9
|
|
10
10
|
group :code_quality do
|
11
|
-
<% if configuration.build_bundler_audit %>
|
12
|
-
gem "bundler-audit", "~> 0.7"
|
13
|
-
<% end %>
|
14
11
|
<% if configuration.build_bundler_leak %>
|
15
12
|
gem "bundler-leak", "~> 0.2"
|
16
13
|
<% end %>
|
@@ -21,7 +18,7 @@ source "https://rubygems.org"
|
|
21
18
|
gem "reek", "~> 6.0"
|
22
19
|
<% end %>
|
23
20
|
<% if configuration.build_rubocop %>
|
24
|
-
gem "rubocop", "~> 1.
|
21
|
+
gem "rubocop", "~> 1.14"
|
25
22
|
gem "rubocop-performance", "~> 1.9"
|
26
23
|
gem "rubocop-rake", "~> 0.5"
|
27
24
|
<% end %>
|
@@ -1,8 +1,5 @@
|
|
1
1
|
require "bundler/setup"
|
2
2
|
|
3
|
-
<% if configuration.build_bundler_audit %>
|
4
|
-
require "bundler/audit/task"
|
5
|
-
<% end %>
|
6
3
|
<% if configuration.build_bundler_leak %>
|
7
4
|
require "bundler/plumber/task"
|
8
5
|
<% end %>
|
@@ -22,9 +19,6 @@ require "bundler/setup"
|
|
22
19
|
require "rubycritic/rake_task"
|
23
20
|
<% end %>
|
24
21
|
|
25
|
-
<% if configuration.build_bundler_audit %>
|
26
|
-
Bundler::Audit::Task.new
|
27
|
-
<% end %>
|
28
22
|
<% if configuration.build_bundler_leak %>
|
29
23
|
Bundler::Plumber::Task.new
|
30
24
|
<% end %>
|
@@ -42,6 +36,6 @@ require "bundler/setup"
|
|
42
36
|
<% end %>
|
43
37
|
|
44
38
|
desc "Run code quality checks"
|
45
|
-
task code_quality: %i[<% if configuration.
|
39
|
+
task code_quality: %i[<% if configuration.build_bundler_leak %>bundle:leak<% end %> <% if configuration.build_git && configuration.build_git_lint %>git_lint<% end %> <% if configuration.build_reek %>reek<% end %> <% if configuration.build_rubocop %>rubocop<% end %> <% if configuration.build_ruby_critic %>rubycritic<% end %>]
|
46
40
|
|
47
41
|
task default: %i[code_quality <% if configuration.build_rspec %>spec<% end %>]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubysmith
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -28,7 +28,7 @@ cert_chain:
|
|
28
28
|
lkHilIrX69jq8wMPpBhlaw2mRmeSL50Wv5u6xVBvOHhXFSP1crXM95vfLhLyRYod
|
29
29
|
W2A=
|
30
30
|
-----END CERTIFICATE-----
|
31
|
-
date: 2021-
|
31
|
+
date: 2021-08-08 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: pragmater
|
@@ -64,14 +64,14 @@ dependencies:
|
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '1.
|
67
|
+
version: '1.14'
|
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: '1.
|
74
|
+
version: '1.14'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: runcom
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
181
|
- !ruby/object:Gem::Version
|
182
182
|
version: '0'
|
183
183
|
requirements: []
|
184
|
-
rubygems_version: 3.2.
|
184
|
+
rubygems_version: 3.2.25
|
185
185
|
signing_key:
|
186
186
|
specification_version: 4
|
187
187
|
summary: A command line interface for smithing Ruby projects.
|
metadata.gz.sig
CHANGED
Binary file
|