kedama 0.1.2 → 0.1.3

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 (2) hide show
  1. data/lib/kedama.rb +1 -1
  2. metadata +7 -5
@@ -88,7 +88,7 @@ module Kedama
88
88
  @nodes = {}
89
89
  end
90
90
 
91
- def add(name, weight)
91
+ def add(name, weight = 1)
92
92
  @nodes[name.to_str] = weight.to_int
93
93
  end
94
94
 
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: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - winebarrel
@@ -15,7 +15,8 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-18 00:00:00 Z
18
+ date: 2011-04-18 00:00:00 +09:00
19
+ default_executable:
19
20
  dependencies: []
20
21
 
21
22
  description: |
@@ -33,6 +34,7 @@ extra_rdoc_files: []
33
34
  files:
34
35
  - lib/kedama.rb
35
36
  - README
37
+ has_rdoc: true
36
38
  homepage: https://bitbucket.org/winebarrel/kedama
37
39
  licenses: []
38
40
 
@@ -62,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
64
  requirements: []
63
65
 
64
66
  rubyforge_project:
65
- rubygems_version: 1.7.2
67
+ rubygems_version: 1.4.2
66
68
  signing_key:
67
69
  specification_version: 3
68
70
  summary: kedama is ruby port of the libketama.