abstract-synthesizer 0.0.10 → 0.0.12
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
- data/Gemfile.lock +1 -1
- data/abstract-synthesizer.gemspec +1 -1
- data/gemset.nix +1 -1
- data/lib/abstract-synthesizer/version.rb +2 -2
- data/lib/abstract-synthesizer.rb +6 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f98a3c4eef2c0889a1ae1f39de0dad80320546dcd2a3b932f6c1840424c29cac
|
4
|
+
data.tar.gz: 35452eac3bc6cf042db7c862b1fcb6cf81b3aa846b62ca7990b12128bb3d757e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a7eee0eabcfbe7b26e8790683421e5bbc2f46c7bd8ad201808244f082b8abeec65ab6244e94a3ad03cb28f9c2f8a36042c18d7ac0f2c3ef0243ccaacde4ee42
|
7
|
+
data.tar.gz: bd631dc44369978068441fae96630fcab43b9f18b6df7b0cf38f9687251fa0568b6a227a23aba3b3e001c071fd06c3ba045d87dbd8d9c6bd59c9a7192a14612e
|
data/Gemfile.lock
CHANGED
@@ -6,7 +6,7 @@ require_relative %(lib/abstract-synthesizer/version)
|
|
6
6
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
8
|
spec.name = %(abstract-synthesizer)
|
9
|
-
spec.version =
|
9
|
+
spec.version = Meta::VERSION
|
10
10
|
spec.authors = [%(drzzln@protonmail.com)]
|
11
11
|
spec.email = [%(drzzln@protonmail.com)]
|
12
12
|
spec.description = %(create resource based configuration DSL)
|
data/gemset.nix
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
module
|
2
|
-
VERSION = %(0.0.
|
1
|
+
module Meta
|
2
|
+
VERSION = %(0.0.12).freeze
|
3
3
|
end
|
data/lib/abstract-synthesizer.rb
CHANGED
@@ -11,17 +11,17 @@ class AbstractSynthesizer
|
|
11
11
|
def initialize(name: nil) # rubocop:disable Lint/UnusedMethodArgument
|
12
12
|
@translation = {
|
13
13
|
ancestors: [],
|
14
|
-
|
14
|
+
manifest: {},
|
15
15
|
context: nil
|
16
16
|
}
|
17
17
|
end
|
18
18
|
|
19
19
|
def clear!
|
20
|
-
translation[:
|
20
|
+
translation[:manifest] = {}
|
21
21
|
end
|
22
22
|
|
23
23
|
def synthesis
|
24
|
-
translation[:
|
24
|
+
translation[:manifest]
|
25
25
|
end
|
26
26
|
|
27
27
|
def synthesize(content = nil, &block)
|
@@ -33,8 +33,8 @@ class AbstractSynthesizer
|
|
33
33
|
self
|
34
34
|
end
|
35
35
|
|
36
|
-
def
|
37
|
-
@translation[:
|
36
|
+
def manifest
|
37
|
+
@translation[:manifest]
|
38
38
|
end
|
39
39
|
|
40
40
|
private
|
@@ -85,7 +85,7 @@ class AbstractSynthesizer
|
|
85
85
|
translation[:ancestors].append(method)
|
86
86
|
yield if block_given?
|
87
87
|
if args.length == 1
|
88
|
-
translation[:
|
88
|
+
translation[:manifest].bury(*translation[:ancestors], args[0])
|
89
89
|
translation[:ancestors].pop
|
90
90
|
elsif args.empty?
|
91
91
|
translation[:ancestors].pop
|