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 +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%/Gemfile.erb +1 -1
- 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 +3 -3
- data.tar.gz.sig +0 -0
- metadata +6 -6
- 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: 8bd6961adb1d36d9c7b736056680f34f88fcad071642df25f72341130f5b3bfd
|
4
|
+
data.tar.gz: c66ef4a8c3e23d38532b283c8e03f022b9f8ae6ac64544cea89be28ffad6260b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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.7.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
|
|
@@ -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.
|
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.
|
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-
|
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.
|
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.
|
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://
|
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
|