rocketjob 3.5.0 → 3.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rocket_job/extensions/mongoid/factory.rb +7 -8
- data/lib/rocket_job/version.rb +1 -1
- data/test/test_db.sqlite3 +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb87d22625bed26c75bd82fd284f95bfd73d3e70c1aac45ef8ef9a49c6c94fae
|
4
|
+
data.tar.gz: 51878e58e9a051dcf3f284c1a33e4eb7e3e4e0f87c19f607459e2d1107127f87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96adc5a3bcd6ad53d86a8bd01b78546318690329de4c0230a7288d233b24a7b0eac47668b880cdd6c724dc861e2c27830dd34452d938e5da4e205b5982615b5c
|
7
|
+
data.tar.gz: d0c947bef27a6b1bc238ff8f04133709cf8339d2be34c951ae9c3a5c3f41cc4110584d78aee2ce44de988372c571942b1d40423f916b4bd57be2d3e809a9c96d
|
@@ -1,15 +1,14 @@
|
|
1
1
|
require 'mongoid/factory'
|
2
2
|
|
3
3
|
module RocketJob
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
end
|
4
|
+
# Don't convert to Mongoid::Factory since it conflicts with Mongoid use.
|
5
|
+
module MongoidFactory
|
6
|
+
def from_db(klass, attributes = nil, selected_fields = nil)
|
7
|
+
super
|
8
|
+
rescue NameError
|
9
|
+
RocketJob::Job.instantiate(attributes, selected_fields)
|
11
10
|
end
|
12
11
|
end
|
13
12
|
end
|
14
13
|
|
15
|
-
::Mongoid::Factory.extend(RocketJob::
|
14
|
+
::Mongoid::Factory.extend(RocketJob::MongoidFactory)
|
data/lib/rocket_job/version.rb
CHANGED
data/test/test_db.sqlite3
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rocketjob
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Reid Morrison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aasm
|