cascading-configuration-setting 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,16 +6,21 @@ module CascadingConfiguration::Setting
6
6
  extend CascadingConfiguration::InternalModuleStub
7
7
 
8
8
  include CascadingConfiguration::Variable
9
+ include CascadingConfiguration::Setting::Interface
10
+ include CascadingConfiguration::Setting::AccessorDefinitionMethods
9
11
 
10
- include_cascades_prepending_extends( CascadingConfiguration::Setting,
11
- CascadingConfiguration::Setting::Interface,
12
- CascadingConfiguration::Setting::AccessorDefinitionMethods )
13
-
14
- include_cascades_extends_to_module( CascadingConfiguration::Setting::ModuleInclusionExtensionSupport )
12
+ prepend_module_include do |class_or_module|
13
+ class_or_module.extend_also_extends( CascadingConfiguration::Variable::EigenclassConfigurationChain )
14
+ end
15
+
16
+ include_cascades_prepending_extends( CascadingConfiguration::Setting )
17
+
18
+ prepend_module_include do |class_or_module|
19
+ class_or_module.include_or_extend_cascades_prepending_extends do
20
+ accessor_module_support
21
+ end
22
+ end
15
23
 
16
- extend_cascades_prepending_extends( CascadingConfiguration::Setting::Interface,
17
- CascadingConfiguration::Setting::AccessorDefinitionMethods )
18
-
19
24
  ########################################
20
25
  # get_configuration_searching_upward #
21
26
  ########################################
@@ -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
@@ -15,12 +13,9 @@ module CascadingConfiguration
15
13
  end
16
14
  module ObjectInstance
17
15
  end
18
- module ModuleInclusionExtensionSupport
19
- end
20
16
  end
21
17
  end
22
18
 
23
19
  require_relative 'cascading-configuration-setting/CascadingConfiguration/Setting.rb'
24
20
  require_relative 'cascading-configuration-setting/CascadingConfiguration/Setting/AccessorDefinitionMethods.rb'
25
21
  require_relative 'cascading-configuration-setting/CascadingConfiguration/Setting/Interface.rb'
26
- require_relative 'cascading-configuration-setting/CascadingConfiguration/Setting/ModuleInclusionExtensionSupport.rb'
@@ -123,6 +123,7 @@ describe CascadingConfiguration::Setting do
123
123
 
124
124
  class CascadingConfiguration::Setting::ConfigurationMockClass
125
125
  include CascadingConfiguration::Setting::ConfigurationMockIncluded::SubmoduleIncluding
126
+ respond_to?( :some_configuration ).should == true
126
127
  some_configuration.should == :another_configuration
127
128
  self.some_configuration = :our_setting_value
128
129
  some_configuration.should == :our_setting_value
@@ -261,6 +262,7 @@ describe CascadingConfiguration::Setting do
261
262
 
262
263
  class CascadingConfiguration::Setting::ClassConfigurationMockClass
263
264
  include CascadingConfiguration::Setting::ClassConfigurationMockIncluded::SubmoduleIncluding
265
+ respond_to?( :some_configuration ).should == true
264
266
  some_configuration.should == :another_configuration
265
267
  self.some_configuration = :our_setting_value
266
268
  some_configuration.should == :our_setting_value
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 3
8
- - 2
9
- version: 1.3.2
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-03 00:00:00 -04:00
17
+ date: 2011-08-06 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -54,7 +54,6 @@ extra_rdoc_files: []
54
54
  files:
55
55
  - lib/cascading-configuration-setting/CascadingConfiguration/Setting/AccessorDefinitionMethods.rb
56
56
  - lib/cascading-configuration-setting/CascadingConfiguration/Setting/Interface.rb
57
- - lib/cascading-configuration-setting/CascadingConfiguration/Setting/ModuleInclusionExtensionSupport.rb
58
57
  - lib/cascading-configuration-setting/CascadingConfiguration/Setting.rb
59
58
  - lib/cascading-configuration-setting.rb
60
59
  - spec/CascadingConfiguration/Setting/AccessorDefinitionMethods_spec.rb
@@ -1,38 +0,0 @@
1
-
2
- module CascadingConfiguration::Setting::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::Setting
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::Setting
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