delayed_job_mongoid 2.3.0 → 2.3.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
- SHA1:
3
- metadata.gz: 1fe065836eaec3db84fa083b20a3ab41fdff6729
4
- data.tar.gz: 2498d16f780f951e322a4af828718eb287db44af
2
+ SHA256:
3
+ metadata.gz: 6828c0132cd80f7eccb1f7acb686f5ef3d16254fa08ed4cb9ccb2f2db59ba349
4
+ data.tar.gz: e0d29f859a576888838447b5f6da17c7f71fda605fcd16c9ff8e0ba1c2018342
5
5
  SHA512:
6
- metadata.gz: 4a5e39815bbf5cbd4380308e37f45591debbbb25fdf6c98ce9e2cdd2d150de17619218f1b886d88956cf71d5521529e44a37df06141e9345ff720dc27a03f383
7
- data.tar.gz: 233d203872d4380c2cf79f79b26b0135c73d745b6e9bf146ba726196c9ab3ad119278b877c51e6c5b13091c6b69084f2243e1f21a07ed14991a5d6b450f334e2
6
+ metadata.gz: '0444914059ccf2ae3d96dd0cd42cdfb53ff63370a54d96ef2fb874948ea9db9c392551a58acbb8530d6287779934b32662cb69c7c3d4df7243427fd83706001d'
7
+ data.tar.gz: 7449a2effb06c3a516e6346b81809362a02158b87016d52ac33ce4da27955b2da2c18d8cb50b92872036c5a16de9b61fb8ad4bd9ae4b77c7c90901574a34a907
@@ -1,3 +1,7 @@
1
+ ### 2.3.1 (2019/02/26)
2
+
3
+ * [#77](https://github.com/collectiveidea/delayed_job_mongoid/pull/77): Support Mongoid 7.0 - [Startouf](https://github.com/Startouf).
4
+
1
5
  ### 2.3.0 (2017/02/13)
2
6
 
3
7
  * [#72](https://github.com/collectiveidea/delayed_job_mongoid/pull/72): Fix: Unknown alias: 1 (Psych::BadAlias) when referencing an object twice from the object being serialized - [@dblock](https://github.com/dblock), [@maxjacobson](https://github.com/maxjacobson).
data/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- Copyright © 2010-2015 Collective Idea & Contributors
1
+ Copyright © 2010-2017 Collective Idea & Contributors
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -2,20 +2,17 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/delayed_job_mongoid.svg)](http://badge.fury.io/rb/delayed_job_mongoid)
4
4
  [![Build Status](https://travis-ci.org/collectiveidea/delayed_job_mongoid.svg?branch=master)](https://travis-ci.org/collectiveidea/delayed_job_mongoid)
5
- [![Dependency Status](https://gemnasium.com/collectiveidea/delayed_job_mongoid.svg)](https://gemnasium.com/collectiveidea/delayed_job_mongoid)
6
5
  [![Code Climate](https://codeclimate.com/github/collectiveidea/delayed_job_mongoid.svg)](https://codeclimate.com/github/collectiveidea/delayed_job_mongoid)
7
6
  [![Coverage Status](https://coveralls.io/repos/collectiveidea/delayed_job_mongoid/badge.svg?branch=master&service=github)](https://coveralls.io/github/collectiveidea/delayed_job_mongoid?branch=master)
8
7
 
9
8
  [gem]: https://rubygems.org/gems/delayed_job_mongoid
10
9
  [travis]: http://travis-ci.org/collectiveidea/delayed_job_mongoid
11
- [gemnasium]: https://gemnasium.com/collectiveidea/delayed_job_mongoid
12
10
  [codeclimate]: https://codeclimate.com/github/collectiveidea/delayed_job_mongoid
13
11
  [coveralls]: https://coveralls.io/r/collectiveidea/delayed_job_mongoid
14
12
 
15
13
  ## Requirements
16
14
 
17
- Make sure you are using MongoDB version 1.3 or newer. `delayed_job_mongoid`
18
- uses the `findandmodify` command which is only available in recent versions.
15
+ Mongoid 3, 4, 5, 6 or 7.
19
16
 
20
17
  ## Installation
21
18
 
@@ -23,12 +20,11 @@ Add the gem to your Gemfile:
23
20
 
24
21
  gem 'delayed_job_mongoid'
25
22
 
26
- After running `bundle install`, create the indexes (and don't forget to do this
27
- on your production database):
23
+ Create the indexes (and don't forget to do this on your production database):
28
24
 
29
25
  script/rails runner 'Delayed::Backend::Mongoid::Job.create_indexes'
30
26
 
31
- To generate script/delayed_job:
27
+ To generate `script/delayed_job`:
32
28
 
33
29
  rails generate delayed_job
34
30
 
@@ -1,16 +1,14 @@
1
- # encoding: utf-8
2
-
3
1
  Gem::Specification.new do |spec|
4
2
  spec.add_dependency 'delayed_job', ['>= 3.0', '< 5']
5
- spec.add_dependency 'mongoid', ['>= 3.0', '< 7']
3
+ spec.add_dependency 'mongoid', ['>= 3.0', '< 8']
6
4
  spec.add_dependency 'mongoid-compatibility', '>= 0.4.0'
7
5
  spec.authors = ['Chris Gaffney', 'Brandon Keepers', 'Erik Michaels-Ober']
8
6
  spec.email = ['chris@collectiveidea.com', 'brandon@opensoul.com', 'sferik@gmail.com']
9
- spec.files = %w(CHANGELOG.md CONTRIBUTING.md LICENSE.md README.md delayed_job_mongoid.gemspec) + Dir['lib/**/*.rb']
7
+ spec.files = %w[CHANGELOG.md CONTRIBUTING.md LICENSE.md README.md delayed_job_mongoid.gemspec] + Dir['lib/**/*.rb']
10
8
  spec.homepage = 'http://github.com/collectiveidea/delayed_job_mongoid'
11
9
  spec.licenses = ['MIT']
12
10
  spec.name = 'delayed_job_mongoid'
13
11
  spec.require_paths = ['lib']
14
12
  spec.summary = 'Mongoid backend for delayed_job'
15
- spec.version = '2.3.0'
13
+ spec.version = '2.3.1'
16
14
  end
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  require 'delayed_job'
3
2
  require 'mongoid'
4
3
  require 'mongoid/compatibility'
@@ -37,15 +36,15 @@ module Delayed
37
36
 
38
37
  criteria = reservation_criteria worker, right_now, max_run_time
39
38
 
40
- if ::Mongoid::Compatibility::Version.mongoid5? || ::Mongoid::Compatibility::Version.mongoid6?
41
- criteria.find_one_and_update(
39
+ if ::Mongoid::Compatibility::Version.mongoid2? || ::Mongoid::Compatibility::Version.mongoid3? || ::Mongoid::Compatibility::Version.mongoid4?
40
+ criteria.find_and_modify(
42
41
  { '$set' => { locked_at: right_now, locked_by: worker.name } },
43
- return_document: :after
42
+ new: true
44
43
  )
45
44
  else
46
- criteria.find_and_modify(
45
+ criteria.find_one_and_update(
47
46
  { '$set' => { locked_at: right_now, locked_by: worker.name } },
48
- new: true
47
+ return_document: :after
49
48
  )
50
49
  end
51
50
  end
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  require 'delayed_job'
3
2
  require 'mongoid'
4
3
 
@@ -1,3 +1,3 @@
1
1
  require 'yaml'
2
2
 
3
- require File.expand_path('../psych_ext', __FILE__) unless YAML.parser.class.name =~ /syck|yecht/i
3
+ require File.expand_path('psych_ext', __dir__) unless YAML.parser.class.name =~ /syck|yecht/i
@@ -1,4 +1,3 @@
1
- # encoding: utf-8
2
1
  require 'delayed/backend/mongoid'
3
2
  require 'delayed/serialization/mongoid'
4
3
  require 'delayed_job'
metadata CHANGED
@@ -1,19 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delayed_job_mongoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Gaffney
8
8
  - Brandon Keepers
9
9
  - Erik Michaels-Ober
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-02-13 00:00:00.000000000 Z
13
+ date: 2019-02-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: delayed_job
17
16
  requirement: !ruby/object:Gem::Requirement
18
17
  requirements:
19
18
  - - ">="
@@ -22,8 +21,9 @@ dependencies:
22
21
  - - "<"
23
22
  - !ruby/object:Gem::Version
24
23
  version: '5'
25
- type: :runtime
24
+ name: delayed_job
26
25
  prerelease: false
26
+ type: :runtime
27
27
  version_requirements: !ruby/object:Gem::Requirement
28
28
  requirements:
29
29
  - - ">="
@@ -33,7 +33,6 @@ dependencies:
33
33
  - !ruby/object:Gem::Version
34
34
  version: '5'
35
35
  - !ruby/object:Gem::Dependency
36
- name: mongoid
37
36
  requirement: !ruby/object:Gem::Requirement
38
37
  requirements:
39
38
  - - ">="
@@ -41,9 +40,10 @@ dependencies:
41
40
  version: '3.0'
42
41
  - - "<"
43
42
  - !ruby/object:Gem::Version
44
- version: '7'
45
- type: :runtime
43
+ version: '8'
44
+ name: mongoid
46
45
  prerelease: false
46
+ type: :runtime
47
47
  version_requirements: !ruby/object:Gem::Requirement
48
48
  requirements:
49
49
  - - ">="
@@ -51,22 +51,22 @@ dependencies:
51
51
  version: '3.0'
52
52
  - - "<"
53
53
  - !ruby/object:Gem::Version
54
- version: '7'
54
+ version: '8'
55
55
  - !ruby/object:Gem::Dependency
56
- name: mongoid-compatibility
57
56
  requirement: !ruby/object:Gem::Requirement
58
57
  requirements:
59
58
  - - ">="
60
59
  - !ruby/object:Gem::Version
61
60
  version: 0.4.0
62
- type: :runtime
61
+ name: mongoid-compatibility
63
62
  prerelease: false
63
+ type: :runtime
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: 0.4.0
69
- description:
69
+ description:
70
70
  email:
71
71
  - chris@collectiveidea.com
72
72
  - brandon@opensoul.com
@@ -90,7 +90,7 @@ homepage: http://github.com/collectiveidea/delayed_job_mongoid
90
90
  licenses:
91
91
  - MIT
92
92
  metadata: {}
93
- post_install_message:
93
+ post_install_message:
94
94
  rdoc_options: []
95
95
  require_paths:
96
96
  - lib
@@ -105,9 +105,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  - !ruby/object:Gem::Version
106
106
  version: '0'
107
107
  requirements: []
108
- rubyforge_project:
109
- rubygems_version: 2.5.1
110
- signing_key:
108
+ rubyforge_project:
109
+ rubygems_version: 2.7.6
110
+ signing_key:
111
111
  specification_version: 4
112
112
  summary: Mongoid backend for delayed_job
113
113
  test_files: []