meta_erb 0.0.2 → 0.0.3
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/lib/meta_erb/rails/handler.rb +0 -1
- data/rails/init.rb +11 -1
- metadata +2 -2
|
@@ -19,7 +19,6 @@ module MetaERB
|
|
|
19
19
|
meta_template = MetaERB::MetaTemplate.new(template.source, template.path)
|
|
20
20
|
meta_templates[template.path] = meta_template
|
|
21
21
|
src = "<% __in_erb_template=true ; @meta_template = MetaERB::Rails::Handler.meta_templates[#{template.path.inspect}] %>#{meta_template.evaluate}"
|
|
22
|
-
::Rails.logger.debug(src)
|
|
23
22
|
src = ::ERB.new(src, nil, erb_trim_mode, '@output_buffer').src
|
|
24
23
|
|
|
25
24
|
|
data/rails/init.rb
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
1
1
|
# Include hook code here
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
::ActionView::Template.register_default_template_handler :meta, ::MetaERB::Rails::Handler
|
|
4
|
+
|
|
5
|
+
if ::RAILS_GEM_VERSION == '2.3.3'
|
|
6
|
+
class ::ActionView::Template
|
|
7
|
+
def parse_extensions_with_strip_rb_extenion(extensions)
|
|
8
|
+
parse_extensions_without_strip_rb_extenion(extensions.gsub(/\.rb$/, ''))
|
|
9
|
+
end
|
|
10
|
+
alias_method_chain :parse_extensions, :strip_rb_extenion
|
|
11
|
+
end
|
|
12
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: meta_erb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Simon Menke
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-08-
|
|
12
|
+
date: 2009-08-20 00:00:00 +02:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|