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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7f2b63cfa24b1f1d1b210c163843a6fda15a4eee82fd8f875e3944f438bb0ec
4
- data.tar.gz: d42e8694afc0653e5c9f9a7a4e9345bb1375e515a4c97b28100b8109f7aa78d4
3
+ metadata.gz: 7711f6ff4319e484b98519a539cbd23c158ffe8fe02c38dc5d1e99290005a00c
4
+ data.tar.gz: e851a1309a55ccd30f61a97a23900c36c28c7e8d52f6c5ec2a1059d301661942
5
5
  SHA512:
6
- metadata.gz: 05ad19e47c62b9fa6b0cf2a2522215c4e6bed74955c243788ef2745e4f97809db4fb3f89c8b75c6dd8dd5b8f8331a77676c38899ad1e4c8b5d5b314b852b7482
7
- data.tar.gz: cc8de48c25302a940800a8095c9ce03f2eb913e2d7ee0a9782828c9927d9ffbbb9c37a2b8d973b60e0ccc910ff24a34c784b4aa4f34e33b4e4306a37cc7e625d
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
@@ -136,6 +136,8 @@ module ImpExp
136
136
  "#{active_storage_file.name}-#{active_storage_file.record.code}#{file_extension(active_storage_file)}"
137
137
  end
138
138
 
139
+ def after_save(_record); end
140
+
139
141
  private
140
142
 
141
143
  def file_extension(active_storage_file)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ImpExp
4
- VERSION = "1.0.2"
4
+ VERSION = "1.0.4"
5
5
  end
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.2
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-02-26 00:00:00.000000000 Z
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.5
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.5
46
+ version: 7.2.0
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: rubyzip
43
49
  requirement: !ruby/object:Gem::Requirement