tzispa_rig 0.5.5 → 0.5.6
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/helpers/template_maker.rb +8 -4
- data/lib/tzispa/rig/template.rb +0 -5
- data/lib/tzispa/rig/tokens/statement.rb +1 -1
- data/lib/tzispa/rig/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1a66bdcbb6ce0f32721e2dd5fd3e0e2f6858610
|
4
|
+
data.tar.gz: aa68ee2a10185955c3011fa74a6af87b10946021
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df6ce8fda115ccf94d62d7c51c42937a129cc0da5ebd65fe71c8a6e3fdc89d480af805fbdf2b8bbae487149282ad6e56b317b610a8d113af34052c263d6f1995
|
7
|
+
data.tar.gz: 5e12b5f21216c0e2cf81c8cfe3e51ce8ace5c537b18bfd7bf602e9bdec1eb461eebd074f4111847b9e7afb17122f5da4116e7604cf90887a675608829540afd8
|
data/CHANGELOG.md
CHANGED
@@ -8,9 +8,12 @@ module Tzispa
|
|
8
8
|
module Rig
|
9
9
|
module Helpers
|
10
10
|
module TemplateMaker
|
11
|
-
|
12
11
|
using Tzispa::Utils::TzString
|
13
12
|
|
13
|
+
BASIC_TYPES = %i[layout block static].freeze
|
14
|
+
|
15
|
+
RIG_EXTENSION = 'rig'
|
16
|
+
|
14
17
|
def create(content = '')
|
15
18
|
FileUtils.mkdir_p(path) unless Dir.exist? path
|
16
19
|
super(content)
|
@@ -26,13 +29,14 @@ module Tzispa
|
|
26
29
|
end
|
27
30
|
|
28
31
|
def binder_class_name
|
29
|
-
@binder_class_name ||=
|
32
|
+
@binder_class_name ||= "#{name.camelize}#{type.to_s.capitalize}"
|
30
33
|
end
|
31
34
|
|
32
35
|
def binder_class
|
33
36
|
@binder_class ||= begin
|
34
|
-
domain.require binder_require
|
35
|
-
|
37
|
+
if domain.require binder_require
|
38
|
+
"#{binder_namespace}::#{binder_class_name}".constantize
|
39
|
+
end
|
36
40
|
end
|
37
41
|
end
|
38
42
|
|
data/lib/tzispa/rig/template.rb
CHANGED
@@ -95,11 +95,6 @@ module Tzispa
|
|
95
95
|
|
96
96
|
include Tzispa::Rig::Helpers::TemplateMaker
|
97
97
|
|
98
|
-
|
99
|
-
|
100
|
-
BASIC_TYPES = %i[layout block static].freeze
|
101
|
-
RIG_EXTENSION = 'rig'
|
102
|
-
|
103
98
|
attr_reader :id, :name, :type, :domain, :parser, :subdomain, :childrens, :content_type
|
104
99
|
def_delegators :@parser, :attribute_tags
|
105
100
|
|
data/lib/tzispa/rig/version.rb
CHANGED
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.6
|
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-
|
11
|
+
date: 2017-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tzispa_utils
|