redis-roc 0.5.2 → 0.5.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.
@@ -1193,9 +1193,9 @@ module ROC
1193
1193
  end
1194
1194
 
1195
1195
  def hincrby(key, field, by)
1196
- raise "value (#{by}) is not an integer" unless by.is_a?(::Integer)
1196
+ raise "value (#{by}) is not an integer" unless (by.is_a?(::Integer) || by.floor == by)
1197
1197
  val = self.hget(key, field)
1198
- new_val = val.to_i + by
1198
+ new_val = val.to_i + by.to_i
1199
1199
  self.hset(key, field, new_val)
1200
1200
  new_val
1201
1201
  end
data/lib/roc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module ROC
2
- VERSION = '0.5.2'
2
+ VERSION = '0.5.3'
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 2
9
- version: 0.5.2
8
+ - 3
9
+ version: 0.5.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ben Lund
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-08-16 00:00:00 +01:00
17
+ date: 2011-10-30 01:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency