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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9dd8c3c0ab00ae83d73d63aef3887f62d1d2a695399f263814ad7a5881aa980a
4
- data.tar.gz: 715304e4587a9eda64c3cb5f73a69cd72ecdbf4ee232884c61f36666ef7c1a3a
3
+ metadata.gz: cb87d22625bed26c75bd82fd284f95bfd73d3e70c1aac45ef8ef9a49c6c94fae
4
+ data.tar.gz: 51878e58e9a051dcf3f284c1a33e4eb7e3e4e0f87c19f607459e2d1107127f87
5
5
  SHA512:
6
- metadata.gz: 3bc50f4e10068d2b193747c24880dee618be8df6ab58e3093f442332f93c591796901132490a856ee955aa19cb78abaad6034eb7280e080c494676c7c36d3899
7
- data.tar.gz: 86d8dbe971e8e44a8e4854d1691078ac93a25f84fd8e482b9e84a3669457ad8886f84fc47007f199625e70fcecc1f4b1403804e38dc50acebd5c06b13b11d20b
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
- module Mongoid
5
- module Factory
6
- def from_db(*args)
7
- super(*args)
8
- rescue NameError
9
- RocketJob::Job.instantiate(attributes, selected_fields)
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::Mongoid::Factory)
14
+ ::Mongoid::Factory.extend(RocketJob::MongoidFactory)
@@ -1,3 +1,3 @@
1
1
  module RocketJob
2
- VERSION = '3.5.0'.freeze
2
+ VERSION = '3.5.1'.freeze
3
3
  end
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.0
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-07 00:00:00.000000000 Z
11
+ date: 2018-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aasm