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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 96230b2008b022d66810cf0a911f34e222182635a8c489c9adad21f146be4740
4
- data.tar.gz: 904903c94c5f394d69d351efae64eb29831348aa3c9c9bc09a67477de2367578
3
+ metadata.gz: 63e7b251454d69b9c36b44095d48d86e5dbe86dd8246e0775fbdcf58f2f06221
4
+ data.tar.gz: '094d44ce73d8c44cc238299a393250fe2fa4c2ccf4de8494e69779e3d13e4c00'
5
5
  SHA512:
6
- metadata.gz: 41d33f020ac0d58d1da515e9ad62e45c6a924ec272802212f930154e974d17cb9b58315c3274323f080a8e56dbc75f641744b96e93a5a0316e4187e3dd08584e
7
- data.tar.gz: 7817dc8a42a05d11fb9c73f06b9fad90fa73d873c74f0c8ff9274081792e46c9f7baf87aa2a98c4f81e3e1ade289a4879252e1df1f067cc6d6d2e840905aa4a4
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.7.0"
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.8"
33
+ spec.add_dependency "rubysmith", "~> 4.9"
34
34
  spec.add_dependency "runcom", "~> 9.0"
35
- spec.add_dependency "spek", "~> 1.0"
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.0"
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, :specification, :logger]
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 logger.info { specification.labeled_version }
28
- else logger.any { parser.to_s }
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
@@ -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(/Invalid configuration selection: bogus./)
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(logger.reread).to match(/<%= configuration.project_label %>\s\d+\.\d+\.\d+/)
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(logger.reread).to match(/<%= configuration.project_label %>.+USAGE.+/m)
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(logger.reread).to match(/<%= configuration.project_label %>.+USAGE.+/m)
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(/invalid option.+bogus/)
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.7.0
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-04-13 00:00:00.000000000 Z
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.8'
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.8'
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.0'
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.0'
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.12
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