active_report 5.2.0 → 5.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_report/array.rb +2 -2
- data/lib/active_report/hash.rb +2 -2
- data/lib/active_report/record.rb +2 -2
- data/lib/active_report/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc6291c1487bae4301fdd9c40d2e45a8d2499318f976df9697c02ca30ea5359f
|
4
|
+
data.tar.gz: bea6b9dffd09487c4167b1ce3e9d1895b128cf6e182042bfa77e21bef454cbb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9e8217015fb690d39687511238c14aa3d17abfa95cc6a29d0e4f0de087bec2cebe39137b00d9a9d09ef4b18fe70b1674646217f396d97a6e7614e5cbf0bcce3
|
7
|
+
data.tar.gz: 9730503da7cbb66022758b6d47676dbb71ab0a194aa2c9c874d33cd04f43d12aea8921ff2e3a45436c5130e5b7fc9bfc3d0afc6bc502fe83546b1bea99d5bc2a
|
data/lib/active_report/array.rb
CHANGED
@@ -24,8 +24,8 @@ class ActiveReport::Array < ActiveReport::Base
|
|
24
24
|
|
25
25
|
if @stream == true
|
26
26
|
Enumerator.new do |csv|
|
27
|
-
csv << @headers unless @headers.nil?
|
28
|
-
@datum.each { |row| csv << row }
|
27
|
+
csv << CSV.generate_line(@headers) unless @headers.nil?
|
28
|
+
@datum.each { |row| csv << CSV.generate_line(row) }
|
29
29
|
end
|
30
30
|
else
|
31
31
|
CSV.generate(@options) do |csv|
|
data/lib/active_report/hash.rb
CHANGED
@@ -29,8 +29,8 @@ class ActiveReport::Hash < ActiveReport::Base
|
|
29
29
|
|
30
30
|
if @stream == true
|
31
31
|
Enumerator.new do |csv|
|
32
|
-
csv << @headers
|
33
|
-
@data.each { |row| csv << filter_values(row) }
|
32
|
+
csv << CSV.generate_line(@headers)
|
33
|
+
@data.each { |row| csv << CSV.generate_line(filter_values(row)) }
|
34
34
|
end
|
35
35
|
else
|
36
36
|
CSV.generate(@options) do |csv|
|
data/lib/active_report/record.rb
CHANGED
@@ -44,8 +44,8 @@ class ActiveReport::Record < ActiveReport::Base
|
|
44
44
|
|
45
45
|
if @stream == true
|
46
46
|
Enumerator.new do |csv|
|
47
|
-
csv << @headers
|
48
|
-
@data.each { |row| csv << filter_values(row) }
|
47
|
+
csv << CSV.generate_line(@headers)
|
48
|
+
@data.each { |row| csv << CSV.generate_line(filter_values(row)) }
|
49
49
|
end
|
50
50
|
else
|
51
51
|
CSV.generate(@options) do |csv|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_report
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.2.
|
4
|
+
version: 5.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Gomez
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|