abstract_importer 1.5.2 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/abstract_importer/base.rb +17 -3
- data/lib/abstract_importer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 827772f8267bf04e58720c203493a53c9c45f4ce
|
4
|
+
data.tar.gz: 6c0b1d51976d1948edf91f77ba11b975ef2bb7f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf95cb9bdc64b7f0b318e2ff811eddeecf579a9fbc7255eb107c2b894306d62d996de088ffe239b6d5e1fc1705d58f06b0fc238e2baf29145938f1569e68e2b9
|
7
|
+
data.tar.gz: c07595116a66d93ce567bbf4d6209fd0dfc8911d697899ffee5afab679efe6c9b214f7bfc432ecfa9ea8da141aa981d8c69ae1fc4101e9b78ef7aaecdbaf8abb
|
@@ -22,17 +22,31 @@ module AbstractImporter
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def dependencies
|
25
|
-
|
25
|
+
read_inheritable_instance_variable(:@dependencies) || []
|
26
|
+
end
|
27
|
+
|
28
|
+
def import_plan
|
29
|
+
read_inheritable_instance_variable(:@import_plan)
|
30
|
+
end
|
31
|
+
|
32
|
+
private
|
33
|
+
|
34
|
+
def read_inheritable_instance_variable(ivar)
|
35
|
+
klass = self
|
36
|
+
until klass.instance_variable_defined?(ivar)
|
37
|
+
klass = klass.superclass
|
38
|
+
return if klass == AbstractImporter::Base
|
39
|
+
end
|
40
|
+
klass.instance_variable_get(ivar)
|
26
41
|
end
|
27
42
|
|
28
|
-
attr_reader :import_plan
|
29
43
|
end
|
30
44
|
|
31
45
|
|
32
46
|
|
33
47
|
def initialize(parent, source, options={})
|
34
|
-
@source = source
|
35
48
|
@parent = parent
|
49
|
+
@source = source
|
36
50
|
@options = options
|
37
51
|
|
38
52
|
io = options.fetch(:io, $stderr)
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Lail
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|