rubysmith 5.5.0 → 5.6.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/README.adoc +3 -3
- data/lib/rubysmith/builders/documentation/readme.rb +0 -1
- data/lib/rubysmith/templates/%project_name%/.github/ISSUE_TEMPLATE.md.erb +6 -9
- data/lib/rubysmith/templates/%project_name%/bin/console.erb +1 -1
- data/lib/rubysmith/templates/%project_name%/lib/%project_path%.rb.erb +12 -1
- data/lib/rubysmith.rb +4 -1
- data/rubysmith.gemspec +2 -2
- data.tar.gz.sig +0 -0
- metadata +4 -4
- 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: d2bdc94b13e74451e18224bdfff1cf41e744a4b9c75813d590b2fb9cd37b3a10
|
4
|
+
data.tar.gz: bd1d1451951971227e8883b0871b02906b675148c0cec20483f7b77da4a2b9ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 788dbee80b7f0028f0cc597b470be7255d4cfb30f7cbdb5845f49534d4ee0bfe6d74124b8cbd4d0c3274808b0dc33e33047d47fb80afcc224d32850c18eb8c76
|
7
|
+
data.tar.gz: c0c6bb8ae504209f8552614e9bdaaef4765d3e35e0c7007bde8acfc49b9b40a871b3cd47cd21e8185b9cd8160eb5ca1472b87b394f47f1ef75798beb5d18ac9d
|
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
|
-
|
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,11 +1,8 @@
|
|
1
|
-
##
|
2
|
-
<!-- Required. Describe, briefly,
|
1
|
+
## Why
|
2
|
+
<!-- Required. Describe, briefly, why this issue is important. -->
|
3
3
|
|
4
|
-
##
|
5
|
-
<!-- Optional.
|
4
|
+
## How
|
5
|
+
<!-- Optional. List exact steps (numbered) to implement or reproduce behavior. Screen shots/casts are welcome. -->
|
6
6
|
|
7
|
-
##
|
8
|
-
<!--
|
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.) -->
|
@@ -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.
|
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.
|
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
|
+
spec.version = "5.6.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
|
-
spec.homepage = "https://
|
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
|
|
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.
|
4
|
+
version: 5.6.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-10-01 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: cogger
|
@@ -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://
|
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.
|
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
|