tocer 16.0.0 → 16.0.2
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 +2 -2
- data/lib/tocer/cli/actions/label.rb +2 -5
- data/lib/tocer/cli/actions/pattern.rb +2 -5
- data/lib/tocer/cli/actions/root.rb +2 -5
- data/lib/tocer/cli/commands/upsert.rb +2 -2
- data/lib/tocer/container.rb +1 -1
- data/tocer.gemspec +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- 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: 7c4101bef6c5b05804396d1d752cad68e6af2d8d24d0722ed46cc258956c9468
|
4
|
+
data.tar.gz: ae88adfbe2e1a73ca95dba4b2554c3d4edd50b2fb45ccf87ac5bd181103fae3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d7f0ce30f8ffdc5ed9645f3f37cbda06076bd8d82194000af0a88d8ba2aa146af1fd88d97e0b73ccb77e44df964f3993b1a31177b23bead3e8eb25b8376f595
|
7
|
+
data.tar.gz: f2463f4ea92b7578c3bab30a01824072602b5db5ef8ee3d388024834cc32c8d442f3419c21463f79d1d79a537782e2d3de5ae4d5acc1ecc9e7de4992a71f8508
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
S=��>�%����2B�yq��, �*�:*i(�J�_cǃ\b�%j�̰�$�Z�>��C�2w1pL���~��V11��|C2Ӻ{�9"D����Z��"�*a�k���S�!���n3��1�d���1��8�D�_����i1vte�������I��;��;9ΐȟ>��'��r�tRp���/�[����Q�T-+8x��Ѓ>�0ΑH��Y�go����w�_u��㣷E}˴f��ơd(�Ռ��-��n�~����+�p���0(���9�7G����"�mv��b�U͙b�Տ)��Шx)�� �{&�9���H�Z����V݃ј�$1UO[�K��Y8!��S2��7`F���9�:��
|
2
|
+
��) mSb�}r4Y#-"
|
@@ -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 Tocer
|
@@ -8,9 +7,7 @@ module Tocer
|
|
8
7
|
module Actions
|
9
8
|
# Stores table of contents label.
|
10
9
|
class Label < Sod::Action
|
11
|
-
include Import[:
|
12
|
-
|
13
|
-
using Refinements::Structs
|
10
|
+
include Import[:input]
|
14
11
|
|
15
12
|
description "Set label."
|
16
13
|
|
@@ -18,7 +15,7 @@ module Tocer
|
|
18
15
|
|
19
16
|
default { Container[:configuration].label }
|
20
17
|
|
21
|
-
def call(label =
|
18
|
+
def call(label = nil) = input.label = label || 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 Tocer
|
@@ -8,9 +7,7 @@ module Tocer
|
|
8
7
|
module Actions
|
9
8
|
# Stores table of contents file patterns.
|
10
9
|
class Pattern < Sod::Action
|
11
|
-
include Import[:
|
12
|
-
|
13
|
-
using Refinements::Structs
|
10
|
+
include Import[:input]
|
14
11
|
|
15
12
|
description "Set file patterns."
|
16
13
|
|
@@ -18,7 +15,7 @@ module Tocer
|
|
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 Tocer
|
@@ -8,9 +7,7 @@ module Tocer
|
|
8
7
|
module Actions
|
9
8
|
# Stores table of contents root path.
|
10
9
|
class Root < Sod::Action
|
11
|
-
include Import[:
|
12
|
-
|
13
|
-
using Refinements::Structs
|
10
|
+
include Import[:input]
|
14
11
|
|
15
12
|
description "Set root directory."
|
16
13
|
|
@@ -18,7 +15,7 @@ module Tocer
|
|
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
|
@@ -9,7 +9,7 @@ module Tocer
|
|
9
9
|
module Commands
|
10
10
|
# Stores table of contents root path.
|
11
11
|
class Upsert < Sod::Command
|
12
|
-
include Import[:
|
12
|
+
include Import[:input, :kernel]
|
13
13
|
|
14
14
|
handle "upsert"
|
15
15
|
|
@@ -24,7 +24,7 @@ module Tocer
|
|
24
24
|
@runner = runner
|
25
25
|
end
|
26
26
|
|
27
|
-
def call = runner.call
|
27
|
+
def call = runner.call input
|
28
28
|
|
29
29
|
private
|
30
30
|
|
data/lib/tocer/container.rb
CHANGED
@@ -21,7 +21,7 @@ module Tocer
|
|
21
21
|
.add_loader(Etcher::Loaders::YAML.new(self[:defaults_path]))
|
22
22
|
end
|
23
23
|
|
24
|
-
register(:
|
24
|
+
register(:input, memoize: true) { self[:configuration].dup }
|
25
25
|
register(:defaults_path) { Pathname(__dir__).join("configuration/defaults.yml") }
|
26
26
|
register(:xdg_config) { Runcom::Config.new "tocer/configuration.yml" }
|
27
27
|
register(:specification) { Spek::Loader.call "#{__dir__}/../../tocer.gemspec" }
|
data/tocer.gemspec
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tocer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 16.0.
|
4
|
+
version: 16.0.2
|
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-06-
|
38
|
+
date: 2023-06-22 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: cogger
|
metadata.gz.sig
CHANGED
Binary file
|