configtoolkit 2.3.0 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/Hash.txt CHANGED
@@ -127,4 +127,4 @@ When run, the program produces:
127
127
  }
128
128
 
129
129
  The Hash dumped from the second config:
130
- {:production=>{:www=>{:addresses=>[#<URI::HTTP:0xb7cc042c URL:http://www.designingpatterns.com>, #<URI::HTTP:0xb7cc03dc URL:http://tokyo.designingpatterns.com>], :num_cpus=>64, :os=>{:version=>10.0, :name=>"Solaris"}, :behind_firewall=>true, :contains_sensitive_data=>true}}}
130
+ {:production=>{:www=>{:addresses=>[#<URI::HTTP:0xb7b802d8 URL:http://www.designingpatterns.com>, #<URI::HTTP:0xb7b80274 URL:http://tokyo.designingpatterns.com>], :num_cpus=>64, :os=>{:version=>10.0, :name=>"Solaris"}, :behind_firewall=>true, :contains_sensitive_data=>true}}}
@@ -1,3 +1,8 @@
1
+ === 2.3.1 / 2010-01-30
2
+ A couple minor changes were made.
3
+ * Changes to gem specification.
4
+ * Version can be accessed programmatcally from gem.
5
+
1
6
  === 2.3.0 / 2009-06-09
2
7
  * The ConfigToolkit will print out a warning when it encounters an
3
8
  unknown parameter when loading a configuration file
@@ -185,6 +185,10 @@ When run, it produces:
185
185
  ======The output of <code>examples/key_value_example.rb</code>:
186
186
  The first config:
187
187
  {
188
+ os : {
189
+ version: 5.3
190
+ name : AIX
191
+ }
188
192
  behind_firewall : false
189
193
  num_cpus : 32
190
194
  addresses : [
@@ -192,14 +196,14 @@ When run, it produces:
192
196
  http://apple.designingpatterns.com
193
197
  ]
194
198
  contains_sensitive_data: false
195
- os : {
196
- name : AIX
197
- version: 5.3
198
- }
199
199
  }
200
200
 
201
201
  The second config:
202
202
  production.www: {
203
+ os : {
204
+ version: 10.0
205
+ name : Solaris
206
+ }
203
207
  behind_firewall : true
204
208
  num_cpus : 64
205
209
  addresses : [
@@ -207,14 +211,14 @@ When run, it produces:
207
211
  http://tokyo.designingpatterns.com
208
212
  ]
209
213
  contains_sensitive_data: true
210
- os : {
211
- name : Solaris
212
- version: 10.0
213
- }
214
214
  }
215
215
 
216
216
  The first config sourced from a different key-value format:
217
217
  {
218
+ os : {
219
+ version: 5.3
220
+ name : AIX
221
+ }
218
222
  behind_firewall : false
219
223
  num_cpus : 32
220
224
  addresses : [
@@ -222,16 +226,12 @@ When run, it produces:
222
226
  http://apple.designingpatterns.com
223
227
  ]
224
228
  contains_sensitive_data: false
225
- os : {
226
- name : AIX
227
- version: 5.3
228
- }
229
229
  }
230
230
 
231
231
  The second configuration dumped to a new key-value file format:
232
+ production.www.os : {version <<-->> 10.0, name <<-->> Solaris}
232
233
  production.www.behind_firewall : true
233
234
  production.www.num_cpus : 64
234
235
  production.www.addresses : [http://www.designingpatterns.com, http://tokyo.designingpatterns.com]
235
236
  production.www.contains_sensitive_data : true
236
- production.www.os : {name <<-->> Solaris, version <<-->> 10.0}
237
237
 
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2008 Designing Patterns
1
+ Copyright (c) 2008-2009 Designing Patterns
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -1,37 +1,37 @@
1
- Manifest.txt
2
- LICENSE
3
- History.txt
4
1
  FAQ.txt
5
2
  Hash.txt
3
+ History.txt
6
4
  KeyValue.txt
5
+ LICENSE
6
+ Manifest.txt
7
7
  Override.txt
8
8
  README.txt
9
+ Rakefile
9
10
  Ruby.txt
10
11
  YAML.txt
11
- Rakefile
12
12
  examples/config_toolkit_config_example.rb
13
+ examples/config_toolkit_config_example.yaml
13
14
  examples/hash_example.rb
15
+ examples/key_value_example.dump.cfg
16
+ examples/key_value_example.normal1.cfg
17
+ examples/key_value_example.normal2.cfg
14
18
  examples/key_value_example.rb
19
+ examples/key_value_example.wacky.cfg
15
20
  examples/load_example.rb
21
+ examples/load_example.yaml
16
22
  examples/load_group_example.rb
23
+ examples/load_group_example.yaml
17
24
  examples/machineconfig.rb
25
+ examples/override_example.yaml
18
26
  examples/override_example_1.rb
19
27
  examples/override_example_2.rb
28
+ examples/override_example_override.yaml
20
29
  examples/ruby_example.rb
30
+ examples/ruby_example.rcfg
21
31
  examples/usage_example.rb
22
- examples/yaml_example.rb
23
- examples/config_toolkit_config_example.yaml
24
- examples/load_example.yaml
25
- examples/load_group_example.yaml
26
- examples/override_example_override.yaml
27
- examples/override_example.yaml
28
32
  examples/yaml_example.dump.yaml
33
+ examples/yaml_example.rb
29
34
  examples/yaml_example.yaml
30
- examples/key_value_example.dump.cfg
31
- examples/key_value_example.normal1.cfg
32
- examples/key_value_example.normal2.cfg
33
- examples/key_value_example.wacky.cfg
34
- examples/ruby_example.rcfg
35
35
  lib/configtoolkit.rb
36
36
  lib/configtoolkit/baseconfig.rb
37
37
  lib/configtoolkit/configtoolkitconfig.rb
@@ -46,38 +46,30 @@ lib/configtoolkit/prettyprintwriter.rb
46
46
  lib/configtoolkit/reader.rb
47
47
  lib/configtoolkit/rubyreader.rb
48
48
  lib/configtoolkit/types.rb
49
+ lib/configtoolkit/version.rb
49
50
  lib/configtoolkit/writer.rb
50
51
  lib/configtoolkit/yamlreader.rb
51
52
  lib/configtoolkit/yamlwriter.rb
52
53
  rdoc_support/rdoc-2.0.0.patch
53
54
  rdoc_support/rdoc-2.1.0.patch
54
- test/readerwritertest.rb
55
- test/test_baseconfig.rb
56
- test/test_configtoolkitconfig.rb
57
- test/test_hash.rb
58
- test/test_keyvalue.rb
59
- test/test_override.rb
60
- test/test_prettyprint.rb
61
- test/test_ruby.rb
62
- test/test_yaml.rb
55
+ test/bad_array_index.rcfg
63
56
  test/bad_config.yaml
64
- test/contained_sample.yaml
65
- test/firewall.yaml
66
- test/machines.yaml
67
- test/override_sample_1.yaml
68
- test/override_sample_2.yaml
69
- test/sample.ruby_yaml_classes.yaml
70
- test/sample.standard_yaml_classes.yaml
71
- test/webserver.yaml
57
+ test/bad_containing_object_assignment.rcfg
72
58
  test/bad_directive.cfg
73
59
  test/bad_include1.cfg
74
60
  test/bad_include2.cfg
61
+ test/bad_parameter_reference.rcfg
75
62
  test/contained_sample.cfg
63
+ test/contained_sample.pretty_print
64
+ test/contained_sample.rcfg
65
+ test/contained_sample.yaml
76
66
  test/containers.cfg
77
67
  test/exta_string_after_container.cfg
78
68
  test/extra_container_closing.cfg
79
69
  test/extra_string_after_container.cfg
80
70
  test/extra_string_after_nested_container.cfg
71
+ test/firewall.yaml
72
+ test/machines.yaml
81
73
  test/missing_array_closing.cfg
82
74
  test/missing_array_element.cfg
83
75
  test/missing_directive.cfg
@@ -86,15 +78,24 @@ test/missing_hash_element.cfg
86
78
  test/missing_hash_value.cfg
87
79
  test/missing_include_argument.cfg
88
80
  test/missing_key_value_delimiter.cfg
81
+ test/override_sample_1.yaml
82
+ test/override_sample_2.yaml
83
+ test/readerwritertest.rb
89
84
  test/sample.cfg
85
+ test/sample.pretty_print
86
+ test/sample.rcfg
87
+ test/sample.ruby_yaml_classes.yaml
88
+ test/sample.standard_yaml_classes.yaml
89
+ test/test_baseconfig.rb
90
+ test/test_configtoolkitconfig.rb
91
+ test/test_hash.rb
92
+ test/test_keyvalue.rb
93
+ test/test_override.rb
94
+ test/test_prettyprint.rb
95
+ test/test_ruby.rb
96
+ test/test_yaml.rb
90
97
  test/wacky_sample1.cfg
91
98
  test/wacky_sample2.cfg
92
99
  test/wacky_sample3.cfg
93
100
  test/wacky_sample4.cfg
94
- test/contained_sample.pretty_print
95
- test/sample.pretty_print
96
- test/bad_array_index.rcfg
97
- test/bad_containing_object_assignment.rcfg
98
- test/bad_parameter_reference.rcfg
99
- test/contained_sample.rcfg
100
- test/sample.rcfg
101
+ test/webserver.yaml
@@ -85,6 +85,8 @@ When run, it produces the following output:
85
85
  ======The output of <code>examples/override_example_1.rb</code>:
86
86
  The config:
87
87
  {
88
+ behind_firewall : false
89
+ num_cpus : 64
88
90
  addresses : [
89
91
  http://default.designingpatterns.com,
90
92
  http://apple.designingpatterns.com
@@ -94,8 +96,6 @@ When run, it produces the following output:
94
96
  version: 5.4
95
97
  name : AIX
96
98
  }
97
- behind_firewall : false
98
- num_cpus : 64
99
99
  }
100
100
 
101
101
 
@@ -197,60 +197,60 @@ above.
197
197
 
198
198
  When run, it produces the following output:
199
199
  ======The output of <code>examples/override_example_2.rb</code>:
200
+ The db1 configuration:
201
+ db_cluster.db1: {
202
+ addresses : [
203
+ http://db1.designingpatterns.com
204
+ ]
205
+ contains_sensitive_data: true
206
+ os : {
207
+ version: 10.0
208
+ name : Solaris
209
+ }
210
+ behind_firewall : true
211
+ num_cpus : 16
212
+ }
213
+
200
214
  The db2 configuration:
201
215
  db_cluster.db2: {
216
+ addresses : [
217
+ http://db2.designingpatterns.com
218
+ ]
219
+ contains_sensitive_data: true
202
220
  os : {
203
221
  version: 5.3
204
222
  name : AIX
205
223
  }
206
224
  behind_firewall : true
207
225
  num_cpus : 12
208
- addresses : [
209
- http://db2.designingpatterns.com
210
- ]
211
- contains_sensitive_data: true
212
226
  }
213
227
 
214
228
  The db3 configuration:
215
229
  db_cluster.db3: {
230
+ addresses : [
231
+ http://db3.designingpatterns.com
232
+ ]
233
+ contains_sensitive_data: true
216
234
  os : {
217
235
  version: 10.0
218
236
  name : Solaris
219
237
  }
220
238
  behind_firewall : true
221
239
  num_cpus : 24
222
- addresses : [
223
- http://db3.designingpatterns.com
224
- ]
225
- contains_sensitive_data: true
226
240
  }
227
241
 
228
242
  The db4 configuration:
229
243
  db_cluster.db4: {
230
- os : {
231
- version: 10.0
232
- name : Solaris
233
- }
234
- behind_firewall : true
235
- num_cpus : 48
236
244
  addresses : [
237
245
  http://db4.designingpatterns.com
238
246
  ]
239
247
  contains_sensitive_data: true
240
- }
241
-
242
- The db1 configuration:
243
- db_cluster.db1: {
244
248
  os : {
245
249
  version: 10.0
246
250
  name : Solaris
247
251
  }
248
252
  behind_firewall : true
249
- num_cpus : 16
250
- addresses : [
251
- http://db1.designingpatterns.com
252
- ]
253
- contains_sensitive_data: true
253
+ num_cpus : 48
254
254
  }
255
255
 
256
256
 
data/README.txt CHANGED
@@ -341,11 +341,11 @@ When run, it produces:
341
341
  http://www.designingpatterns.com,
342
342
  http://jackfruit.designingpatterns.com
343
343
  ]
344
- behind_firewall : true
345
344
  os : {
346
345
  version: 10.0
347
346
  name : Solaris
348
347
  }
348
+ behind_firewall : true
349
349
  }
350
350
 
351
351
  Optional primary_contact parameter is NOT set!
@@ -360,11 +360,11 @@ When run, it produces:
360
360
  http://www.designingpatterns.com,
361
361
  http://jackfruit.designingpatterns.com
362
362
  ]
363
- behind_firewall : true
364
363
  os : {
365
364
  version: 10.0
366
365
  name : Solaris
367
366
  }
367
+ behind_firewall : true
368
368
  primary_contact : Tony
369
369
  }
370
370
 
@@ -378,11 +378,11 @@ When run, it produces:
378
378
  http://www.designingpatterns.com,
379
379
  http://jackfruit.designingpatterns.com
380
380
  ]
381
- behind_firewall : true
382
381
  os : {
383
382
  version: 10.0
384
383
  name : Solaris
385
384
  }
385
+ behind_firewall : true
386
386
  }
387
387
 
388
388
 
@@ -469,32 +469,32 @@ configuration being accessible separately. When run, it produces:
469
469
  ======The output of <code>examples/load_example.rb</code>:
470
470
  The first config:
471
471
  {
472
- os : {
473
- name : AIX
474
- version: 5.3
475
- }
476
- behind_firewall : false
477
- num_cpus : 32
478
472
  addresses : [
479
473
  http://default.designingpatterns.com,
480
474
  http://apple.designingpatterns.com
481
475
  ]
482
476
  contains_sensitive_data: false
477
+ os : {
478
+ version: 5.3
479
+ name : AIX
480
+ }
481
+ behind_firewall : false
482
+ num_cpus : 32
483
483
  }
484
484
 
485
485
  The second config:
486
486
  production.www: {
487
- os : {
488
- name : Solaris
489
- version: 10.0
490
- }
491
- behind_firewall : true
492
- num_cpus : 64
493
487
  addresses : [
494
488
  http://www.designingpatterns.com,
495
489
  http://tokyo.designingpatterns.com
496
490
  ]
497
491
  contains_sensitive_data: true
492
+ os : {
493
+ version: 10.0
494
+ name : Solaris
495
+ }
496
+ behind_firewall : true
497
+ num_cpus : 64
498
498
  }
499
499
 
500
500
 
@@ -570,46 +570,46 @@ mapping containing object names to configurations:
570
570
 
571
571
  When run, it produces:
572
572
  ======The output of <code>examples/load_group_example.rb</code>:
573
- The db1 configuration:
574
- db_cluster.db1: {
573
+ The db3 configuration:
574
+ db_cluster.db3: {
575
+ addresses : [
576
+ http://db3.designingpatterns.com
577
+ ]
578
+ contains_sensitive_data: true
575
579
  os : {
576
- version: 10.0
577
580
  name : Solaris
581
+ version: 10.0
578
582
  }
579
583
  behind_firewall : true
580
- num_cpus : 16
584
+ num_cpus : 24
585
+ }
586
+
587
+ The db1 configuration:
588
+ db_cluster.db1: {
581
589
  addresses : [
582
590
  http://db1.designingpatterns.com
583
591
  ]
584
592
  contains_sensitive_data: true
593
+ os : {
594
+ name : Solaris
595
+ version: 10.0
596
+ }
597
+ behind_firewall : true
598
+ num_cpus : 16
585
599
  }
586
600
 
587
601
  The db2 configuration:
588
602
  db_cluster.db2: {
589
- os : {
590
- version: 5.3
591
- name : AIX
592
- }
593
- behind_firewall : true
594
- num_cpus : 12
595
603
  addresses : [
596
604
  http://db2.designingpatterns.com
597
605
  ]
598
606
  contains_sensitive_data: true
599
- }
600
-
601
- The db3 configuration:
602
- db_cluster.db3: {
603
607
  os : {
604
- version: 10.0
605
- name : Solaris
608
+ name : AIX
609
+ version: 5.3
606
610
  }
607
611
  behind_firewall : true
608
- num_cpus : 24
609
- addresses : [
610
- http://db3.designingpatterns.com
611
- ]
612
- contains_sensitive_data: true
612
+ num_cpus : 12
613
613
  }
614
614
 
615
615
 
@@ -646,7 +646,7 @@ file.
646
646
  # Set SimpleConfig's default ConfigToolkit::ConfigToolkitConfig via
647
647
  # the default_config_toolkit_config accessor method.
648
648
  #
649
- default_config_toolkit_config = ConfigToolkit::ConfigToolkitConfig.new() do |instance|
649
+ self.default_config_toolkit_config = ConfigToolkit::ConfigToolkitConfig.new() do |instance|
650
650
  #
651
651
  # This will suppress warnings when an unknown config param
652
652
  # is encountered when loading a configuration file.
@@ -837,7 +837,7 @@ distribution.
837
837
 
838
838
  This package is licensed with an MIT license:
839
839
 
840
- Copyright (c) 2008 Designing Patterns
840
+ Copyright (c) 2008-2009 Designing Patterns
841
841
 
842
842
  Permission is hereby granted, free of charge, to any person obtaining
843
843
  a copy of this software and associated documentation files (the
@@ -859,3 +859,4 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
859
859
  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
860
860
 
861
861
  == SHARE AND ENJOY!
862
+
data/Rakefile CHANGED
@@ -2,12 +2,20 @@
2
2
 
3
3
  require 'rubygems'
4
4
  require 'hoe'
5
+ require 'lib/configtoolkit/version'
5
6
 
6
- Hoe.new('configtoolkit', "2.3.0") do |p|
7
- p.extra_deps << ['relative', '>= 1.0.0']
8
- p.extra_deps << ['assertions', '>= 1.0.0']
7
+ PROJECT_NAME = 'configtoolkit'
8
+ DESCRIPTION = 'Are you tired of writing custom code to parse and represent every new configuration file utilized in your programs? The Config Toolkit generates configuration classes and can populate them robustly by parsing different formats of configuration files.'
9
+
10
+ Hoe.spec(PROJECT_NAME) do |p|
11
+ p.url = "http://www.rubyforge.org/projects/#{PROJECT_NAME}"
9
12
  p.remote_rdoc_dir = ''
13
+ p.version = ConfigToolkit::VERSION::STRING
10
14
  p.developer('DesigningPatterns', 'technical.inquiries@designingpatterns.com')
15
+ p.description = DESCRIPTION
16
+
17
+ p.extra_deps << ['relative', '>= 1.0.0']
18
+ p.extra_deps << ['assertions', '>= 1.0.0']
11
19
  end
12
20
 
13
21
  # vim: syntax=Ruby
data/Ruby.txt CHANGED
@@ -123,32 +123,32 @@ When run, it produces the following output:
123
123
  ======The output of <code>examples/ruby_example.rb</code>:
124
124
  The first config:
125
125
  {
126
- os : {
127
- name : AIX
128
- version: 5.3
129
- }
130
- behind_firewall : false
131
- num_cpus : 32
132
126
  addresses : [
133
127
  http://default.designingpatterns.com,
134
128
  http://apple.designingpatterns.com
135
129
  ]
136
130
  contains_sensitive_data: false
131
+ os : {
132
+ version: 5.3
133
+ name : AIX
134
+ }
135
+ behind_firewall : false
136
+ num_cpus : 32
137
137
  }
138
138
 
139
139
  The second config:
140
140
  production.www: {
141
- os : {
142
- name : Solaris
143
- version: 10.0
144
- }
145
- behind_firewall : true
146
- num_cpus : 64
147
141
  addresses : [
148
142
  http://www.designingpatterns.com,
149
143
  http://tokyo.designingpatterns.com
150
144
  ]
151
145
  contains_sensitive_data: true
146
+ os : {
147
+ version: 10.0
148
+ name : Solaris
149
+ }
150
+ behind_firewall : true
151
+ num_cpus : 64
152
152
  }
153
153
 
154
154
 
data/YAML.txt CHANGED
@@ -146,32 +146,32 @@ program produces:
146
146
  ======The output of <code>examples/yaml_example.rb</code>:
147
147
  The first config:
148
148
  {
149
+ os : {
150
+ version: 5.3
151
+ name : AIX
152
+ }
153
+ behind_firewall : false
149
154
  num_cpus : 32
150
155
  addresses : [
151
156
  http://default.designingpatterns.com,
152
157
  http://apple.designingpatterns.com
153
158
  ]
154
159
  contains_sensitive_data: false
155
- os : {
156
- version: 5.3
157
- name : AIX
158
- }
159
- behind_firewall : false
160
160
  }
161
161
 
162
162
  The second config:
163
163
  production.www: {
164
+ os : {
165
+ version: 10.0
166
+ name : Solaris
167
+ }
168
+ behind_firewall : true
164
169
  num_cpus : 64
165
170
  addresses : [
166
171
  http://www.designingpatterns.com,
167
172
  http://tokyo.designingpatterns.com
168
173
  ]
169
174
  contains_sensitive_data: true
170
- os : {
171
- version: 10.0
172
- name : Solaris
173
- }
174
- behind_firewall : true
175
175
  }
176
176
 
177
177
  The second configuration written in YAML with native YAML types:
@@ -12,7 +12,7 @@ class SimpleConfig < ConfigToolkit::BaseConfig
12
12
  # Set SimpleConfig's default ConfigToolkit::ConfigToolkitConfig via
13
13
  # the default_config_toolkit_config accessor method.
14
14
  #
15
- default_config_toolkit_config = ConfigToolkit::ConfigToolkitConfig.new() do |instance|
15
+ self.default_config_toolkit_config = ConfigToolkit::ConfigToolkitConfig.new() do |instance|
16
16
  #
17
17
  # This will suppress warnings when an unknown config param
18
18
  # is encountered when loading a configuration file.
@@ -1,2 +1,3 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'configtoolkit/baseconfig'
3
+ require 'configtoolkit/version'
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ module ConfigToolkit #:nodoc:
4
+ module VERSION #:nodoc:
5
+ MAJOR = 2
6
+ MINOR = 3
7
+ TINY = 1
8
+
9
+ STRING = [MAJOR, MINOR, TINY].join('.')
10
+ end
11
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: configtoolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - DesigningPatterns
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-09 00:00:00 -04:00
12
+ date: 2010-01-31 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -32,6 +32,26 @@ dependencies:
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.0.0
34
34
  version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: rubyforge
37
+ type: :development
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 2.0.3
44
+ version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: gemcutter
47
+ type: :development
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 0.3.0
54
+ version:
35
55
  - !ruby/object:Gem::Dependency
36
56
  name: hoe
37
57
  type: :development
@@ -40,9 +60,9 @@ dependencies:
40
60
  requirements:
41
61
  - - ">="
42
62
  - !ruby/object:Gem::Version
43
- version: 1.8.0
63
+ version: 2.5.0
44
64
  version:
45
- description: "This package makes sourcing information from (parsing) configuration files robust and easy! It: * Allows programmers to specify the type of data that should be loaded from a configuration file. The toolkit automatically will validate the file's data against this specification when loading the file, ensuring that the specification always is obeyed and saving the programmer the tedious chore of writing validation code. * Automagically generates parameter accessor methods (getters, setters, and predicates to test for presence), an equality operator, and a +to_s+ method from the configuration's specification. * Allows programmers to create configuration files, easily and programatically. * Provides a class that can load (parse) Ruby configuration files (allowing the full power of Ruby to be used within configuration files). * Provides classes that can load from (parse) and dump to YAML and key-value configuration files. * Provides classes that can load from and dump to Hashes. * Provides a class that allows the contents of one configuration source to override the contents of another (this works with configuration files of any format or Hashes). * Is very extensible, allowing the engine to be used with custom format configuration files and with custom data validation rules."
65
+ description: Are you tired of writing custom code to parse and represent every new configuration file utilized in your programs? The Config Toolkit generates configuration classes and can populate them robustly by parsing different formats of configuration files.
46
66
  email:
47
67
  - technical.inquiries@designingpatterns.com
48
68
  executables: []
@@ -50,50 +70,50 @@ executables: []
50
70
  extensions: []
51
71
 
52
72
  extra_rdoc_files:
53
- - Manifest.txt
54
- - History.txt
55
73
  - FAQ.txt
56
74
  - Hash.txt
75
+ - History.txt
57
76
  - KeyValue.txt
77
+ - Manifest.txt
58
78
  - Override.txt
59
79
  - README.txt
60
80
  - Ruby.txt
61
81
  - YAML.txt
62
82
  files:
63
- - Manifest.txt
64
- - LICENSE
65
- - History.txt
66
83
  - FAQ.txt
67
84
  - Hash.txt
85
+ - History.txt
68
86
  - KeyValue.txt
87
+ - LICENSE
88
+ - Manifest.txt
69
89
  - Override.txt
70
90
  - README.txt
91
+ - Rakefile
71
92
  - Ruby.txt
72
93
  - YAML.txt
73
- - Rakefile
74
94
  - examples/config_toolkit_config_example.rb
95
+ - examples/config_toolkit_config_example.yaml
75
96
  - examples/hash_example.rb
97
+ - examples/key_value_example.dump.cfg
98
+ - examples/key_value_example.normal1.cfg
99
+ - examples/key_value_example.normal2.cfg
76
100
  - examples/key_value_example.rb
101
+ - examples/key_value_example.wacky.cfg
77
102
  - examples/load_example.rb
103
+ - examples/load_example.yaml
78
104
  - examples/load_group_example.rb
105
+ - examples/load_group_example.yaml
79
106
  - examples/machineconfig.rb
107
+ - examples/override_example.yaml
80
108
  - examples/override_example_1.rb
81
109
  - examples/override_example_2.rb
110
+ - examples/override_example_override.yaml
82
111
  - examples/ruby_example.rb
112
+ - examples/ruby_example.rcfg
83
113
  - examples/usage_example.rb
84
- - examples/yaml_example.rb
85
- - examples/config_toolkit_config_example.yaml
86
- - examples/load_example.yaml
87
- - examples/load_group_example.yaml
88
- - examples/override_example_override.yaml
89
- - examples/override_example.yaml
90
114
  - examples/yaml_example.dump.yaml
115
+ - examples/yaml_example.rb
91
116
  - examples/yaml_example.yaml
92
- - examples/key_value_example.dump.cfg
93
- - examples/key_value_example.normal1.cfg
94
- - examples/key_value_example.normal2.cfg
95
- - examples/key_value_example.wacky.cfg
96
- - examples/ruby_example.rcfg
97
117
  - lib/configtoolkit.rb
98
118
  - lib/configtoolkit/baseconfig.rb
99
119
  - lib/configtoolkit/configtoolkitconfig.rb
@@ -108,38 +128,30 @@ files:
108
128
  - lib/configtoolkit/reader.rb
109
129
  - lib/configtoolkit/rubyreader.rb
110
130
  - lib/configtoolkit/types.rb
131
+ - lib/configtoolkit/version.rb
111
132
  - lib/configtoolkit/writer.rb
112
133
  - lib/configtoolkit/yamlreader.rb
113
134
  - lib/configtoolkit/yamlwriter.rb
114
135
  - rdoc_support/rdoc-2.0.0.patch
115
136
  - rdoc_support/rdoc-2.1.0.patch
116
- - test/readerwritertest.rb
117
- - test/test_baseconfig.rb
118
- - test/test_configtoolkitconfig.rb
119
- - test/test_hash.rb
120
- - test/test_keyvalue.rb
121
- - test/test_override.rb
122
- - test/test_prettyprint.rb
123
- - test/test_ruby.rb
124
- - test/test_yaml.rb
137
+ - test/bad_array_index.rcfg
125
138
  - test/bad_config.yaml
126
- - test/contained_sample.yaml
127
- - test/firewall.yaml
128
- - test/machines.yaml
129
- - test/override_sample_1.yaml
130
- - test/override_sample_2.yaml
131
- - test/sample.ruby_yaml_classes.yaml
132
- - test/sample.standard_yaml_classes.yaml
133
- - test/webserver.yaml
139
+ - test/bad_containing_object_assignment.rcfg
134
140
  - test/bad_directive.cfg
135
141
  - test/bad_include1.cfg
136
142
  - test/bad_include2.cfg
143
+ - test/bad_parameter_reference.rcfg
137
144
  - test/contained_sample.cfg
145
+ - test/contained_sample.pretty_print
146
+ - test/contained_sample.rcfg
147
+ - test/contained_sample.yaml
138
148
  - test/containers.cfg
139
149
  - test/exta_string_after_container.cfg
140
150
  - test/extra_container_closing.cfg
141
151
  - test/extra_string_after_container.cfg
142
152
  - test/extra_string_after_nested_container.cfg
153
+ - test/firewall.yaml
154
+ - test/machines.yaml
143
155
  - test/missing_array_closing.cfg
144
156
  - test/missing_array_element.cfg
145
157
  - test/missing_directive.cfg
@@ -148,20 +160,31 @@ files:
148
160
  - test/missing_hash_value.cfg
149
161
  - test/missing_include_argument.cfg
150
162
  - test/missing_key_value_delimiter.cfg
163
+ - test/override_sample_1.yaml
164
+ - test/override_sample_2.yaml
165
+ - test/readerwritertest.rb
151
166
  - test/sample.cfg
167
+ - test/sample.pretty_print
168
+ - test/sample.rcfg
169
+ - test/sample.ruby_yaml_classes.yaml
170
+ - test/sample.standard_yaml_classes.yaml
171
+ - test/test_baseconfig.rb
172
+ - test/test_configtoolkitconfig.rb
173
+ - test/test_hash.rb
174
+ - test/test_keyvalue.rb
175
+ - test/test_override.rb
176
+ - test/test_prettyprint.rb
177
+ - test/test_ruby.rb
178
+ - test/test_yaml.rb
152
179
  - test/wacky_sample1.cfg
153
180
  - test/wacky_sample2.cfg
154
181
  - test/wacky_sample3.cfg
155
182
  - test/wacky_sample4.cfg
156
- - test/contained_sample.pretty_print
157
- - test/sample.pretty_print
158
- - test/bad_array_index.rcfg
159
- - test/bad_containing_object_assignment.rcfg
160
- - test/bad_parameter_reference.rcfg
161
- - test/contained_sample.rcfg
162
- - test/sample.rcfg
183
+ - test/webserver.yaml
163
184
  has_rdoc: true
164
- homepage: This package makes sourcing information from (parsing) configuration files
185
+ homepage: http://www.rubyforge.org/projects/configtoolkit
186
+ licenses: []
187
+
165
188
  post_install_message:
166
189
  rdoc_options:
167
190
  - --main
@@ -183,9 +206,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
206
  requirements: []
184
207
 
185
208
  rubyforge_project: configtoolkit
186
- rubygems_version: 1.2.0
209
+ rubygems_version: 1.3.5
187
210
  signing_key:
188
- specification_version: 2
211
+ specification_version: 3
189
212
  summary: "This package makes sourcing information from (parsing) configuration files robust and easy! It: * Allows programmers to specify the type of data that should be loaded from a configuration file"
190
213
  test_files:
191
214
  - test/test_baseconfig.rb