csv_step_importer 0.15.2 → 0.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +34 -34
- data/README.md +1 -1
- data/lib/csv_step_importer/file.rb +3 -0
- data/lib/csv_step_importer/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: c86c2c5a2b3fe11aea553564a61484778e281d2a5cdc37a8d6e3c33ca3f33ed5
|
|
4
|
+
data.tar.gz: ecbead32d931c119de11525aae8e360e5683f31b406ab72e6b306b589c033de8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 00e727330ad0760f4b55da80bed1bd86d248099497ecdd81b02e75a74213b450c877e0af11876321f081419a589bd2daa92bbf2b2471014ff16dbda10de73d91
|
|
7
|
+
data.tar.gz: 41d20865378e9f9560572ed5deb6e47a7f1e80dd71074f690f73aff374d9b5a2e29569b4fc8df4d0799df08e5736b81eaff63371f6070906b4136a0629cbb0c7
|
data/CHANGELOG.md
CHANGED
|
@@ -195,3 +195,8 @@ See lib/csv_step_importer/file.rb for more options
|
|
|
195
195
|
### Added
|
|
196
196
|
### Changed
|
|
197
197
|
- Update gems (including gems marked as security risk)
|
|
198
|
+
|
|
199
|
+
## 2018-09-19 Version 0.15.3
|
|
200
|
+
### Added
|
|
201
|
+
- Catch ::Encoding::UndefinedConversionError during CSV load for validation
|
|
202
|
+
### Changed
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
csv_step_importer (0.15.
|
|
4
|
+
csv_step_importer (0.15.3)
|
|
5
5
|
activemodel
|
|
6
6
|
activerecord-import
|
|
7
7
|
activesupport
|
|
@@ -10,28 +10,28 @@ PATH
|
|
|
10
10
|
GEM
|
|
11
11
|
remote: https://rubygems.org/
|
|
12
12
|
specs:
|
|
13
|
-
actionpack (5.2.
|
|
14
|
-
actionview (= 5.2.
|
|
15
|
-
activesupport (= 5.2.
|
|
13
|
+
actionpack (5.2.2)
|
|
14
|
+
actionview (= 5.2.2)
|
|
15
|
+
activesupport (= 5.2.2)
|
|
16
16
|
rack (~> 2.0)
|
|
17
17
|
rack-test (>= 0.6.3)
|
|
18
18
|
rails-dom-testing (~> 2.0)
|
|
19
19
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
|
20
|
-
actionview (5.2.
|
|
21
|
-
activesupport (= 5.2.
|
|
20
|
+
actionview (5.2.2)
|
|
21
|
+
activesupport (= 5.2.2)
|
|
22
22
|
builder (~> 3.1)
|
|
23
23
|
erubi (~> 1.4)
|
|
24
24
|
rails-dom-testing (~> 2.0)
|
|
25
25
|
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
|
26
|
-
activemodel (5.2.
|
|
27
|
-
activesupport (= 5.2.
|
|
28
|
-
activerecord (5.2.
|
|
29
|
-
activemodel (= 5.2.
|
|
30
|
-
activesupport (= 5.2.
|
|
26
|
+
activemodel (5.2.2)
|
|
27
|
+
activesupport (= 5.2.2)
|
|
28
|
+
activerecord (5.2.2)
|
|
29
|
+
activemodel (= 5.2.2)
|
|
30
|
+
activesupport (= 5.2.2)
|
|
31
31
|
arel (>= 9.0)
|
|
32
|
-
activerecord-import (0.
|
|
32
|
+
activerecord-import (1.0.0)
|
|
33
33
|
activerecord (>= 3.2)
|
|
34
|
-
activesupport (5.2.
|
|
34
|
+
activesupport (5.2.2)
|
|
35
35
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
36
36
|
i18n (>= 0.7, < 2)
|
|
37
37
|
minitest (~> 5.1)
|
|
@@ -39,23 +39,23 @@ GEM
|
|
|
39
39
|
arel (9.0.0)
|
|
40
40
|
ast (2.4.0)
|
|
41
41
|
builder (3.2.3)
|
|
42
|
-
concurrent-ruby (1.1.
|
|
42
|
+
concurrent-ruby (1.1.4)
|
|
43
43
|
crass (1.0.4)
|
|
44
44
|
diff-lcs (1.3)
|
|
45
|
-
erubi (1.
|
|
46
|
-
i18n (1.
|
|
45
|
+
erubi (1.8.0)
|
|
46
|
+
i18n (1.5.3)
|
|
47
47
|
concurrent-ruby (~> 1.0)
|
|
48
|
-
jaro_winkler (1.5.
|
|
48
|
+
jaro_winkler (1.5.2)
|
|
49
49
|
loofah (2.2.3)
|
|
50
50
|
crass (~> 1.0.2)
|
|
51
51
|
nokogiri (>= 1.5.9)
|
|
52
|
-
method_source (0.9.
|
|
53
|
-
mini_portile2 (2.
|
|
52
|
+
method_source (0.9.2)
|
|
53
|
+
mini_portile2 (2.4.0)
|
|
54
54
|
minitest (5.11.3)
|
|
55
|
-
nokogiri (1.
|
|
56
|
-
mini_portile2 (~> 2.
|
|
57
|
-
parallel (1.
|
|
58
|
-
parser (2.
|
|
55
|
+
nokogiri (1.10.1)
|
|
56
|
+
mini_portile2 (~> 2.4.0)
|
|
57
|
+
parallel (1.13.0)
|
|
58
|
+
parser (2.6.0.0)
|
|
59
59
|
ast (~> 2.4.0)
|
|
60
60
|
powerpack (0.1.2)
|
|
61
61
|
rack (2.0.6)
|
|
@@ -66,9 +66,9 @@ GEM
|
|
|
66
66
|
nokogiri (>= 1.6)
|
|
67
67
|
rails-html-sanitizer (1.0.4)
|
|
68
68
|
loofah (~> 2.2, >= 2.2.2)
|
|
69
|
-
railties (5.2.
|
|
70
|
-
actionpack (= 5.2.
|
|
71
|
-
activesupport (= 5.2.
|
|
69
|
+
railties (5.2.2)
|
|
70
|
+
actionpack (= 5.2.2)
|
|
71
|
+
activesupport (= 5.2.2)
|
|
72
72
|
method_source
|
|
73
73
|
rake (>= 0.8.7)
|
|
74
74
|
thor (>= 0.19.0, < 2.0)
|
|
@@ -87,7 +87,7 @@ GEM
|
|
|
87
87
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
88
88
|
rspec-support (~> 3.8.0)
|
|
89
89
|
rspec-support (3.8.0)
|
|
90
|
-
rubocop (0.
|
|
90
|
+
rubocop (0.63.1)
|
|
91
91
|
jaro_winkler (~> 1.5.1)
|
|
92
92
|
parallel (~> 1.10)
|
|
93
93
|
parser (>= 2.5, != 2.5.1.1)
|
|
@@ -98,18 +98,18 @@ GEM
|
|
|
98
98
|
rubocop-rails (1.5.0)
|
|
99
99
|
railties (>= 3.0)
|
|
100
100
|
rubocop (~> 0.53)
|
|
101
|
-
rubocop-rails_config (0.
|
|
101
|
+
rubocop-rails_config (0.4.3)
|
|
102
102
|
railties (>= 3.0)
|
|
103
|
-
rubocop (~> 0.
|
|
104
|
-
rubocop-rspec (1.
|
|
103
|
+
rubocop (~> 0.58)
|
|
104
|
+
rubocop-rspec (1.32.0)
|
|
105
105
|
rubocop (>= 0.60.0)
|
|
106
106
|
ruby-progressbar (1.10.0)
|
|
107
|
-
smarter_csv (1.2.
|
|
108
|
-
thor (0.20.
|
|
107
|
+
smarter_csv (1.2.6)
|
|
108
|
+
thor (0.20.3)
|
|
109
109
|
thread_safe (0.3.6)
|
|
110
110
|
tzinfo (1.2.5)
|
|
111
111
|
thread_safe (~> 0.1)
|
|
112
|
-
unicode-display_width (1.4.
|
|
112
|
+
unicode-display_width (1.4.1)
|
|
113
113
|
|
|
114
114
|
PLATFORMS
|
|
115
115
|
ruby
|
|
@@ -124,4 +124,4 @@ DEPENDENCIES
|
|
|
124
124
|
rubocop-rspec
|
|
125
125
|
|
|
126
126
|
BUNDLED WITH
|
|
127
|
-
1.
|
|
127
|
+
1.17.1
|
data/README.md
CHANGED
|
@@ -38,7 +38,7 @@ Or install it yourself as:
|
|
|
38
38
|
First let's create a basic rails application to play around with
|
|
39
39
|
|
|
40
40
|
```shell
|
|
41
|
-
rails new bookshop --database=mysql
|
|
41
|
+
rails new bookshop --database=mysql --api --skip-spring --skip-test
|
|
42
42
|
cd bookshop
|
|
43
43
|
echo "gem 'csv_step_importer'
|
|
44
44
|
gem 'smarter_csv', github: 'tilo/smarter_csv'" >> Gemfile
|
|
@@ -55,6 +55,9 @@ module CSVStepImporter
|
|
|
55
55
|
rescue ::Encoding::InvalidByteSequenceError => exception
|
|
56
56
|
# expected encoding CP932, but was excel file
|
|
57
57
|
self.csv_load_error = exception
|
|
58
|
+
rescue ::Encoding::UndefinedConversionError => exception
|
|
59
|
+
# wrong encoding
|
|
60
|
+
self.csv_load_error = exception
|
|
58
61
|
rescue ::EOFError => exception
|
|
59
62
|
# empty file
|
|
60
63
|
self.csv_load_error = exception
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: csv_step_importer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.15.
|
|
4
|
+
version: 0.15.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Christian-Manuel Butzke
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-02-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|