abstract-synthesizer 0.0.9 → 0.0.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22d772bc26562b5ccb413c16cd751a51a8ab4b49c3e9c1b2e242b4cd796db05f
4
- data.tar.gz: 29cfbb7de6f35542b805411e1d1defc0d3580eda967b880252a97a7161ace833
3
+ metadata.gz: b00ea7698748513ed02b116048fcbb515eff9b09ab94553094f4bdde6adb237d
4
+ data.tar.gz: b12e0a41d8c3be957c64761fd16153a60e1b0187bf8995c9a474aa6c95a45f49
5
5
  SHA512:
6
- metadata.gz: 9805481cfdb4750aecbb881faca5135d303cd92e764df9472f6c1d4c8b57e32623cc2020ff7578c8fad2a99d82da03d9e3cd2f128541f9986a7bc85dce3c361e
7
- data.tar.gz: d6f14ed657a2ec13624c8db3933d17dc7638cdc1049e503c2f4632d10086a804613ebf5aa55fab887495b16f683a2d5b47d0e855981d5ca21d9ca4b152f8cfb8
6
+ metadata.gz: 285328c804a47b5d0b667daea07cf616ce666eb44907b4e2a7a3331b47f1c924636a1aabdf0cb0a9d6cd300803a4c416c1c33f0cbec61df69828b9f5dd1f4257
7
+ data.tar.gz: a90ed6040828629f07dd063d5048e1a5ab114826c7a19c96d656350383d2ea80adfb18d7b7b45d7e630e6a6df2c4a7509af067a41963b9e7359ead72cb245275
data/Gemfile.lock CHANGED
@@ -1,48 +1,52 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- abstract-synthesizer (0.0.9)
4
+ abstract-synthesizer (0.0.10)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- ast (2.4.2)
10
- diff-lcs (1.5.1)
11
- json (2.10.1)
12
- language_server-protocol (3.17.0.4)
13
- parallel (1.26.3)
14
- parser (3.3.7.1)
9
+ ast (2.4.3)
10
+ diff-lcs (1.6.2)
11
+ json (2.12.2)
12
+ language_server-protocol (3.17.0.5)
13
+ lint_roller (1.1.0)
14
+ parallel (1.27.0)
15
+ parser (3.3.8.0)
15
16
  ast (~> 2.4.1)
16
17
  racc
18
+ prism (1.4.0)
17
19
  racc (1.8.1)
18
20
  rainbow (3.1.1)
19
- rake (13.2.1)
21
+ rake (13.3.0)
20
22
  regexp_parser (2.10.0)
21
- rspec (3.13.0)
23
+ rspec (3.13.1)
22
24
  rspec-core (~> 3.13.0)
23
25
  rspec-expectations (~> 3.13.0)
24
26
  rspec-mocks (~> 3.13.0)
25
- rspec-core (3.13.3)
27
+ rspec-core (3.13.4)
26
28
  rspec-support (~> 3.13.0)
27
- rspec-expectations (3.13.3)
29
+ rspec-expectations (3.13.5)
28
30
  diff-lcs (>= 1.2.0, < 2.0)
29
31
  rspec-support (~> 3.13.0)
30
- rspec-mocks (3.13.2)
32
+ rspec-mocks (3.13.5)
31
33
  diff-lcs (>= 1.2.0, < 2.0)
32
34
  rspec-support (~> 3.13.0)
33
- rspec-support (3.13.2)
34
- rubocop (1.71.2)
35
+ rspec-support (3.13.4)
36
+ rubocop (1.76.1)
35
37
  json (~> 2.3)
36
- language_server-protocol (>= 3.17.0)
38
+ language_server-protocol (~> 3.17.0.2)
39
+ lint_roller (~> 1.1.0)
37
40
  parallel (~> 1.10)
38
41
  parser (>= 3.3.0.2)
39
42
  rainbow (>= 2.2.2, < 4.0)
40
43
  regexp_parser (>= 2.9.3, < 3.0)
41
- rubocop-ast (>= 1.38.0, < 2.0)
44
+ rubocop-ast (>= 1.45.0, < 2.0)
42
45
  ruby-progressbar (~> 1.7)
