parallel-ancestry 1.0.7 → 1.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,3 +22,7 @@ Added unique-array for children and parents, which means now :include? etc. use
22
22
 
23
23
  Added is_extending parameter (default = false) to :initialize_inheriting_instance.
24
24
  Fix for subclass inheritance passing subclass instance (self) rather than class instance.
25
+
26
+ == 6/19/2012
27
+
28
+ Changed include/extend hooks to prepend.
@@ -106,12 +106,12 @@ module ::ParallelAncestry::Inheritance
106
106
 
107
107
  instance.extend( ::ModuleCluster::Define::Block::ClassOrModuleOrInstance )
108
108
 
109
- instance.class_or_module_include do |inheriting_module|
109
+ instance.prepend_class_or_module_include do |inheriting_module|
110
110
  inheritance_module.initialize_inheriting_instance( instance, inheriting_module )
111
111
  inheritance_module.initialize_inheritance( inheriting_module )
112
112
  end
113
113
 
114
- instance.class_or_module_or_instance_extend do |inheriting_module|
114
+ instance.prepend_class_or_module_or_instance_extend do |inheriting_module|
115
115
  inheritance_module.initialize_inheriting_instance( instance, inheriting_module, false, true )
116
116
  end
117
117
 
@@ -17,7 +17,7 @@ describe ::ParallelAncestry::Inheritance do
17
17
  return returning_ran_initialize_inheritance_for_module
18
18
  end
19
19
  # mock to ensure call
20
- def self.initialize_base_instance_for_include( inheritance_module, inheriting_instance )
20
+ def self.initialize_base_instance_for_include( inheriting_instance )
21
21
  super
22
22
  @ran_initialize_base_instance_for_include = true
23
23
  end
@@ -27,7 +27,7 @@ describe ::ParallelAncestry::Inheritance do
27
27
  return returning_ran_initialize_base_instance_for_include
28
28
  end
29
29
  # mock to ensure call
30
- def self.initialize_base_instance_for_extend( inheritance_module, inheriting_instance )
30
+ def self.initialize_base_instance_for_extend( inheriting_instance )
31
31
  super
32
32
  @ran_initialize_base_instance_for_extend = true
33
33
  end
@@ -148,7 +148,7 @@ describe ::ParallelAncestry::Inheritance do
148
148
  return returning_ran_initialize_inheritance_for_module
149
149
  end
150
150
  # mock to ensure call
151
- def self.initialize_base_instance_for_include( inheritance_module, inheriting_instance )
151
+ def self.initialize_base_instance_for_include( inheriting_instance )
152
152
  super
153
153
  @ran_initialize_base_instance_for_include = true
154
154
  end
@@ -158,7 +158,7 @@ describe ::ParallelAncestry::Inheritance do
158
158
  return returning_ran_initialize_base_instance_for_include
159
159
  end
160
160
  # mock to ensure call
161
- def self.initialize_base_instance_for_extend( inheritance_module, inheriting_instance )
161
+ def self.initialize_base_instance_for_extend( inheriting_instance )
162
162
  super
163
163
  @ran_initialize_base_instance_for_extend = true
164
164
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallel-ancestry
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-18 00:00:00.000000000 Z
12
+ date: 2012-06-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: module-cluster