cascading-configuration-hash 1.3.3 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -93,10 +93,10 @@ module CascadingConfiguration::Hash::AccessorDefinitionMethods
93
93
  end
94
94
 
95
95
  ###############################################
96
- # define_existant_configuration_hash_setter #
96
+ # define_instance_configuration_hash_setter #
97
97
  ###############################################
98
98
 
99
- def define_existant_configuration_hash_setter( configuration_name )
99
+ def define_instance_configuration_hash_setter( configuration_name )
100
100
  configuration_setter_name = ( configuration_name.to_s + '=' ).to_sym
101
101
  accessor_local_instance_support.module_eval do
102
102
  define_method( configuration_setter_name ) do |hash|
@@ -107,10 +107,10 @@ module CascadingConfiguration::Hash::AccessorDefinitionMethods
107
107
  end
108
108
 
109
109
  ############################################
110
- # define_existant_configuration_hash_getter #
110
+ # define_instance_configuration_hash_getter #
111
111
  ############################################
112
112
 
113
- def define_existant_configuration_hash_getter( configuration_name )
113
+ def define_instance_configuration_hash_getter( configuration_name )
114
114
  configuration_getter_name = configuration_name
115
115
  accessor_local_instance_support.module_eval do
116
116
  define_method( configuration_getter_name ) do
@@ -69,21 +69,21 @@ module CascadingConfiguration::Hash::Interface
69
69
  end
70
70
 
71
71
  ######################################
72
- # attr_existant_configuration_hash #
72
+ # attr_instance_configuration_hash #
73
73
  ######################################
74
74
 
75
75
  # defines configuration in present class or module context
76
76
  # configuration does not cascade
77
- def attr_existant_configuration_hash( *property_names, & compositing_block )
77
+ def attr_instance_configuration_hash( *property_names, & compositing_block )
78
78
 
79
79
  CascadingConfiguration::Variable.define_accessor_local_instance_support( self )
80
80
 
81
81
  property_names.each do |this_property_name|
82
82
  accessor_module_support.set_compositing_proc( this_property_name, compositing_block ) if block_given?
83
83
  # define configuration setter
84
- define_existant_configuration_hash_setter( this_property_name )
84
+ define_instance_configuration_hash_setter( this_property_name )
85
85
  # define configuration getter
86
- define_existant_configuration_hash_getter( this_property_name )
86
+ define_instance_configuration_hash_getter( this_property_name )
87
87
  end
88
88
 
89
89
  return self
@@ -578,7 +578,7 @@ describe CascadingConfiguration::Hash do
578
578
 
579
579
 
580
580
  ######################################
581
- # attr_existant_configuration_hash #
581
+ # attr_instance_configuration_hash #
582
582
  ######################################
583
583
 
584
584
  it 'can define a local configuration hash, which will not cascade' do
@@ -598,8 +598,8 @@ describe CascadingConfiguration::Hash do
598
598
  module CascadingConfiguration::Hash::InstanceConfigurationMockModuleExtended
599
599
  extend CascadingConfiguration::Hash
600
600
  # => singleton gets attr_configuration and configurations
601
- respond_to?( :attr_existant_configuration_hash ).should == true
602
- attr_existant_configuration_hash :configuration_setting
601
+ respond_to?( :attr_instance_configuration_hash ).should == true
602
+ attr_instance_configuration_hash :configuration_setting
603
603
  respond_to?( :configuration_setting ).should == true
604
604
  configuration_setting.should == {}
605
605
  self.configuration_setting[ :a_configuration ] = :some_value
@@ -639,8 +639,8 @@ describe CascadingConfiguration::Hash do
639
639
  module CascadingConfiguration::Hash::InstanceConfigurationMockModuleIncluded
640
640
  include CascadingConfiguration::Hash
641
641
  # => singleton gets attr_configuration and configurations
642
- respond_to?( :attr_existant_configuration_hash ).should == true
643
- attr_existant_configuration_hash :configuration_setting
642
+ respond_to?( :attr_instance_configuration_hash ).should == true
643
+ attr_instance_configuration_hash :configuration_setting
644
644
  respond_to?( :configuration_setting ).should == true
645
645
  configuration_setting.should == {}
646
646
  self.configuration_setting[ :a_configuration ] = :some_value
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 1
7
- - 3
8
- - 3
9
- version: 1.3.3
7
+ - 4
8
+ - 0
9
+ version: 1.4.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Asher
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-08-06 00:00:00 -04:00
17
+ date: 2011-08-08 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency