stasis 0.1.17 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/stasis.rb +7 -1
- data/stasis.gemspec +1 -1
- metadata +4 -4
data/lib/stasis.rb
CHANGED
@@ -183,7 +183,13 @@ class Stasis
|
|
183
183
|
#
|
184
184
|
# Otherwise, render the file located at `@path`.
|
185
185
|
render_opts = {:callback => false}.merge(:template => Options.get_template_option(ext))
|
186
|
-
|
186
|
+
begin
|
187
|
+
output = @action._render || @action.render(@path, render_opts)
|
188
|
+
rescue
|
189
|
+
# If rendering the view caused an exception write the path out before exiting.
|
190
|
+
puts "Exception rendering view #{@path}"
|
191
|
+
raise
|
192
|
+
end
|
187
193
|
|
188
194
|
# If a layout was specified via the `layout` method...
|
189
195
|
if @action._layout
|
data/stasis.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stasis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 63
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 18
|
10
|
+
version: 0.1.18
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Winton Welsh
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-02-
|
18
|
+
date: 2012-02-15 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|