imp_exp 1.0.2 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/services/imp_exp/importers/base.rb +1 -3
- data/app/services/imp_exp/models/base.rb +2 -0
- data/lib/imp_exp/version.rb +1 -1
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7711f6ff4319e484b98519a539cbd23c158ffe8fe02c38dc5d1e99290005a00c
|
4
|
+
data.tar.gz: e851a1309a55ccd30f61a97a23900c36c28c7e8d52f6c5ec2a1059d301661942
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f905a7e04c2417a3cd12ae4cda425c336ff0bf2b072b8fd3d4c0e9f7b74b383a912642a5ff604287cdf3532acd4f16108fcd25a184bc5d3d847720c53ae0861
|
7
|
+
data.tar.gz: ac0b3a963e9ae3ec5576ea8513e0b0c357673cf6af5da4a0d7b7a97f301e218fc77c192043cb6890b6561d0d52d986c5f4f2fdd3f2dd9ca422b21a11118c0d66
|
@@ -76,7 +76,7 @@ module ImpExp
|
|
76
76
|
attach_files(record, files_directory_path, model, row, line) if files_directory_path.present?
|
77
77
|
|
78
78
|
if record.save(context: :import)
|
79
|
-
after_save(record)
|
79
|
+
model.after_save(record)
|
80
80
|
@imported[model.model_name] += 1
|
81
81
|
next
|
82
82
|
end
|
@@ -87,8 +87,6 @@ module ImpExp
|
|
87
87
|
|
88
88
|
private
|
89
89
|
|
90
|
-
def after_save(_record); end
|
91
|
-
|
92
90
|
def raise_rescued_standard_error?
|
93
91
|
Rails.env.test? || Rails.env.development?
|
94
92
|
end
|
data/lib/imp_exp/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imp_exp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dev team Nerya
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: caxlsx
|
@@ -28,16 +28,22 @@ dependencies:
|
|
28
28
|
name: rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 7.0.0
|
34
|
+
- - "<"
|
32
35
|
- !ruby/object:Gem::Version
|
33
|
-
version: 7.0
|
36
|
+
version: 7.2.0
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
|
-
- - "
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 7.0.0
|
44
|
+
- - "<"
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version: 7.0
|
46
|
+
version: 7.2.0
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: rubyzip
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|