ekuseru 0.3.2 → 0.3.7
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/VERSION +1 -1
 - data/ekuseru.gemspec +1 -2
 - data/lib/ekuseru.rb +5 -1
 - data/lib/template_handler/eku.rb +3 -3
 - data/lib/template_handler/options.rb +2 -2
 - metadata +2 -3
 - data/init.rb +0 -6
 
    
        data/VERSION
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            0.3. 
     | 
| 
      
 1 
     | 
    
         
            +
            0.3.7
         
     | 
    
        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.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",
         
     | 
    
        data/lib/ekuseru.rb
    CHANGED
    
    | 
         @@ -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 
     | 
    
         
            -
             
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            ActionView::Template.register_template_handler 'eku', Ekuseru::TemplateHandler::Eku
         
     | 
| 
       5 
9 
     | 
    
         | 
| 
       6 
10 
     | 
    
         
             
            class ActionView::Base
         
     | 
| 
       7 
11 
     | 
    
         
             
              private
         
     | 
    
        data/lib/template_handler/eku.rb
    CHANGED
    
    | 
         @@ -1,9 +1,9 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            require 'action_view 
     | 
| 
      
 1 
     | 
    
         
            +
            require 'action_view'
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            module Ekuseru
         
     | 
| 
       4 
4 
     | 
    
         
             
              module TemplateHandler
         
     | 
| 
       5 
     | 
    
         
            -
                class Eku < ActionView:: 
     | 
| 
       6 
     | 
    
         
            -
                  include ActionView:: 
     | 
| 
      
 5 
     | 
    
         
            +
                class Eku < ActionView::TemplateHandler
         
     | 
| 
      
 6 
     | 
    
         
            +
                  include ActionView::TemplateHandlers::Compilable
         
     | 
| 
       7 
7 
     | 
    
         | 
| 
       8 
8 
     | 
    
         
             
                  def compile template
         
     | 
| 
       9 
9 
     | 
    
         
             
                    %{
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version 
     | 
|
| 
       5 
5 
     | 
    
         
             
              segments: 
         
     | 
| 
       6 
6 
     | 
    
         
             
              - 0
         
     | 
| 
       7 
7 
     | 
    
         
             
              - 3
         
     | 
| 
       8 
     | 
    
         
            -
              -  
     | 
| 
       9 
     | 
    
         
            -
              version: 0.3. 
     | 
| 
      
 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
         
     |