to_xls 0.0.2 → 0.0.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.
Files changed (4) hide show
  1. data/README.rdoc +3 -2
  2. data/lib/to_xls.rb +3 -0
  3. data/to_xls.gemspec +1 -1
  4. metadata +3 -3
data/README.rdoc CHANGED
@@ -56,7 +56,8 @@ In the controller where you want to export to excel, add the format.xls line.
56
56
 
57
57
  == Install
58
58
 
59
- Include this gem in your environment.rb config file:
60
-
59
+ Include next gems in your environment.rb config file:
60
+
61
+ config.gem 'spreadsheet'
61
62
  config.gem 'to_xls'
62
63
 
data/lib/to_xls.rb CHANGED
@@ -1,3 +1,6 @@
1
+ require 'rubygems'
2
+ require 'spreadsheet'
3
+
1
4
  class Array
2
5
  # Options for to_xls: columns, name, header
3
6
  def to_xls(options = {})
data/to_xls.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{to_xls}
3
- s.version = "0.0.2"
3
+ s.version = "0.0.3"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["Enrique Garcia Cota", "Francisco de Juan"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: to_xls
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Enrique Garcia Cota