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 CHANGED
@@ -1 +1,2 @@
1
1
  **.swp
2
+ pkg
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ekuseru}
8
- s.version = "0.3.1"
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
@@ -1,4 +1,6 @@
1
- require 'ekuseru'
2
-
1
+ require 'action_dispatch/http/mime_type'
3
2
  Mime::Type.register "application/vnd.ms-excel", :xls
3
+
4
+ require 'ekuseru'
4
5
  ActionView::Template.register_template_handler 'eku', Ekuseru::TemplateHandler::Eku
6
+
@@ -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
@@ -1,8 +1,10 @@
1
+ require 'action_view/template/handler'
2
+
1
3
  module Ekuseru
2
4
  module TemplateHandler
3
- class Eku < ActionView::TemplateHandler
4
- include ActionView::TemplateHandlers::Compilable
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
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 1
9
- version: 0.3.1
8
+ - 2
9
+ version: 0.3.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Nugroho Herucahyono