ekuseru 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/VERSION +1 -1
- data/ekuseru.gemspec +1 -1
- data/init.rb +4 -2
- data/lib/ekuseru.rb +2 -1
- data/lib/template_handler/eku.rb +6 -4
- metadata +2 -2
data/.gitignore
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/ekuseru.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ekuseru}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Nugroho Herucahyono", "Jacob Rothstein"]
|
data/init.rb
CHANGED
data/lib/ekuseru.rb
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
require 'spreadsheet'
|
2
2
|
require 'template_handler/eku'
|
3
3
|
require 'template_handler/options'
|
4
|
+
require 'action_view/base'
|
4
5
|
|
5
6
|
class ActionView::Base
|
6
7
|
private
|
7
8
|
def _ekuseru_setup
|
8
9
|
@_ekuseru_options = Ekuseru::TemplateHandler::Options.new controller
|
9
10
|
end
|
10
|
-
end
|
11
|
+
end
|
data/lib/template_handler/eku.rb
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
+
require 'action_view/template/handler'
|
2
|
+
|
1
3
|
module Ekuseru
|
2
4
|
module TemplateHandler
|
3
|
-
class Eku < ActionView::
|
4
|
-
include ActionView::
|
5
|
-
|
5
|
+
class Eku < ActionView::Template::Handler
|
6
|
+
include ActionView::Template::Handlers::Compilable
|
7
|
+
|
6
8
|
def compile template
|
7
9
|
%{
|
8
10
|
_ekuseru_setup
|
@@ -17,4 +19,4 @@ module Ekuseru
|
|
17
19
|
end
|
18
20
|
end
|
19
21
|
end
|
20
|
-
end
|
22
|
+
end
|