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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aabc536974e35a9a977a9085465100c41b62c84c
4
- data.tar.gz: ccb6ae41decca2a9773fc94cdbbb48da55f766d0
3
+ metadata.gz: 827772f8267bf04e58720c203493a53c9c45f4ce
4
+ data.tar.gz: 6c0b1d51976d1948edf91f77ba11b975ef2bb7f9
5
5
  SHA512:
6
- metadata.gz: 1b5eaf9e0ca602a658646d13cdf26498f7cb2a9eaa56a7b094d1df81a1c082441997401f95a58f2500c3ac13fdb2e280a1ece66b0e5f9eec2215d311f8b8510f
7
- data.tar.gz: 469215e190e215d2c3cb6ecb30c27529835fac06168e301f1448c690dc8791ab65e69dbf9709a9fc42882b97c303bdda7a4a3f83f61b86900c4b330cf76fb264
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
- @dependencies ||= []
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)
@@ -1,3 +1,3 @@
1
1
  module AbstractImporter
2
- VERSION = "1.5.2"
2
+ VERSION = "1.5.3"
3
3
  end
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.2
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-01-25 00:00:00.000000000 Z
11
+ date: 2018-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord