configliere 0.4.7 → 0.4.8

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -24,6 +24,7 @@ Configliere manage settings from many sources: static constants, simple config f
24
24
  } #'
25
25
  gem.email = "coders@infochimps.org"
26
26
  gem.authors = ["infochimps", "mrflip"]
27
+ gem.executables = []
27
28
  end
28
29
  Jeweler::RubygemsDotOrgTasks.new
29
30
  rescue LoadError
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.7
1
+ 0.4.8
data/configliere.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{configliere}
8
- s.version = "0.4.7"
8
+ s.version = "0.4.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["infochimps", "mrflip"]
12
- s.date = %q{2011-06-28}
11
+ s.authors = [%q{infochimps}, %q{mrflip}]
12
+ s.date = %q{2011-08-26}
13
13
  s.description = %q{ You've got a script. It's got some settings. Some settings are for this module, some are for that module. Most of them don't change. Except on your laptop, where the paths are different. Or when you're in production mode. Or when you're testing from the command line.
14
14
 
15
15
  "" So, Consigliere of mine, I think you should tell your Don what everyone knows. "" -- Don Corleone
@@ -17,7 +17,6 @@ Gem::Specification.new do |s|
17
17
  Configliere manage settings from many sources: static constants, simple config files, environment variables, commandline options, straight ruby. You don't have to predefine anything, but you can ask configliere to type-convert, require, document or password-obscure any of its fields. Modules can define config settings independently of each other and the main program.
18
18
  }
19
19
  s.email = %q{coders@infochimps.org}
20
- s.executables = ["configliere", "configliere-decrypt", "configliere-delete", "configliere-dump", "configliere-encrypt", "configliere-list", "configliere-set"]
21
20
  s.extra_rdoc_files = [
22
21
  "LICENSE",
23
22
  "README.textile"
@@ -28,7 +27,6 @@ Configliere manage settings from many sources: static constants, simple config f
28
27
  "CHANGELOG.textile",
29
28
  "FEATURES.txt",
30
29
  "Gemfile",
31
- "Gemfile.lock",
32
30
  "LICENSE",
33
31
  "README.textile",
34
32
  "Rakefile",
@@ -77,9 +75,9 @@ Configliere manage settings from many sources: static constants, simple config f
77
75
  "spec/spec_helper.rb"
78
76
  ]
