cascading-configuration-setting 2.1.0 → 2.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,8 @@
1
1
 
2
2
  if $__cascading_configuration__spec__development
3
- require_relative '../../variable/lib/cascading-configuration-variable.rb'
4
- require_relative '../../methods/lib/cascading-configuration-methods.rb'
3
+ require_relative '../../definition/lib/cascading-configuration-definition.rb'
5
4
  else
6
- require 'cascading-configuration-variable'
7
- require 'cascading-configuration-methods'
5
+ require 'cascading-configuration-definition'
8
6
  end
9
7
 
10
8
  module ::CascadingConfiguration
@@ -11,21 +11,6 @@ module ::CascadingConfiguration::Setting
11
11
  def attr_object_configuration( *configuration_names ) ;; end
12
12
  def attr_instance_configuration( *configuration_names ) ;; end
13
13
 
14
- ccv = ::CascadingConfiguration::Variable
15
- ccm = ::CascadingConfiguration::Methods
16
-
17
- setter_proc = ::Proc.new do |instance, configuration_name, value|
18
-
19
- return ccv.set_configuration_variable( instance, configuration_name, value )
20
-
21
- end
22
-
23
- getter_proc = ::Proc.new do |instance, configuration_name|
24
-
25
- return ccv.get_configuration_searching_upward( instance, configuration_name )
26
-
27
- end
28
-
29
- ccm.declare_cascading_configuration( self, nil,setter_proc, getter_proc )
14
+ ::CascadingConfiguration::Definition.declare_cascading_configuration( self, nil )
30
15
 
31
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cascading-configuration-setting
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: &70280265531800 !ruby/object:Gem::Requirement
15
+ name: cascading-configuration-definition
16
+ requirement: &70321139171620 !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: *70280265531800
24
+ version_requirements: *70321139171620
25
25
  description: Provides :attr_configuration.
26
26
  email: asher@ridiculouspower.com
27
27
  executables: []