gemsmith 19.7.0 → 19.8.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/gemsmith.gemspec +3 -3
- data/lib/gemsmith/templates/%project_name%/%project_name%.gemspec.erb +1 -1
- data/lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/shell.rb.erb +3 -3
- data/lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/cli/actions/config_spec.rb.erb +1 -1
- data/lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/cli/shell_spec.rb.erb +4 -4
- data.tar.gz.sig +0 -0
- metadata +7 -7
- 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: 63e7b251454d69b9c36b44095d48d86e5dbe86dd8246e0775fbdcf58f2f06221
|
4
|
+
data.tar.gz: '094d44ce73d8c44cc238299a393250fe2fa4c2ccf4de8494e69779e3d13e4c00'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee953574be4c32f6a014382a95f4e9192db46e6e20bb81f25acd33f7d843a72bea6838276b1b8f1b4b28ef996d9eed854be7940e4f6a09f5e25d09c48fc88260
|
7
|
+
data.tar.gz: 4ec6e2fea53134d4a1f499d98368dc0d1bbb929dfd313daf50a9dbf11e9df9f194b7a6577f0078d0c32fd0cc7c196a6c147795b31461d019f29f79086160a862
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/gemsmith.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "gemsmith"
|
5
|
-
spec.version = "19.
|
5
|
+
spec.version = "19.8.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://alchemists.io/projects/gemsmith"
|
@@ -30,9 +30,9 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_dependency "infusible", "~> 1.0"
|
31
31
|
spec.add_dependency "milestoner", "~> 15.3"
|
32
32
|
spec.add_dependency "refinements", "~> 10.0"
|
33
|
-
spec.add_dependency "rubysmith", "~> 4.
|
33
|
+
spec.add_dependency "rubysmith", "~> 4.9"
|
34
34
|
spec.add_dependency "runcom", "~> 9.0"
|
35
|
-
spec.add_dependency "spek", "~> 1.
|
35
|
+
spec.add_dependency "spek", "~> 1.1"
|
36
36
|
spec.add_dependency "versionaire", "~> 11.0"
|
37
37
|
spec.add_dependency "zeitwerk", "~> 2.6"
|
38
38
|
|
@@ -54,7 +54,7 @@ Gem::Specification.new do |spec|
|
|
54
54
|
spec.add_dependency "runcom", "~> 9.0"
|
55
55
|
<% end %>
|
56
56
|
<% if configuration.build_cli %>
|
57
|
-
spec.add_dependency "spek", "~> 1.
|
57
|
+
spec.add_dependency "spek", "~> 1.1"
|
58
58
|
<% end %>
|
59
59
|
<% if configuration.build_zeitwerk %>
|
60
60
|
spec.add_dependency "zeitwerk", "~> 2.6"
|
@@ -4,7 +4,7 @@ require "core"
|
|
4
4
|
module CLI
|
5
5
|
# The main Command Line Interface (CLI) object.
|
6
6
|
class Shell
|
7
|
-
include Actions::Import[:config, :
|
7
|
+
include Actions::Import[:config, :kernel, :logger, :specification]
|
8
8
|
|
9
9
|
def initialize(parser: Parser.new, **)
|
10
10
|
super(**)
|
@@ -24,8 +24,8 @@ require "core"
|
|
24
24
|
def act_on configuration
|
25
25
|
case configuration
|
26
26
|
in action_config: Symbol => action then config.call action
|
27
|
-
in action_version: true then
|
28
|
-
else
|
27
|
+
in action_version: true then kernel.puts specification.labeled_version
|
28
|
+
else kernel.puts parser.to_s
|
29
29
|
end
|
30
30
|
end
|
31
31
|
end
|
data/lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/cli/actions/config_spec.rb.erb
CHANGED
@@ -18,7 +18,7 @@ RSpec.describe <%= configuration.project_namespaced_class %>::CLI::Actions::Conf
|
|
18
18
|
|
19
19
|
it "logs invalid configuration" do
|
20
20
|
action.call :bogus
|
21
|
-
expect(logger.reread).to match(
|
21
|
+
expect(logger.reread).to match(/🛑.+Invalid configuration selection: bogus./)
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
@@ -25,22 +25,22 @@ RSpec.describe <%= configuration.project_namespaced_class %>::CLI::Shell do
|
|
25
25
|
|
26
26
|
it "prints version" do
|
27
27
|
shell.call %w[--version]
|
28
|
-
expect(
|
28
|
+
expect(kernel).to have_received(:puts).with(/<%= configuration.project_label %>\s\d+\.\d+\.\d+/)
|
29
29
|
end
|
30
30
|
|
31
31
|
it "prints help (usage)" do
|
32
32
|
shell.call %w[--help]
|
33
|
-
expect(
|
33
|
+
expect(kernel).to have_received(:puts).with(/<%= configuration.project_label %>.+USAGE.+/m)
|
34
34
|
end
|
35
35
|
|
36
36
|
it "prints usage when no options are given" do
|
37
37
|
shell.call
|
38
|
-
expect(
|
38
|
+
expect(kernel).to have_received(:puts).with(/<%= configuration.project_label %>.+USAGE.+/m)
|
39
39
|
end
|
40
40
|
|
41
41
|
it "prints error with invalid option" do
|
42
42
|
shell.call %w[--bogus]
|
43
|
-
expect(logger.reread).to match(
|
43
|
+
expect(logger.reread).to match(/🛑.+invalid option.+bogus/)
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
data.tar.gz.sig
CHANGED
Binary file
|
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: 19.
|
4
|
+
version: 19.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
|
36
36
|
gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2023-
|
38
|
+
date: 2023-05-20 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: cogger
|
@@ -141,14 +141,14 @@ dependencies:
|
|
141
141
|
requirements:
|
142
142
|
- - "~>"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: '4.
|
144
|
+
version: '4.9'
|
145
145
|
type: :runtime
|
146
146
|
prerelease: false
|
147
147
|
version_requirements: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
149
|
- - "~>"
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version: '4.
|
151
|
+
version: '4.9'
|
152
152
|
- !ruby/object:Gem::Dependency
|
153
153
|
name: runcom
|
154
154
|
requirement: !ruby/object:Gem::Requirement
|
@@ -169,14 +169,14 @@ dependencies:
|
|
169
169
|
requirements:
|
170
170
|
- - "~>"
|
171
171
|
- !ruby/object:Gem::Version
|
172
|
-
version: '1.
|
172
|
+
version: '1.1'
|
173
173
|
type: :runtime
|
174
174
|
prerelease: false
|
175
175
|
version_requirements: !ruby/object:Gem::Requirement
|
176
176
|
requirements:
|
177
177
|
- - "~>"
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version: '1.
|
179
|
+
version: '1.1'
|
180
180
|
- !ruby/object:Gem::Dependency
|
181
181
|
name: versionaire
|
182
182
|
requirement: !ruby/object:Gem::Requirement
|
@@ -300,7 +300,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
300
300
|
- !ruby/object:Gem::Version
|
301
301
|
version: '0'
|
302
302
|
requirements: []
|
303
|
-
rubygems_version: 3.4.
|
303
|
+
rubygems_version: 3.4.13
|
304
304
|
signing_key:
|
305
305
|
specification_version: 4
|
306
306
|
summary: A command line interface for smithing Ruby gems.
|
metadata.gz.sig
CHANGED
Binary file
|