ekuseru 0.3.2 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.7
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ekuseru}
8
- s.version = "0.3.2"
8
+ s.version = "0.3.7"
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"]
@@ -22,7 +22,6 @@ Gem::Specification.new do |s|
22
22
  "Rakefile",
23
23
  "VERSION",
24
24
  "ekuseru.gemspec",
25
- "init.rb",
26
25
  "install.rb",
27
26
  "lib/ekuseru.rb",
28
27
  "lib/template_handler/eku.rb",
@@ -1,7 +1,11 @@
1
+ require 'action_dispatch/http/mime_type'
2
+ Mime::Type.register "application/vnd.ms-excel", :xls
3
+
1
4
  require 'spreadsheet'
2
5
  require 'template_handler/eku'
3
6
  require 'template_handler/options'
4
- require 'action_view/base'
7
+
8
+ ActionView::Template.register_template_handler 'eku', Ekuseru::TemplateHandler::Eku
5
9
 
6
10
  class ActionView::Base
7
11
  private
@@ -1,9 +1,9 @@
1
- require 'action_view/template/handler'
1
+ require 'action_view'
2
2
 
3
3
  module Ekuseru
4
4
  module TemplateHandler
5
- class Eku < ActionView::Template::Handler
6
- include ActionView::Template::Handlers::Compilable
5
+ class Eku < ActionView::TemplateHandler
6
+ include ActionView::TemplateHandlers::Compilable
7
7
 
8
8
  def compile template
9
9
  %{
@@ -10,7 +10,7 @@ module Ekuseru
10
10
  def set_disposition(filename = nil)
11
11
  @controller.headers["Content-Disposition"] = ["attachment", filename ? "filename=\"#{filename}\"" : nil].compact.join(';')
12
12
  end
13
-
13
+
14
14
  end
15
15
  end
16
- end
16
+ end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 2
9
- version: 0.3.2
8
+ - 7
9
+ version: 0.3.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Nugroho Herucahyono
@@ -46,7 +46,6 @@ files:
46
46
  - Rakefile
47
47
  - VERSION
48
48
  - ekuseru.gemspec
49
- - init.rb
50
49
  - install.rb
51
50
  - lib/ekuseru.rb
52
51
  - lib/template_handler/eku.rb
data/init.rb DELETED
@@ -1,6 +0,0 @@
1
- require 'action_dispatch/http/mime_type'
2
- Mime::Type.register "application/vnd.ms-excel", :xls
3
-
4
- require 'ekuseru'
5
- ActionView::Template.register_template_handler 'eku', Ekuseru::TemplateHandler::Eku
6
-