79
77
  s.homepage = %q{http://infochimps.com/labs}
80
- s.licenses = ["MIT"]
81
- s.require_paths = ["lib"]
82
- s.rubygems_version = %q{1.5.0}
78
+ s.licenses = [%q{MIT}]
79
+ s.require_paths = [%q{lib}]
80
+ s.rubygems_version = %q{1.8.6}
83
81
  s.summary = %q{Wise, discreet configuration management}
84
82
  s.test_files = [
85
83
  "examples/config_block_script.rb",
@@ -246,7 +246,6 @@ class DeepHash < Hash
246
246
  #
247
247
  def [] attr
248
248
  attr = convert_key(attr)
249
- raise if (attr == [:made])
250
249
  attr.is_a?(Array) ? deep_get(*attr) : super(attr)
251
250
  end
252
251
 
@@ -29,7 +29,7 @@ module Configliere
29
29
  self[param] = pdefs[:default] if pdefs.include?(:default)
30
30
  self.env_vars param => pdefs[:env_var] if pdefs.include?(:env_var)
31
31
  self.finally(&pdefs[:finally]) if pdefs.include?(:finally)
32
- self.finally(&block) if block
32
+ self.finally(&block) if block
33
33
  self
34
34
  end
35
35
 
@@ -131,7 +131,7 @@ module Configliere
131
131
  when ((val.to_s == 'now') && (type == DateTime)) then val = DateTime.now
132
132
  when ((val.to_s == 'now') && (type == Time)) then val = Time.now
133
133
  when [Date, Time, DateTime].include?(type) then val = type.parse(val) rescue nil
134
- else true # nothing
134
+ else warn("Unknown type #{type} given") # nothing
135
135
  end
136
136
  self[param] = val
137
137
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: configliere
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.7
5
+ version: 0.4.8
6
6
  platform: ruby
7
7
  authors:
8
8
  - infochimps
@@ -11,8 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-06-28 00:00:00 -05:00
15
- default_executable:
14
+ date: 2011-08-26 00:00:00 Z
16
15
  dependencies:
17
16
  - !ruby/object:Gem::Dependency
18
17
  name: json
@@ -105,14 +104,8 @@ dependencies:
105
104
  description: " You've got a script. It's got some settings. Some settings are for this module, some are for that module. Most of them don't change. Except on your laptop, where the paths are different. Or when you're in production mode. Or when you're testing from the command line.\n\n \"\" So, Consigliere of mine, I think you should tell your Don what everyone knows. \"\" -- Don Corleone\n\n\
106
105
  Configliere manage settings from many sources: static constants, simple config files, environment variables, commandline options, straight ruby. You don't have to predefine anything, but you can ask configliere to type-convert, require, document or password-obscure any of its fields. Modules can define config settings independently of each other and the main program.\n"
107
106
  email: coders@infochimps.org
108
- executables:
109
- - configliere
110
- - configliere-decrypt
111
- - configliere-delete
112
- - configliere-dump
113
- - configliere-encrypt
114
- - configliere-list
115
- - configliere-set
107
+ executables: []
108
+
116
109
  extensions: []
117
110
 
118
111
  extra_rdoc_files:
@@ -124,7 +117,6 @@ files:
124
117
  - CHANGELOG.textile
125
118
  - FEATURES.txt
126
119
  - Gemfile
127
- - Gemfile.lock
128
120
  - LICENSE
129
121
  - README.textile
130
122
  - Rakefile
@@ -171,7 +163,6 @@ files:
171
163
  - spec/configliere_spec.rb
172
164
  - spec/spec.opts
173
165
  - spec/spec_helper.rb
174
- has_rdoc: true
175
166
  homepage: http://infochimps.com/labs
176
167
  licenses:
177
168
  - MIT
@@ -185,7 +176,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
185
176
  requirements:
186
177
  - - ">="
187
178
  - !ruby/object:Gem::Version
188
- hash: -3025764887803996140
179
+ hash: -3607110922924291664
189
180
  segments:
190
181
  - 0
191
182
  version: "0"
@@ -198,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
189
  requirements: []
199
190
 
200
191
  rubyforge_project:
201
- rubygems_version: 1.5.0
192
+ rubygems_version: 1.8.6
202
193
  signing_key:
203
194
  specification_version: 3
204
195
  summary: Wise, discreet configuration management
data/Gemfile.lock DELETED
@@ -1,54 +0,0 @@
1
- GEM
2
- remote: http://rubygems.org/
3
- specs:
4
- RedCloth (4.2.7)
5
- diff-lcs (1.1.2)
6
- git (1.2.5)
7
- highline (1.6.1)
8
- jeweler (1.5.2)
9
- bundler (~> 1.0.0)
10
- git (>= 1.2.5)
11
- rake
12
- json (1.5.1)
13
- rake (0.8.7)
14
- rcov (0.9.9)
15
- reek (1.2.8)
16
- ruby2ruby (~> 1.2)
17
- ruby_parser (~> 2.0)
18
- sexp_processor (~> 3.0)
19
- roodi (2.1.0)
20
- ruby_parser
21
- rspec (2.5.0)
22
- rspec-core (~> 2.5.0)
23
- rspec-expectations (~> 2.5.0)
24
- rspec-mocks (~> 2.5.0)
25
- rspec-core (2.5.2)
26
- rspec-expectations (2.5.0)
27
- diff-lcs (~> 1.1.2)
28
- rspec-mocks (2.5.0)
29
- ruby2ruby (1.2.5)
30
- ruby_parser (~> 2.0)
31
- sexp_processor (~> 3.0)
32
- ruby_parser (2.0.6)
33
- sexp_processor (~> 3.0)
34
- sexp_processor (3.0.5)
35
- spork (0.9.0.rc7)
36
- watchr (0.7)
37
- yard (0.6.8)
38
-
39
- PLATFORMS
40
- ruby
41
-
42
- DEPENDENCIES
43
- RedCloth
44
- bundler (~> 1.0.12)
45
- highline (>= 1.5.2)
46
- jeweler (~> 1.5.2)
47
- json
48
- rcov (>= 0.9.9)
49
- reek
50
- roodi
51
- rspec (~> 2.5.0)
52
- spork (~> 0.9.0.rc5)
53
- watchr
54
- yard (~> 0.6.7)