gemsmith 22.10.0 → 23.0.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: 86ebccde7d12c85fbf40fb0f978609ad01da25695326ab646f1a3a0518a188d1
4
- data.tar.gz: f31d9de01ef9aab6a333f5cfb2fc50eb07ccc27661aaf6181bb71b21a70739a2
3
+ metadata.gz: 7ebe58b0e40087886464fd8c5a76f95fbf456db6cc47bf0f59247afc7d4c4fb7
4
+ data.tar.gz: 131c5b91fe8f5aec914a60d61dd7ab7570ca9b0a24375d8dbf5e8c9e388ff54d
5
5
  SHA512:
6
- metadata.gz: 79f2c359e0640671d4a3438199caa3ea6dd78f82b0270fa565094c52a22abfda8f2069ac68f5d744876826b0afcbf2c84c4ec4c7f4aba9d8cb3c07ac43f078de
7
- data.tar.gz: 35367ef9814f407b3f6fcf2fe8687c1d0738a1cdc04e74dd35aad9e8c6f5a62c690467d3228e870d8c8b01bb92d68f10f5c269550b50c1ef4283296488e41e37
6
+ metadata.gz: fc572278de91e1bbea0dd0fc412098098a544763c2511e536e8a7dc27da4b9362ac66cf4ffd39fead384f8f05679e9b6d8ae9c579f741d2393a22bcae8c3d942
7
+ data.tar.gz: 360206f982fffb931c12132e2dcdd16401eebd5b7a2bea5e8b0e1505aa9aff2a4e7f105575f6014dea1f415535233319e4e89a9d95bc6f44332d58ceb823b1eb
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 = "22.10.0"
5
+ spec.version = "23.0.0"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://alchemists.io/projects/gemsmith"
@@ -22,20 +22,20 @@ Gem::Specification.new do |spec|
22
22
  spec.signing_key = Gem.default_key_path
23
23
  spec.cert_chain = [Gem.default_cert_path]
24
24
 
25
- spec.required_ruby_version = ">= 3.3", "<= 3.4"
26
- spec.add_dependency "cogger", "~> 0.31"
27
- spec.add_dependency "containable", "~> 0.2"
28
- spec.add_dependency "core", "~> 1.10"
25
+ spec.required_ruby_version = "~> 3.4"
26
+ spec.add_dependency "cogger", "~> 1.0"
27
+ spec.add_dependency "containable", "~> 1.0"
28
+ spec.add_dependency "core", "~> 2.0"
29
29
  spec.add_dependency "dry-monads", "~> 1.6"
30
30
  spec.add_dependency "dry-schema", "~> 1.13"
31
- spec.add_dependency "etcher", "~> 2.7"
32
- spec.add_dependency "infusible", "~> 3.12"
33
- spec.add_dependency "milestoner", "~> 18.10"
34
- spec.add_dependency "refinements", "~> 12.10"
35
- spec.add_dependency "rubysmith", "~> 7.9"
36
- spec.add_dependency "runcom", "~> 11.10"
37
- spec.add_dependency "sod", "~> 0.20"
38
- spec.add_dependency "spek", "~> 3.0"
31
+ spec.add_dependency "etcher", "~> 3.0"
32
+ spec.add_dependency "infusible", "~> 4.0"
33
+ spec.add_dependency "milestoner", "~> 19.0"
34
+ spec.add_dependency "refinements", "~> 13.0"
35
+ spec.add_dependency "rubysmith", "~> 8.0"
36
+ spec.add_dependency "runcom", "~> 12.0"
37
+ spec.add_dependency "sod", "~> 1.0"
38
+ spec.add_dependency "spek", "~> 4.0"
39
39
  spec.add_dependency "zeitwerk", "~> 2.7"
40
40
 
41
41
  spec.bindir = "exe"
@@ -38,7 +38,7 @@ module Gemsmith
38
38
  "%project_name%/lib/%project_path%/configuration/model.rb.erb",
