kedama 0.1.1 → 0.1.2

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.
Files changed (3) hide show
  1. data/README +2 -2
  2. data/lib/kedama.rb +1 -1
  3. metadata +4 -4
data/README CHANGED
@@ -21,7 +21,7 @@ gem install kedama
21
21
  nodes.add('5.6.7.8:11211', 300)
22
22
  nodes.add('9.8.7.6:11211', 1500)
23
23
 
24
- hash = nodes.to_hash
24
+ hash = nodes.to_h
25
25
 
26
26
  10.times do |i|
27
27
  i = i.to_s
@@ -32,7 +32,7 @@ gem install kedama
32
32
 
33
33
  nodes.delete('5.6.7.8:11211')
34
34
 
35
- hash = nodes.to_hash
35
+ hash = nodes.to_h
36
36
 
37
37
  10.times do |i|
38
38
  i = i.to_s
data/lib/kedama.rb CHANGED
@@ -96,7 +96,7 @@ module Kedama
96
96
  @nodes.delete(name)
97
97
  end
98
98
 
99
- def to_hash
99
+ def to_h
100
100
  ConsitentHash.new(@nodes)
101
101
  end
102
102
  end # Nodes
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kedama
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - winebarrel
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-17 00:00:00 Z
18
+ date: 2011-04-18 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: |