lafcadio 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@
16
16
  # http://lafcadio.rubyforge.org/tutorial.html.
17
17
 
18
18
  module Lafcadio
19
- Version = "0.7.2"
19
+ Version = "0.7.3"
20
20
 
21
21
  require 'lafcadio/dateTime'
22
22
  require 'lafcadio/depend'
@@ -16,7 +16,7 @@
16
16
  # http://lafcadio.rubyforge.org/tutorial.html.
17
17
 
18
18
  module Lafcadio
19
- Version = "0.7.1"
19
+ Version = "0.7.2"
20
20
 
21
21
  require 'lafcadio/dateTime'
22
22
  require 'lafcadio/depend'
@@ -47,7 +47,7 @@ module Lafcadio
47
47
  objects = objects.sort_by { |dobj| dobj.pk_id }
48
48
  end
49
49
  if (range = query.limit)
50
- objects = objects[0..(range.last - range.first)]
50
+ objects = objects[range]
51
51
  end
52
52
  objects
53
53
  end
@@ -43,9 +43,11 @@ module Lafcadio
43
43
  if ( order_by = query.order_by )
44
44
  objects = objects.sort_by { |dobj| dobj.send( order_by ) }
45
45
  objects.reverse! if query.order_by_order == Query::DESC
46
+ else
47
+ objects = objects.sort_by { |dobj| dobj.pk_id }
46
48
  end
47
49
  if (range = query.limit)
48
- objects = objects[0..(range.last - range.first)]
50
+ objects = objects[range.first..(range.last - range.first)]
49
51
  end
50
52
  objects
51
53
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.1
3
3
  specification_version: 1
4
4
  name: lafcadio
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.7.2
7
- date: 2005-02-26
6
+ version: 0.7.3
7
+ date: 2005-03-01
8
8
  summary: Lafcadio is an object-relational mapping layer
9
9
  require_paths:
10
10
  - lib