rubysmith 5.7.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: 8bd6961adb1d36d9c7b736056680f34f88fcad071642df25f72341130f5b3bfd
4
- data.tar.gz: c66ef4a8c3e23d38532b283c8e03f022b9f8ae6ac64544cea89be28ffad6260b
3
+ metadata.gz: 3d6463a4b66a1668979f5d825065d7fda7c49f211db2db7f5bd9a0cc317a7629
4
+ data.tar.gz: a790806d30c4e8c06093717aefd934136f2b76b8efac56f80cdf5f44edf28818
5
5
  SHA512:
6
- metadata.gz: d949d074d5565888312e3d5acb5d7303c154e9d2b4cd8f090da5a6816fbf7b484dcad631793583dff147e51ec31e0a0c66155b5ec37a4a95a20dd5f5ce530fc1
7
- data.tar.gz: 68f171937ef1dd15967ddbf97a572f1cfe70700dd69bfcdad29266871079e73ff851c5dfac8a1413b514df22adb7bd042adf0d0016eb54ceee8af7eec64d099f
6
+ metadata.gz: 8664418401e1ab60e8a22fac22e773937b707b6857202b90baf802e4929cf17547d109426ba5083a259d1306f3aa65972be7589c1e050abd231307e64dff74cb
7
+ data.tar.gz: ad461380ff16989af7e8fbaf1c9e1f57e85dfb8f17f5f001dcd4a2f03ecf6c23a5a46abb818c9fa0b608ec4749d84b204d03c27103a5562b1d2f02325be6c7a7
checksums.yaml.gz.sig CHANGED
Binary file
@@ -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
 
@@ -36,7 +36,7 @@ module Rubysmith
36
36
  register(:defaults_path, memoize: true) { Pathname(__dir__).join("configuration/defaults.yml") }
37
37
  register(:xdg_config, memoize: true) { Runcom::Config.new "rubysmith/configuration.yml" }
38
38
  register(:git, memoize: true) { Gitt::Repository.new }
39
- register(:logger, memoize: true) { Cogger.new formatter: :emoji }
39
+ register(:logger, memoize: true) { Cogger.new id: :rubysmith }
40
40
  register :kernel, Kernel
41
41
  end
42
42
  end
@@ -11,7 +11,7 @@ source "https://rubygems.org"
11
11
 
12
12
  group :code_quality do
13
13
  <% if configuration.build_caliber %>
14
- gem "caliber", "~> 0.35"
14
+ gem "caliber", "~> 0.42"
15
15
  <% end %>
16
16
  <% if configuration.build_git && configuration.build_git_lint %>
17
17
  gem "git-lint", "~> 6.0"
@@ -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.7.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,8 +22,8 @@ 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"
26
- spec.add_dependency "cogger", "~> 0.10"
25
+ spec.required_ruby_version = [">= 3.2", "<= 3.3"]
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"
29
29
  spec.add_dependency "dry-schema", "~> 1.13"
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.7.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-09 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
@@ -43,14 +43,14 @@ dependencies:
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '0.10'
46
+ version: '0.12'
47
47
  type: :runtime
48
48
  prerelease: false
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '0.10'
53
+ version: '0.12'
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: dry-container
56
56
  requirement: !ruby/object:Gem::Requirement
@@ -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