beso 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/beso/job.rb +3 -1
- data/lib/beso/version.rb +1 -1
- metadata +2 -2
data/lib/beso/job.rb
CHANGED
@@ -31,7 +31,9 @@ module Beso
|
|
31
31
|
|
32
32
|
@since ||= options.delete( :since ) || first_timestamp
|
33
33
|
|
34
|
-
|
34
|
+
condition = "#{@table}.#{@timestamp} >= ?"
|
35
|
+
|
36
|
+
relation = model_class.instance_exec( &@scope ).where( condition, @since )
|
35
37
|
|
36
38
|
return nil if relation.empty?
|
37
39
|
|
data/lib/beso/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-14 00:00:00.
|
12
|
+
date: 2012-05-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|