delayed_job 4.1.9 → 4.1.11

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: 2c2e880a669ae56ceb7d75aa435f7a24540f3ff1669d5f0513eb82d7418cbcb5
4
- data.tar.gz: aa5972d6556772c30eae6bff54bfa6fe02216d532af37d780f4da58c3beff702
3
+ metadata.gz: b5abe29ddb94836277901e7d618f7291ff9078ca25619b40405a3ccc5a471950
4
+ data.tar.gz: fb35d6e6eb7618ba31e44e31580c369aa80fe90353bbc282cf933613c82d152c
5
5
  SHA512:
6
- metadata.gz: edc7f370dc4f2783ada28648641be2274fee0adc260d2f4f230a999884850c5cff6aa5086b5df56c0be288ac23dd9edc997b48dc24b378ab8b8c99bf9e74107f
7
- data.tar.gz: 3e5162db607ddf2d9b35c4a931deea4dfd494a683730652b14d067b911717c4bb8484205cec85190c7a695dba01ef68d405e6070ec961471fd9c32630c0e352c
6
+ metadata.gz: 5427056c3a1adcd9a484a2eeec2d2ce6f3b2ad4c845f31a98d917a3ac228ee0c58a9ca7ced028b03a7935704dceaf6419ee71a4f7077287e7b39429dc517abd1
7
+ data.tar.gz: '082c6fa5d5407d3e87c2393f16c2dfdb233f12a2012bc28d03a1baca749d0d95ca8263d7ed67796561ab1376fe1fa7963af57c87fc06b362d6c1dffc07bc6b98'
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ 4.1.11 - 2022-09-28
2
+ ===================
3
+ * Fix missing require for Rails 7.0.3+
4
+
5
+ 4.1.10 - 2022-01-17
6
+ ===================
7
+ * 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.
8
+
1
9
  4.1.9 - 2020-12-09
2
10
  ==================
3
11
  * 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.11).](https://github.com/collectiveidea/delayed_job/tree/v4.1.11)**
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.11'
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',
@@ -1,5 +1,6 @@
1
1
  require 'timeout'
2
2
  require 'active_support/dependencies'
3
+ require 'active_support/core_ext/kernel/reporting'
3
4
  require 'active_support/core_ext/numeric/time'
4
5
  require 'active_support/core_ext/class/attribute_accessors'
5
6
  require 'active_support/hash_with_indifferent_access'
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.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Keepers
@@ -12,10 +12,10 @@ authors:
12
12
  - Matt Griffin
13
13
  - Steve Richert
14
14
  - Tobias Lütke
15
- autorequire:
15
+ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2020-12-09 00:00:00.000000000 Z
18
+ date: 2022-09-28 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.
@@ -106,7 +106,7 @@ metadata:
106
106
  changelog_uri: https://github.com/collectiveidea/delayed_job/blob/master/CHANGELOG.md
107
107
  bug_tracker_uri: https://github.com/collectiveidea/delayed_job/issues
108
108
  source_code_uri: https://github.com/collectiveidea/delayed_job
109
- post_install_message:
109
+ post_install_message:
110
110
  rdoc_options: []
111
111
  require_paths:
112
112
  - lib
@@ -121,26 +121,26 @@ 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
125
- signing_key:
124
+ rubygems_version: 3.3.7
125
+ signing_key:
126
126
  specification_version: 4
127
127
  summary: Database-backed asynchronous priority queue system -- Extracted from Shopify
128
128
  test_files:
129
- - spec/sample_jobs.rb
130
- - spec/lifecycle_spec.rb
131
- - spec/performable_method_spec.rb
132
- - spec/helper.rb
133
- - spec/psych_ext_spec.rb
134
- - spec/worker_spec.rb
135
- - spec/autoloaded/struct.rb
136
129
  - spec/autoloaded/clazz.rb
137
130
  - spec/autoloaded/instance_clazz.rb
138
131
  - spec/autoloaded/instance_struct.rb
139
- - spec/test_backend_spec.rb
140
- - spec/delayed/serialization/test.rb
132
+ - spec/autoloaded/struct.rb
133
+ - spec/daemons.rb
141
134
  - spec/delayed/backend/test.rb
142
135
  - spec/delayed/command_spec.rb
136
+ - spec/delayed/serialization/test.rb
137
+ - spec/helper.rb
138
+ - spec/lifecycle_spec.rb
143
139
  - spec/message_sending_spec.rb
144
140
  - spec/performable_mailer_spec.rb
141
+ - spec/performable_method_spec.rb
142
+ - spec/psych_ext_spec.rb
143
+ - spec/sample_jobs.rb
144
+ - spec/test_backend_spec.rb
145
+ - spec/worker_spec.rb
145
146
  - spec/yaml_ext_spec.rb
146
- - spec/daemons.rb