pragmater 13.0.1 → 13.0.3
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/exe/pragmater +1 -1
- data/lib/pragmater/cli/actions/comment.rb +1 -4
- data/lib/pragmater/cli/actions/pattern.rb +1 -4
- data/lib/pragmater/cli/actions/root.rb +1 -4
- data/lib/pragmater/configuration/model.rb +1 -5
- data/pragmater.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: bbb796df5c5ad67364a440644d8f58ee48178609a1ab98a4f6fc3585475cac2a
|
|
4
|
+
data.tar.gz: da309f19ba6476c94ab2b93e9226871b1b37ed1b5134ccaab1755923fb3a3b3f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: adde6a2387b695d92f70c98a819c989c8179b979937dcf1e6aa73116b9ba5282b7c554688a43367884a5b752cf0a5efb4d9d670cb25440d7831cd8c6ab8da435
|
|
7
|
+
data.tar.gz: 9b3e054ed1d2b4d8d628bd026095065a7a30bdb534441de9896ecc5309ab13e0774458ef17f60489bc7ed40d8888a3d3ab681bcf877ad942bc14d24e4d5de387
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/exe/pragmater
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require "refinements/structs"
|
|
4
3
|
require "sod"
|
|
5
4
|
|
|
6
5
|
module Pragmater
|
|
@@ -10,15 +9,13 @@ module Pragmater
|
|
|
10
9
|
class Comment < Sod::Action
|
|
11
10
|
include Import[:input]
|
|
12
11
|
|
|
13
|
-
using Refinements::Structs
|
|
14
|
-
|
|
15
12
|
description "Set pragma comments."
|
|
16
13
|
|
|
17
14
|
on %w[-c --comments], argument: "[a,b,c]"
|
|
18
15
|
|
|
19
16
|
default { Container[:configuration].patterns }
|
|
20
17
|
|
|
21
|
-
def call(comments =
|
|
18
|
+
def call(comments = nil) = input.comments = Array(comments || default)
|
|
22
19
|
end
|
|
23
20
|
end
|
|
24
21
|
end
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require "refinements/structs"
|
|
4
3
|
require "sod"
|
|
5
4
|
|
|
6
5
|
module Pragmater
|
|
@@ -10,15 +9,13 @@ module Pragmater
|
|
|
10
9
|
class Pattern < Sod::Action
|
|
11
10
|
include Import[:input]
|
|
12
11
|
|
|
13
|
-
using Refinements::Structs
|
|
14
|
-
|
|
15
12
|
description "Set file patterns."
|
|
16
13
|
|
|
17
14
|
on %w[-p --patterns], argument: "[a,b,c]"
|
|
18
15
|
|
|
19
16
|
default { Container[:configuration].patterns }
|
|
20
17
|
|
|
21
|
-
def call(patterns =
|
|
18
|
+
def call(patterns = nil) = input.patterns = Array(patterns || default)
|
|
22
19
|
end
|
|
23
20
|
end
|
|
24
21
|
end
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require "refinements/structs"
|
|
4
3
|
require "sod"
|
|
5
4
|
|
|
6
5
|
module Pragmater
|
|
@@ -10,15 +9,13 @@ module Pragmater
|
|
|
10
9
|
class Root < Sod::Action
|
|
11
10
|
include Import[:input]
|
|
12
11
|
|
|
13
|
-
using Refinements::Structs
|
|
14
|
-
|
|
15
12
|
description "Set root directory."
|
|
16
13
|
|
|
17
14
|
on %w[-r --root], argument: "[PATH]"
|
|
18
15
|
|
|
19
16
|
default { Container[:configuration].root_dir }
|
|
20
17
|
|
|
21
|
-
def call(path =
|
|
18
|
+
def call(path = nil) = input.root_dir = Pathname(path || default)
|
|
22
19
|
end
|
|
23
20
|
end
|
|
24
21
|
end
|
|
@@ -3,11 +3,7 @@
|
|
|
3
3
|
module Pragmater
|
|
4
4
|
module Configuration
|
|
5
5
|
# Defines the content of the configuration for use throughout the gem.
|
|
6
|
-
Model = Struct.new
|
|
7
|
-
:comments,
|
|
8
|
-
:patterns,
|
|
9
|
-
:root_dir
|
|
10
|
-
) do
|
|
6
|
+
Model = Struct.new :comments, :patterns, :root_dir do
|
|
11
7
|
def initialize(**)
|
|
12
8
|
super
|
|
13
9
|
self[:comments] = Array comments
|
data/pragmater.gemspec
CHANGED
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pragmater
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 13.0.
|
|
4
|
+
version: 13.0.3
|
|
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-07-01 00:00:00.000000000 Z
|
|
39
39
|
dependencies:
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: cogger
|
|
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
239
239
|
- !ruby/object:Gem::Version
|
|
240
240
|
version: '0'
|
|
241
241
|
requirements: []
|
|
242
|
-
rubygems_version: 3.4.
|
|
242
|
+
rubygems_version: 3.4.15
|
|
243
243
|
signing_key:
|
|
244
244
|
specification_version: 4
|
|
245
245
|
summary: A command line interface for managing pragma comments.
|
metadata.gz.sig
CHANGED
|
Binary file
|