rack-rscript 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/rack-rscript.rb +2 -3
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 310dc40a6f5027007f2ae6dae43975010bf21930
|
4
|
+
data.tar.gz: 8d90134a3d54131239cec4bd2236bc84f86fd007
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d33fd5e77d9e00b87e87c146e22fdada6778edf80dd4fdb9f50ea497b2d0cb1c89f86211e3664e8e4b5c67bd164de6a6142178b5098ef7a3963ac23fa111b87c
|
7
|
+
data.tar.gz: b258df5e6ce536643a3171beb321cc0cf10ede95e09ef256255891272a6d9968f8d777b185191b72492c4fe727545dca32bcae919b1ece1828a57e6cea0b1b6f
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/rack-rscript.rb
CHANGED
@@ -170,7 +170,7 @@ class RackRscript
|
|
170
170
|
def render(name, type, options={})
|
171
171
|
layout = Tilt[type.to_s].new(options) {|x| @templates[:layout][:content]}
|
172
172
|
template = Tilt[type.to_s].new(options) {|x| @templates[name][:content]}
|
173
|
-
layout.render{ template.render
|
173
|
+
layout.render{ template.render(self)}
|
174
174
|
end
|
175
175
|
|
176
176
|
def template(name, type=nil, &blk)
|
@@ -181,7 +181,6 @@ class RackRscript
|
|
181
181
|
|
182
182
|
layout = Tilt[@templates[:layout][:type].to_s].new(options) {|x| @templates[:layout][:content]}
|
183
183
|
template = Tilt[@templates[name][:type].to_s].new(options) {|x| @templates[name][:content]}
|
184
|
-
layout.render{ template.render
|
184
|
+
layout.render{ template.render(self)}
|
185
185
|
end
|
186
186
|
end
|
187
|
-
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-rscript
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
29
29
|
PrSIAHSciIEyWkxdvMiXuEOAU+cBA3uVHTfpn/QHpap2lC3rCNFDCt1jdNhsvPJW
|
30
30
|
P8hoKd8f6iDnTJw4mqinZSTTIweaDo1s
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date: 2013-08-
|
32
|
+
date: 2013-08-21 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: rack
|
metadata.gz.sig
CHANGED
Binary file
|