Skip to content

Commit

Permalink
Release
Browse files Browse the repository at this point in the history
  • Loading branch information
soveran committed Apr 22, 2016
1 parent 1dff2fc commit c7a222b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,14 @@
## 3.0.2

- Fix bug created the wrong keys when indexing floats.

As reported by @slowernet, if an indexed attribute was assigned a
real value with 0 fractional part (eg. 3.0), the `tostring` function
in lua truncated the value to an integer. As a result, the index
was created with the wrong key (Model:indices:attribute:3, instead
of Model:indices:attribute:3.0). The fix is to convert all values
to strings before sending them to the Lua script.

## 3.0.1

- Adapt Lua scripts to Redis unstable.
Expand Down
2 changes: 1 addition & 1 deletion ohm.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = "ohm"
s.version = "3.0.1"
s.version = "3.0.2"
s.summary = %{Object-hash mapping library for Redis.}
s.description = %Q{Ohm is a library that allows to store an object in Redis, a persistent key-value database. It has very good performance.}
s.authors = ["Michel Martens", "Damian Janowski", "Cyril David"]
Expand Down

0 comments on commit c7a222b

Please sign in to comment.