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 +4 -4
- data/CHANGELOG.md +16 -0
- data/lib/rails_admin_import/importer.rb +1 -1
- data/lib/rails_admin_import/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: ac7ffedfed8aa05307f7ed427f398715506f44c7b8b9cbb7e105432d77715d62
|
4
|
+
data.tar.gz: 9690d4b8f7b36474b73960b4d1c82d4ce62a1d94f836262c2afe0b2c63c7c980
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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?
|
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.
|
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-
|
12
|
+
date: 2022-04-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|