cascading_configuration 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.md
CHANGED
@@ -38,6 +38,10 @@ Added :initialize_configuration to CascadingConfiguration::Core::Module; subclas
|
|
38
38
|
Renamed project from cascading-configuration to cascading_configuration to match Rubygems guidelines for gem naming.
|
39
39
|
Ensured configurations don't re-register parents that are higher in the ancestor chain than the ones already registered.
|
40
40
|
|
41
|
-
## 7/15/2012
|
41
|
+
## 7/15/2012 ##
|
42
42
|
|
43
|
-
Added support in extension modules for aliasing methods that will exist in object extended by extension module but does not exist yet in extension module.
|
43
|
+
Added support in extension modules for aliasing methods that will exist in object extended by extension module but does not exist yet in extension module.
|
44
|
+
|
45
|
+
## 7/19/2012 ##
|
46
|
+
|
47
|
+
Register for parent needs to happen before not after include/extend.
|
@@ -148,12 +148,12 @@ class ::CascadingConfiguration::Core::InstanceController < ::Module
|
|
148
148
|
|
149
149
|
unless extending
|
150
150
|
|
151
|
-
instance.cluster( :cascading_configuration_inheritance ).
|
151
|
+
instance.cluster( :cascading_configuration_inheritance ).before_include do |inheriting_instance|
|
152
152
|
reference_to_self.initialize_inheriting_instance( self, inheriting_instance )
|
153
153
|
reference_to_self.initialize_inheritance_for_instance( inheriting_instance )
|
154
154
|
end
|
155
155
|
|
156
|
-
instance.cluster( :cascading_configuration_inheritance ).
|
156
|
+
instance.cluster( :cascading_configuration_inheritance ).before_extend do |inheriting_instance|
|
157
157
|
reference_to_self.initialize_inheriting_instance( self, inheriting_instance )
|
158
158
|
end
|
159
159
|
|
@@ -91,15 +91,15 @@ class ::CascadingConfiguration::Core::InstanceController::SupportModule < ::Modu
|
|
91
91
|
return @encapsulation.lowest_parents( @instance_controller.instance ) do |this_parent|
|
92
92
|
|
93
93
|
ancestor_controller = ::CascadingConfiguration::Core::InstanceController.instance_controller( this_parent )
|
94
|
-
|
94
|
+
|
95
95
|
if ancestor_controller and
|
96
96
|
ancestor_support = ancestor_controller.support( @module_type_name, @encapsulation ) and
|
97
97
|
is_super_module?( ancestor_support )
|
98
|
-
|
98
|
+
|
99
99
|
true
|
100
100
|
|
101
101
|
else
|
102
|
-
|
102
|
+
|
103
103
|
false
|
104
104
|
|
105
105
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cascading_configuration
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
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-07-
|
12
|
+
date: 2012-07-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: module-cluster
|