activejob 7.0.2.4 → 7.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/active_job/arguments.rb +2 -1
- data/lib/active_job/enqueuing.rb +1 -1
- data/lib/active_job/gem_version.rb +3 -3
- data/lib/active_job/queue_adapters/test_adapter.rb +2 -2
- data/lib/active_job/test_helper.rb +7 -7
- data/lib/active_job/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '038588e1e1a148146e776ccf211852723e7387efbc7ef731344f35a093404558'
|
4
|
+
data.tar.gz: a1569b2344c593ed0a8bfdf49dc51e10f3a1e30b3e9e8956e20b3a8ee460fb08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7e936ca772557b136c84f692f4bc779ee8c3ab6742b2dc8935c8b08653b3eb53f359e16e6c43721e7471d704fc61b7135b2d789c2797a03ccea253b4fae6cb1
|
7
|
+
data.tar.gz: 7a5c89c4fb75bbc6bdfad6b72969d25c4db9818a4b016972b725d0adb4ccbbf6d13b0ed480520fa1ba257cf60a38b0b957b3e822669fb3d684c1ecc62c6814f1
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## Rails 7.0.3 (May 09, 2022) ##
|
2
|
+
|
3
|
+
* Add missing `bigdecimal` require in `ActiveJob::Arguments`
|
4
|
+
|
5
|
+
Could cause `uninitialized constant ActiveJob::Arguments::BigDecimal (NameError)`
|
6
|
+
when loading Active Job in isolation.
|
7
|
+
|
8
|
+
*Jean Boussier*
|
9
|
+
|
1
10
|
## Rails 7.0.2.4 (April 26, 2022) ##
|
2
11
|
|
3
12
|
* No changes.
|
data/lib/active_job/arguments.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "bigdecimal"
|
3
4
|
require "active_support/core_ext/hash"
|
4
5
|
|
5
6
|
module ActiveJob
|
@@ -17,7 +18,7 @@ module ActiveJob
|
|
17
18
|
# currently support String, Integer, Float, NilClass, TrueClass, FalseClass,
|
18
19
|
# BigDecimal, Symbol, Date, Time, DateTime, ActiveSupport::TimeWithZone,
|
19
20
|
# ActiveSupport::Duration, Hash, ActiveSupport::HashWithIndifferentAccess,
|
20
|
-
# Array, Range or GlobalID::Identification instances, although this can be
|
21
|
+
# Array, Range, or GlobalID::Identification instances, although this can be
|
21
22
|
# extended by adding custom serializers.
|
22
23
|
# Raised if you set the key for a Hash something else than a string or
|
23
24
|
# a symbol. Also raised when trying to serialize an object which can't be
|
data/lib/active_job/enqueuing.rb
CHANGED
@@ -17,7 +17,7 @@ module ActiveJob
|
|
17
17
|
# Push a job onto the queue. By default the arguments must be either String,
|
18
18
|
# Integer, Float, NilClass, TrueClass, FalseClass, BigDecimal, Symbol, Date,
|
19
19
|
# Time, DateTime, ActiveSupport::TimeWithZone, ActiveSupport::Duration,
|
20
|
-
# Hash, ActiveSupport::HashWithIndifferentAccess, Array, Range or
|
20
|
+
# Hash, ActiveSupport::HashWithIndifferentAccess, Array, Range, or
|
21
21
|
# GlobalID::Identification instances, although this can be extended by adding
|
22
22
|
# custom serializers.
|
23
23
|
#
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
module ActiveJob
|
4
|
-
# Returns the version of
|
4
|
+
# Returns the currently loaded version of Active Job as a <tt>Gem::Version</tt>.
|
5
5
|
def self.gem_version
|
6
6
|
Gem::Version.new VERSION::STRING
|
7
7
|
end
|
@@ -9,8 +9,8 @@ module ActiveJob
|
|
9
9
|
module VERSION
|
10
10
|
MAJOR = 7
|
11
11
|
MINOR = 0
|
12
|
-
TINY =
|
13
|
-
PRE =
|
12
|
+
TINY = 3
|
13
|
+
PRE = nil
|
14
14
|
|
15
15
|
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
|
16
16
|
end
|
@@ -5,10 +5,10 @@ module ActiveJob
|
|
5
5
|
# == Test adapter for Active Job
|
6
6
|
#
|
7
7
|
# The test adapter should be used only in testing. Along with
|
8
|
-
#
|
8
|
+
# ActiveJob::TestCase and ActiveJob::TestHelper
|
9
9
|
# it makes a great tool to test your Rails application.
|
10
10
|
#
|
11
|
-
# To use the test adapter set queue_adapter config to +:test+.
|
11
|
+
# To use the test adapter set +queue_adapter+ config to +:test+.
|
12
12
|
#
|
13
13
|
# Rails.application.config.active_job.queue_adapter = :test
|
14
14
|
class TestAdapter
|
@@ -57,12 +57,12 @@ module ActiveJob
|
|
57
57
|
# Specifies the queue adapter to use with all Active Job test helpers.
|
58
58
|
#
|
59
59
|
# Returns an instance of the queue adapter and defaults to
|
60
|
-
#
|
60
|
+
# ActiveJob::QueueAdapters::TestAdapter.
|
61
61
|
#
|
62
62
|
# Note: The adapter provided by this method must provide some additional
|
63
|
-
# methods from those expected of a standard
|
63
|
+
# methods from those expected of a standard ActiveJob::QueueAdapter
|
64
64
|
# in order to be used with the active job test helpers. Refer to
|
65
|
-
#
|
65
|
+
# ActiveJob::QueueAdapters::TestAdapter.
|
66
66
|
def queue_adapter_for_test
|
67
67
|
ActiveJob::QueueAdapters::TestAdapter.new
|
68
68
|
end
|
@@ -109,7 +109,7 @@ module ActiveJob
|
|
109
109
|
# end
|
110
110
|
# end
|
111
111
|
#
|
112
|
-
# +:only+ and +:except+ options accept Class, Array of Class or Proc. When passed a Proc,
|
112
|
+
# +:only+ and +:except+ options accept Class, Array of Class, or Proc. When passed a Proc,
|
113
113
|
# a hash containing the job's class and it's argument are passed as argument.
|
114
114
|
#
|
115
115
|
# Asserts the number of times a job is enqueued to a specific queue by passing +:queue+ option.
|
@@ -168,7 +168,7 @@ module ActiveJob
|
|
168
168
|
# end
|
169
169
|
# end
|
170
170
|
#
|
171
|
-
# +:only+ and +:except+ options accept Class, Array of Class or Proc. When passed a Proc,
|
171
|
+
# +:only+ and +:except+ options accept Class, Array of Class, or Proc. When passed a Proc,
|
172
172
|
# a hash containing the job's class and it's argument are passed as argument.
|
173
173
|
#
|
174
174
|
# Asserts that no jobs are enqueued to a specific queue by passing +:queue+ option
|
@@ -325,7 +325,7 @@ module ActiveJob
|
|
325
325
|
# end
|
326
326
|
# end
|
327
327
|
#
|
328
|
-
# +:only+ and +:except+ options accept Class, Array of Class or Proc. When passed a Proc,
|
328
|
+
# +:only+ and +:except+ options accept Class, Array of Class, or Proc. When passed a Proc,
|
329
329
|
# an instance of the job will be passed as argument.
|
330
330
|
#
|
331
331
|
# If the +:queue+ option is specified,
|
@@ -579,7 +579,7 @@ module ActiveJob
|
|
579
579
|
# assert_performed_jobs 1
|
580
580
|
# end
|
581
581
|
#
|
582
|
-
# +:only+ and +:except+ options accept Class, Array of Class or Proc. When passed a Proc,
|
582
|
+
# +:only+ and +:except+ options accept Class, Array of Class, or Proc. When passed a Proc,
|
583
583
|
# an instance of the job will be passed as argument.
|
584
584
|
#
|
585
585
|
# If the +:queue+ option is specified,
|
data/lib/active_job/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activejob
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.
|
4
|
+
version: 7.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 7.0.
|
19
|
+
version: 7.0.3
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 7.0.
|
26
|
+
version: 7.0.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: globalid
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,10 +100,10 @@ licenses:
|
|
100
100
|
- MIT
|
101
101
|
metadata:
|
102
102
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
103
|
-
changelog_uri: https://github.com/rails/rails/blob/v7.0.
|
104
|
-
documentation_uri: https://api.rubyonrails.org/v7.0.
|
103
|
+
changelog_uri: https://github.com/rails/rails/blob/v7.0.3/activejob/CHANGELOG.md
|
104
|
+
documentation_uri: https://api.rubyonrails.org/v7.0.3/
|
105
105
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
106
|
-
source_code_uri: https://github.com/rails/rails/tree/v7.0.
|
106
|
+
source_code_uri: https://github.com/rails/rails/tree/v7.0.3/activejob
|
107
107
|
rubygems_mfa_required: 'true'
|
108
108
|
post_install_message:
|
109
109
|
rdoc_options: []
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
- !ruby/object:Gem::Version
|
121
121
|
version: '0'
|
122
122
|
requirements: []
|
123
|
-
rubygems_version: 3.
|
123
|
+
rubygems_version: 3.3.7
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: Job framework with pluggable queues.
|