rubysmith 5.8.0 → 5.8.1

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: 568f4c4199f483d0db9ee5b6b05cfd4fccc199e85713312df8e244df9f8ceeb8
4
- data.tar.gz: 3ff0234f2b8ecd0fcaadcff596df5e2320f7421b05a7ecab729ffa095b574c4e
3
+ metadata.gz: 3d6463a4b66a1668979f5d825065d7fda7c49f211db2db7f5bd9a0cc317a7629
4
+ data.tar.gz: a790806d30c4e8c06093717aefd934136f2b76b8efac56f80cdf5f44edf28818
5
5
  SHA512:
6
- metadata.gz: 0d034108bc24dca79413973ceaa423cf7aca6d0c8c8fb1f83969bef4f8ca56e6cb754ff6048c377fe4f960f277c01a44f92a2f676d9dc1a6c6f8a6869d615b27
7
- data.tar.gz: b2e84e51d928d44e9a529258ae4cc6ae27ed1720f436a19f040335e86a10069b16870affd0fe9acb5c7800c0f9cfeb3f3072f44dcca7b34a3a3260fb3acc86f2
6
+ metadata.gz: 8664418401e1ab60e8a22fac22e773937b707b6857202b90baf802e4929cf17547d109426ba5083a259d1306f3aa65972be7589c1e050abd231307e64dff74cb
7
+ data.tar.gz: ad461380ff16989af7e8fbaf1c9e1f57e85dfb8f17f5f001dcd4a2f03ecf6c23a5a46abb818c9fa0b608ec4749d84b204d03c27103a5562b1d2f02325be6c7a7
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- ��Յ��X�":
2
- \����s3��@�R�ꆩ�W�7�N�(�gcTy�!����ʩ0�4���>T�m�t�ۂm�v/�Ě�j��Ǿ�P<_��T[E����s�}�v�P��0�v .�]���o�U1���$���*�[qj������vA1U%�s%��u��(Q�}��D)��u��(�T���Ϟ~IH�e��(�o��$L�uMY�{\M�튰��Q& Z��
1
+ I֠&EuV�U�z��iJw��?�����tIev2��%;�/S�O�� ��o�%gm]*M�{�|����r�MJ��]j�����:[+�$�%)Cr3���8p"4�YD������_z�����K���
2
+ S
@@ -24,8 +24,6 @@ module Rubysmith
24
24
  .replace(/ (?=(Zeit|loader|end))/, "")
25
25
  .replace("\n \n", "\n\n")
26
26
  .insert_before("module #{module_name}", "#{indentation}# Main namespace.\n")
27
- .replace("end\n end", " end\n end")
28
-
29
27
  configuration
30
28
  end
31
29
 
@@ -16,7 +16,15 @@
16
16
  <% end %>
17
17
  <% if configuration.build_zeitwerk %>
18
18
  <% namespace do %>
19
- def self.loader(registry = Zeitwerk::Registry) = registry.loader_for __FILE__
19
+ <% if configuration.project_levels.positive? %>
20
+ def self.loader registry = Zeitwerk::Registry
21
+ @loader ||= registry.loaders.find { |loader| loader.tag == "<%= configuration.project_name %>" }
22
+ end
23
+ <% else %>
24
+ def self.loader registry = Zeitwerk::Registry
25
+ @loader ||= registry.loaders.find { |loader| loader.tag == File.basename(__FILE__, ".rb") }
26
+ end
27
+ <% end %>
20
28
  <% end %>
21
29
  <% else %>
22
30
  <% namespace %>
data/lib/rubysmith.rb CHANGED
@@ -15,5 +15,7 @@ end
15
15
 
16
16
  # Main namespace.
17
17
  module Rubysmith
18
- def self.loader(registry = Zeitwerk::Registry) = registry.loader_for __FILE__
18
+ def self.loader registry = Zeitwerk::Registry
19
+ @loader ||= registry.loaders.find { |loader| loader.tag == File.basename(__FILE__, ".rb") }
20
+ end
19
21
  end
data/rubysmith.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "rubysmith"
5
- spec.version = "5.8.0"
5
+ spec.version = "5.8.1"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://alchemists.io/projects/rubysmith"
@@ -22,7 +22,7 @@ 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.2"
25
+ spec.required_ruby_version = [">= 3.2", "<= 3.3"]
26
26
  spec.add_dependency "cogger", "~> 0.12"
27
27
  spec.add_dependency "dry-container", "~> 0.11"
28
28
  spec.add_dependency "dry-monads", "~> 1.6"
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.8.0
4
+ version: 5.8.1
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-10-15 00:00:00.000000000 Z
38
+ date: 2023-11-17 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: cogger
@@ -417,16 +417,19 @@ require_paths:
417
417
  - lib
418
418
  required_ruby_version: !ruby/object:Gem::Requirement
419
419
  requirements:
420
- - - "~>"
420
+ - - ">="
421
421
  - !ruby/object:Gem::Version
422
422
  version: '3.2'
423
+ - - "<="
424
+ - !ruby/object:Gem::Version
425
+ version: '3.3'
423
426
  required_rubygems_version: !ruby/object:Gem::Requirement
424
427
  requirements:
425
428
  - - ">="
426
429
  - !ruby/object:Gem::Version
427
430
  version: '0'
428
431
  requirements: []
429
- rubygems_version: 3.4.20
432
+ rubygems_version: 3.4.22
430
433
  signing_key:
431
434
  specification_version: 4
432
435
  summary: A command line interface for smithing Ruby projects.
metadata.gz.sig CHANGED
Binary file