steenzout-cfg 1.0.2 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/cfg/manager.rb +6 -6
  2. metadata +4 -4
data/lib/cfg/manager.rb CHANGED
@@ -3,8 +3,8 @@ module Steenzout
3
3
  # Class to hold gem configurations.
4
4
  class ConfigurationManager
5
5
 
6
- @@loaded_configurations = {}
7
- @@configurations = nil
6
+ @loaded_configurations = {}
7
+ @configurations = nil
8
8
 
9
9
  # Loads the configuration from the given file.
10
10
  # As convention, the configuration file should have as top symbol the gem name.
@@ -23,13 +23,13 @@ module Steenzout
23
23
 
24
24
  raise ArgumentError, "File #{filename} does not exist!" if !File.exist? filename
25
25
 
26
- if @@configurations.nil?
26
+ if @configurations.nil?
27
27
  # load configuration
28
- @@configurations = YAML.load_file(filename)
28
+ @configurations = YAML.load_file(filename)
29
29
  else
30
30
  # merge existing configurations
31
31
  YAML.load_file(filename).each {|key, value|
32
- @@configurations[key] = value
32
+ @configurations[key] = value
33
33
  }
34
34
  end
35
35
 
@@ -44,7 +44,7 @@ module Steenzout
44
44
  # @param name: the name of the gem.
45
45
  #
46
46
  def self.configuration_for_gem name
47
- @@configurations[:"#{name}"]
47
+ @configurations[:"#{name}"]
48
48
  end
49
49
 
50
50
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: steenzout-cfg
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
9
+ - 4
10
+ version: 1.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - steenzout
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-24 00:00:00 -07:00
18
+ date: 2011-03-17 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies: []
21
21