rubysmith 6.1.0 → 6.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e54773a061dec5e6b98f7d33f64549e6fdfd369a7f25bc9420f9b5d03d78690
4
- data.tar.gz: c043c11b205410422176c6162e03a0a950f4d1897db833fbfd40d6bd95209551
3
+ metadata.gz: a344376a775b2c3751fa9897d77e9d5fa7444758be227eabed52fe648ff2cd5f
4
+ data.tar.gz: 58d3e8650bc45ace5082d3f27a0b9ecc9e5161d0b94827ea3d9afba5b99c891f
5
5
  SHA512:
6
- metadata.gz: 13c21b6fefed26ffce156268fa4594547a8bb72cde324485d23dd15489fb420991fea10c2d10aa2f41787a8fdc34312c6e5229bc1e0f34c65fc01ce9104007d8
7
- data.tar.gz: 97b2b2ec05af26573e2d28f8c00ec4161640db824f0a822b7f1c0b6fce0ee46f55d9b770c0872f03655bccb3174317b9be281bf700bbe3f37974427994050eca
6
+ metadata.gz: dcf76a9bd847810a61b07ef0c75398de830bf7949823d37cc4027525e0da294f3c52fe0e5383e2b3f2dfc73a6e3d96b9082211af58f5e0bb6a7f72a4288be5db
7
+ data.tar.gz: 241097873c55420ce6f0ef7dc02f091052ae35d44b1f1629e78cca84fa4ee8b2a17b3f7b2559db4ef61f8a3674cbcdd2fe167e25906d7bed4c2b753561556344
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,19 +1,32 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "pragmater"
4
+ require "refinements/pathname"
4
5
 
5
6
  module Rubysmith
6
7
  module Extensions
7
8
  # Ensures project skeleton has pragmas.
8
9
  class Pragmater
10
+ using Refinements::Pathname
11
+
9
12
  def self.call(...) = new(...).call
10
13
 
14
+ def self.custom_configuration
15
+ ::Pragmater::Configuration::Model[
16
+ comments: ["# frozen_string_literal: true"],
17
+ patterns: %w[**/*.rake **/*.rb *.gemspec exe/* bin/* config.ru *file]
18
+ ]
19
+ end
20
+
11
21
  def initialize configuration, client: ::Pragmater::Inserter.new
12
22
  @configuration = configuration
13
23
  @client = client
14
24
  end
15
25
 
16
- def call = client.call && configuration
26
+ def call
27
+ configuration.project_root.change_dir { client.call self.class.custom_configuration }
28
+ configuration
29
+ end
17
30
 
18
31
  private
19
32
 
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "refinements/io"
4
+ require "refinements/pathname"
4
5
  require "rubocop"
5
6
 
6
7
  module Rubysmith
@@ -8,6 +9,7 @@ module Rubysmith
8
9
  # Ensures project skeleton adheres to style guide.
9
10
  class Rubocop
10
11
  using Refinements::IO
12
+ using Refinements::Pathname
11
13
 
12
14
  def self.call(...) = new(...).call
13
15
 
@@ -17,7 +19,12 @@ module Rubysmith
17
19
  end
18
20
 
19
21
  def call
20
- STDOUT.squelch { client.run ["--autocorrect-all", configuration.project_root.to_s] }
22
+ project_root = configuration.project_root
23
+
24
+ project_root.change_dir do
25
+ STDOUT.squelch { client.run ["--autocorrect-all", project_root.to_s] }
26
+ end
27
+
21
28
  configuration
22
29
  end
23
30
 
@@ -1,11 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "refinements/pathname"
3
4
  require "tocer"
4
5
 
5
6
  module Rubysmith
6
7
  module Extensions
7
8
  # Ensures project skeleton documentation has table of content.
8
9
  class Tocer
10
+ using Refinements::Pathname
11
+
9
12
  def self.call(...) = new(...).call
10
13
 
11
14
  def initialize configuration, client: ::Tocer::Runner.new
@@ -14,7 +17,9 @@ module Rubysmith
14
17
  end
15
18
 
16
19
  def call
17
- client.call ::Tocer::Container[:configuration] if configuration.build_readme
20
+ return configuration unless configuration.build_readme
21
+
22
+ configuration.project_root.change_dir { client.call ::Tocer::Container[:configuration] }
18
23
  configuration
19
24
  end
20
25
 
@@ -11,13 +11,13 @@ source "https://rubygems.org"
11
11
 
12
12
  group :quality do
13
13
  <% if configuration.build_caliber %>
14
- gem "caliber", "~> 0.47"
14
+ gem "caliber", "~> 0.50"
15
15
  <% end %>
16
16
  <% if configuration.build_git && configuration.build_git_lint %>
17
17
  gem "git-lint", "~> 7.0"
18
18
  <% end %>
19
19
  <% if configuration.build_reek %>
20
- gem "reek", "~> 6.2", require: false
20
+ gem "reek", "~> 6.3", require: false
21
21
  <% end %>
22
22
  <% if configuration.build_simple_cov %>
23
23
  gem "simplecov", "~> 0.22", require: false
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 = "6.1.0"
5
+ spec.version = "6.2.1"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://alchemists.io/projects/rubysmith"
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
31
31
  spec.add_dependency "gitt", "~> 3.0"
32
32
  spec.add_dependency "infusible", "~> 3.0"
33
33
  spec.add_dependency "milestoner", "~> 17.0"
34
- spec.add_dependency "pragmater", "~> 14.0"
34
+ spec.add_dependency "pragmater", "~> 14.1"
35
35
  spec.add_dependency "refinements", "~> 12.0"
36
36
  spec.add_dependency "rubocop", "~> 1.59"
37
37
  spec.add_dependency "runcom", "~> 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: 6.1.0
4
+ version: 6.2.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: 2024-01-23 00:00:00.000000000 Z
38
+ date: 2024-02-16 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: cogger
@@ -155,14 +155,14 @@ dependencies:
155
155
  requirements:
156
156
  - - "~>"
157
157
  - !ruby/object:Gem::Version
158
- version: '14.0'
158
+ version: '14.1'
159
159
  type: :runtime
160
160
  prerelease: false
161
161
  version_requirements: !ruby/object:Gem::Requirement
162
162
  requirements:
163
163
  - - "~>"
164
164
  - !ruby/object:Gem::Version
165
- version: '14.0'
165
+ version: '14.1'
166
166
  - !ruby/object:Gem::Dependency
167
167
  name: refinements
168
168
  requirement: !ruby/object:Gem::Requirement
@@ -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.5.5
429
+ rubygems_version: 3.5.6
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