flay-actionpack 0.0.1 → 0.0.2
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/flay-actionpack.gemspec +1 -1
- data/lib/flay_actionpack.rb +1 -1
- metadata +1 -1
data/flay-actionpack.gemspec
CHANGED
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = "flay-actionpack"
|
|
7
|
-
spec.version = '0.0.
|
|
7
|
+
spec.version = '0.0.2'
|
|
8
8
|
spec.authors = ["Eugene Kalenkovich"]
|
|
9
9
|
spec.email = ["rubify@softover.com"]
|
|
10
10
|
spec.description = "Flay plugin for Rails ERB templates"
|
data/lib/flay_actionpack.rb
CHANGED
|
@@ -9,7 +9,7 @@ class Flay
|
|
|
9
9
|
# Process erb template and parse the result. Returns the sexp of the parsed
|
|
10
10
|
# ruby.
|
|
11
11
|
|
|
12
|
-
def
|
|
12
|
+
def process_erb file
|
|
13
13
|
erb = File.read file
|
|
14
14
|
src = Struct.new(:source, :mime_type, :type).new(erb, 'text/html', 'text/html')
|
|
15
15
|
ruby = ActionView::Template::Handlers::ERB.call src
|