39
39
  "%project_name%/lib/%project_path%/configuration/defaults.yml.erb",
40
40
  "%project_name%/lib/%project_path%/container.rb.erb",
41
- "%project_name%/lib/%project_path%/import.rb.erb"
41
+ "%project_name%/lib/%project_path%/dependencies.rb.erb"
42
42
  ].each { |path| builder.call(settings.merge(template_path: path)).render }
43
43
  end
44
44
 
@@ -56,7 +56,7 @@ module Gemsmith
56
56
  require "demo/configuration/contract"
57
57
  require "demo/configuration/model"
58
58
  require "demo/container"
59
- require "demo/import"
59
+ require "demo/dependencies"
60
60
 
61
61
  require "demo/cli/shell"
62
62
 
@@ -5,7 +5,7 @@ module Gemsmith
5
5
  module Git
6
6
  # Builds project skeleton initial Git commit message.
7
7
  class Commit < Rubysmith::Builders::Git::Commit
8
- include Import[:specification]
8
+ include Dependencies[:specification]
9
9
  end
10
10
  end
11
11
  end
@@ -7,7 +7,7 @@ module Gemsmith
7
7
  module Actions
8
8
  # Stores CLI flag.
9
9
  class CLI < Sod::Action
10
- include Import[:settings]
10
+ include Dependencies[:settings]
11
11
 
12
12
  description "Add command line interface."
13
13
 
@@ -9,7 +9,7 @@ module Gemsmith
9
9
  module Actions
10
10
  # Handles the edit action for editing an installed gem.
11
11
  class Edit < Sod::Action
12
- include Import[:logger]
12
+ include Dependencies[:logger]
13
13
  include Dry::Monads[:result]
14
14
 
15
15
  description "Edit installed gem in default editor."
@@ -10,7 +10,7 @@ module Gemsmith
10
10
  module Actions
11
11
  # Handles the install action.
12
12
  class Install < Sod::Action
13
- include Import[:logger]
13
+ include Dependencies[:logger]
14
14
  include Dry::Monads[:result]
15
15
 
16
16
  description "Install gem for local development."
@@ -10,7 +10,7 @@ module Gemsmith
10
10
  module Actions
11
11
  # Handles the publish action.
12
12
  class Publish < Sod::Action
13
- include Import[:logger]
13
+ include Dependencies[:logger]
14
14
  include Dry::Monads[:result]
15
15
 
16
16
  description "Publish gem to remote gem server."
@@ -9,7 +9,7 @@ module Gemsmith
9
9
  module Actions
10
10
  # Handles the view action for viewing an installed gem in default browser.
11
11
  class View < Sod::Action
12
- include Import[:logger]
12
+ include Dependencies[:logger]
13
13
  include Dry::Monads[:result]
14
14
 
15
15
  description "View installed gem in default browser."
@@ -7,7 +7,7 @@ module Gemsmith
7
7
  module Commands
8
8
  # Handles the build action.
9
9
  class Build < Sod::Command
10
- include Import[:settings, :logger]
10
+ include Dependencies[:settings, :logger]
11
11
 
12
12
  # Order is important.
