rubysmith 5.5.0 → 5.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: 0ca1a2ed0fc35e9412dd6a42f5c672fb17d9f1368ed3f7bb2e8e95368c22049a
4
- data.tar.gz: bcf8e3c7961409f94ddfcb999a172d367549a06cb31582c9f5add5fa0a95d61f
3
+ metadata.gz: 8bd6961adb1d36d9c7b736056680f34f88fcad071642df25f72341130f5b3bfd
4
+ data.tar.gz: c66ef4a8c3e23d38532b283c8e03f022b9f8ae6ac64544cea89be28ffad6260b
5
5
  SHA512:
6
- metadata.gz: 52f70332376f6cc8ac82012a81a5edd0303ea14e1fb9d1013786752c50510b3bd8ac19faf4c442a5e77dc5b08c3a84517dc5be0d38dda29098d4160e4c0cb4de
7
- data.tar.gz: 70970bc7a922c0af0b85a46a8909c9db6be75db024de7a2a4b1909b89bca695830aa5afd9bfec3127fbd3c4c9dced64869ccbb74e5a9a56c7fb8dc2d19855140
6
+ metadata.gz: d949d074d5565888312e3d5acb5d7303c154e9d2b4cd8f090da5a6816fbf7b484dcad631793583dff147e51ec31e0a0c66155b5ec37a4a95a20dd5f5ce530fc1
7
+ data.tar.gz: 68f171937ef1dd15967ddbf97a572f1cfe70700dd69bfcdad29266871079e73ff851c5dfac8a1413b514df22adb7bd042adf0d0016eb54ceee8af7eec64d099f
checksums.yaml.gz.sig CHANGED
Binary file
data/README.adoc CHANGED
@@ -273,9 +273,9 @@ Additional customization is possible via the YARD Rake task as found in the `Rak
273
273
 
274
274
  ===== Zeitwerk
275
275
 
276
- The `--zeitwerk` option allows you add the link:https://github.com/fxn/zeitwerk[Zeitwerk] gem to
277
- your project so you can reduce the maintence burden of managing requirements when adding new objects
278
- to your project.
276
+ The `--zeitwerk` option allows you add the link:https://github.com/fxn/zeitwerk[Zeitwerk] gem to your project so you can reduce the maintenance burden of managing requirements when adding new objects to your project.
277
+
278
+ This includes having access to your project's Zeitwerk loader for inspection and debugging purposes. This means if you built a `Demo` project, you'd immediately have access to your project's loader via `Demo.loader` when using the project console (i.e. `bin/console`, assuming you built your project with the `--console` flag enabled which is default behavior).
279
279
 
280
280
  ==== Publish
281
281
 
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "refinements/structs"
4
- require "tocer"
5
4
 
6
5
  module Rubysmith
7
6
  module Builders
@@ -1,11 +1,8 @@
1
- ## Overview
2
- <!-- Required. Describe, briefly, the behavior experienced and desired. -->
1
+ ## Why
2
+ <!-- Required. Describe, briefly, why this issue is important. -->
3
3
 
4
- ## Screenshots/Screencasts
5
- <!-- Optional. Attach screenshot(s) and/or screencast(s) that demo the behavior. -->
4
+ ## How
5
+ <!-- Optional. List exact steps (numbered) to implement or reproduce behavior. Screen shots/casts are welcome. -->
6
6
 
7
- ## Steps to Recreate
8
- <!-- Required. List exact steps (numbered list) to reproduce errant behavior. -->
9
-
10
- ## Environment
11
- <!-- Required. What is your operating system, software version(s), etc. -->
7
+ ## Notes
8
+ <!-- Optional. Provide additional details (i.e operating system, software version(s), stack dump, etc.) -->
@@ -1,4 +1,4 @@
1
- ruby File.read(".ruby-version").strip
1
+ ruby file: ".ruby-version"
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
@@ -3,7 +3,7 @@
3
3
  require "bundler/setup"
4
4
  Bundler.require :tools
5
5
 
6
- require "<%= configuration.project_path %>"
6
+ require Bundler.root.join("lib/<%= configuration.project_path %>").to_s
7
7
  require "irb"
8
8
 
9
9
  IRB.start __FILE__
@@ -2,11 +2,22 @@
2
2
  require "zeitwerk"
3
3
  <% if configuration.project_levels.positive? %>
4
4
  Zeitwerk::Loader.new.then do |loader|
5
+ loader.tag = "<%= configuration.project_name %>"
5
6
  loader.push_dir "#{__dir__}<%= Array.new(configuration.project_levels, "/..").join %>"
6
7
  loader.setup
7
8
  end
8
9
  <% else %>
9
- Zeitwerk::Loader.for_gem.setup
10
+ Zeitwerk::Loader.new.then do |loader|
11
+ loader.tag = File.basename __FILE__, ".rb"
12
+ loader.push_dir __dir__
13
+ loader.setup
14
+ end
10
15
  <% end %>
11
16
  <% end %>
17
+ <% if configuration.build_zeitwerk %>
18
+ <% namespace do %>
19
+ def self.loader(registry = Zeitwerk::Registry) = registry.loader_for __FILE__
20
+ <% end %>
21
+ <% else %>
12
22
  <% namespace %>
23
+ <% end %>
data/lib/rubysmith.rb CHANGED
@@ -2,15 +2,18 @@
2
2
 
3
3
  require "zeitwerk"
4
4
 
5
- Zeitwerk::Loader.for_gem.then do |loader|
5
+ Zeitwerk::Loader.new.then do |loader|
6
6
  loader.inflector.inflect "cli" => "CLI",
7
7
  "circle_ci" => "CircleCI",
8
8
  "erb" => "ERB",
9
9
  "git_hub_ci" => "GitHubCI",
10
10
  "rspec" => "RSpec"
11
+ loader.tag = File.basename __FILE__, ".rb"
12
+ loader.push_dir __dir__
11
13
  loader.setup
12
14
  end
13
15
 
14
16
  # Main namespace.
15
17
  module Rubysmith
18
+ def self.loader(registry = Zeitwerk::Registry) = registry.loader_for __FILE__
16
19
  end
data/rubysmith.gemspec CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "rubysmith"
5
- spec.version = "5.5.0"
5
+ spec.version = "5.7.0"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
- spec.homepage = "https://github.com/bkuhlmann/rubysmith"
8
+ spec.homepage = "https://alchemists.io/projects/rubysmith"
9
9
  spec.summary = "A command line interface for smithing Ruby projects."
10
10
  spec.license = "Hippocratic-2.1"
11
11
 
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.add_dependency "dry-schema", "~> 1.13"
30
30
  spec.add_dependency "etcher", "~> 0.2"
31
31
  spec.add_dependency "gitt", "~> 2.0"
32
- spec.add_dependency "infusible", "~> 2.0"
32
+ spec.add_dependency "infusible", "~> 2.2"
33
33
  spec.add_dependency "milestoner", "~> 16.0"
34
34
  spec.add_dependency "pragmater", "~> 13.0"
35
35
  spec.add_dependency "refinements", "~> 11.0"
data.tar.gz.sig CHANGED
Binary file
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: 5.5.0
4
+ version: 5.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-07-29 00:00:00.000000000 Z
38
+ date: 2023-10-09 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: cogger
@@ -127,14 +127,14 @@ dependencies:
127
127
  requirements:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
- version: '2.0'
130
+ version: '2.2'
131
131
  type: :runtime
132
132
  prerelease: false
133
133
  version_requirements: !ruby/object:Gem::Requirement
134
134
  requirements:
135
135
  - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: '2.0'
137
+ version: '2.2'
138
138
  - !ruby/object:Gem::Dependency
139
139
  name: milestoner
140
140
  requirement: !ruby/object:Gem::Requirement
@@ -400,7 +400,7 @@ files:
400
400
  - lib/rubysmith/templates/%project_name%/spec/support/shared_contexts/temp_dir.rb.erb
401
401
  - lib/rubysmith/text/inserter.rb
402
402
  - rubysmith.gemspec
403
- homepage: https://github.com/bkuhlmann/rubysmith
403
+ homepage: https://alchemists.io/projects/rubysmith
404
404
  licenses:
405
405
  - Hippocratic-2.1
406
406
  metadata:
@@ -426,7 +426,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
426
426
  - !ruby/object:Gem::Version
427
427
  version: '0'
428
428
  requirements: []
429
- rubygems_version: 3.4.17
429
+ rubygems_version: 3.4.20
430
430
  signing_key:
431
431
  specification_version: 4
432
432
  summary: A command line interface for smithing Ruby projects.
metadata.gz.sig CHANGED
Binary file