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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e832ffa87f19506e339017eee1aeb22d6664671
4
- data.tar.gz: f4365cd9feb40b7e97d23c680e8d379145f132d6
3
+ metadata.gz: f1a66bdcbb6ce0f32721e2dd5fd3e0e2f6858610
4
+ data.tar.gz: aa68ee2a10185955c3011fa74a6af87b10946021
5
5
  SHA512:
6
- metadata.gz: b135a0befc2df801b505cf87ec3706c41ca12b70fdbcb286652fb41f3c43ba23bcbb944bf873573bf13b11af9204ffee54f08225a44e4a7cdf074301b5d58fc4
7
- data.tar.gz: 447f262807c582167eb1ba9b1756fa8bba284cd4842965a54aa957ec600565394a42efc7fd4e65ca03c66bfdd6f384840f79c2f8b707039acc39c283f6469f69
6
+ metadata.gz: df6ce8fda115ccf94d62d7c51c42937a129cc0da5ebd65fe71c8a6e3fdc89d480af805fbdf2b8bbae487149282ad6e56b317b610a8d113af34052c263d6f1995
7
+ data.tar.gz: 5e12b5f21216c0e2cf81c8cfe3e51ce8ace5c537b18bfd7bf602e9bdec1eb461eebd074f4111847b9e7afb17122f5da4116e7604cf90887a675608829540afd8
data/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@ Tzispa Rig
2
2
 
3
3
  Rig templates implementation
4
4
 
5
+ ## v0.5.6
6
+ - bugs fix
7
+
5
8
  ## v0.5.5
6
9
  - minor code refactory
7
10
  - move template creation code to helper module
@@ -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 ||= @name.camelize
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
- "#{binder_namespace}::#{binder_class_name}#{type.to_s.capitalize}".constantize
37
+ if domain.require binder_require
38
+ "#{binder_namespace}::#{binder_class_name}".constantize
39
+ end
36
40
  end
37
41
  end
38
42
 
@@ -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
 
@@ -10,7 +10,7 @@ module Tzispa
10
10
  extend Forwardable
11
11
 
12
12
  attr_reader :id, :body_parser
13
- def_delegators :@body_parser, :attribute_tags, :loop_parser
13
+ def_delegators :@body_parser, :attribute_tags, :loop_token
14
14
 
15
15
  def initialize(parser, match)
16
16
  super(parser, :loop)
@@ -3,7 +3,7 @@
3
3
  module Tzispa
4
4
  module Rig
5
5
 
6
- VERSION = '0.5.5'
6
+ VERSION = '0.5.6'
7
7
  GEM_NAME = 'tzispa_rig'
8
8
 
9
9
  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.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-03 00:00:00.000000000 Z
11
+ date: 2017-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tzispa_utils