stasis 0.1.17 → 0.1.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/stasis.rb +7 -1
  2. data/stasis.gemspec +1 -1
  3. 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
- output = @action._render || @action.render(@path, render_opts)
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
@@ -6,7 +6,7 @@ $:.unshift lib unless $:.include?(lib)
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "stasis"
9
- s.version = '0.1.17'
9
+ s.version = '0.1.18'
10
10
  s.platform = Gem::Platform::RUBY
11
11
  s.authors = [ 'Winton Welsh' ]
12
12
  s.email = [ 'mail@wintoni.us' ]
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: 57
4
+ hash: 63
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 17
10
- version: 0.1.17
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-13 00:00:00 -08:00
18
+ date: 2012-02-15 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency