lafcadio 0.6.3 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
data/lib/lafcadio.rb CHANGED
@@ -16,7 +16,7 @@
16
16
  # http://lafcadio.rubyforge.org/tutorial.html.
17
17
 
18
18
  module Lafcadio
19
- Version = "0.6.3"
19
+ Version = "0.6.4"
20
20
 
21
21
  require 'lafcadio/dateTime'
22
22
  require 'lafcadio/depend'
data/lib/lafcadio.rb~ CHANGED
@@ -16,7 +16,7 @@
16
16
  # http://lafcadio.rubyforge.org/tutorial.html.
17
17
 
18
18
  module Lafcadio
19
- Version = "0.6.2"
19
+ Version = "0.6.3"
20
20
 
21
21
  require 'lafcadio/dateTime'
22
22
  require 'lafcadio/depend'
data/lib/lafcadio/mock.rb CHANGED
@@ -44,7 +44,7 @@ module Lafcadio
44
44
  objects = objects.sort_by { |dobj| dobj.pk_id }
45
45
  end
46
46
  if (range = query.limit)
47
- objects = objects[0..(range.last - range.first)]
47
+ objects = objects[range]
48
48
  end
49
49
  objects
50
50
  end
@@ -40,6 +40,8 @@ module Lafcadio
40
40
  if ( order_by = query.order_by )
41
41
  objects = objects.sort_by { |dobj| dobj.send( order_by ) }
42
42
  objects.reverse! if query.order_by_order == Query::DESC
43
+ else
44
+ objects = objects.sort_by { |dobj| dobj.pk_id }
43
45
  end
44
46
  if (range = query.limit)
45
47
  objects = objects[0..(range.last - range.first)]
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.6.3
7
- date: 2005-02-26
6
+ version: 0.6.4
7
+ date: 2005-03-01
8
8
  summary: Lafcadio is an object-relational mapping layer
9
9
  require_paths:
10
10
  - lib