43
46
  unicode-display_width (>= 2.4.0, < 4.0)
44
- rubocop-ast (1.38.0)
45
- parser (>= 3.3.1.0)
47
+ rubocop-ast (1.45.1)
48
+ parser (>= 3.3.7.2)
49
+ prism (~> 1.4)
46
50
  ruby-progressbar (1.13.0)
47
51
  unicode-display_width (3.1.4)
48
52
  unicode-emoji (~> 4.0, >= 4.0.4)
data/gemset.nix CHANGED
@@ -6,57 +6,67 @@
6
6
  path = ./.;
7
7
  type = "path";
8
8
  };
9
- version = "0.0.9";
9
+ version = "0.0.10";
10
10
  };
11
11
  ast = {
12
12
  groups = ["default" "development"];
13
13
  platforms = [];
14
14
  source = {
15
15
  remotes = ["https://rubygems.org"];
16
- sha256 = "04nc8x27hlzlrr5c2gn7mar4vdr0apw5xg22wp6m8dx3wqr04a0y";
16
+ sha256 = "10yknjyn0728gjn6b5syynvrvrwm66bhssbxq8mkhshxghaiailm";
17
17
  type = "gem";
18
18
  };
19
- version = "2.4.2";
19
+ version = "2.4.3";
20
20
  };
21
21
  diff-lcs = {
22
22
  groups = ["default" "development"];
23
23
  platforms = [];
24
24
  source = {
25
25
  remotes = ["https://rubygems.org"];
26
- sha256 = "1znxccz83m4xgpd239nyqxlifdb7m8rlfayk6s259186nkgj6ci7";
26
+ sha256 = "0qlrj2qyysc9avzlr4zs1py3x684hqm61n4czrsk1pyllz5x5q4s";
27
27
  type = "gem";
28
28
  };
29
- version = "1.5.1";
29
+ version = "1.6.2";
30
30
  };
31
31
  json = {
32
32
  groups = ["default" "development"];
33
33
  platforms = [];
34
34
  source = {
35
35
  remotes = ["https://rubygems.org"];
36
- sha256 = "1p4l5ycdxfsr8b51gnvlvhq6s21vmx9z4x617003zbqv3bcqmj6x";
36
+ sha256 = "1x5b8ipv6g0z44wgc45039k04smsyf95h2m5m67mqq35sa5a955s";
37
37
  type = "gem";
38
38
  };
39
- version = "2.10.1";
39
+ version = "2.12.2";
40
40
  };
41
41
  language_server-protocol = {
42
42
  groups = ["default" "development"];
43
43
  platforms = [];
44
44
  source = {
45
45
  remotes = ["https://rubygems.org"];
46
- sha256 = "0scnz2fvdczdgadvjn0j9d49118aqm3hj66qh8sd2kv6g1j65164";
46
+ sha256 = "1k0311vah76kg5m6zr7wmkwyk5p2f9d9hyckjpn3xgr83ajkj7px";
47
47
  type = "gem";
48
48
  };
49
- version = "3.17.0.4";
49
+ version = "3.17.0.5";
50
+ };
51
+ lint_roller = {
52
+ groups = ["default" "development"];
53
+ platforms = [];
54
+ source = {
55
+ remotes = ["https://rubygems.org"];
56
+ sha256 = "11yc0d84hsnlvx8cpk4cbj6a4dz9pk0r1k29p0n1fz9acddq831c";
57
+ type = "gem";
58
+ };
59
+ version = "1.1.0";
50
60
  };
51
61
  parallel = {
52
62
  groups = ["default" "development"];
53
63
  platforms = [];
54
64
  source = {
55
65
  remotes = ["https://rubygems.org"];
56
- sha256 = "1vy7sjs2pgz4i96v5yk9b7aafbffnvq7nn419fgvw55qlavsnsyq";
66
+ sha256 = "0c719bfgcszqvk9z47w2p8j2wkz5y35k48ywwas5yxbbh3hm3haa";
57
67
  type = "gem";
58
68
  };
59
- version = "1.26.3";
69
+ version = "1.27.0";
60
70
  };
