rails_admin_import 3.0.2 → 3.0.3

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: b6c5950fbf60618a001ef18c46c8331faf75113cfdf3342b17268b00dd5be46d
4
- data.tar.gz: 37b6f77d11d21c8c6f38dd45a3826beb2386e1f4616c929d5d7d289bf3ee77f3
3
+ metadata.gz: ac7ffedfed8aa05307f7ed427f398715506f44c7b8b9cbb7e105432d77715d62
4
+ data.tar.gz: 9690d4b8f7b36474b73960b4d1c82d4ce62a1d94f836262c2afe0b2c63c7c980
5
5
  SHA512:
6
- metadata.gz: b763676e2157bf7c352633aee545766fe38e9cb97ac75d8bd2edfca5dced0a839f0ede5a6100569f9757a4dc8e5601a93daf89028b61da94b7e56034d79494a9
7
- data.tar.gz: f934b8e2f28165b793fdf6f78e5d6b591dbaeef7a8eab8fce94b4f0574a5137025fa3834c9a7131c5f9dbe4bc8cca52ffd85fa726bfa4b783c241407a9c8a03e
6
+ metadata.gz: 3a759159fb178973e4a82c9df1df91e86ec6f0cd6e6af5ed10488fe9d87ee70f88827fef7e8fd2520657da3c0c95179d2bda4b789a901ed1eadb4cd9924986b2
7
+ data.tar.gz: 435c47305ef9011d1b5fa905efee0b4c1e2acf96ad63afd1cfbd78a183f1f069bf49f29850fd23f4b0e8d3ffc0bdf2281b11987e40e4527a8ab152c82ca8252f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Change Log
2
2
 
3
+ # 3.0.3 / 2022-04-22
4
+
5
+ - Allow importing false values. Thanks @Wowu
6
+
7
+ # 3.0.2 / 2022-04-17
8
+
9
+ - Calculate the `new_attrs` after the `before_import_attributes` hook
10
+ - Fix GitHub Actions CI
11
+ - Bump Nokogiri in tests
12
+
13
+ # 3.0.1 / 2022-04-10
14
+
15
+ - pass `new_attrs` instead of record to `before_import_attributes` hook. Thanks @Wowu
16
+ - Use `associated_primary_key` for models with associations (compat fix for Rails Admin 3.x)
17
+ - Bump Nokogiri in tests
18
+
3
19
  # 3.0.0 / 2022-01-29
4
20
 
5
21
  - BREAKING CHANGE: Templates are now compatible with Rails Admin 3.x. For Rails Admin 2.x, continue using version 2.3.1. Thanks @Wowu
@@ -206,7 +206,7 @@ module RailsAdminImport
206
206
 
207
207
  field_names = import_model.model_fields.map(&:name)
208
208
  new_attrs = record.select do |field_name, value|
209
- field_names.include?(field_name) && !value.blank?
209
+ field_names.include?(field_name) && (!value.blank? || value == false)
210
210
  end
211
211
 
212
212
  if object.new_record?
@@ -1,3 +1,3 @@
1
1
  module RailsAdminImport
2
- VERSION = "3.0.2"
2
+ VERSION = "3.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_import
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steph Skardal
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-04-18 00:00:00.000000000 Z
12
+ date: 2022-04-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails