ebisu_connection 0.0.7 → 0.0.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.
@@ -9,12 +9,12 @@ module EbisuConnection
9
9
  case conf
10
10
  when String
11
11
  @hostname, weight = conf.split(/\s*,\s*/)
12
- edit_spec = {:host => @hostname}
12
+ edit_spec = {"host" => @hostname}
13
13
  when Hash
14
- conf = symbolize_keys(conf)
15
- weight = conf.delete(:weight)
14
+ conf = stringify_keys(conf)
15
+ weight = conf.delete("weight")
16
16
  edit_spec = conf
17
- @hostname = conf[:host]
17
+ @hostname = conf["host"]
18
18
  else
19
19
  raise ArgumentError, "slaves config is invalid"
20
20
  end
@@ -37,12 +37,12 @@ module EbisuConnection
37
37
 
38
38
  private
39
39
 
40
- def symbolize_keys(hash)
41
- symbolize_hash = {}
40
+ def stringify_keys(hash)
41
+ stringify_hash = {}
42
42
  hash.each do |k,v|
43
- symbolize_hash[k.to_sym] = v
43
+ stringify_hash[k.to_s] = v
44
44
  end
45
- symbolize_hash
45
+ stringify_hash
46
46
  end
47
47
  end
48
48
 
@@ -1,3 +1,3 @@
1
1
  module EbisuConnection
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ebisu_connection
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - tsukasaoishi
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2014-01-28 00:00:00 +09:00
18
+ date: 2014-03-12 00:00:00 +09:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency