parallel-ancestry 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc
CHANGED
@@ -7,3 +7,4 @@ Replaces cascading-configuration-inheritance and cascading-configuration-ancesto
|
|
7
7
|
== 6/11/2012
|
8
8
|
|
9
9
|
Added YARD docs.
|
10
|
+
Shortened :initialize_base_instance_for_include and :initialize_base_instance_for_extend parameters to remove reference to self, since self is already present as block receiver.
|
@@ -41,12 +41,12 @@ module ::ParallelAncestry::Inheritance
|
|
41
41
|
|
42
42
|
# When inheritance module is included in another module:
|
43
43
|
prepend_class_or_module_include do |base_instance|
|
44
|
-
initialize_base_instance_for_include(
|
44
|
+
initialize_base_instance_for_include( base_instance )
|
45
45
|
end
|
46
46
|
|
47
47
|
# When inheritance module is used to extend another module:
|
48
48
|
prepend_class_or_module_or_instance_extend do |base_instance|
|
49
|
-
initialize_base_instance_for_extend(
|
49
|
+
initialize_base_instance_for_extend( base_instance )
|
50
50
|
end
|
51
51
|
|
52
52
|
return self
|
@@ -61,7 +61,7 @@ module ::ParallelAncestry::Inheritance
|
|
61
61
|
# initialize_base_instance_for_include #
|
62
62
|
##########################################
|
63
63
|
|
64
|
-
def initialize_base_instance_for_include(
|
64
|
+
def initialize_base_instance_for_include( inheriting_instance )
|
65
65
|
|
66
66
|
# Initialize for future inheriting instances.
|
67
67
|
return initialize_inheritance( inheriting_instance )
|
@@ -72,7 +72,7 @@ module ::ParallelAncestry::Inheritance
|
|
72
72
|
# initialize_base_instance_for_extend #
|
73
73
|
#########################################
|
74
74
|
|
75
|
-
def initialize_base_instance_for_extend(
|
75
|
+
def initialize_base_instance_for_extend( inheriting_instance )
|
76
76
|
|
77
77
|
# Hook for extended module to redefine - nothing to do.
|
78
78
|
|
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.
|
4
|
+
version: 1.0.2
|
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-
|
12
|
+
date: 2012-06-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: module-cluster
|