flexirecord 1.0.1 → 1.0.2
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.
- data/CHANGELOG +12 -4
- data/lib/flexirecord.rb +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
- >
|
|
25
25
|
Added a lock method, to lock tables in a nicier way.
|
|
26
26
|
|
|
27
|
-
- Release of version 0.0.4
|
|
27
|
+
- Release of version 0.0.4
|
|
28
28
|
|
|
29
29
|
- 2007-02-11:
|
|
30
30
|
- >
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
'src_to_dst_attr' and 'dst_to_src_attr' arguments of
|
|
36
36
|
FlexiRecord::Reference.new are now allowed to be nil.
|
|
37
37
|
|
|
38
|
-
- Release of version 0.0.5
|
|
38
|
+
- Release of version 0.0.5
|
|
39
39
|
|
|
40
40
|
- 2007-02-16:
|
|
41
41
|
- >
|
|
42
42
|
SELECT DISTINCT has been replaced by SELECT (ALL).
|
|
43
43
|
|
|
44
|
-
- Release of version 0.0.6
|
|
44
|
+
- Release of version 0.0.6
|
|
45
45
|
|
|
46
46
|
- 2007-02-16:
|
|
47
47
|
- >
|
|
@@ -51,9 +51,17 @@
|
|
|
51
51
|
- >
|
|
52
52
|
PostgreSQL's types 'date', 'timestamp' and 'timestamptz' now get converted to a ruby Time object, when being read from the database. Ruby Time objects get converted to the following string representation, when being written to the database: 'YYYY-MM-DD HH:MM:SS.uuuuuu+/-hh', where hh is the offset in hours from UTC. This string can be (implicitly or explicitly) type casted by PostgreSQL to a Date/Time type.
|
|
53
53
|
|
|
54
|
-
- Release of version 1.0.0
|
|
54
|
+
- Release of version 1.0.0
|
|
55
55
|
|
|
56
56
|
- 2007-03-02:
|
|
57
57
|
- >
|
|
58
58
|
Fixed a bug leading to wrong microseconds in timestamps read from the database.
|
|
59
59
|
|
|
60
|
+
- Release of version 1.0.1
|
|
61
|
+
|
|
62
|
+
- 2007-03-08:
|
|
63
|
+
- >
|
|
64
|
+
Fixed a bug, which caused a runtime error, when reading negative numeric data from the database. (TODO: support floats)
|
|
65
|
+
|
|
66
|
+
- Release of version 1.0.2
|
|
67
|
+
|
data/lib/flexirecord.rb
CHANGED
|
@@ -1311,7 +1311,7 @@ module FlexiRecord
|
|
|
1311
1311
|
elsif ["text", "varchar"].include? data_type
|
|
1312
1312
|
value_string
|
|
1313
1313
|
elsif data_type == "numeric"
|
|
1314
|
-
unless value_string =~ /^([0-9]*)(\.([0-9]+)?)?$/
|
|
1314
|
+
unless value_string =~ /^([+-]?[0-9]*)(\.([0-9]+)?)?$/
|
|
1315
1315
|
raise "Unexpected format for numeric data from database."
|
|
1316
1316
|
end
|
|
1317
1317
|
if $3
|
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.
|
|
7
|
-
date: 2007-03-
|
|
6
|
+
version: 1.0.2
|
|
7
|
+
date: 2007-03-08 00:00:00 +00:00
|
|
8
8
|
summary: Object-Oriented Database Access Library (ORM layer)
|
|
9
9
|
require_paths:
|
|
10
10
|
- lib/
|