cascading-configuration-hash 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,4 @@
|
|
1
1
|
|
2
|
-
require 'module-cluster'
|
3
|
-
|
4
2
|
if $cascading_configuration_development
|
5
3
|
require_relative '../../variable/lib/cascading-configuration-variable.rb'
|
6
4
|
else
|
@@ -21,8 +19,6 @@ module CascadingConfiguration
|
|
21
19
|
end
|
22
20
|
module ObjectInstance
|
23
21
|
end
|
24
|
-
module ModuleInclusionExtensionSupport
|
25
|
-
end
|
26
22
|
end
|
27
23
|
end
|
28
24
|
|
@@ -34,4 +30,3 @@ require_relative 'cascading-configuration-hash/CascadingConfiguration/_private_/
|
|
34
30
|
require_relative 'cascading-configuration-hash/CascadingConfiguration/Hash.rb'
|
35
31
|
require_relative 'cascading-configuration-hash/CascadingConfiguration/Hash/AccessorDefinitionMethods.rb'
|
36
32
|
require_relative 'cascading-configuration-hash/CascadingConfiguration/Hash/Interface.rb'
|
37
|
-
require_relative 'cascading-configuration-hash/CascadingConfiguration/Hash/ModuleInclusionExtensionSupport.rb'
|
@@ -6,15 +6,21 @@ module CascadingConfiguration::Hash
|
|
6
6
|
extend CascadingConfiguration::InternalModuleStub
|
7
7
|
|
8
8
|
include CascadingConfiguration::Variable
|
9
|
+
|
9
10
|
include CascadingConfiguration::CompositingHash::Instance
|
11
|
+
include CascadingConfiguration::Hash::Interface
|
12
|
+
include CascadingConfiguration::Hash::AccessorDefinitionMethods
|
10
13
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
include_cascades_extends_to_module( CascadingConfiguration::Hash::ModuleInclusionExtensionSupport )
|
14
|
+
prepend_module_include do |class_or_module|
|
15
|
+
class_or_module.extend_also_extends( CascadingConfiguration::Variable::EigenclassConfigurationChain )
|
16
|
+
end
|
16
17
|
|
17
|
-
|
18
|
-
|
18
|
+
include_cascades_extends( CascadingConfiguration::Hash )
|
19
|
+
|
20
|
+
prepend_module_include do |class_or_module|
|
21
|
+
class_or_module.include_or_extend_cascades_prepending_extends do
|
22
|
+
accessor_module_support
|
23
|
+
end
|
24
|
+
end
|
19
25
|
|
20
26
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 1
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 1.3.
|
8
|
+
- 3
|
9
|
+
version: 1.3.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Asher
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-08-
|
17
|
+
date: 2011-08-06 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -58,7 +58,6 @@ files:
|
|
58
58
|
- lib/cascading-configuration-hash/CascadingConfiguration/CompositingHash.rb
|
59
59
|
- lib/cascading-configuration-hash/CascadingConfiguration/Hash/AccessorDefinitionMethods.rb
|
60
60
|
- lib/cascading-configuration-hash/CascadingConfiguration/Hash/Interface.rb
|
61
|
-
- lib/cascading-configuration-hash/CascadingConfiguration/Hash/ModuleInclusionExtensionSupport.rb
|
62
61
|
- lib/cascading-configuration-hash/CascadingConfiguration/Hash.rb
|
63
62
|
- lib/cascading-configuration-hash/CascadingConfiguration/LocalConfigurationHash.rb
|
64
63
|
- lib/cascading-configuration-hash.rb
|
data/lib/cascading-configuration-hash/CascadingConfiguration/Hash/ModuleInclusionExtensionSupport.rb
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
|
2
|
-
module CascadingConfiguration::Hash::ModuleInclusionExtensionSupport
|
3
|
-
|
4
|
-
extend CascadingConfiguration::InternalModuleStub
|
5
|
-
|
6
|
-
#####################
|
7
|
-
# append_features #
|
8
|
-
#####################
|
9
|
-
|
10
|
-
def append_features( class_or_module )
|
11
|
-
# the module that is including/extending CascadingConfiguration::Hash
|
12
|
-
module_self = self
|
13
|
-
class_or_module.instance_eval do
|
14
|
-
# extend accessors defined for modules (and classes, which are modules)
|
15
|
-
extend module_self.accessor_module_support
|
16
|
-
end
|
17
|
-
super
|
18
|
-
end
|
19
|
-
|
20
|
-
###################
|
21
|
-
# extend_object #
|
22
|
-
###################
|
23
|
-
|
24
|
-
def extend_object( class_or_module )
|
25
|
-
# CascadingConfiguration::Hash
|
26
|
-
module_self = self
|
27
|
-
class_or_module.instance_eval do
|
28
|
-
# extend accessors defined for modules (and classes, which are modules)
|
29
|
-
extend module_self.accessor_module_support
|
30
|
-
end
|
31
|
-
super
|
32
|
-
class_or_module.instance_eval do
|
33
|
-
# tell ancestor_configuration_chain to search the eigenclass chain as well
|
34
|
-
extend CascadingConfiguration::Variable::EigenclassConfigurationChain
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
end
|