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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf28299debdf56338c07ae7a0aae214c97037702
4
- data.tar.gz: aad790e7e1c5cefdf0adbad0ad77e10cf32efd08
3
+ metadata.gz: 8f61d5a234b8c0d9a4fe0529eaf9a6f1ebfc42ae
4
+ data.tar.gz: 5510913797929897ee62fd403be11c355ff33803
5
5
  SHA512:
6
- metadata.gz: 8fdf2bb999db07b47825ad0b63b533d2fa16d08c4fc40cbe0c5ef8f807e48bf9543eac9d8826c1e9956acd0e07053272515d15de507947c46ddf911e452cc8bb
7
- data.tar.gz: 4366e32e5db6416320801ab7bae8d8a81cc01a477525ba3171693491cace6059499ef703b293ff9aa1572c43b35e11b595eac24c392c836fa3a0d783573b13f7
6
+ metadata.gz: 376431a516f426e4499847f872a4edd5b46397a1d679a550cfb4aded98517706fd76cfe6daaa6ad99dd18e52a50b67890b87aea70564abf430920d6452504e81
7
+ data.tar.gz: a511a3a564960b49ef9d8a51a3e792f7a96eae4b51188b6e3dc01c1eb27478b3d7907024eadbf31ec41ae1412232004e04f7643310f5d84daae43a08b591d24e
data/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@ Tzispa Rig
2
2
 
3
3
  Rig templates implementation
4
4
 
5
+ ## v0.5.8
6
+ - engine class renmaed to factory
7
+
5
8
  ## v0.5.6
6
9
  - bugs fix
7
10
 
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'singleton'
3
4
  require 'digest'
4
5
  require 'moneta'
@@ -7,7 +8,7 @@ require 'tzispa/rig/template'
7
8
  module Tzispa
8
9
  module Rig
9
10
 
10
- class Engine
11
+ class Factory
11
12
  include Singleton
12
13
 
13
14
  def initialize
@@ -38,16 +38,16 @@ module Tzispa
38
38
  def obtain_block(id)
39
39
  case id
40
40
  when '__empty__'
41
- Rig::Engine.empty
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::Engine.block(name: id, domain: domain, content_type: content_type)
47
+ Rig::Factory.block(name: id, domain: domain, content_type: content_type)
48
48
  end
49
49
  else
50
- Rig::Engine.block(name: id, domain: domain, content_type: content_type)
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::Engine.empty
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::Engine.block(name: id, domain: domain, content_type: content_type)
96
+ Rig::Factory.block(name: id, domain: domain, content_type: content_type)
97
97
  end
98
98
  else
99
- Rig::Engine.block(name: id, domain: domain, content_type: content_type)
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::Engine.static name: @id,
122
- domain: domain,
123
- content_type: content_type
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
@@ -3,7 +3,7 @@
3
3
  module Tzispa
4
4
  module Rig
5
5
 
6
- VERSION = '0.5.7'
6
+ VERSION = '0.5.8'
7
7
  GEM_NAME = 'tzispa_rig'
8
8
 
9
9
  end
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/engine'
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.7
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-05-08 00:00:00.000000000 Z
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/engine.rb
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