cluster 0.7.10 → 0.7.11

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.
@@ -596,7 +596,18 @@ class Amazon < Infrastructure
596
596
  def from_sdb_results(res)
597
597
  res[:items].map {|obj|
598
598
  aws_id = obj.keys.first
599
- hash = HashWithIndifferentAccess.new({:aws_id => aws_id})
599
+ # Short cut version of HashWithIndifferentAccess
600
+ hash = {'aws_id' => aws_id}
601
+ hash.default_proc = proc do |h,k|
602
+ case k
603
+ when String
604
+ sym = k.to_sym
605
+ h[sym] if h.key?(sym)
606
+ else
607
+ str = k.to_s
608
+ h[str] if h.key?(str)
609
+ end
610
+ end
600
611
 
601
612
  obj[aws_id].each do |k,v|
602
613
  v = if v.empty?
@@ -5,7 +5,7 @@ class Cluster
5
5
 
6
6
  class << self
7
7
  def version
8
- '0.7.10'
8
+ '0.7.11'
9
9
  end
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cluster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.10
4
+ version: 0.7.11
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: 2013-04-03 00:00:00.000000000 Z
12
+ date: 2013-04-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: uuidtools