to_xls 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- to_xls (1.5.1)
4
+ to_xls (1.5.2)
5
5
  spreadsheet
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
- diff-lcs (1.1.2)
11
- rake (0.9.2)
10
+ diff-lcs (1.1.3)
11
+ rake (0.9.6)
12
12
  rspec (2.3.0)
13
13
  rspec-core (~> 2.3.0)
14
14
  rspec-expectations (~> 2.3.0)
@@ -17,15 +17,15 @@ GEM
17
17
  rspec-expectations (2.3.0)
18
18
  diff-lcs (~> 1.1.2)
19
19
  rspec-mocks (2.3.0)
20
- ruby-ole (1.2.11.3)
21
- spreadsheet (0.7.1)
20
+ ruby-ole (1.2.11.6)
21
+ spreadsheet (0.8.0)
22
22
  ruby-ole (>= 1.0)
23
23
 
24
24
  PLATFORMS
25
25
  ruby
26
26
 
27
27
  DEPENDENCIES
28
- bundler (~> 1.1.0)
28
+ bundler (> 1.1.0)
29
29
  rake (~> 0.9.2)
30
30
  rspec (~> 2.3.0)
31
31
  spreadsheet
@@ -73,7 +73,7 @@ Then execute
73
73
 
74
74
  bundle install
75
75
 
76
- == ToXml::Writer
76
+ == ToXls::Writer
77
77
 
78
78
  You can export to a file or spreadsheet book using the internal ToXml::Writer class:
79
79
 
@@ -1,4 +1,3 @@
1
-
2
1
  require 'to_xls/writer.rb'
3
2
 
4
3
  module Enumerable
@@ -7,3 +6,12 @@ module Enumerable
7
6
  ToXls::Writer.new(self, options).write_string
8
7
  end
9
8
  end
9
+
10
+ # ActiveRecord::Relations that haven't been unrolled into an array cause problems down the line - issue #15
11
+ if defined?(ActiveRecord::Relation)
12
+ class ActiveRecord::Relation
13
+ def to_xls(options = {})
14
+ self.all.to_xls(options)
15
+ end
16
+ end
17
+ end
@@ -1,3 +1,3 @@
1
1
  module ToXls
2
- VERSION = "1.5.1"
2
+ VERSION = "1.5.2"
3
3
  end
Binary file
@@ -22,6 +22,6 @@ Gem::Specification.new do |s|
22
22
  s.add_runtime_dependency "spreadsheet"
23
23
  s.add_development_dependency "spreadsheet"
24
24
  s.add_development_dependency "rspec", "~> 2.3.0"
25
- s.add_development_dependency "bundler", "~> 1.1.0"
25
+ s.add_development_dependency "bundler", "> 1.1.0"
26
26
  s.add_development_dependency "rake", "~> 0.9.2"
27
27
  end
metadata CHANGED
@@ -1,160 +1,152 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: to_xls
3
- version: !ruby/object:Gem::Version
4
- hash: 1
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.5.2
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 5
9
- - 1
10
- version: 1.5.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Enrique Garcia Cota
14
9
  - Francisco de Juan
15
- - "Sergio D\xC3\xADaz \xC3\x81lvarez"
10
+ - Sergio Díaz Álvarez
16
11
  autorequire:
17
12
  bindir: bin
18
13
  cert_chain: []
19
-
20
- date: 2012-06-08 00:00:00 Z
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
14
+ date: 2013-02-18 00:00:00.000000000 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
23
17
  name: spreadsheet
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirement: !ruby/object:Gem::Requirement
26
19
  none: false
27
- requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- hash: 3
31
- segments:
32
- - 0
33
- version: "0"
20
+ requirements:
21
+ - - ! '>='
22
+ - !ruby/object:Gem::Version
23
+ version: '0'
34
24
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: spreadsheet
38
25
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
26
+ version_requirements: !ruby/object:Gem::Requirement
40
27
  none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 3
45
- segments:
46
- - 0
47
- version: "0"
28
+ requirements:
29
+ - - ! '>='
30
+ - !ruby/object:Gem::Version
31
+ version: '0'
32
+ - !ruby/object:Gem::Dependency
33
+ name: spreadsheet
34
+ requirement: !ruby/object:Gem::Requirement
35
+ none: false
36
+ requirements:
37
+ - - ! '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
48
40
  type: :development
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: rspec
52
41
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
42
+ version_requirements: !ruby/object:Gem::Requirement
54
43
  none: false
55
- requirements:
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ - !ruby/object:Gem::Dependency
49
+ name: rspec
50
+ requirement: !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
56
53
  - - ~>
57
- - !ruby/object:Gem::Version
58
- hash: 3
59
- segments:
60
- - 2
61
- - 3
62
- - 0
54
+ - !ruby/object:Gem::Version
63
55
  version: 2.3.0
64
56
  type: :development
65
- version_requirements: *id003
66
- - !ruby/object:Gem::Dependency
67
- name: bundler
68
57
  prerelease: false
69
- requirement: &id004 !ruby/object:Gem::Requirement
58
+ version_requirements: !ruby/object:Gem::Requirement
70
59
  none: false
71
- requirements:
60
+ requirements:
72
61
  - - ~>
73
- - !ruby/object:Gem::Version
74
- hash: 19
75
- segments:
76
- - 1
77
- - 1
78
- - 0
62
+ - !ruby/object:Gem::Version
63
+ version: 2.3.0
64
+ - !ruby/object:Gem::Dependency
65
+ name: bundler
66
+ requirement: !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ! '>'
70
+ - !ruby/object:Gem::Version
79
71
  version: 1.1.0
80
72
  type: :development
81
- version_requirements: *id004
82
- - !ruby/object:Gem::Dependency
83
- name: rake
84
73
  prerelease: false
85
- requirement: &id005 !ruby/object:Gem::Requirement
74
+ version_requirements: !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ! '>'
78
+ - !ruby/object:Gem::Version
79
+ version: 1.1.0
80
+ - !ruby/object:Gem::Dependency
81
+ name: rake
82
+ requirement: !ruby/object:Gem::Requirement
86
83
  none: false
87
- requirements:
84
+ requirements:
88
85
  - - ~>
89
- - !ruby/object:Gem::Version
90
- hash: 63
91
- segments:
92
- - 0
93
- - 9
94
- - 2
86
+ - !ruby/object:Gem::Version
95
87
  version: 0.9.2
96
88
  type: :development
97
- version_requirements: *id005
98
- description: Adds a to_xls method to all enumerations, which can be used to generate excel files conveniently. Can rely on ActiveRecord sugar for obtaining attribute names.
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ none: false
92
+ requirements:
93
+ - - ~>
94
+ - !ruby/object:Gem::Version
95
+ version: 0.9.2
96
+ description: Adds a to_xls method to all enumerations, which can be used to generate
97
+ excel files conveniently. Can rely on ActiveRecord sugar for obtaining attribute
98
+ names.
99
99
  email: egarcia@splendeo.es
100
100
  executables: []
101
-
102
101
  extensions: []
103
-
104
102
  extra_rdoc_files: []
105
-
106
- files:
107
- - spec/writer_spec.rb
108
- - spec/enumerable_spec.rb
109
- - spec/spec_helper.rb
110
- - to_xls-1.0.0.gem
111
- - README.rdoc
112
- - MIT-LICENSE.txt
103
+ files:
104
+ - Gemfile
113
105
  - Gemfile.lock
114
- - to_xls.gemspec
115
- - Rakefile
116
- - pkg/to_xls-1.0.0.gem
117
- - pkg/to_xls-1.5.1.gem
106
+ - init.rb
118
107
  - lib/to_xls/enumerable_patch.rb
119
108
  - lib/to_xls/version.rb
120
109
  - lib/to_xls/writer.rb
121
110
  - lib/to_xls.rb
122
- - init.rb
123
- - Gemfile
111
+ - MIT-LICENSE.txt
112
+ - pkg/to_xls-1.5.2.gem
113
+ - Rakefile
114
+ - README.rdoc
115
+ - spec/enumerable_spec.rb
116
+ - spec/spec_helper.rb
117
+ - spec/writer_spec.rb
118
+ - to_xls.gemspec
124
119
  homepage: https://github.com/splendeo/to_xls
125
120
  licenses: []
126
-
127
121
  post_install_message:
128
122
  rdoc_options: []
129
-
130
- require_paths:
123
+ require_paths:
131
124
  - lib
132
- required_ruby_version: !ruby/object:Gem::Requirement
125
+ required_ruby_version: !ruby/object:Gem::Requirement
133
126
  none: false
134
- requirements:
135
- - - ">="
136
- - !ruby/object:Gem::Version
137
- hash: 3
138
- segments:
127
+ requirements:
128
+ - - ! '>='
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
131
+ segments:
139
132
  - 0
140
- version: "0"
141
- required_rubygems_version: !ruby/object:Gem::Requirement
133
+ hash: 3187556976650510999
134
+ required_rubygems_version: !ruby/object:Gem::Requirement
142
135
  none: false
143
- requirements:
144
- - - ">="
145
- - !ruby/object:Gem::Version
146
- hash: 3
147
- segments:
136
+ requirements:
137
+ - - ! '>='
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ segments:
148
141
  - 0
149
- version: "0"
142
+ hash: 3187556976650510999
150
143
  requirements: []
151
-
152
144
  rubyforge_project: to_xls
153
- rubygems_version: 1.8.17
145
+ rubygems_version: 1.8.24
154
146
  signing_key:
155
147
  specification_version: 3
156
148
  summary: to_xls for Enumerations
157
- test_files:
158
- - spec/writer_spec.rb
149
+ test_files:
159
150
  - spec/enumerable_spec.rb
160
151
  - spec/spec_helper.rb
152
+ - spec/writer_spec.rb
Binary file
Binary file
Binary file