cascading-configuration-array 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-array'
3
3
 
4
4
  if $__cascading_configuration__spec__development
5
- require_relative '../../variable/lib/cascading-configuration-variable.rb'
5
+ require_relative '../../definition/lib/cascading-configuration-definition.rb'
6
6
  else
7
- require 'cascading-configuration-variable'
7
+ require 'cascading-configuration-definition'
8
8
  end
9
9
 
10
10
  module ::CascadingConfiguration
@@ -19,35 +19,11 @@ module ::CascadingConfiguration::Array
19
19
  def attr_object_configuration_array( *configuration_names, & define_block ) ;; end
20
20
  def attr_instance_configuration_array( *configuration_names, & define_block ) ;; end
21
21
 
22
- cca = self
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
- getter_proc = ::Proc.new do |instance, configuration_name|
24
+ ccd.declare_compositing_configuration_object( self, :array, ::CompositingArray )
33
25
 
34
- composite_array = nil
35
-
36
- if ccv.has_configuration_variable?( instance, configuration_name )
37
- composite_array = ccv.get_configuration_variable( instance, configuration_name )
38
- else
39
- parent_composite_array = nil
40
- if ancestor = ::CascadingConfiguration::Variable.ancestor( instance, configuration_name )
41
- parent_composite_array = ancestor.__send__( configuration_name )
42
- end
43
- composite_array = ::CompositingArray.new( parent_composite_array )
44
- ccv.set_configuration_variable( instance, configuration_name, composite_array )
45
- end
46
-
47
- return composite_array
48
-
49
- end
50
-
51
- ccm.declare_compositing_configuration_object( self, :array, setter_proc, getter_proc )
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-array
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
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-18 00:00:00.000000000 Z
12
+ date: 2012-03-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: cascading-configuration-variable
16
- requirement: &70132135355540 !ruby/object:Gem::Requirement
15
+ name: cascading-configuration-definition
16
+ requirement: &70116721348260 !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: *70132135355540
24
+ version_requirements: *70116721348260
25
25
  description: Provides :attr_configuration_array.
26
26
  email: asher@ridiculouspower.com
27
27
  executables: []