tocer 16.0.0 → 16.0.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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/tocer/cli/actions/label.rb +2 -2
- data/lib/tocer/cli/actions/pattern.rb +2 -2
- data/lib/tocer/cli/actions/root.rb +2 -2
- 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: a0d436c9b31e04495a19a9f7c5acc14e3e9ff6c367602ff4a9ca07aa10a4ea8d
|
4
|
+
data.tar.gz: 020ac653eb699ab2fba976834a433d0c87fa28a642c52580e0c38889a1ba8e5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a519423c227b8e3c839b9a6146e2f53ca390e768f97910860fbdc75e6859d9b0f243cd064037dcfcc8390a7bb82f47bca43f1c842ae3a069a2bf57a337c27ac
|
7
|
+
data.tar.gz: ff20d97e77e6eb0c05c7ab3234c15949905903ebd8774a8b5c719015966b1b3b878a9dac6b893ee8bb6ded1530071de6a521faad16e245cb5af85f113017971b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -8,7 +8,7 @@ module Tocer
|
|
8
8
|
module Actions
|
9
9
|
# Stores table of contents label.
|
10
10
|
class Label < Sod::Action
|
11
|
-
include Import[:
|
11
|
+
include Import[:input]
|
12
12
|
|
13
13
|
using Refinements::Structs
|
14
14
|
|
@@ -18,7 +18,7 @@ module Tocer
|
|
18
18
|
|
19
19
|
default { Container[:configuration].label }
|
20
20
|
|
21
|
-
def call(label = default) =
|
21
|
+
def call(label = default) = input.merge!(label:)
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
@@ -8,7 +8,7 @@ module Tocer
|
|
8
8
|
module Actions
|
9
9
|
# Stores table of contents file patterns.
|
10
10
|
class Pattern < Sod::Action
|
11
|
-
include Import[:
|
11
|
+
include Import[:input]
|
12
12
|
|
13
13
|
using Refinements::Structs
|
14
14
|
|
@@ -18,7 +18,7 @@ module Tocer
|
|
18
18
|
|
19
19
|
default { Container[:configuration].patterns }
|
20
20
|
|
21
|
-
def call(patterns = default) =
|
21
|
+
def call(patterns = default) = input.merge! patterns: Array(patterns)
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
@@ -8,7 +8,7 @@ module Tocer
|
|
8
8
|
module Actions
|
9
9
|
# Stores table of contents root path.
|
10
10
|
class Root < Sod::Action
|
11
|
-
include Import[:
|
11
|
+
include Import[:input]
|
12
12
|
|
13
13
|
using Refinements::Structs
|
14
14
|
|
@@ -18,7 +18,7 @@ module Tocer
|
|
18
18
|
|
19
19
|
default { Container[:configuration].root_dir }
|
20
20
|
|
21
|
-
def call(path = default) =
|
21
|
+
def call(path = default) = input.merge! root_dir: Pathname(path)
|
22
22
|
end
|
23
23
|
end
|
24
24
|
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.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-06-
|
38
|
+
date: 2023-06-19 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: cogger
|
metadata.gz.sig
CHANGED
Binary file
|