cascading-configuration-hash 2.1.0 → 2.1.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,9 +2,9 @@
|
|
2
2
|
require 'compositing-hash'
|
3
3
|
|
4
4
|
if $__cascading_configuration__spec__development
|
5
|
-
require_relative '../../
|
5
|
+
require_relative '../../definition/lib/cascading-configuration-definition.rb'
|
6
6
|
else
|
7
|
-
require 'cascading-configuration-
|
7
|
+
require 'cascading-configuration-definition'
|
8
8
|
end
|
9
9
|
|
10
10
|
module ::CascadingConfiguration
|
@@ -19,35 +19,11 @@ module ::CascadingConfiguration::Hash
|
|
19
19
|
def attr_object_configuration_unique_hash( *configuration_names, & define_block ) ;; end
|
20
20
|
def attr_instance_configuration_unique_hash( *configuration_names, & define_block ) ;; end
|
21
21
|
|
22
|
-
|
23
|
-
ccv = ::CascadingConfiguration::Variable
|
24
|
-
ccm = ::CascadingConfiguration::Methods
|
25
|
-
|
26
|
-
setter_proc = ::Proc.new do |instance, configuration_name, value|
|
27
|
-
|
28
|
-
return instance.__send__( configuration_name ).replace( value )
|
29
|
-
|
30
|
-
end
|
22
|
+
ccd = ::CascadingConfiguration::Definition
|
31
23
|
|
32
|
-
|
33
|
-
|
34
|
-
composite_hash = nil
|
35
|
-
|
36
|
-
if ccv.has_configuration_variable?( instance, configuration_name )
|
37
|
-
composite_hash = ccv.get_configuration_variable( instance, configuration_name )
|
38
|
-
else
|
39
|
-
parent_composite_hash = nil
|
40
|
-
if ancestor = ::CascadingConfiguration::Variable.ancestor( instance, configuration_name )
|
41
|
-
parent_composite_hash = ancestor.__send__( configuration_name )
|
42
|
-
end
|
43
|
-
composite_hash = ::CompositingHash.new( parent_composite_hash )
|
44
|
-
ccv.set_configuration_variable( instance, configuration_name, composite_hash )
|
45
|
-
end
|
46
|
-
|
47
|
-
return composite_hash
|
48
|
-
|
49
|
-
end
|
24
|
+
ccd.declare_compositing_configuration_object( self, :hash, ::CompositingHash )
|
50
25
|
|
51
|
-
|
26
|
+
# To the tune of "The Events Leading Up to the Collapse of Detective Dulllight"
|
27
|
+
# ~Oh where did all the code go? / Did you think that it'd stick around for-ever?~
|
52
28
|
|
53
29
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cascading-configuration-hash
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-03-
|
12
|
+
date: 2012-03-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cascading-configuration-variable
|
16
|
-
requirement: &
|
16
|
+
requirement: &70157573803920 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70157573803920
|
25
25
|
description: Provides :attr_configuration_hash.
|
26
26
|
email: asher@ridiculouspower.com
|
27
27
|
executables: []
|