61
71
  parser = {
62
72
  dependencies = ["ast" "racc"];
@@ -64,10 +74,20 @@
64
74
  platforms = [];
65
75
  source = {
66
76
  remotes = ["https://rubygems.org"];
67
- sha256 = "18dcwrcnddvi8gl3hmbsb2cj1l7afxk2lh3jmhj90l95h1hn3gkx";
77
+ sha256 = "0i9w8msil4snx5w11ix9b0wf52vjc3r49khy3ddgl1xk890kcxi4";
78
+ type = "gem";
79
+ };
80
+ version = "3.3.8.0";
81
+ };
82
+ prism = {
83
+ groups = ["default" "development"];
84
+ platforms = [];
85
+ source = {
86
+ remotes = ["https://rubygems.org"];
87
+ sha256 = "0gkhpdjib9zi9i27vd9djrxiwjia03cijmd6q8yj2q1ix403w3nw";
68
88
  type = "gem";
69
89
  };
70
- version = "3.3.7.1";
90
+ version = "1.4.0";
71
91
  };
72
92
  racc = {
73
93
  groups = ["default" "development"];
@@ -94,10 +114,10 @@
94
114
  platforms = [];
95
115
  source = {
96
116
  remotes = ["https://rubygems.org"];
97
- sha256 = "17850wcwkgi30p7yqh60960ypn7yibacjjha0av78zaxwvd3ijs6";
117
+ sha256 = "14s4jdcs1a4saam9qmzbsa2bsh85rj9zfxny5z315x3gg0nhkxcn";
98
118
  type = "gem";
99
119
  };
100
- version = "13.2.1";
120
+ version = "13.3.0";
101
121
  };
102
122
  regexp_parser = {
103
123
  groups = ["default" "development"];
@@ -115,10 +135,10 @@
115
135
  platforms = [];
116
136
  source = {
117
137
  remotes = ["https://rubygems.org"];
118
- sha256 = "14xrp8vq6i9zx37vh0yp4h9m0anx9paw200l1r5ad9fmq559346l";
138
+ sha256 = "0h11wynaki22a40rfq3ahcs4r36jdpz9acbb3m5dkf0mm67sbydr";
119
139
  type = "gem";
120
140
  };
121
- version = "3.13.0";
141
+ version = "3.13.1";
122
142
  };
123
143
  rspec-core = {
124
144
  dependencies = ["rspec-support"];
@@ -126,10 +146,10 @@
126
146
  platforms = [];
127
147
  source = {
128
148
  remotes = ["https://rubygems.org"];
129
- sha256 = "1r6zbis0hhbik1ck8kh58qb37d1qwij1x1d2fy4jxkzryh3na4r5";
149
+ sha256 = "0n1rlagplpcgp41s3r68z01539aivwj0cn3v19hq4p3pgdmibnpr";
130
150
  type = "gem";
131
151
  };
132
- version = "3.13.3";
152
+ version = "3.13.4";
133
153
  };
134
154
  rspec-expectations = {
135
155
  dependencies = ["diff-lcs" "rspec-support"];
@@ -137,10 +157,10 @@
137
157
  platforms = [];
138
158
  source = {
139
159
  remotes = ["https://rubygems.org"];
140
- sha256 = "0n3cyrhsa75x5wwvskrrqk56jbjgdi2q1zx0irllf0chkgsmlsqf";
160
+ sha256 = "0dl8npj0jfpy31bxi6syc7jymyd861q277sfr6jawq2hv6hx791k";
141
161
  type = "gem";
142
162
  };
143
- version = "3.13.3";
163
+ version = "3.13.5";
144
164
  };
145
165
  rspec-mocks = {
146
166
  dependencies = ["diff-lcs" "rspec-support"];
@@ -148,42 +168,42 @@
148
168
  platforms = [];
149
169
  source = {
150
170
  remotes = ["https://rubygems.org"];
151
- sha256 = "1vxxkb2sf2b36d8ca2nq84kjf85fz4x7wqcvb8r6a5hfxxfk69r3";
171
+ sha256 = "10gajm8iscl7gb8q926hyna83bw3fx2zb4sqdzjrznjs51pqlcz4";
152
172
  type = "gem";
153
173
  };
154
- version = "3.13.2";
174
+ version = "3.13.5";
155
175
  };
