csv_step_importer 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/csv_step_importer/file.rb +10 -3
- data/lib/csv_step_importer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0f4dae64fc0c6c01a8aad509e78eeba1e429293407c20761a7b42e3d1a0abf0
|
4
|
+
data.tar.gz: 4648f7356c86759c68817cd34859a64eb1158024cdde86d9cdeba27d0d66dc3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c81924a22e17f79c283e88bed1070a06e1ec1f119bacaec167bb913847a3836da515a216df2071b723dca7eacb6e505a789dceae079810fd517d3cf99788bb1a
|
7
|
+
data.tar.gz: fa006020905abb478237c841b0a232473822c11013c6526e67dbf70bb0d5c59481089a33402ae3830ec2a77c40878fa185a95f9178bdc88079ead6c30f7ac3b9
|
data/Gemfile.lock
CHANGED
@@ -44,13 +44,20 @@ module CSVStepImporter
|
|
44
44
|
)
|
45
45
|
first_row += rows.size
|
46
46
|
end
|
47
|
-
rescue EOFError => exception
|
48
|
-
self.csv_load_error = exception
|
49
47
|
rescue CSVFileNotFoundError => exception
|
48
|
+
# File not found
|
50
49
|
self.csv_load_error = exception
|
51
|
-
rescue ::
|
50
|
+
rescue ::ArgumentError => exception
|
51
|
+
# expected encoding UTF-8, but was Excel
|
52
52
|
self.csv_load_error = exception
|
53
53
|
rescue ::CSV::MalformedCSVError => exception
|
54
|
+
# CSV malformed
|
55
|
+
self.csv_load_error = exception
|
56
|
+
rescue ::Encoding::InvalidByteSequenceError => exception
|
57
|
+
# expected encoding CP932, but was excel file
|
58
|
+
self.csv_load_error = exception
|
59
|
+
rescue ::EOFError => exception
|
60
|
+
# empty file
|
54
61
|
self.csv_load_error = exception
|
55
62
|
end
|
56
63
|
|