abstract_importer 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/abstract_importer.gemspec +1 -1
- data/lib/abstract_importer/reporters/base_reporter.rb +3 -0
- data/lib/abstract_importer/reporters/dot_reporter.rb +5 -0
- data/lib/abstract_importer/reporters/progress_reporter.rb +4 -0
- data/lib/abstract_importer/strategies/default_strategy.rb +3 -0
- data/lib/abstract_importer/strategies/insert_strategy.rb +3 -0
- data/lib/abstract_importer/strategies/replace_strategy.rb +2 -0
- data/lib/abstract_importer/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aabc536974e35a9a977a9085465100c41b62c84c
|
4
|
+
data.tar.gz: ccb6ae41decca2a9773fc94cdbbb48da55f766d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b5eaf9e0ca602a658646d13cdf26498f7cb2a9eaa56a7b094d1df81a1c082441997401f95a58f2500c3ac13fdb2e280a1ece66b0e5f9eec2215d311f8b8510f
|
7
|
+
data.tar.gz: 469215e190e215d2c3cb6ecb30c27529835fac06168e301f1448c690dc8791ab65e69dbf9709a9fc42882b97c303bdda7a4a3f83f61b86900c4b330cf76fb264
|
data/abstract_importer.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_development_dependency "minitest-reporters-turn_reporter"
|
28
28
|
spec.add_development_dependency "rake"
|
29
29
|
spec.add_development_dependency "sqlite3"
|
30
|
-
spec.add_development_dependency "pg"
|
30
|
+
spec.add_development_dependency "pg", "~> 0.18"
|
31
31
|
spec.add_development_dependency "pry"
|
32
32
|
spec.add_development_dependency "rr"
|
33
33
|
spec.add_development_dependency "database_cleaner"
|
@@ -10,6 +10,7 @@ module AbstractImporter
|
|
10
10
|
|
11
11
|
if already_imported?(hash)
|
12
12
|
summary.already_imported += 1
|
13
|
+
reporter.record_skipped hash
|
13
14
|
return
|
14
15
|
end
|
15
16
|
|
@@ -17,6 +18,7 @@ module AbstractImporter
|
|
17
18
|
|
18
19
|
if redundant_record?(hash)
|
19
20
|
summary.redundant += 1
|
21
|
+
reporter.record_skipped hash
|
20
22
|
return
|
21
23
|
end
|
22
24
|
|
@@ -27,6 +29,7 @@ module AbstractImporter
|
|
27
29
|
end
|
28
30
|
rescue ::AbstractImporter::Skip
|
29
31
|
summary.skipped += 1
|
32
|
+
reporter.record_skipped hash
|
30
33
|
end
|
31
34
|
|
32
35
|
|
@@ -18,6 +18,7 @@ module AbstractImporter
|
|
18
18
|
|
19
19
|
if already_imported?(hash)
|
20
20
|
summary.already_imported += 1
|
21
|
+
reporter.record_skipped hash
|
21
22
|
return
|
22
23
|
end
|
23
24
|
|
@@ -25,6 +26,7 @@ module AbstractImporter
|
|
25
26
|
|
26
27
|
if redundant_record?(hash)
|
27
28
|
summary.redundant += 1
|
29
|
+
reporter.record_skipped hash
|
28
30
|
return
|
29
31
|
end
|
30
32
|
|
@@ -32,6 +34,7 @@ module AbstractImporter
|
|
32
34
|
|
33
35
|
rescue ::AbstractImporter::Skip
|
34
36
|
summary.skipped += 1
|
37
|
+
reporter.record_skipped hash
|
35
38
|
end
|
36
39
|
|
37
40
|
|
@@ -12,6 +12,7 @@ module AbstractImporter
|
|
12
12
|
|
13
13
|
if redundant_record?(hash)
|
14
14
|
summary.redundant += 1
|
15
|
+
reporter.record_skipped hash
|
15
16
|
return
|
16
17
|
end
|
17
18
|
|
@@ -22,6 +23,7 @@ module AbstractImporter
|
|
22
23
|
end
|
23
24
|
rescue ::AbstractImporter::Skip
|
24
25
|
summary.skipped += 1
|
26
|
+
reporter.record_skipped hash
|
25
27
|
end
|
26
28
|
|
27
29
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: abstract_importer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Lail
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -140,16 +140,16 @@ dependencies:
|
|
140
140
|
name: pg
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - "
|
143
|
+
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '0'
|
145
|
+
version: '0.18'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - "
|
150
|
+
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '0'
|
152
|
+
version: '0.18'
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: pry
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|