cook 2.0.9 → 2.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/History.txt +4 -0
  2. data/lib/cook.rb +1 -1
  3. data/lib/rake/config.rb +4 -3
  4. metadata +4 -4
@@ -1,3 +1,7 @@
1
+ === 2.0.10 / 2015-10-21 (external GitHub)
2
+
3
+ * Fixed the reporting of missing keys in the Conf structure
4
+
1
5
  === 2.0.9 / 2014-09-16 (external GitHub)
2
6
 
3
7
  * Added Conf.retries to allow gl_run (GreenLetters based) processes
@@ -1,3 +1,3 @@
1
1
  class Cook
2
- VERSION = '2.0.9'
2
+ VERSION = '2.0.10'
3
3
  end
@@ -51,7 +51,7 @@ class ConfStack
51
51
  Rake::Application.mesg "Could not find the key [#{top[1].to_s}]";
52
52
  Rake::Application.mesg "in the configuration path [#{confPath}]\n\n";
53
53
 
54
- Rake::Application.mesg errorObject.backtrace.join("\n");
54
+ Rake::Application.mesg errorObject.backtrace.join("\n") unless errorObject.backtrace.nil?;
55
55
 
56
56
  # Now construct a more user friendly discussion of the problem for
57
57
  # novice users.
@@ -317,6 +317,7 @@ class Conf
317
317
 
318
318
  def self.method_missing(meth, *args)
319
319
  Thread.current[:confStack] = ConfStack.new(self, :Conf, args);
320
+ Thread.current[:confStack].calling(self, meth, :method_missing, args);
320
321
  meth_s = meth.to_s
321
322
  if @@data.respond_to?(meth) ||
322
323
  @@data.data.has_key?(meth) ||
@@ -324,8 +325,8 @@ class Conf
324
325
  meth_s[-1..-1] == '='then
325
326
  @@data.method_missing(meth, *args);
326
327
  else
327
- self.reportNoMethodError();
328
- #raise ConfigurationError, "No configuation value specified for Conf[#{meth.to_s}]";
328
+ Thread.current[:confStack].reportNoMethodError(
329
+ NoMethodError.new("no such key #{meth} in construct"))
329
330
  end
330
331
  end
331
332
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cook
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.9
4
+ version: 2.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-09-16 00:00:00.000000000 Z
12
+ date: 2015-10-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -130,7 +130,7 @@ dependencies:
130
130
  requirements:
131
131
  - - ~>
132
132
  - !ruby/object:Gem::Version
133
- version: '3.11'
133
+ version: '3.13'
134
134
  type: :development
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
@@ -138,7 +138,7 @@ dependencies:
138
138
  requirements:
139
139
  - - ~>
140
140
  - !ruby/object:Gem::Version
141
- version: '3.11'
141
+ version: '3.13'
142
142
  description: ! "cook is a rake extension with:\n\n1. configuration file,\n1. the ability
143
143
  to retrieve passwords from encrypted configuration files,\n1. the ability to create
144
144
  files using Erubis templates,\n1. the ablity to interact with both local and remote