tzispa_rig 0.4.4 → 0.4.5
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/template.rb +5 -3
- data/lib/tzispa/rig/version.rb +1 -1
- 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: 3abd2ac7d760cd2cabf17104393e729d9a6c8684
|
4
|
+
data.tar.gz: c45a9e6387937ec48211955a0c4615012197984d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
data/lib/tzispa/rig/template.rb
CHANGED
@@ -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
|
-
"#{
|
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
|
-
|
161
|
+
@name.camelize
|
160
162
|
end
|
161
163
|
|
162
164
|
def binder_class
|
163
165
|
@domain.require binder_require
|
164
|
-
|
166
|
+
"#{binder_namespace}::#{binder_class_name}".constantize
|
165
167
|
end
|
166
168
|
|
167
169
|
private
|
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.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-
|
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.
|
79
|
+
rubygems_version: 2.5.2
|
80
80
|
signing_key:
|
81
81
|
specification_version: 4
|
82
82
|
summary: General purpose template engine
|