tzispa_rig 0.4.4 → 0.4.5

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
  SHA1:
3
- metadata.gz: d7bcd3c23e2bd1422bb4063c90fb5f2c13ad89c0
4
- data.tar.gz: 0ae585b5ee37682149e6f20a760c73f5306bafc6
3
+ metadata.gz: 3abd2ac7d760cd2cabf17104393e729d9a6c8684
4
+ data.tar.gz: c45a9e6387937ec48211955a0c4615012197984d
5
5
  SHA512:
6
- metadata.gz: 2b19ba2bb38467fd667744d9ae63f9f7b914b25f9cdeb109681b95822702bfa7cc04f2d67269bad1bc0424a5b0b2cf4a4443b89c1beb17df3766d25635576f18
7
- data.tar.gz: 361177bf1bb749c7653c767ebbaaeefdc02c9989091bf23a0a2d3c19bd6087fc34624eb33bc651d88896b78427f2ae3203a3a54abbb3638a6efa645e9db1e0b1
6
+ metadata.gz: bf14d442886539737944870b6d9e7d8b1e667548c19d151848eda5f07d967f9924e12a6089aa095b014d26c226812fd135590bd790256d2bdf96febca5562aba
7
+ data.tar.gz: 920da35422db633d62f89ef19cc53456f2b95ce0124bc5303bca3ab1c7b76a4f451a8675f7e4fbd495a135633416ca43e69dc97c26cce31a79dec68b0eadf490
data/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@ Tzispa Rig
2
2
 
3
3
  Rig templates implementation
4
4
 
5
+ ## v0.4.5
6
+ - code fixes for replacing TzString with String refinement
7
+
5
8
  ## v0.4.4
6
9
  - add session,router_params,not_found&logger delegators to make template binders less contextized
7
10
  - remove unused gem dependencies and code (old parser)
@@ -64,6 +64,8 @@ module Tzispa
64
64
  class Template < File
65
65
  extend Forwardable
66
66
 
67
+ using Tzispa::Utils
68
+
67
69
  BASIC_TYPES = [:layout, :block, :static].freeze
68
70
  DEFAULT_FORMAT = 'htm'.freeze
69
71
  RIG_EXTENSION = 'rig'.freeze
@@ -152,16 +154,16 @@ module Tzispa
152
154
  end
153
155
 
154
156
  def binder_namespace
155
- "#{TzString.camelize @domain.name}::Rig::#{@type.to_s.capitalize}#{'::' + TzString.camelize(@subdomain) if @subdomain}"
157
+ "#{@domain.name.to_s.camelize}::Rig::#{@type.to_s.capitalize}#{'::' + @subdomain.camelize if @subdomain}"
156
158
  end
157
159
 
158
160
  def binder_class_name
159
- TzString.camelize @name
161
+ @name.camelize
160
162
  end
161
163
 
162
164
  def binder_class
163
165
  @domain.require binder_require
164
- TzString.constantize "#{binder_namespace}::#{binder_class_name}"
166
+ "#{binder_namespace}::#{binder_class_name}".constantize
165
167
  end
166
168
 
167
169
  private
@@ -3,7 +3,7 @@
3
3
  module Tzispa
4
4
  module Rig
5
5
 
6
- VERSION = '0.4.4'
6
+ VERSION = '0.4.5'
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.4.4
4
+ version: 0.4.5
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: 2016-11-15 00:00:00.000000000 Z
11
+ date: 2016-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tzispa_utils
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  version: '0'
77
77
  requirements: []
78
78
  rubyforge_project:
79
- rubygems_version: 2.5.1
79
+ rubygems_version: 2.5.2
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: General purpose template engine