13
13
  BUILDERS = [
@@ -33,7 +33,6 @@ module Gemsmith
33
33
  Rubysmith::Builders::GitHub::Template,
34
34
  Rubysmith::Builders::GitHub::Funding,
35
35
  Rubysmith::Builders::GitHub::CI,
36
- Rubysmith::Builders::Guard,
37
36
  Rubysmith::Builders::Reek,
38
37
  Rubysmith::Builders::RSpec::Binstub,
39
38
  Rubysmith::Builders::RSpec::Context,
@@ -78,7 +77,6 @@ module Gemsmith
78
77
  on Rubysmith::CLI::Actions::GitHub, settings: Container[:settings]
79
78
  on Rubysmith::CLI::Actions::GitHubCI, settings: Container[:settings]
80
79
  on Rubysmith::CLI::Actions::GitLint, settings: Container[:settings]
81
- on Rubysmith::CLI::Actions::Guard, settings: Container[:settings]
82
80
  on Rubysmith::CLI::Actions::IRBKit, settings: Container[:settings]
83
81
  on Rubysmith::CLI::Actions::License, settings: Container[:settings]
84
82
  on Rubysmith::CLI::Actions::Maximum, settings: Container[:settings]
@@ -6,7 +6,7 @@ module Gemsmith
6
6
  module CLI
7
7
  # The main Command Line Interface (CLI) object.
8
8
  class Shell
9
- include Import[:defaults_path, :xdg_config, :specification]
9
+ include Dependencies[:defaults_path, :xdg_config, :specification]
10
10
 
11
11
  def initialize(context: Sod::Context, dsl: Sod, **)
12
12
  super(**)
@@ -3,5 +3,5 @@
3
3
  require "infusible"
4
4
 
5
5
  module Gemsmith
6
- Import = Infusible[Container]
6
+ Dependencies = Infusible[Container]
7
7
  end
@@ -36,31 +36,31 @@ Gem::Specification.new do |spec|
36
36
 
37
37
  spec.required_ruby_version = "~> <%= RUBY_VERSION[/\d+\.\d+/] %>"
38
38
  <% if settings.build_cli %>
39
- spec.add_dependency "cogger", "~> 0.31"
39
+ spec.add_dependency "cogger", "~> 1.0"
40
40
  <% end %>
41
41
  <% if settings.build_cli %>
42
- spec.add_dependency "containable", "~> 0.2"
42
+ spec.add_dependency "containable", "~> 1.0"
43
43
  <% end %>
44
44
  <% if settings.build_cli %>
45
45
  spec.add_dependency "dry-monads", "~> 1.6"
46
46
  <% end %>
47
47
  <% if settings.build_cli %>
48
- spec.add_dependency "etcher", "~> 2.7"
48
+ spec.add_dependency "etcher", "~> 3.0"
49
49
  <% end %>
50
50
  <% if settings.build_cli %>
51
- spec.add_dependency "infusible", "~> 3.12"
51
+ spec.add_dependency "infusible", "~> 4.0"
52
52
  <% end %>
53
53
  <% if settings.build_refinements %>
54
- spec.add_dependency "refinements", "~> 12.10"
54
+ spec.add_dependency "refinements", "~> 13.0"
55
55
  <% end %>
56
56
  <% if settings.build_cli %>
57
- spec.add_dependency "runcom", "~> 11.10"
57
+ spec.add_dependency "runcom", "~> 12.0"
58
58
  <% end %>
59
59
  <% if settings.build_cli %>
60
- spec.add_dependency "sod", "~> 0.20"
60
+ spec.add_dependency "sod", "~> 1.0"
61
61
  <% end %>
62
62
  <% if settings.build_cli %>
63
- spec.add_dependency "spek", "~> 3.0"
63
+ spec.add_dependency "spek", "~> 4.0"
64
64
  <% end %>
65
65
  <% if settings.build_zeitwerk %>
66
66
  spec.add_dependency "zeitwerk", "~> 2.7"
@@ -4,7 +4,7 @@ require "sod"
4
4
  module CLI
5
5
  # The main Command Line Interface (CLI) object.
6
6
  class Shell
7
- include Import[:defaults_path, :xdg_config, :specification]
7
+ include Dependencies[:defaults_path, :xdg_config, :specification]
8
8
 
9
9
  def initialize(context: Sod::Context, dsl: Sod, **)
10
10
  super(**)
@@ -1,5 +1,5 @@
1
1
  require "infusible"
2
2
 
3
3
  <% namespace do %>
4
- Import = Infusible[Container]
4
+ Dependencies = Infusible[Container]
5
5
  <% end %>
@@ -16,7 +16,7 @@ module Gemsmith
16
16
  end
17
17
 
18
18
  def call specification
19
- root_dir.join("pkg").remove_tree
19
+ root_dir.join("pkg").rmtree
20
20
  root_dir.files("**/*.gem").each(&:delete)
21
21
  Success specification
22
22
  end
@@ -6,7 +6,7 @@ module Gemsmith
6
6
  module Tools
7
7
  # Edits a gem within default editor.
8
8
  class Editor
9
- include Import[:executor, :environment]
9
+ include Dependencies[:executor, :environment]
10
10
  include Dry::Monads[:result]
11
11
 
12
12
  def call specification
@@ -6,7 +6,7 @@ module Gemsmith
6
6
  module Tools
7
7
  # Installs a locally built gem.
8
8
  class Installer
9
- include Import[:executor]
9
+ include Dependencies[:executor]
10
10
  include Dry::Monads[:result, :do]
11
11
 
12
12
  # Order matters.
@@ -7,7 +7,7 @@ module Gemsmith
7
7
  module Tools
8
8
  # Pushes a gem package to remote gem server.
9
9
  class Pusher
10
- include Import[:executor, :logger]
10
+ include Dependencies[:executor, :logger]
11
11
  include Dry::Monads[:result]
12
12
 
13
13
  def initialize(command: Gem::CommandManager.new, **)
@@ -6,7 +6,7 @@ module Gemsmith
6
6
  module Tools
7
7
  # Validates whether a gem can be published or not.
8
8
  class Validator
9
- include Import[:executor]
9
+ include Dependencies[:executor]
10
10
  include Dry::Monads[:result]
11
11
 
12
12
  def call specification
@@ -6,7 +6,7 @@ module Gemsmith
6
6
  module Tools
7
7
  # Views a gem within default browser.
8
8
  class Viewer
9
- include Import[:executor]
9
+ include Dependencies[:executor]
10
10
  include Dry::Monads[:result]
11
11
 
12
12
  def call specification
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,11 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemsmith
3
3
  version: !ruby/object:Gem::Version
4
- version: 22.10.0
4
+ version: 23.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain:
11
10
  - |
@@ -35,7 +34,7 @@ cert_chain:
35
34
  3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
36
35
  gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
37
36
  -----END CERTIFICATE-----
38
- date: 2024-11-09 00:00:00.000000000 Z
37
+ date: 2024-12-28 00:00:00.000000000 Z
39
38
  dependencies:
40
39
  - !ruby/object:Gem::Dependency
41
40
  name: cogger
@@ -43,42 +42,42 @@ dependencies:
43
42
  requirements:
44
43
  - - "~>"
45
44
  - !ruby/object:Gem::Version
46
- version: '0.31'
45
+ version: '1.0'
47
46
  type: :runtime
48
47
  prerelease: false
49
48
  version_requirements: !ruby/object:Gem::Requirement
50
49
  requirements:
51
50
  - - "~>"
52
51
  - !ruby/object:Gem::Version
53
- version: '0.31'
52
+ version: '1.0'
54
53
  - !ruby/object:Gem::Dependency
55
54
  name: containable
56
55
  requirement: !ruby/object:Gem::Requirement
57
56
  requirements:
58
57
  - - "~>"
59
58
  - !ruby/object:Gem::Version
60
- version: '0.2'
59
+ version: '1.0'
61
60
  type: :runtime
62
61
  prerelease: false
63
62
  version_requirements: !ruby/object:Gem::Requirement
64
63
  requirements:
65
64
  - - "~>"
66
65
  - !ruby/object:Gem::Version
67
- version: '0.2'
66
+ version: '1.0'
68
67
  - !ruby/object:Gem::Dependency
69
68
  name: core
70
69
  requirement: !ruby/object:Gem::Requirement
71
70
  requirements:
72
71
  - - "~>"
73
72
  - !ruby/object:Gem::Version
74
- version: '1.10'
73
+ version: '2.0'
75
74
  type: :runtime
76
75
  prerelease: false
77
76
  version_requirements: !ruby/object:Gem::Requirement
78
77
  requirements:
79
78
  - - "~>"
80
79
  - !ruby/object:Gem::Version
81
- version: '1.10'
80
+ version: '2.0'
82
81
  - !ruby/object:Gem::Dependency
83
82
  name: dry-monads
84
83
  requirement: !ruby/object:Gem::Requirement
@@ -113,112 +112,112 @@ dependencies:
113
112
  requirements:
114
113
  - - "~>"
115
114
  - !ruby/object:Gem::Version
116
- version: '2.7'
115
+ version: '3.0'
117
116
  type: :runtime
118
117
  prerelease: false
119
118
  version_requirements: !ruby/object:Gem::Requirement
120
119
  requirements:
121
120
  - - "~>"
122
121
  - !ruby/object:Gem::Version
123
- version: '2.7'
122
+ version: '3.0'
124
123
  - !ruby/object:Gem::Dependency
125
124
  name: infusible
126
125
  requirement: !ruby/object:Gem::Requirement
127
126
  requirements:
128
127
  - - "~>"
129
128
  - !ruby/object:Gem::Version
130
- version: '3.12'
129
+ version: '4.0'
131
130
  type: :runtime
132
131
  prerelease: false
133
132
  version_requirements: !ruby/object:Gem::Requirement
134
133
  requirements:
135
134
  - - "~>"
136
135
  - !ruby/object:Gem::Version
137
- version: '3.12'
136
+ version: '4.0'
138
137
  - !ruby/object:Gem::Dependency
139
138
  name: milestoner
140
139
  requirement: !ruby/object:Gem::Requirement
141
140
  requirements:
142
141
  - - "~>"
143
142
  - !ruby/object:Gem::Version
144
- version: '18.10'
143
+ version: '19.0'
145
144
  type: :runtime
146
145
  prerelease: false
147
146
  version_requirements: !ruby/object:Gem::Requirement
148
147
  requirements:
149
148
  - - "~>"
150
149
  - !ruby/object:Gem::Version
151
- version: '18.10'
150
+ version: '19.0'
152
151
  - !ruby/object:Gem::Dependency
153
152
  name: refinements
154
153
  requirement: !ruby/object:Gem::Requirement
155
154
  requirements:
156
155
  - - "~>"
157
156
  - !ruby/object:Gem::Version
158
- version: '12.10'
157
+ version: '13.0'
159
158
  type: :runtime
160
159
  prerelease: false
161
160
  version_requirements: !ruby/object:Gem::Requirement
162
161
  requirements:
163
162
  - - "~>"
164
163
  - !ruby/object:Gem::Version
165
- version: '12.10'
164
+ version: '13.0'
166
165
  - !ruby/object:Gem::Dependency
167
166
  name: rubysmith
168
167
  requirement: !ruby/object:Gem::Requirement
169
168
  requirements:
170
169
  - - "~>"
171
170
  - !ruby/object:Gem::Version
172
- version: '7.9'
171
+ version: '8.0'
173
172
  type: :runtime
174
173
  prerelease: false
175
174
  version_requirements: !ruby/object:Gem::Requirement
176
175
  requirements:
177
176
  - - "~>"
178
177
  - !ruby/object:Gem::Version
179
- version: '7.9'
178
+ version: '8.0'
180
179
  - !ruby/object:Gem::Dependency
181
180
  name: runcom
182
181
  requirement: !ruby/object:Gem::Requirement
183
182
  requirements:
184
183
  - - "~>"
185
184
  - !ruby/object:Gem::Version
186
- version: '11.10'
185
+ version: '12.0'
187
186
  type: :runtime
188
187
  prerelease: false
189
188
  version_requirements: !ruby/object:Gem::Requirement
190
189
  requirements:
191
190
  - - "~>"
192
191
  - !ruby/object:Gem::Version
193
- version: '11.10'
192
+ version: '12.0'
194
193
  - !ruby/object:Gem::Dependency
195
194
  name: sod
196
195
  requirement: !ruby/object:Gem::Requirement
197
196
  requirements:
198
197
  - - "~>"
199
198
  - !ruby/object:Gem::Version
200
- version: '0.20'
199
+ version: '1.0'
201
200
  type: :runtime
202
201
  prerelease: false
203
202
  version_requirements: !ruby/object:Gem::Requirement
204
203
  requirements:
205
204
  - - "~>"
206
205
  - !ruby/object:Gem::Version
207
- version: '0.20'
206
+ version: '1.0'
208
207
  - !ruby/object:Gem::Dependency
209
208
  name: spek
210
209
  requirement: !ruby/object:Gem::Requirement
211
210
  requirements:
212
211
  - - "~>"
213
212
  - !ruby/object:Gem::Version
214
- version: '3.0'
213
+ version: '4.0'
215
214
  type: :runtime
216
215
  prerelease: false
217
216
  version_requirements: !ruby/object:Gem::Requirement
218
217
  requirements:
219
218
  - - "~>"
220
219
  - !ruby/object:Gem::Version
221
- version: '3.0'
220
+ version: '4.0'
222
221
  - !ruby/object:Gem::Dependency
223
222
  name: zeitwerk
224
223
  requirement: !ruby/object:Gem::Requirement
@@ -233,7 +232,6 @@ dependencies:
233
232
  - - "~>"
234
233
  - !ruby/object:Gem::Version
235
234
  version: '2.7'
236
- description:
237
235
  email:
238
236
  - brooke@alchemists.io
239
237
  executables:
@@ -265,7 +263,7 @@ files:
265
263
  - lib/gemsmith/cli/commands/build.rb
266
264
  - lib/gemsmith/cli/shell.rb
267
265
  - lib/gemsmith/container.rb
268
- - lib/gemsmith/import.rb
266
+ - lib/gemsmith/dependencies.rb
269
267
  - lib/gemsmith/templates/%project_name%/%project_name%.gemspec.erb
270
268
  - lib/gemsmith/templates/%project_name%/exe/%project_name%.erb
271
269
  - lib/gemsmith/templates/%project_name%/lib/%project_path%/cli/shell.rb.erb
@@ -273,7 +271,7 @@ files:
273
271
  - lib/gemsmith/templates/%project_name%/lib/%project_path%/configuration/defaults.yml.erb
274
272
  - lib/gemsmith/templates/%project_name%/lib/%project_path%/configuration/model.rb.erb
275
273
  - lib/gemsmith/templates/%project_name%/lib/%project_path%/container.rb.erb
276
- - lib/gemsmith/templates/%project_name%/lib/%project_path%/import.rb.erb
274
+ - lib/gemsmith/templates/%project_name%/lib/%project_path%/dependencies.rb.erb
277
275
  - lib/gemsmith/templates/%project_name%/spec/lib/%project_path%/cli/shell_spec.rb.erb
278
276
  - lib/gemsmith/templates/%project_name%/spec/support/shared_contexts/application_dependencies.rb.erb
279
277
  - lib/gemsmith/tools/cleaner.rb
@@ -296,16 +294,12 @@ metadata:
296
294
  label: Gemsmith
297
295
  rubygems_mfa_required: 'true'
298
296
  source_code_uri: https://github.com/bkuhlmann/gemsmith
299
- post_install_message:
300
297
  rdoc_options: []
301
298
  require_paths:
302
299
  - lib
303
300
  required_ruby_version: !ruby/object:Gem::Requirement
304
301
  requirements:
305
- - - ">="
306
- - !ruby/object:Gem::Version
307
- version: '3.3'
308
- - - "<="
302
+ - - "~>"
309
303
  - !ruby/object:Gem::Version
310
304
  version: '3.4'
311
305
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -314,8 +308,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
314
308
  - !ruby/object:Gem::Version
315
309
  version: '0'
316
310
  requirements: []
317
- rubygems_version: 3.5.23
318
- signing_key:
311
+ rubygems_version: 3.6.2
319
312
  specification_version: 4
320
313
  summary: A command line interface for smithing Ruby gems.
321
314
  test_files: []
metadata.gz.sig CHANGED
Binary file