From c7a222ba4b1f7288a1f802d28b06e08a1c6d4872 Mon Sep 17 00:00:00 2001 From: Michel Martens Date: Fri, 22 Apr 2016 12:06:43 +0200 Subject: [PATCH] Release --- CHANGELOG.md | 11 +++++++++++ ohm.gemspec | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e7a6a1..9872cef 100644 --- a/CHANGELOG.md +++ b/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. diff --git a/ohm.gemspec b/ohm.gemspec index ef708cd..86c9175 100644 --- a/ohm.gemspec +++ b/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"]