fiveruns-dash-rails 0.7.4 → 0.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,9 +35,12 @@ module Fiveruns::Dash::Rails::TemplateContext
35
35
  original_context = Fiveruns::Dash::Context.context.dup
36
36
 
37
37
  begin
38
- template = Fiveruns::Dash::Rails::TemplateContext.sanitize_view_path(path)
39
- Fiveruns::Dash::Context.context << 'view'
40
- Fiveruns::Dash::Context.context << template
38
+ if respond_to?(:path)
39
+ template = Fiveruns::Dash::Rails::TemplateContext.sanitize_view_path(path)
40
+ Fiveruns::Dash::Context.context << template
41
+ else
42
+ Fiveruns::Dash::Context.context << '(inline)'
43
+ end
41
44
  result = render_without_fiveruns_dash_context(*args, &block)
42
45
  ensure
43
46
  Fiveruns::Dash::Context.set original_context
data/version.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 7
4
- :patch: 4
4
+ :patch: 5
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fiveruns-dash-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - FiveRuns Development Team
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-28 00:00:00 -08:00
12
+ date: 2009-02-02 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency