city-watch 0.6.4 → 0.6.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ module Renderer
16
16
  end
17
17
 
18
18
  def render_bare(*tpl)
19
- Erubis::FastEruby.new(template(*tpl), filename: template_path(*tpl)).result(binding)
19
+ template(*tpl).result(binding)
20
20
  end
21
21
 
22
22
  private
@@ -37,8 +37,8 @@ module Renderer
37
37
  def template(*tpl)
38
38
  return TemplateCache[tpl.join] if TemplateCache[tpl.join]
39
39
  file_path = template_path(*tpl)
40
- return template_content(file_path) if CityWatch.debug?
41
- TemplateCache[tpl.join] ||= template_content(file_path)
40
+ return Erubis::FastEruby.new(template_content(file_path), filename: file_path) if CityWatch.debug?
41
+ TemplateCache[tpl.join] ||= Erubis::FastEruby.new(template_content(file_path), filename: file_path)
42
42
  end
43
43
 
44
44
  def view_path
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module CityWatch
2
- VERSION = "0.6.4"
2
+ VERSION = "0.6.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: city-watch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: