pigeon 0.9.2 → 0.9.2.1
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/VERSION +1 -1
- data/lib/pigeon/task.rb +2 -2
- data/pigeon.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.9.2
|
|
1
|
+
0.9.2.1
|
data/lib/pigeon/task.rb
CHANGED
|
@@ -80,7 +80,7 @@ class Pigeon::Task
|
|
|
80
80
|
# Returns a numerical priority order. If redefined in a subclass,
|
|
81
81
|
# should return a comparable value.
|
|
82
82
|
def priority
|
|
83
|
-
@created_at
|
|
83
|
+
@created_at.to_f
|
|
84
84
|
end
|
|
85
85
|
|
|
86
86
|
def inspect
|
|
@@ -88,7 +88,7 @@ class Pigeon::Task
|
|
|
88
88
|
end
|
|
89
89
|
|
|
90
90
|
def <=>(task)
|
|
91
|
-
self.priority
|
|
91
|
+
self.priority <=> task.priority
|
|
92
92
|
end
|
|
93
93
|
|
|
94
94
|
protected
|
data/pigeon.gemspec
CHANGED