cascading-configuration-array-sorted 2.1.0 → 2.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,9 +2,9 @@
2
2
  require 'compositing-array-sorted'
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::Sorted
19
19
  def attr_object_configuration_sorted_array( *configuration_names, & define_block ) ;; end
20
20
  def attr_instance_configuration_sorted_array( *configuration_names, & define_block ) ;; end
21
21
 
22
- ccsa = 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, :sorted_array, ::CompositingArray::Sorted )
30
25
 
31
- end
32
-
33
- getter_proc = ::Proc.new do |instance, configuration_name|
34
-
35
- composite_sorted_array = nil
36
-
37
- if ccv.has_configuration_variable?( instance, configuration_name )
38
- composite_sorted_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_sorted_array = ::CompositingArray::Sorted.new( parent_composite_array )
45
- ccv.set_configuration_variable( instance, configuration_name, composite_sorted_array )
46
- end
47
-
48
- return composite_sorted_array
49
-
50
- end
51
-
52
- ccm.declare_compositing_configuration_object( self, :sorted_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-sorted
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-array
16
- requirement: &70197420283240 !ruby/object:Gem::Requirement
16
+ requirement: &70296774479700 !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: *70197420283240
24
+ version_requirements: *70296774479700
25
25
  description: Provides :attr_configuration_sorted_array.
26
26
  email: asher@ridiculouspower.com
27
27
  executables: []