cluster_management 0.7.7 → 0.7.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,12 +23,12 @@ class ClusterManagement::Config < Hash
23
23
  end
24
24
  end
25
25
 
26
- def self.require_attr *attrs
26
+ def self.attr_required *attrs
27
27
  attrs.each do |m|
28
28
  define_method(m){self[m] || raise("key :#{m} not defined!")}
29
29
  end
30
30
  end
31
- require_attr :scheme, :config_path, :runtime_path
31
+ attr_required :scheme, :config_path, :runtime_path
32
32
 
33
33
  protected
34
34
  def method_missing m, *args
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cluster_management
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.7
4
+ version: 0.7.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-05 00:00:00 +04:00
13
+ date: 2011-07-30 00:00:00 +04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency