delayed_job 4.1.9 → 4.1.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c2e880a669ae56ceb7d75aa435f7a24540f3ff1669d5f0513eb82d7418cbcb5
4
- data.tar.gz: aa5972d6556772c30eae6bff54bfa6fe02216d532af37d780f4da58c3beff702
3
+ metadata.gz: a3ba5417c14434bc0118cd8fea79d9203e7e1b372d1b9d0a4975cfa641014194
4
+ data.tar.gz: 8f232109cfee54e7d15777529998927ab5b286d53d1c37573c407a31e8cbbcc8
5
5
  SHA512:
6
- metadata.gz: edc7f370dc4f2783ada28648641be2274fee0adc260d2f4f230a999884850c5cff6aa5086b5df56c0be288ac23dd9edc997b48dc24b378ab8b8c99bf9e74107f
7
- data.tar.gz: 3e5162db607ddf2d9b35c4a931deea4dfd494a683730652b14d067b911717c4bb8484205cec85190c7a695dba01ef68d405e6070ec961471fd9c32630c0e352c
6
+ metadata.gz: 6ef347b8c7a4408580e89fa38a6c44d3570907a72eb0219b5eac851fcadd22c206b2c266a2ec53532c909e6bceb7f0d826e8035532de17d165ad8552e5cf0bf4
7
+ data.tar.gz: 7d15bb2a110efc5f04c22030cb14da4bee655545f79748af68e0ab130a8993b849189df66be860594f6e1060e4e02947e68054a37c7959f116960c1f15262159
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ 4.1.10 - 2022-01-17
2
+ ===================
3
+ * Support for Rails 7.0. NOTE: If you are using Delayed Job independent of Rails, Active Support 7 has dropped classic dependency autoloading. You will need to add and setup zeitwerk for autoloading to continue working in ActiveSupport 7.
4
+
1
5
  4.1.9 - 2020-12-09
2
6
  ==================
3
7
  * Support for Rails 6.1
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  **If you're viewing this at https://github.com/collectiveidea/delayed_job,
2
2
  you're reading the documentation for the master branch.
3
3
  [View documentation for the latest release
4
- (4.1.9).](https://github.com/collectiveidea/delayed_job/tree/v4.1.9)**
4
+ (4.1.10).](https://github.com/collectiveidea/delayed_job/tree/v4.1.10)**
5
5
 
6
6
  Delayed::Job
7
7
  ============
data/delayed_job.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  Gem::Specification.new do |spec|
4
- spec.add_dependency 'activesupport', ['>= 3.0', '< 6.2']
4
+ spec.add_dependency 'activesupport', ['>= 3.0', '< 8.0']
5
5
  spec.authors = ['Brandon Keepers', 'Brian Ryckbost', 'Chris Gaffney', 'David Genord II', 'Erik Michaels-Ober', 'Matt Griffin', 'Steve Richert', 'Tobias Lütke']
6
6
  spec.description = 'Delayed_job (or DJ) encapsulates the common pattern of asynchronously executing longer tasks in the background. It is a direct extraction from Shopify where the job table is responsible for a multitude of core tasks.'
7
7
  spec.email = ['brian@collectiveidea.com']
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.require_paths = ['lib']
14
14
  spec.summary = 'Database-backed asynchronous priority queue system -- Extracted from Shopify'
15
15
  spec.test_files = Dir.glob('spec/**/*')
16
- spec.version = '4.1.9'
16
+ spec.version = '4.1.10'
17
17
  spec.metadata = {
18
18
  'changelog_uri' => 'https://github.com/collectiveidea/delayed_job/blob/master/CHANGELOG.md',
19
19
  'bug_tracker_uri' => 'https://github.com/collectiveidea/delayed_job/issues',
data/spec/helper.rb CHANGED
@@ -47,8 +47,21 @@ end
47
47
 
48
48
  Delayed::Worker.backend = :test
49
49
 
50
- # Add this directory so the ActiveSupport autoloading works
51
- ActiveSupport::Dependencies.autoload_paths << File.dirname(__FILE__)
50
+ if ActiveSupport::VERSION::MAJOR < 7
51
+ require 'active_support/dependencies'
52
+
53
+ # Add this directory so the ActiveSupport autoloading works
54
+ ActiveSupport::Dependencies.autoload_paths << File.dirname(__FILE__)
55
+ else
56
+ # Rails 7 dropped classic dependency auto-loading. This does a basic
57
+ # zeitwerk setup to test against zeitwerk directly as the Rails zeitwerk
58
+ # setup is intertwined in the application boot process.
59
+ require 'zeitwerk'
60
+
61
+ loader = Zeitwerk::Loader.new
62
+ loader.push_dir File.dirname(__FILE__)
63
+ loader.setup
64
+ end
52
65
 
53
66
  # Used to test interactions between DJ and an ORM
54
67
  ActiveRecord::Base.establish_connection :adapter => 'sqlite3', :database => ':memory:'
@@ -25,7 +25,7 @@ describe 'YAML' do
25
25
  it 'autoloads the class of an anonymous struct' do
26
26
  expect do
27
27
  yaml = "--- !ruby/struct\nn: 1\n"
28
- object = YAML.load(yaml)
28
+ object = load_with_delayed_visitor(yaml)
29
29
  expect(object).to be_kind_of(Struct)
30
30
  expect(object.n).to eq(1)
31
31
  end.not_to raise_error
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delayed_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.9
4
+ version: 4.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Keepers
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2020-12-09 00:00:00.000000000 Z
18
+ date: 2022-01-18 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: activesupport
@@ -26,7 +26,7 @@ dependencies:
26
26
  version: '3.0'
27
27
  - - "<"
28
28
  - !ruby/object:Gem::Version
29
- version: '6.2'
29
+ version: '8.0'
30
30
  type: :runtime
31
31
  prerelease: false
32
32
  version_requirements: !ruby/object:Gem::Requirement
@@ -36,7 +36,7 @@ dependencies:
36
36
  version: '3.0'
37
37
  - - "<"
38
38
  - !ruby/object:Gem::Version
39
- version: '6.2'
39
+ version: '8.0'
40
40
  description: Delayed_job (or DJ) encapsulates the common pattern of asynchronously
41
41
  executing longer tasks in the background. It is a direct extraction from Shopify
42
42
  where the job table is responsible for a multitude of core tasks.
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  requirements: []
124
- rubygems_version: 3.0.3
124
+ rubygems_version: 3.1.4
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: Database-backed asynchronous priority queue system -- Extracted from Shopify