abstract-synthesizer 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/abstract-synthesizer/version.rb +1 -1
- data/lib/abstract-synthesizer.rb +7 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f514f67b9bf5aee1fb32fbb2db4428bd6d57ef1752406f0881dd2ecdf41b0643
|
4
|
+
data.tar.gz: ef48bb565a1649f1561df246a0c6332ae1d72b3c5bcfaa0ebf1f813ce8687933
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 404191afcc85a97b4fd9b47289a29e498b3d05328e4b03e4324830c8a0d2e29599e1109a53ad5e21d528a006247c5f918f6dd735358e07a0641cb95f01525317
|
7
|
+
data.tar.gz: 38311421b1ca1f8345a8913d0a0918a8005b44d1e875378dc8fb585cad2f030c52de43b667080a63b7a7099801c00af6f4fb27d05146c1011475a295a9c7674a
|
data/lib/abstract-synthesizer.rb
CHANGED
@@ -6,7 +6,7 @@ require_relative %(./abstract-synthesizer/primitives/bury)
|
|
6
6
|
class AbstractSynthesizer
|
7
7
|
include Bury
|
8
8
|
|
9
|
-
attr_reader :translation
|
9
|
+
attr_reader :translation, :data
|
10
10
|
|
11
11
|
def initialize(name: nil) # rubocop:disable Lint/UnusedMethodArgument
|
12
12
|
@translation = {
|
@@ -16,6 +16,11 @@ class AbstractSynthesizer
|
|
16
16
|
}
|
17
17
|
end
|
18
18
|
|
19
|
+
def load_synthesis_data(data)
|
20
|
+
@data = data
|
21
|
+
@data
|
22
|
+
end
|
23
|
+
|
19
24
|
def synthesis
|
20
25
|
translation[:template]
|
21
26
|
end
|
@@ -70,7 +75,7 @@ class AbstractSynthesizer
|
|
70
75
|
method = method.to_sym
|
71
76
|
|
72
77
|
validate_method(method, keys)
|
73
|
-
validate_args(args)
|
78
|
+
# validate_args(args)
|
74
79
|
|
75
80
|
keys.each do |key|
|
76
81
|
if key.eql?(translation[:context])
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: abstract-synthesizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- drzlnthslnt@gmail.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop-rspec
|
@@ -172,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
172
|
- !ruby/object:Gem::Version
|
173
173
|
version: '0'
|
174
174
|
requirements: []
|
175
|
-
rubygems_version: 3.3.
|
175
|
+
rubygems_version: 3.3.3
|
176
176
|
signing_key:
|
177
177
|
specification_version: 4
|
178
178
|
summary: create resource based configuration DSL
|