importr 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/importr/importer.rb +5 -1
- data/lib/importr/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56d186a586eff0f8223314cd8e4b0912433141ac
|
4
|
+
data.tar.gz: 8e995f5b953efda2ac713b74adcd454b67b4ee41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20a53b615bd4cbd9ee37e6ce4453586be7d7a5282c8b67d3ff6eecc573d341380175d49601e73f6ad66c68ba379d232499c33d905d521cae922330bfd3d23455
|
7
|
+
data.tar.gz: 1f0043c8d3d08ab227bdcb29e0910102369eaeb1a1c5ca6638a6e471924b3bc83ee1bf92aa5814dd8f915ae292ea8a118fdc5e9f0f8981e954dc1c482f70ef41
|
data/lib/importr/importer.rb
CHANGED
@@ -28,6 +28,10 @@ module Importr
|
|
28
28
|
notify(:base, error: e.message)
|
29
29
|
end
|
30
30
|
|
31
|
+
on :import_aborted do |message|
|
32
|
+
notify(:base, error: message)
|
33
|
+
end
|
34
|
+
|
31
35
|
on :import_finished do
|
32
36
|
data_import.update_attribute(:finished, true) if data_import
|
33
37
|
end
|
@@ -47,7 +51,7 @@ module Importr
|
|
47
51
|
total_rows: row_count,
|
48
52
|
}
|
49
53
|
if data_import
|
50
|
-
data_import.update_attributes(@counters)
|
54
|
+
data_import.update_attributes(@counters)
|
51
55
|
add_error(err) unless err.blank?
|
52
56
|
end
|
53
57
|
end
|
data/lib/importr/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: importr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ernesto Garcia
|
@@ -31,14 +31,14 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - ~>
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 0.2.
|
34
|
+
version: 0.2.4
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - ~>
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 0.2.
|
41
|
+
version: 0.2.4
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: carrierwave
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|