tallty_import_export 1.0.14 → 1.0.15

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: afdaeaa5f7a0eab21b85fdd7aafa0677afba151a2564fd0fdd1a9916132af0f2
4
- data.tar.gz: ae51318bbda8fe1c37533ad29c34a64c9c5d52e2a3b9e7bcb491c8cee1039cd2
3
+ metadata.gz: 06f862bf1ae912a77b1e7a02d76fade118619343de44cbcff2b5f165756ea323
4
+ data.tar.gz: db83a7345b10d91e5018604ed08c24287e085930c96b7af66499d6333464f063
5
5
  SHA512:
6
- metadata.gz: b6966aa85b471dd960fa05ae537c4f1b6938efe30635d0261ec5763e66bd83cf8de5252831ddb46fdb248eeac3c622df52594f88738e8312a958b2bf734891d3
7
- data.tar.gz: 252f71c459a9b1034a32b75421474671df4568145c0f33f19cbdb6f83fb42ee7f210e9dcff83a7ee65fdea42db11b52d03a3df8f287e3ede74bb25f231ee56be
6
+ metadata.gz: ba25061c42d32c4396cbb88b9aae8ef7296b58a306c47037dd5c53cea9bde0d8df29f7ed373463d7f74596f78e73fecf3005aa02a2b449ab9d60f0313631bc63
7
+ data.tar.gz: 240105d66e1c3a009fb8f03b70a19cbb0307c3bbe2e611958e7cd019d332404bae5c75b681488595988996f2bc616aa4e445cc73f6bda6389b4ed55eb81e95ee
@@ -40,11 +40,13 @@ module TalltyImportExport
40
40
  if @group_by.present?
41
41
  if records.is_a?(Array)
42
42
  records.group_by { |record| record.send(@group_by)}.each do |key, group_records|
43
+ next unless key.present?
43
44
  @group_key = key
44
45
  export_workbook workbook, group_records
45
46
  end
46
47
  else
47
48
  records.group(@group_by).count.keys.each do |key|
49
+ next unless key.present?
48
50
  @group_key = key
49
51
  export_workbook workbook, records.ransack("#{@group_where}" => key).result
50
52
  end
@@ -1,3 +1,3 @@
1
1
  module TalltyImportExport
2
- VERSION = "1.0.14"
2
+ VERSION = "1.0.15"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tallty_import_export
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.14
4
+ version: 1.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - liyijie