excel_rails 0.1.3 → 0.2.3

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/Rakefile CHANGED
@@ -42,8 +42,8 @@ task :test => :check_dependencies
42
42
 
43
43
  task :default => :test
44
44
 
45
- require 'rake/rdoctask'
46
- Rake::RDocTask.new do |rdoc|
45
+ require 'rdoc/task'
46
+ RDoc::Task.new do |rdoc|
47
47
  version = File.exist?('VERSION') ? File.read('VERSION') : ""
48
48
 
49
49
  rdoc.rdoc_dir = 'rdoc'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.2.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.3"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Aditya Sanghi"]
12
- s.date = %q{2011-05-23}
11
+ s.authors = [%q{Aditya Sanghi}]
12
+ s.date = %q{2011-09-04}
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 = [
@@ -30,8 +30,8 @@ Gem::Specification.new do |s|
30
30
  "test/test_excel_rails.rb"
31
31
  ]
32
32
  s.homepage = %q{http://github.com/asanghi/excel_rails}
33
- s.require_paths = ["lib"]
34
- s.rubygems_version = %q{1.5.3}
33
+ s.require_paths = [%q{lib}]
34
+ s.rubygems_version = %q{1.8.9}
35
35
  s.summary = %q{Hook rxls to generate Excel documents in Rails 3}
36
36
 
37
37
  if s.respond_to? :specification_version then
data/lib/excel_rails.rb CHANGED
@@ -22,7 +22,8 @@ module Spreadsheet
22
22
  end
23
23
  end
24
24
 
25
- class TemplateHandler < ActionView::Template::Handler
25
+ class TemplateHandler
26
+ class_attribute :default_format
26
27
  self.default_format = :xls
27
28
  def self.call(template)
28
29
  "sio = StringIO.new; #{template.source.strip}.write(sio); sio.string"
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: 29
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
8
+ - 2
9
9
  - 3
10
- version: 0.1.3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Aditya Sanghi
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-23 00:00:00 +05:30
19
- default_executable:
18
+ date: 2011-09-04 00:00:00 Z
20
19
  dependencies: []
21
20
 
22
21
  description: Allows you to program spreadsheets using .rxls views
@@ -40,7 +39,6 @@ files:
40
39
  - rails/init.rb
41
40
  - test/helper.rb
42
41
  - test/test_excel_rails.rb
43
- has_rdoc: true
44
42
  homepage: http://github.com/asanghi/excel_rails
45
43
  licenses: []
46
44
 
@@ -70,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
68
  requirements: []
71
69
 
72
70
  rubyforge_project:
73
- rubygems_version: 1.5.3
71
+ rubygems_version: 1.8.9
74
72
  signing_key:
75
73
  specification_version: 3
76
74
  summary: Hook rxls to generate Excel documents in Rails 3