156
176
  rspec-support = {
157
177
  groups = ["default" "development"];
158
178
  platforms = [];
159
179
  source = {
160
180
  remotes = ["https://rubygems.org"];
161
- sha256 = "1v6v6xvxcpkrrsrv7v1xgf7sl0d71vcfz1cnrjflpf6r7x3a58yf";
181
+ sha256 = "1xx3f4mgr84jz07fifd3r68hm6giqy91hqyzawmi0s59yqa1hjqq";
162
182
  type = "gem";
163
183
  };
164
- version = "3.13.2";
184
+ version = "3.13.4";
165
185
  };
166
186
  rubocop = {
167
- dependencies = ["json" "language_server-protocol" "parallel" "parser" "rainbow" "regexp_parser" "rubocop-ast" "ruby-progressbar" "unicode-display_width"];
187
+ dependencies = ["json" "language_server-protocol" "lint_roller" "parallel" "parser" "rainbow" "regexp_parser" "rubocop-ast" "ruby-progressbar" "unicode-display_width"];
168
188
  groups = ["development"];
169
189
  platforms = [];
170
190
  source = {
171
191
  remotes = ["https://rubygems.org"];
172
- sha256 = "0zzrsdz23jmjc8iwilzhw5cifn4flzmsbwkzxlwa6qf6m80payws";
192
+ sha256 = "1rz0wwhxy6rv0kk2m8jp77fbhwgs7m01p2yys9bj3kwl0xsjsnp1";
173
193
  type = "gem";
174
194
  };
175
- version = "1.71.2";
195
+ version = "1.76.1";
176
196
  };
177
197
  rubocop-ast = {
178
- dependencies = ["parser"];
198
+ dependencies = ["parser" "prism"];
179
199
  groups = ["default" "development"];
180
200
  platforms = [];
181
201
  source = {
182
202
  remotes = ["https://rubygems.org"];
183
- sha256 = "1bi6pgnii77763dzwhafcp8lrmnh4n1bqbdimhc9lfj4zs96gpsg";
203
+ sha256 = "0gis8w51k5dsmzzlppvwwznqyfd73fa3zcrpl1xihzy1mm4jw14l";
184
204
  type = "gem";
185
205
  };
186
- version = "1.38.0";
206
+ version = "1.45.1";
187
207
  };
188
208
  ruby-progressbar = {
189
209
  groups = ["default" "development"];
@@ -1,3 +1,3 @@
1
1
  module AbstractSynthesizer
2
- VERSION = %(0.0.9).freeze
2
+ VERSION = %(0.0.10).freeze
3
3
  end
@@ -1,7 +1,7 @@
1
- require_relative %(./abstract-synthesizer/errors/invalid_synthesizer_key_error)
2
- require_relative %(./abstract-synthesizer/errors/too_many_field_values)
3
- require_relative %(./abstract-synthesizer/errors/not_enough_resource_keys)
4
- require_relative %(./abstract-synthesizer/primitives/bury)
1
+ require_relative %(abstract-synthesizer/errors/invalid_synthesizer_key_error)
2
+ require_relative %(abstract-synthesizer/errors/too_many_field_values)
3
+ require_relative %(abstract-synthesizer/errors/not_enough_resource_keys)
4
+ require_relative %(abstract-synthesizer/primitives/bury)
5
5
 
6
6
  class AbstractSynthesizer
7
7
  include Bury
@@ -16,15 +16,10 @@ class AbstractSynthesizer
16
16
  }
17
17
  end
18
18
 
19
- def clear_synthesis!
19
+ def clear!
20
20
  translation[:template] = {}
21
21
  end
22
22
 
23
- def load_synthesis_data(data)
24
- @context_data = data
25
- @context_data
26
- end
27
-
28
23
  def synthesis
29
24
  translation[:template]
30
25
  end
@@ -38,6 +33,10 @@ class AbstractSynthesizer
38
33
  self
39
34
  end
40
35
 
36
+ def template
37
+ @translation[:template]
38
+ end
39
+
41
40
  private
42
41
 
43
42
  # check if method is part of keys
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: abstract-synthesizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - drzzln@protonmail.com