rubysmith 6.2.0 → 6.2.1
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/lib/rubysmith/extensions/pragmater.rb +14 -1
- data/lib/rubysmith/extensions/rubocop.rb +8 -1
- data/lib/rubysmith/extensions/tocer.rb +6 -1
- data/rubysmith.gemspec +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -3
- 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: a344376a775b2c3751fa9897d77e9d5fa7444758be227eabed52fe648ff2cd5f
|
4
|
+
data.tar.gz: 58d3e8650bc45ace5082d3f27a0b9ecc9e5161d0b94827ea3d9afba5b99c891f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
-
|
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
|
-
|
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
|
|
data/rubysmith.gemspec
CHANGED
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.2.
|
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-
|
38
|
+
date: 2024-02-16 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: cogger
|
@@ -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.
|
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
|