delayed_job_shallow_mongoid 1.1.0 → 1.3.0
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.
- checksums.yaml +5 -5
- data/CHANGELOG.md +14 -0
- data/Gemfile +20 -10
- data/README.md +31 -4
- data/Rakefile +4 -4
- data/delayed_job_shallow_mongoid.gemspec +14 -14
- data/lib/delayed/shallow_mongoid/document_stub.rb +5 -4
- data/lib/delayed/shallow_mongoid/mongoid.rb +4 -0
- data/lib/delayed/shallow_mongoid/performable_mailer.rb +5 -2
- data/lib/delayed/shallow_mongoid/performable_method.rb +4 -2
- data/lib/delayed/shallow_mongoid/version.rb +3 -1
- data/lib/delayed/shallow_mongoid.rb +19 -7
- data/lib/delayed_job_shallow_mongoid.rb +2 -0
- metadata +23 -91
- data/.travis.yml +0 -18
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 06467d32c7321057a0695f4ecf5236a255990d48c785474b71804c03c9813cbd
|
|
4
|
+
data.tar.gz: 5e758ecd706d42f29ecc4e0b92ad1c42acbd2390c8bef99c681825c11f03f0af
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cb0c512e21499ccdcaccf4c6d79a5fd3d61498bd0b7a98a205f53c20165b4e4085262bfb544ebe9b11e60b9f075b31c8564ecf5a3582bb16594f9d6777c956dc
|
|
7
|
+
data.tar.gz: 3f0aac65fd3abb9cb404dd5857b45120a8f59e2ead205eff8461c9eb11df0e9e121e213ccbb28a80511e39a5120dbf425102fccaf75ed2defcdd89609bcf64e1
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
1.3.0 (2026-10-28)
|
|
2
|
+
------------------
|
|
3
|
+
|
|
4
|
+
* [#19](https://github.com/mongoid/delayed_job_shallow_mongoid/pull/19): Add Danger changelog review and fork-safe pull request comments through GitHub Actions - [@dblock](https://github.com/dblock).
|
|
5
|
+
* [#18](https://github.com/mongoid/delayed_job_shallow_mongoid/pull/18): Add GitHub Actions compatibility testing for Mongoid 6-9, Ruby 2.7/3.3/3.4/4.0, and compatible Rails versions, replacing Travis CI - [@dblock](https://github.com/dblock).
|
|
6
|
+
* [#18](https://github.com/mongoid/delayed_job_shallow_mongoid/pull/18): Add line/branch coverage, HTML/LCOV reports, and Coveralls reporting - [@dblock](https://github.com/dblock).
|
|
7
|
+
* [#18](https://github.com/mongoid/delayed_job_shallow_mongoid/pull/18): Support current Mongoid embedded-association metadata and skip jobs whose embedded documents were removed before execution - [@dblock](https://github.com/dblock).
|
|
8
|
+
* [#18](https://github.com/mongoid/delayed_job_shallow_mongoid/pull/18): Refresh development dependencies, RuboCop, gem metadata, and contributor documentation. Require Ruby 2.7 or newer - [@dblock](https://github.com/dblock).
|
|
9
|
+
|
|
10
|
+
1.2.0 (2017-04-07)
|
|
11
|
+
------------
|
|
12
|
+
|
|
13
|
+
* [#12](https://github.com/joeyAghion/delayed_job_shallow_mongoid/pull/12): Support Mongoid 6 - [@yuki24](https://github.com/yuki24).
|
|
14
|
+
|
|
1
15
|
1.1.0 (2015-09-25)
|
|
2
16
|
------------------
|
|
3
17
|
|
data/Gemfile
CHANGED
|
@@ -1,14 +1,24 @@
|
|
|
1
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
source 'https://rubygems.org'
|
|
2
4
|
|
|
3
5
|
gemspec
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
gem '
|
|
7
|
+
gem 'mongoid', ENV.fetch('MONGOID_VERSION', '~> 9.0')
|
|
8
|
+
|
|
9
|
+
rails_version = ENV.fetch('RAILS_VERSION', '~> 8.1')
|
|
10
|
+
gem 'actionmailer', rails_version
|
|
11
|
+
gem 'activemodel', rails_version
|
|
12
|
+
gem 'activesupport', rails_version
|
|
13
|
+
|
|
14
|
+
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3.1')
|
|
15
|
+
gem 'danger', '~> 9.0'
|
|
16
|
+
gem 'danger-changelog', '~> 0.10'
|
|
17
|
+
gem 'danger-pr-comment', '~> 0.1.1'
|
|
14
18
|
end
|
|
19
|
+
|
|
20
|
+
gem 'rake', '~> 13.0'
|
|
21
|
+
gem 'rspec', '~> 3.13'
|
|
22
|
+
gem 'rubocop', '~> 1.75'
|
|
23
|
+
gem 'simplecov', '~> 0.22'
|
|
24
|
+
gem 'simplecov-lcov', '~> 0.8'
|
data/README.md
CHANGED
|
@@ -1,17 +1,44 @@
|
|
|
1
1
|
delayed_job_shallow_mongoid
|
|
2
2
|
===========================
|
|
3
3
|
|
|
4
|
-
[](https://github.com/mongoid/delayed_job_shallow_mongoid/actions/workflows/test.yml)
|
|
5
|
+
[](https://github.com/mongoid/delayed_job_shallow_mongoid/actions/workflows/rubocop.yml)
|
|
6
|
+
[](https://coveralls.io/github/mongoid/delayed_job_shallow_mongoid?branch=master)
|
|
7
|
+
[](https://rubygems.org/gems/delayed_job_shallow_mongoid)
|
|
5
8
|
|
|
6
|
-
This library short-circuits serialization of [Mongoid](
|
|
9
|
+
This library short-circuits serialization of [Mongoid](https://www.mongodb.com/docs/mongoid/current/) model instances when a delayed job is called on them, or when they're passed as arguments to a delayed job. Rather than generate and store the fully-serialized YAML, a simple stub is stored. When the job is run, the stub is recognized and a `find` is done to look up the underlying document. If a referenced model isn't found at this point, the job simply does nothing.
|
|
7
10
|
|
|
8
|
-
|
|
11
|
+
Requires Ruby 2.7 or newer. CI exercises Mongoid 6-9, Rails 5.2/6.1/7.2/8.0/8.1, and Ruby 2.7/3.3/3.4/4.0 in compatible combinations. Mongoid 6 and 7 are tested with MongoDB 4.4; Mongoid 8 and 9 use MongoDB 8.0. Legacy combinations are compatibility checks, not recommendations for new applications.
|
|
12
|
+
|
|
13
|
+
Development
|
|
14
|
+
-----------
|
|
15
|
+
|
|
16
|
+
The default bundle uses Mongoid 9 and Rails 8.1. Use Ruby 3.3 or newer and start MongoDB before running the suite:
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
bundle install
|
|
20
|
+
bundle exec rake
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Tests use `mongodb://127.0.0.1:27017/delayed_job_shallow_mongoid_test` by default. Override `MONGODB_URI` to use an isolated test database. **The suite purges and drops this database; never point it at development or production data.**
|
|
24
|
+
|
|
25
|
+
To select another compatible dependency combination:
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
MONGOID_VERSION='~> 8.1' RAILS_VERSION='~> 7.2' bundle update
|
|
29
|
+
MONGOID_VERSION='~> 8.1' RAILS_VERSION='~> 7.2' bundle exec rake
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Every test run writes HTML coverage to `coverage/index.html` and LCOV coverage to `coverage/lcov.info`, enforcing at least 90% line and 80% branch coverage. GitHub Actions uploads coverage artifacts and reports the compatibility jobs to Coveralls.
|
|
9
33
|
|
|
10
34
|
Contributions
|
|
11
35
|
-------------
|
|
12
36
|
|
|
13
37
|
* Contributions encouraged. Feature branches appreciated.
|
|
14
|
-
*
|
|
38
|
+
* Add user-facing changes to the next release in `CHANGELOG.md`, linking the issue or pull request and crediting the contributor. Danger checks new and edited entries without reformatting historical releases, and reminds contributors to update the changelog; README-only changes are exempt. Changelog review runs separately on Ruby 3.4 and publishes a report on pull requests, including forks, using GitHub's built-in token; no personal access token or shared Mongoid Danger gem is required.
|
|
39
|
+
* Development generously supported by [Artsy](https://www.artsy.net).
|
|
40
|
+
|
|
41
|
+
Maintainers: see [RELEASING.md](RELEASING.md) for release preparation, publishing, and verification.
|
|
15
42
|
|
|
16
43
|
Copyright
|
|
17
44
|
---------
|
data/Rakefile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require 'rubygems'
|
|
4
4
|
require 'bundler'
|
|
@@ -6,8 +6,8 @@ require 'bundler/gem_tasks'
|
|
|
6
6
|
begin
|
|
7
7
|
Bundler.setup(:default, :development)
|
|
8
8
|
rescue Bundler::BundlerError => e
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
warn e.message
|
|
10
|
+
warn 'Run `bundle install` to install missing gems'
|
|
11
11
|
exit e.status_code
|
|
12
12
|
end
|
|
13
13
|
require 'rake'
|
|
@@ -21,4 +21,4 @@ end
|
|
|
21
21
|
require 'rubocop/rake_task'
|
|
22
22
|
RuboCop::RakeTask.new(:rubocop)
|
|
23
23
|
|
|
24
|
-
task default: [
|
|
24
|
+
task default: %i[rubocop spec]
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
#
|
|
1
|
+
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
lib = File.expand_path('
|
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
require 'delayed/shallow_mongoid/version'
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = 'delayed_job_shallow_mongoid'
|
|
9
9
|
s.version = Delayed::ShallowMongoid::VERSION
|
|
10
|
+
s.required_ruby_version = '>= 2.7'
|
|
10
11
|
|
|
11
12
|
s.authors = ['Joey Aghion', 'Daniel Doubrovkine']
|
|
12
13
|
s.description = 'When the object or arg to a delayed_job is a Mongoid document, store only a small stub of the object instead of the full serialization.'
|
|
@@ -17,7 +18,6 @@ Gem::Specification.new do |s|
|
|
|
17
18
|
]
|
|
18
19
|
s.files = Dir[
|
|
19
20
|
'.document',
|
|
20
|
-
'.travis.yml',
|
|
21
21
|
'CHANGELOG.md',
|
|
22
22
|
'Gemfile',
|
|
23
23
|
'LICENSE.txt',
|
|
@@ -26,19 +26,19 @@ Gem::Specification.new do |s|
|
|
|
26
26
|
'delayed_job_shallow_mongoid.gemspec',
|
|
27
27
|
'lib/**/*'
|
|
28
28
|
]
|
|
29
|
-
s.homepage = '
|
|
29
|
+
s.homepage = 'https://github.com/mongoid/delayed_job_shallow_mongoid'
|
|
30
|
+
s.metadata = {
|
|
31
|
+
'source_code_uri' => s.homepage,
|
|
32
|
+
'bug_tracker_uri' => "#{s.homepage}/issues",
|
|
33
|
+
'changelog_uri' => "#{s.homepage}/blob/master/CHANGELOG.md",
|
|
34
|
+
'rubygems_mfa_required' => 'true'
|
|
35
|
+
}
|
|
30
36
|
s.licenses = ['MIT']
|
|
31
37
|
s.require_paths = ['lib']
|
|
32
38
|
s.summary = 'More efficient Mongoid document serialization for delayed_job.'
|
|
33
39
|
|
|
34
|
-
s.
|
|
35
|
-
s.
|
|
36
|
-
s.
|
|
37
|
-
s.
|
|
38
|
-
s.add_runtime_dependency('activesupport', ['>= 3.2'])
|
|
39
|
-
s.add_development_dependency('actionmailer', ['>= 0'])
|
|
40
|
-
s.add_development_dependency('shoulda', ['>= 0'])
|
|
41
|
-
s.add_development_dependency('rake', ['~> 10.0'])
|
|
42
|
-
s.add_development_dependency('rspec', ['>= 3.0'])
|
|
43
|
-
s.add_development_dependency('rubocop', ['0.34.2'])
|
|
40
|
+
s.add_dependency('activesupport', ['>= 3.2'])
|
|
41
|
+
s.add_dependency('delayed_job', ['>= 3.0'])
|
|
42
|
+
s.add_dependency('delayed_job_mongoid', ['>= 2.0'])
|
|
43
|
+
s.add_dependency('mongoid', ['>= 3.0'])
|
|
44
44
|
end
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
module Delayed
|
|
2
4
|
module ShallowMongoid
|
|
3
5
|
DocumentStub = Struct.new(:klass, :id, :selector) do
|
|
4
6
|
def description
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
s.is_a?(Array) ? "#{s.first}(#{s[1..-1].map(&:inspect).join(', ')})" : s
|
|
8
|
-
end.join('.') if selector && selector.any?
|
|
7
|
+
path = (selector || []).map do |step|
|
|
8
|
+
step.is_a?(Array) ? "#{step.first}(#{step[1..].map(&:inspect).join(', ')})" : step
|
|
9
9
|
end
|
|
10
|
+
["#{klass}[#{id}]", *path].join('.')
|
|
10
11
|
end
|
|
11
12
|
end
|
|
12
13
|
end
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
module Delayed
|
|
2
4
|
module ShallowMongoid
|
|
3
5
|
def self.mongoid3?
|
|
@@ -7,6 +9,8 @@ module Delayed
|
|
|
7
9
|
def self.metadata(instance)
|
|
8
10
|
if Delayed::ShallowMongoid.mongoid3?
|
|
9
11
|
instance.metadata
|
|
12
|
+
elsif instance.respond_to?(:_association)
|
|
13
|
+
instance._association
|
|
10
14
|
else
|
|
11
15
|
instance.relation_metadata
|
|
12
16
|
end
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
module Delayed
|
|
2
4
|
class PerformableMailer < PerformableMethod
|
|
3
5
|
def perform
|
|
4
6
|
klass = ShallowMongoid.load(object)
|
|
5
7
|
delayed_arguments = *args.map { |a| ShallowMongoid.load(a) }
|
|
6
|
-
klass.send(method_name, *delayed_arguments)
|
|
8
|
+
message = klass.send(method_name, *delayed_arguments)
|
|
9
|
+
message.respond_to?(:deliver_now) ? message.deliver_now : message.deliver
|
|
7
10
|
rescue Delayed::ShallowMongoid::Errors::DocumentNotFound
|
|
8
|
-
|
|
11
|
+
true # do nothing if document has been removed
|
|
9
12
|
end
|
|
10
13
|
end
|
|
11
14
|
end
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
module Delayed
|
|
2
4
|
class PerformableMethod
|
|
3
5
|
attr_accessor :object, :method_name, :args
|
|
4
6
|
|
|
5
7
|
def initialize(object, method_name, args)
|
|
6
|
-
|
|
8
|
+
raise NoMethodError, "undefined method `#{method_name}' for #{object.inspect}" unless object.respond_to?(method_name, true)
|
|
7
9
|
|
|
8
10
|
self.object = ShallowMongoid.dump(object)
|
|
9
11
|
self.args = args.map { |a| ShallowMongoid.dump(a) }
|
|
@@ -15,7 +17,7 @@ module Delayed
|
|
|
15
17
|
delayed_arguments = *args.map { |a| ShallowMongoid.load(a) }
|
|
16
18
|
klass.send(method_name, *delayed_arguments)
|
|
17
19
|
rescue Delayed::ShallowMongoid::Errors::DocumentNotFound
|
|
18
|
-
|
|
20
|
+
true # do nothing if document has been removed
|
|
19
21
|
end
|
|
20
22
|
|
|
21
23
|
def display_name
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
module Delayed
|
|
2
4
|
module ShallowMongoid
|
|
3
5
|
module Errors
|
|
@@ -8,6 +10,7 @@ module Delayed
|
|
|
8
10
|
def self.dump(arg)
|
|
9
11
|
return arg unless arg.is_a?(::Mongoid::Document) && arg.persisted?
|
|
10
12
|
return arg if arg._updates.any? && !Delayed::Worker.delay_jobs
|
|
13
|
+
|
|
11
14
|
if arg.embedded?
|
|
12
15
|
Delayed::ShallowMongoid::DocumentStub.new(arg._root.class, arg._root._id.to_s, selector_from(arg))
|
|
13
16
|
else
|
|
@@ -17,16 +20,19 @@ module Delayed
|
|
|
17
20
|
|
|
18
21
|
def self.load(arg)
|
|
19
22
|
return arg unless arg.is_a?(Delayed::ShallowMongoid::DocumentStub)
|
|
23
|
+
|
|
20
24
|
begin
|
|
21
25
|
result = arg.klass.find(arg.id)
|
|
22
|
-
|
|
26
|
+
raise Delayed::ShallowMongoid::Errors::DocumentNotFound unless result
|
|
27
|
+
|
|
28
|
+
(arg.selector || []).each do |message|
|
|
29
|
+
result = result.send(*message)
|
|
30
|
+
raise Delayed::ShallowMongoid::Errors::DocumentNotFound unless result
|
|
31
|
+
end
|
|
23
32
|
rescue Mongoid::Errors::DocumentNotFound
|
|
24
33
|
raise Delayed::ShallowMongoid::Errors::DocumentNotFound
|
|
25
34
|
end
|
|
26
|
-
|
|
27
|
-
result = result.send(*message)
|
|
28
|
-
end
|
|
29
|
-
fail Delayed::ShallowMongoid::Errors::DocumentNotFound unless result
|
|
35
|
+
|
|
30
36
|
result
|
|
31
37
|
end
|
|
32
38
|
|
|
@@ -35,8 +41,14 @@ module Delayed
|
|
|
35
41
|
def self.selector_from(doc)
|
|
36
42
|
[].tap do |selector|
|
|
37
43
|
while doc._parent
|
|
38
|
-
|
|
39
|
-
|
|
44
|
+
association = Delayed::ShallowMongoid.metadata(doc)
|
|
45
|
+
many = if association.respond_to?(:macro)
|
|
46
|
+
association.macro == :embeds_many
|
|
47
|
+
else
|
|
48
|
+
association.is_a?(::Mongoid::Association::Embedded::EmbedsMany)
|
|
49
|
+
end
|
|
50
|
+
selector.unshift ['find', doc._id.to_s] if many
|
|
51
|
+
selector.unshift association.key
|
|
40
52
|
doc = doc._parent
|
|
41
53
|
end
|
|
42
54
|
end
|
metadata
CHANGED
|
@@ -1,46 +1,32 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: delayed_job_shallow_mongoid
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Joey Aghion
|
|
8
8
|
- Daniel Doubrovkine
|
|
9
|
-
autorequire:
|
|
9
|
+
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2026-10-28 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
|
-
name:
|
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
|
17
|
-
requirements:
|
|
18
|
-
- - ">="
|
|
19
|
-
- !ruby/object:Gem::Version
|
|
20
|
-
version: '3.0'
|
|
21
|
-
type: :runtime
|
|
22
|
-
prerelease: false
|
|
23
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
24
|
-
requirements:
|
|
25
|
-
- - ">="
|
|
26
|
-
- !ruby/object:Gem::Version
|
|
27
|
-
version: '3.0'
|
|
28
|
-
- !ruby/object:Gem::Dependency
|
|
29
|
-
name: delayed_job_mongoid
|
|
15
|
+
name: activesupport
|
|
30
16
|
requirement: !ruby/object:Gem::Requirement
|
|
31
17
|
requirements:
|
|
32
18
|
- - ">="
|
|
33
19
|
- !ruby/object:Gem::Version
|
|
34
|
-
version: '2
|
|
20
|
+
version: '3.2'
|
|
35
21
|
type: :runtime
|
|
36
22
|
prerelease: false
|
|
37
23
|
version_requirements: !ruby/object:Gem::Requirement
|
|
38
24
|
requirements:
|
|
39
25
|
- - ">="
|
|
40
26
|
- !ruby/object:Gem::Version
|
|
41
|
-
version: '2
|
|
27
|
+
version: '3.2'
|
|
42
28
|
- !ruby/object:Gem::Dependency
|
|
43
|
-
name:
|
|
29
|
+
name: delayed_job
|
|
44
30
|
requirement: !ruby/object:Gem::Requirement
|
|
45
31
|
requirements:
|
|
46
32
|
- - ">="
|
|
@@ -54,89 +40,33 @@ dependencies:
|
|
|
54
40
|
- !ruby/object:Gem::Version
|
|
55
41
|
version: '3.0'
|
|
56
42
|
- !ruby/object:Gem::Dependency
|
|
57
|
-
name:
|
|
43
|
+
name: delayed_job_mongoid
|
|
58
44
|
requirement: !ruby/object:Gem::Requirement
|
|
59
45
|
requirements:
|
|
60
46
|
- - ">="
|
|
61
47
|
- !ruby/object:Gem::Version
|
|
62
|
-
version: '
|
|
48
|
+
version: '2.0'
|
|
63
49
|
type: :runtime
|
|
64
50
|
prerelease: false
|
|
65
51
|
version_requirements: !ruby/object:Gem::Requirement
|
|
66
52
|
requirements:
|
|
67
53
|
- - ">="
|
|
68
54
|
- !ruby/object:Gem::Version
|
|
69
|
-
version: '
|
|
70
|
-
- !ruby/object:Gem::Dependency
|
|
71
|
-
name: actionmailer
|
|
72
|
-
requirement: !ruby/object:Gem::Requirement
|
|
73
|
-
requirements:
|
|
74
|
-
- - ">="
|
|
75
|
-
- !ruby/object:Gem::Version
|
|
76
|
-
version: '0'
|
|
77
|
-
type: :development
|
|
78
|
-
prerelease: false
|
|
79
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
80
|
-
requirements:
|
|
81
|
-
- - ">="
|
|
82
|
-
- !ruby/object:Gem::Version
|
|
83
|
-
version: '0'
|
|
84
|
-
- !ruby/object:Gem::Dependency
|
|
85
|
-
name: shoulda
|
|
86
|
-
requirement: !ruby/object:Gem::Requirement
|
|
87
|
-
requirements:
|
|
88
|
-
- - ">="
|
|
89
|
-
- !ruby/object:Gem::Version
|
|
90
|
-
version: '0'
|
|
91
|
-
type: :development
|
|
92
|
-
prerelease: false
|
|
93
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
94
|
-
requirements:
|
|
95
|
-
- - ">="
|
|
96
|
-
- !ruby/object:Gem::Version
|
|
97
|
-
version: '0'
|
|
98
|
-
- !ruby/object:Gem::Dependency
|
|
99
|
-
name: rake
|
|
100
|
-
requirement: !ruby/object:Gem::Requirement
|
|
101
|
-
requirements:
|
|
102
|
-
- - "~>"
|
|
103
|
-
- !ruby/object:Gem::Version
|
|
104
|
-
version: '10.0'
|
|
105
|
-
type: :development
|
|
106
|
-
prerelease: false
|
|
107
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
108
|
-
requirements:
|
|
109
|
-
- - "~>"
|
|
110
|
-
- !ruby/object:Gem::Version
|
|
111
|
-
version: '10.0'
|
|
55
|
+
version: '2.0'
|
|
112
56
|
- !ruby/object:Gem::Dependency
|
|
113
|
-
name:
|
|
57
|
+
name: mongoid
|
|
114
58
|
requirement: !ruby/object:Gem::Requirement
|
|
115
59
|
requirements:
|
|
116
60
|
- - ">="
|
|
117
61
|
- !ruby/object:Gem::Version
|
|
118
62
|
version: '3.0'
|
|
119
|
-
type: :
|
|
63
|
+
type: :runtime
|
|
120
64
|
prerelease: false
|
|
121
65
|
version_requirements: !ruby/object:Gem::Requirement
|
|
122
66
|
requirements:
|
|
123
67
|
- - ">="
|
|
124
68
|
- !ruby/object:Gem::Version
|
|
125
69
|
version: '3.0'
|
|
126
|
-
- !ruby/object:Gem::Dependency
|
|
127
|
-
name: rubocop
|
|
128
|
-
requirement: !ruby/object:Gem::Requirement
|
|
129
|
-
requirements:
|
|
130
|
-
- - '='
|
|
131
|
-
- !ruby/object:Gem::Version
|
|
132
|
-
version: 0.34.2
|
|
133
|
-
type: :development
|
|
134
|
-
prerelease: false
|
|
135
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
136
|
-
requirements:
|
|
137
|
-
- - '='
|
|
138
|
-
- !ruby/object:Gem::Version
|
|
139
|
-
version: 0.34.2
|
|
140
70
|
description: When the object or arg to a delayed_job is a Mongoid document, store
|
|
141
71
|
only a small stub of the object instead of the full serialization.
|
|
142
72
|
email: joey@aghion.com
|
|
@@ -147,7 +77,6 @@ extra_rdoc_files:
|
|
|
147
77
|
- README.md
|
|
148
78
|
files:
|
|
149
79
|
- ".document"
|
|
150
|
-
- ".travis.yml"
|
|
151
80
|
- CHANGELOG.md
|
|
152
81
|
- Gemfile
|
|
153
82
|
- LICENSE.txt
|
|
@@ -161,11 +90,15 @@ files:
|
|
|
161
90
|
- lib/delayed/shallow_mongoid/performable_method.rb
|
|
162
91
|
- lib/delayed/shallow_mongoid/version.rb
|
|
163
92
|
- lib/delayed_job_shallow_mongoid.rb
|
|
164
|
-
homepage:
|
|
93
|
+
homepage: https://github.com/mongoid/delayed_job_shallow_mongoid
|
|
165
94
|
licenses:
|
|
166
95
|
- MIT
|
|
167
|
-
metadata:
|
|
168
|
-
|
|
96
|
+
metadata:
|
|
97
|
+
source_code_uri: https://github.com/mongoid/delayed_job_shallow_mongoid
|
|
98
|
+
bug_tracker_uri: https://github.com/mongoid/delayed_job_shallow_mongoid/issues
|
|
99
|
+
changelog_uri: https://github.com/mongoid/delayed_job_shallow_mongoid/blob/master/CHANGELOG.md
|
|
100
|
+
rubygems_mfa_required: 'true'
|
|
101
|
+
post_install_message:
|
|
169
102
|
rdoc_options: []
|
|
170
103
|
require_paths:
|
|
171
104
|
- lib
|
|
@@ -173,16 +106,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
173
106
|
requirements:
|
|
174
107
|
- - ">="
|
|
175
108
|
- !ruby/object:Gem::Version
|
|
176
|
-
version: '
|
|
109
|
+
version: '2.7'
|
|
177
110
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
111
|
requirements:
|
|
179
112
|
- - ">="
|
|
180
113
|
- !ruby/object:Gem::Version
|
|
181
114
|
version: '0'
|
|
182
115
|
requirements: []
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
specification_version: 3
|
|
116
|
+
rubygems_version: 3.5.22
|
|
117
|
+
signing_key:
|
|
118
|
+
specification_version: 4
|
|
187
119
|
summary: More efficient Mongoid document serialization for delayed_job.
|
|
188
120
|
test_files: []
|