flexirecord 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/CHANGELOG +4 -3
  2. data/lib/flexirecord.rb +1 -1
  3. metadata +2 -2
data/CHANGELOG CHANGED
@@ -79,8 +79,9 @@
79
79
 
80
80
  - Release of version 1.0.4
81
81
 
82
+ - 2007-03-26:
83
+ - >
84
+ A serious bug was fixed, which caused negative numerics with a fractional part to be read incorrectly from the database.
82
85
 
83
-
84
-
85
-
86
+ - Release of version 1.0.5
86
87
 
@@ -1328,7 +1328,7 @@ module FlexiRecord
1328
1328
  raise "Unexpected format for numeric data from database."
1329
1329
  end
1330
1330
  if $3
1331
- $1.to_i + Rational($3.to_i, 10**($3.length))
1331
+ $1.to_i + Rational($3.to_i, 10**($3.length)) * (($1[0, 1] == '-') ? -1 : 1)
1332
1332
  else
1333
1333
  $1.to_i
1334
1334
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: flexirecord
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.4
7
- date: 2007-03-15 00:00:00 +00:00
6
+ version: 1.0.5
7
+ date: 2007-03-25 00:00:00 +00:00
8
8
  summary: Object-Oriented Database Access Library (ORM layer)
9
9
  require_paths:
10
10
  - lib/