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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9248db55a8c0da20b43723561304941333dfacf0deb7b5cc4ed65a0659bf66c4
4
- data.tar.gz: f6e1b36abe1fb1d2795961603f82eafed5bf2d8ba062226906e6290003287a45
3
+ metadata.gz: fc6291c1487bae4301fdd9c40d2e45a8d2499318f976df9697c02ca30ea5359f
4
+ data.tar.gz: bea6b9dffd09487c4167b1ce3e9d1895b128cf6e182042bfa77e21bef454cbb0
5
5
  SHA512:
6
- metadata.gz: 6d71166d364d08cb17e080fd9e8902d88a4f3fb284d34283d017f94dcfbbde918bc92d672e62629506edd988486de7eb4f631dc4be2c37f4302be111b67bee2d
7
- data.tar.gz: ecf4a0724128f3a7db634e32c05422066b65d5af0dfd60cf1f875a3222f52df41379a6bc81f7167562920c6ad06ccf38d907a5f4b5d05478ff7ec91a6084f77d
6
+ metadata.gz: e9e8217015fb690d39687511238c14aa3d17abfa95cc6a29d0e4f0de087bec2cebe39137b00d9a9d09ef4b18fe70b1674646217f396d97a6e7614e5cbf0bcce3
7
+ data.tar.gz: 9730503da7cbb66022758b6d47676dbb71ab0a194aa2c9c874d33cd04f43d12aea8921ff2e3a45436c5130e5b7fc9bfc3d0afc6bc502fe83546b1bea99d5bc2a
@@ -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|
@@ -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|
@@ -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|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveReport
4
- VERSION ||= '5.2.0'
4
+ VERSION ||= '5.2.1'
5
5
  end
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.0
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-22 00:00:00.000000000 Z
11
+ date: 2018-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord