configliere 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.textile CHANGED
@@ -1,4 +1,6 @@
1
+ h2. Version 0.2.1 2011-01-28
1
2
 
3
+ * Missing required params include their definition in error message
2
4
  * finally{} blocks don't supply a parameter any more -- use self instead.
3
5
 
4
6
  h2. Version 0.1.1 2010-08-17
data/Rakefile CHANGED
@@ -25,19 +25,24 @@ rescue LoadError
25
25
  puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
26
26
  end
27
27
 
28
- # require 'spec/rake/spectask'
29
- # Spec::Rake::SpecTask.new(:spec) do |spec|
30
- # spec.libs << 'lib' << 'spec'
31
- # spec.spec_files = FileList['spec/**/*_spec.rb']
32
- # end
33
- #
34
- # Spec::Rake::SpecTask.new(:rcov) do |spec|
35
- # spec.libs << 'lib' << 'spec'
36
- # spec.pattern = 'spec/**/*_spec.rb'
37
- # spec.rcov = true
38
- # end
39
- #
40
- # task :spec => :check_dependencies
28
+ begin
29
+ require 'spec/rake/spectask'
30
+ Spec::Rake::SpecTask.new(:spec) do |spec|
31
+ spec.libs << 'lib' << 'spec'
32
+ spec.spec_files = FileList['spec/**/*_spec.rb']
33
+ end
34
+
35
+ Spec::Rake::SpecTask.new(:rcov) do |spec|
36
+ spec.libs << 'lib' << 'spec'
37
+ spec.pattern = 'spec/**/*_spec.rb'
38
+ spec.rcov = true
39
+ end
40
+ task :spec => :check_dependencies
41
+ rescue LoadError
42
+ task :spec do
43
+ abort "Spec is not available. In order to run spec, you must: sudo gem install spec"
44
+ end
45
+ end
41
46
 
42
47
  begin
43
48
  require 'reek/adapters/rake_task'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
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.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["mrflip"]
12
- s.date = %q{2011-01-15}
12
+ s.date = %q{2011-01-28}
13
13
  s.default_executable = %q{configliere}
14
14
  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.
15
15
 
@@ -67,7 +67,7 @@ Configliere manage settings from many sources: static constants, simple config f
67
67
  ]
68
68
  s.homepage = %q{http://github.com/mrflip/configliere}
69
69
  s.require_paths = ["lib"]
70
- s.rubygems_version = %q{1.3.7}
70
+ s.rubygems_version = %q{1.4.2}
71
71
  s.summary = %q{Wise, discreet configuration management}
72
72
  s.test_files = [
73
73
  "examples/config_block_script.rb",
@@ -89,7 +89,6 @@ Configliere manage settings from many sources: static constants, simple config f
89
89
  ]
90
90
 
91
91
  if s.respond_to? :specification_version then
92
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
93
92
  s.specification_version = 3
94
93
 
95
94
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
@@ -135,7 +135,7 @@ module Configliere
135
135
  required_params.each do |param|
136
136
  missing << param if self[param].nil?
137
137
  end
138
- raise "Missing values for #{missing.map{|s| s.to_s }.sort.join(", ")}" if (! missing.empty?)
138
+ raise "Missing values for:\n #{missing.map{|s| " --" + s.to_s + " (" + description_for(s) + ") " }.sort.join("\n")}" if (! missing.empty?)
139
139
  end
140
140
 
141
141
  # all params with a value for the definable aspect
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: configliere
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 19
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
8
  - 2
8
- - 1
9
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
10
11
  platform: ruby
11
12
  authors:
12
13
  - mrflip
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2011-01-15 00:00:00 -06:00
18
+ date: 2011-01-28 00:00:00 +00:00
18
19
  default_executable: configliere
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
@@ -25,6 +26,7 @@ dependencies:
25
26
  requirements:
26
27
  - - ">="
27
28
  - !ruby/object:Gem::Version
29
+ hash: 13
28
30
  segments:
29
31
  - 1
30
32
  - 2
@@ -40,6 +42,7 @@ dependencies:
40
42
  requirements:
41
43
  - - ">="
42
44
  - !ruby/object:Gem::Version
45
+ hash: 3
43
46
  segments:
44
47
  - 0
45
48
  version: "0"
@@ -110,6 +113,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
110
113
  requirements:
111
114
  - - ">="
112
115
  - !ruby/object:Gem::Version
116
+ hash: 3
113
117
  segments:
114
118
  - 0
115
119
  version: "0"
@@ -118,13 +122,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
122
  requirements:
119
123
  - - ">="
120
124
  - !ruby/object:Gem::Version
125
+ hash: 3
121
126
  segments:
122
127
  - 0
123
128
  version: "0"
124
129
  requirements: []
125
130
 
126
131
  rubyforge_project:
127
- rubygems_version: 1.3.7
132
+ rubygems_version: 1.4.2
128
133
  signing_key:
129
134
  specification_version: 3
130
135
  summary: Wise, discreet configuration management