edifice 0.7.0 → 0.7.1

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.
data/Rakefile CHANGED
@@ -1,2 +1,3 @@
1
+ require 'rubygems'
1
2
  require 'bundler'
2
3
  Bundler::GemHelper.install_tasks
@@ -11,8 +11,11 @@ module Edifice
11
11
 
12
12
  class TemplateRenderer < ActionView::TemplateRenderer
13
13
  def render_template(template, layout_name = nil, locals = {})
14
- @view.controller.set_edifice_names(template.virtual_path.name,
15
- template.virtual_path.prefix, (layout_name.nil? ? '' : layout_name.split('/').last))
14
+ # ensure we aren't rendering e.g. text
15
+ if template.respond_to?(:virtual_path)
16
+ @view.controller.set_edifice_names(template.virtual_path.name,
17
+ template.virtual_path.prefix, (layout_name.nil? ? '' : layout_name.split('/').last))
18
+ end
16
19
 
17
20
  super(template, layout_name, locals)
18
21
  end
@@ -1,3 +1,3 @@
1
1
  module Edifice
2
- VERSION = "0.7.0"
2
+ VERSION = "0.7.1"
3
3
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: edifice
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 1
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
8
  - 7
8
- - 0
9
- version: 0.7.0
9
+ - 1
10
+ version: 0.7.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Tom Coleman
@@ -16,8 +17,7 @@ autorequire:
16
17
  bindir: bin
17
18
  cert_chain: []
18
19
 
19
- date: 2011-09-20 00:00:00 +10:00
20
- default_executable:
20
+ date: 2011-09-30 00:00:00 Z
21
21
  dependencies: []
22
22
 
23
23
  description: The idea here is to communicate which view is rendering to the javascript so that we can call the correct javascript files in an automagical way.
@@ -95,7 +95,6 @@ files:
95
95
  - test/rails3/public/stylesheets/form.css
96
96
  - test/rails3/script/rails
97
97
  - test/rails3/vendor/plugins/.gitkeep
98
- has_rdoc: true
99
98
  homepage: http://github.com/tmeasday/edifice
100
99
  licenses: []
101
100
 
@@ -105,23 +104,27 @@ rdoc_options: []
105
104
  require_paths:
106
105
  - lib
107
106
  required_ruby_version: !ruby/object:Gem::Requirement
107
+ none: false
108
108
  requirements:
109
109
  - - ">="
110
110
  - !ruby/object:Gem::Version
111
+ hash: 3
111
112
  segments:
112
113
  - 0
113
114
  version: "0"
114
115
  required_rubygems_version: !ruby/object:Gem::Requirement
116
+ none: false
115
117
  requirements:
116
118
  - - ">="
117
119
  - !ruby/object:Gem::Version
120
+ hash: 3
118
121
  segments:
119
122
  - 0
120
123
  version: "0"
121
124
  requirements: []
122
125
 
123
126
  rubyforge_project: edifice
124
- rubygems_version: 1.3.6
127
+ rubygems_version: 1.8.10
125
128
  signing_key:
126
129
  specification_version: 3
127
130
  summary: Ediface is a Javascript framework released as a rails plugin.