excel_rails 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -7,6 +7,11 @@ Based on Defv's railsxls plugin (http://github.com/DefV/railsxls) without the Ja
7
7
 
8
8
  Also inspired heavily from prawn_rails gem (http://github.com/Volundr/prawn-rails).
9
9
 
10
+ The gem has a new cool feature which lets you pick a hand-crafted excel file as a template in your
11
+ view. Pass the path to your excel template using the :template_path option and instead of creating
12
+ a blank spreadsheet for you to fill, your excel file will be parsed and yielded for you to fill in the blank.
13
+ Thanks to Stepan Filatov @ https://github.com/sfilatov
14
+
10
15
  Installation
11
16
  ============
12
17
 
@@ -80,7 +85,7 @@ def index
80
85
  respond_to do |format|
81
86
  format.html # index.html.erb
82
87
  format.xml { render :xml => @lines }
83
- format.xls
88
+ format.xls
84
89
  end
85
90
  end
86
91
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
data/excel_rails.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{excel_rails}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Aditya Sanghi"]
12
- s.date = %q{2011-02-22}
12
+ s.date = %q{2011-05-23}
13
13
  s.description = %q{Allows you to program spreadsheets using .rxls views}
14
14
  s.email = %q{asanghi@me.com}
15
15
  s.extra_rdoc_files = [
@@ -31,12 +31,8 @@ Gem::Specification.new do |s|
31
31
  ]
32
32
  s.homepage = %q{http://github.com/asanghi/excel_rails}
33
33
  s.require_paths = ["lib"]
34
- s.rubygems_version = %q{1.5.0}
34
+ s.rubygems_version = %q{1.5.3}
35
35
  s.summary = %q{Hook rxls to generate Excel documents in Rails 3}
36
- s.test_files = [
37
- "test/helper.rb",
38
- "test/test_excel_rails.rb"
39
- ]
40
36
 
41
37
  if s.respond_to? :specification_version then
42
38
  s.specification_version = 3
data/lib/excel_rails.rb CHANGED
@@ -31,6 +31,8 @@ module Spreadsheet
31
31
  end
32
32
  end
33
33
 
34
- Mime::Type.register_alias "application/xls", :xls
34
+ unless Mime::Type.lookup_by_extension :xls
35
+ Mime::Type.register_alias "application/xls", :xls
36
+ end
35
37
  ActionView::Template.register_template_handler(:rxls, Spreadsheet::Rails::TemplateHandler)
36
38
  ActionView::Base.send(:include, Spreadsheet::Rails::SpreadsheetHelper)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: excel_rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Aditya Sanghi
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-22 00:00:00 +05:30
18
+ date: 2011-05-23 00:00:00 +05:30
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -70,10 +70,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
70
  requirements: []
71
71
 
72
72
  rubyforge_project:
73
- rubygems_version: 1.5.0
73
+ rubygems_version: 1.5.3
74
74
  signing_key:
75
75
  specification_version: 3
76
76
  summary: Hook rxls to generate Excel documents in Rails 3
77
- test_files:
78
- - test/helper.rb
79
- - test/test_excel_rails.rb
77
+ test_files: []
78
+