gemsmith 19.6.0 → 19.7.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: 18c79a96c5026d6f95fdc3438c878967692e55016a14591610b58242b63efcc9
4
- data.tar.gz: 0d2495cda1713edce97dd79bda9c4439405374272d4260f7e8ba7fd32e33d9c3
3
+ metadata.gz: 96230b2008b022d66810cf0a911f34e222182635a8c489c9adad21f146be4740
4
+ data.tar.gz: 904903c94c5f394d69d351efae64eb29831348aa3c9c9bc09a67477de2367578
5
5
  SHA512:
6
- metadata.gz: 36a970c796d2b4617bde7fc729c159294c9d8a15fef4e7fd9804edcebdaa40745c8ddbeac412a55d5a533c8edc4b66bb24b8d88f3b02f1aab39defbddc15dcb7
7
- data.tar.gz: ab3c7b9cac447472824afa966c9dcbb6b7c08c9ed9241c68df9cd8aa4cf2938a5ff58bd9503c683ce5b431b6033bca159e1a435c36ebf0af59fcc6a452f73613
6
+ metadata.gz: 41d33f020ac0d58d1da515e9ad62e45c6a924ec272802212f930154e974d17cb9b58315c3274323f080a8e56dbc75f641744b96e93a5a0316e4187e3dd08584e
7
+ data.tar.gz: 7817dc8a42a05d11fb9c73f06b9fad90fa73d873c74f0c8ff9274081792e46c9f7baf87aa2a98c4f81e3e1ade289a4879252e1df1f067cc6d6d2e840905aa4a4
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.6.0"
5
+ spec.version = "19.7.0"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://alchemists.io/projects/gemsmith"
@@ -23,14 +23,14 @@ Gem::Specification.new do |spec|
23
23
  spec.cert_chain = [Gem.default_cert_path]
24
24
 
25
25
  spec.required_ruby_version = "~> 3.2"
26
- spec.add_dependency "cogger", "~> 0.5"
26
+ spec.add_dependency "cogger", "~> 0.8"
27
27
  spec.add_dependency "core", "~> 0.1"
28
28
  spec.add_dependency "dry-container", "~> 0.11"
29
29
  spec.add_dependency "dry-monads", "~> 1.6"
30
30
  spec.add_dependency "infusible", "~> 1.0"
31
- spec.add_dependency "milestoner", "~> 15.2"
31
+ spec.add_dependency "milestoner", "~> 15.3"
32
32
  spec.add_dependency "refinements", "~> 10.0"
33
- spec.add_dependency "rubysmith", "~> 4.7"
33
+ spec.add_dependency "rubysmith", "~> 4.8"
34
34
  spec.add_dependency "runcom", "~> 9.0"
35
35
  spec.add_dependency "spek", "~> 1.0"
36
36
  spec.add_dependency "versionaire", "~> 11.0"
@@ -7,14 +7,15 @@ module Gemsmith
7
7
  # The main Command Line Interface (CLI) object.
8
8
  class Shell
9
9
  include Actions::Import[
10
- :config,
11
10
  :build,
11
+ :config,
12
+ :edit,
12
13
  :install,
14
+ :kernel,
15
+ :logger,
13
16
  :publish,
14
- :edit,
15
- :view,
16
17
  :specification,
17
- :logger
18
+ :view
18
19
  ]
19
20
 
20
21
  def initialize(parser: Parser.new, **)
@@ -40,8 +41,8 @@ module Gemsmith
40
41
  in action_publish: true then publish.call configuration
41
42
  in action_edit: String => gem_name then edit.call gem_name
42
43
  in action_view: String => gem_name then view.call gem_name
43
- in action_version: true then logger.info { specification.labeled_version }
44
- else logger.any { parser.to_s }
44
+ in action_version: true then kernel.puts specification.labeled_version
45
+ else kernel.puts parser.to_s
45
46
  end
46
47
  end
47
48
  end
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
36
36
 
37
37
  spec.required_ruby_version = "~> <%= RUBY_VERSION[/\d+\.\d+/] %>"
38
38
  <% if configuration.build_cli %>
39
- spec.add_dependency "cogger", "~> 0.5"
39
+ spec.add_dependency "cogger", "~> 0.8"
40
40
  <% end %>
41
41
  <% if configuration.build_cli %>
42
42
  spec.add_dependency "core", "~> 0.1"
@@ -10,6 +10,6 @@ require "spek"
10
10
  register(:configuration) { Configuration::Loader.call }
11
11
  register(:specification) { Spek::Loader.call "#{__dir__}/<%= Array.new(2 + configuration.project_levels, "../").join %><%= configuration.project_name %>.gemspec" }
12
12
  register(:kernel) { Kernel }
13
- register(:logger) { Cogger::Client.new }
13
+ register(:logger) { Cogger.new formatter: :emoji }
14
14
  end
15
15
  <% end %>
@@ -9,11 +9,7 @@ RSpec.shared_context "with application dependencies" do
9
9
 
10
10
  let(:configuration) { <%= configuration.project_namespaced_class %>::Configuration::Loader.with_defaults.call }
11
11
  let(:kernel) { class_spy Kernel }
12
-
13
- let :logger do
14
- Cogger::Client.new Logger.new(StringIO.new),
15
- formatter: -> _severity, _name, _at, message { "#{message}\n" }
16
- end
12
+ let(:logger) { Cogger.new io: StringIO.new, formatter: :emoji }
17
13
 
18
14
  before { <%= configuration.project_namespaced_class %>::Import.stub configuration:, kernel:, logger: }
19
15
 
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.6.0
4
+ version: 19.7.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-10 00:00:00.000000000 Z
38
+ date: 2023-04-13 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: cogger
@@ -43,14 +43,14 @@ dependencies:
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '0.5'
46
+ version: '0.8'
47
47
  type: :runtime
48
48
  prerelease: false
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '0.5'
53
+ version: '0.8'
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: core
56
56
  requirement: !ruby/object:Gem::Requirement
@@ -113,14 +113,14 @@ dependencies:
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: '15.2'
116
+ version: '15.3'
117
117
  type: :runtime
118
118
  prerelease: false
119
119
  version_requirements: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - "~>"
122
122
  - !ruby/object:Gem::Version
123
- version: '15.2'
123
+ version: '15.3'
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: refinements
126
126
  requirement: !ruby/object:Gem::Requirement
@@ -141,14 +141,14 @@ dependencies:
141
141
  requirements:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: '4.7'
144
+ version: '4.8'
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.7'
151
+ version: '4.8'
152
152
  - !ruby/object:Gem::Dependency
153
153
  name: runcom
154
154
  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.10
303
+ rubygems_version: 3.4.12
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