tzispa_rig 0.5.7 → 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/tzispa/rig/{engine.rb → factory.rb} +2 -1
- data/lib/tzispa/rig/tokens/block.rb +9 -9
- data/lib/tzispa/rig/version.rb +1 -1
- data/lib/tzispa/rig.rb +4 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f61d5a234b8c0d9a4fe0529eaf9a6f1ebfc42ae
|
4
|
+
data.tar.gz: 5510913797929897ee62fd403be11c355ff33803
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 376431a516f426e4499847f872a4edd5b46397a1d679a550cfb4aded98517706fd76cfe6daaa6ad99dd18e52a50b67890b87aea70564abf430920d6452504e81
|
7
|
+
data.tar.gz: a511a3a564960b49ef9d8a51a3e792f7a96eae4b51188b6e3dc01c1eb27478b3d7907024eadbf31ec41ae1412232004e04f7643310f5d84daae43a08b591d24e
|
data/CHANGELOG.md
CHANGED
@@ -38,16 +38,16 @@ module Tzispa
|
|
38
38
|
def obtain_block(id)
|
39
39
|
case id
|
40
40
|
when '__empty__'
|
41
|
-
Rig::
|
41
|
+
Rig::Factory.empty
|
42
42
|
when template&.id
|
43
43
|
# to avoid infinite recursion
|
44
44
|
if template&.type == :block
|
45
45
|
template
|
46
46
|
else
|
47
|
-
Rig::
|
47
|
+
Rig::Factory.block(name: id, domain: domain, content_type: content_type)
|
48
48
|
end
|
49
49
|
else
|
50
|
-
Rig::
|
50
|
+
Rig::Factory.block(name: id, domain: domain, content_type: content_type)
|
51
51
|
end
|
52
52
|
end
|
53
53
|
end
|
@@ -87,16 +87,16 @@ module Tzispa
|
|
87
87
|
def obtain_block(id)
|
88
88
|
case id
|
89
89
|
when '__empty__'
|
90
|
-
Rig::
|
90
|
+
Rig::Factory.empty
|
91
91
|
when template&.id
|
92
92
|
# to avoid infinite recursion
|
93
93
|
if template&.type == :block
|
94
94
|
template
|
95
95
|
else
|
96
|
-
Rig::
|
96
|
+
Rig::Factory.block(name: id, domain: domain, content_type: content_type)
|
97
97
|
end
|
98
98
|
else
|
99
|
-
Rig::
|
99
|
+
Rig::Factory.block(name: id, domain: domain, content_type: content_type)
|
100
100
|
end
|
101
101
|
end
|
102
102
|
|
@@ -118,9 +118,9 @@ module Tzispa
|
|
118
118
|
end
|
119
119
|
|
120
120
|
def parse!
|
121
|
-
@parsed_static = Tzispa::Rig::
|
122
|
-
|
123
|
-
|
121
|
+
@parsed_static = Tzispa::Rig::Factory.static name: @id,
|
122
|
+
domain: domain,
|
123
|
+
content_type: content_type
|
124
124
|
parser.childrens << @parsed_static
|
125
125
|
self
|
126
126
|
end
|
data/lib/tzispa/rig/version.rb
CHANGED
data/lib/tzispa/rig.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Tzispa
|
2
4
|
module Rig
|
3
5
|
|
@@ -5,9 +7,9 @@ module Tzispa
|
|
5
7
|
require 'tzispa/rig/parameters'
|
6
8
|
require 'tzispa/rig/token'
|
7
9
|
require 'tzispa/rig/parsernext'
|
8
|
-
require 'tzispa/rig/template'
|
10
|
+
require 'tzispa/rig/template'
|
9
11
|
require 'tzispa/rig/binder'
|
10
|
-
require 'tzispa/rig/
|
12
|
+
require 'tzispa/rig/factory'
|
11
13
|
|
12
14
|
end
|
13
15
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tzispa_rig
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Antonio Piñero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tzispa_utils
|
@@ -64,7 +64,7 @@ files:
|
|
64
64
|
- Rakefile
|
65
65
|
- lib/tzispa/rig.rb
|
66
66
|
- lib/tzispa/rig/binder.rb
|
67
|
-
- lib/tzispa/rig/
|
67
|
+
- lib/tzispa/rig/factory.rb
|
68
68
|
- lib/tzispa/rig/helpers/template_maker.rb
|
69
69
|
- lib/tzispa/rig/parameters.rb
|
70
70
|
- lib/tzispa/rig/parsernext.rb
|