rails-gdpr-export 1.0.1 → 1.0.2

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: 7dab6bb312d7424d72e84050f79b87ca1fd01a1c68ff14deb3210a33c8c6df7b
4
- data.tar.gz: 3d6f9cfc9fc7751d138c332d6e85bccdcb48d80530ee621982f9dc0cd69d3837
3
+ metadata.gz: c0db6f0772529c9ff00bc550f978c2a1130e3a0c26bee3ed7ae885d2edb03ac4
4
+ data.tar.gz: 7e759a11d04018a00cb3873560ecda0a93999e60a1fcaa1113bfd04b2a5c3ba3
5
5
  SHA512:
6
- metadata.gz: 6c255cfee87d8e55b73e0be2e2ac9150461c9d8e122148e78660945503f6ff914ae48e0a93ad76453852e536b431dc083ead653d669088da5a4560fd24d89a95
7
- data.tar.gz: 6cb1209cce21e957771ca83467eb32e016bd1144149c8fe4f21cdc65a8bbccf02e266a6a608a6c3870c71267966f6a40690be06813ef26e72221fe6b4343b9a5
6
+ metadata.gz: e09269397d19fd581611e99566fd6e3e6e37bef7c9c1a0e3c5c706151913a0c3d37bea7a27e655acc7f37d0dc1bbcc5762453a441b5c3653c867b5b425205b21
7
+ data.tar.gz: 87f8158262f3a001f0dbb5fc5fb16c71278a19bff6226f89a16fd5704e0c4fd408055d8bfc6d6db6c6a90c8e9fcf484d1fa2d8838eab5cbcf727322bd39c085b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails-gdpr-export (1.0.1)
4
+ rails-gdpr-export (1.0.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -101,6 +101,8 @@ module GdprExporter
101
101
 
102
102
  # Adds a method to export to csv to the eigenclass.
103
103
  self.define_singleton_method(:gdpr_export) do |rows, csv|
104
+ return unless !rows.empty?
105
+
104
106
  csv << (hash_params[:table_name] ? [hash_params[:table_name]] :
105
107
  [self.to_s])
106
108
  csv << csv_headers
@@ -1,5 +1,5 @@
1
1
  module Exts
2
2
  module Gdpr
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-gdpr-export
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chrislain Razafimahefa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-15 00:00:00.000000000 Z
11
+ date: 2018-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler