cascading-configuration-array-unique 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-unique'
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,36 +19,11 @@ module ::CascadingConfiguration::Array::Unique
19
19
  def attr_object_configuration_unique_array( *configuration_names, & define_block ) ;; end
20
20
  def attr_instance_configuration_unique_array( *configuration_names, & define_block ) ;; end
21
21
 
22
- ccua = self
23
- cca = ::CascadingConfiguration::Array
24
- ccv = ::CascadingConfiguration::Variable
25
- ccm = ::CascadingConfiguration::Methods
22
+ ccd = ::CascadingConfiguration::Definition
26
23
 
27
- setter_proc = ::Proc.new do |instance, configuration_name, value|
28
-
29
- return instance.__send__( configuration_name ).replace( value )
24
+ ccd.declare_compositing_configuration_object( self, :unique_array, ::CompositingArray::Unique )
30
25
 
31
- end
32
-
33
- getter_proc = ::Proc.new do |instance, configuration_name|
34
-
35
- composite_unique_array = nil
36
-
37
- if ccv.has_configuration_variable?( instance, configuration_name )
38
- composite_unique_array = ccv.get_configuration_variable( instance, configuration_name )
39
- else
40
- parent_composite_array = nil
41
- if ancestor = ::CascadingConfiguration::Variable.ancestor( instance, configuration_name )
42
- parent_composite_array = ancestor.__send__( configuration_name )
43
- end
44
- composite_unique_array = ::CompositingArray::Unique.new( parent_composite_array )
45
- ccv.set_configuration_variable( instance, configuration_name, composite_unique_array )
46
- end
47
-
48
- return composite_unique_array
49
-
50
- end
51
-
52
- ccm.declare_compositing_configuration_object( self, :unique_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?~
53
28
 
54
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cascading-configuration-array-unique
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
15
  name: cascading-configuration-variable
16
- requirement: &70261379169140 !ruby/object:Gem::Requirement
16
+ requirement: &70312079421580 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70261379169140
24
+ version_requirements: *70312079421580
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: cascading-configuration-array
27
- requirement: &70261379165120 !ruby/object:Gem::Requirement
27
+ requirement: &70312079420440 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70261379165120
35
+ version_requirements: *70312079420440
36
36
  description: Provides :attr_configuration_array.
37
37
  email: asher@ridiculouspower.com
38
38
  executables: []