activejob 6.1.0 → 6.1.3.1

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: 6e8ecd60ff8f673ab2711ef5b6b634ce5828160113e8ac5eec732d71bc691660
4
- data.tar.gz: 0207aac145fea7328f0afbe4680413712bbf1f1bd7a400d0b19f178ecf21024f
3
+ metadata.gz: b6ad35f2f17e3e415f9a0ab6d5a30969886b46987e8d0d9109af802c55a2f79d
4
+ data.tar.gz: 54fa1c9aaa61623e5372db847171d8e80753e6c75c4d878d30cc13c76364119a
5
5
  SHA512:
6
- metadata.gz: bf88c0a034e81a6d1a75fa95b37b790647eac95a4f3bfdef7b93bb0880d80e7e040a2eb9afe735544ed11ffdd7337eb7f5bcdf8fe2f3c38045ed5319b8bf5e02
7
- data.tar.gz: 4fbc6a306f542ba1dbb749e1defb085bd52c691b6287c6ef3e10a8bfd527f8e85914c162b5728f47e08271f6367f182195cf30fb6a7c8ba4c2b5af211b4e2b7d
6
+ metadata.gz: b5658e92e6b9608e4f0d313363ed9143bf31177f5e9ced083c82603c329d2b08fa9ca428b88e3b7a908c137e06fbfe6f8ea2b0dbd62446bfe52a328a6914cb65
7
+ data.tar.gz: a6b928c2f7bb5b161dd54a0e7f73d0f99b5bb70ad904e1d4feb177cf89a18db1783fcbaaa94f66566afe54bb90a51e722aa77ac825282352c8bf2cb033fe395d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,34 @@
1
+ ## Rails 6.1.3.1 (March 26, 2021) ##
2
+
3
+ * No changes.
4
+
5
+
6
+ ## Rails 6.1.3 (February 17, 2021) ##
7
+
8
+ * No changes.
9
+
10
+
11
+ ## Rails 6.1.2.1 (February 10, 2021) ##
12
+
13
+ * No changes.
14
+
15
+
16
+ ## Rails 6.1.2 (February 09, 2021) ##
17
+
18
+ * No changes.
19
+
20
+
21
+ ## Rails 6.1.1 (January 07, 2021) ##
22
+
23
+ * Make `retry_job` return the job that was created.
24
+
25
+ *Rafael Mendonça França*
26
+
27
+ * Include `ActiveSupport::Testing::Assertions` in `ActiveJob::TestHelpers`.
28
+
29
+ *Mikkel Malmberg*
30
+
31
+
1
32
  ## Rails 6.1.0 (December 09, 2020) ##
2
33
 
3
34
  * Recover nano precision when serializing `Time`, `TimeWithZone` and `DateTime` objects.
data/README.md CHANGED
@@ -106,7 +106,7 @@ The latest version of Active Job can be installed with RubyGems:
106
106
 
107
107
  Source code can be downloaded as part of the Rails project on GitHub:
108
108
 
109
- * https://github.com/rails/rails/tree/master/activejob
109
+ * https://github.com/rails/rails/tree/main/activejob
110
110
 
111
111
 
112
112
  ## License
@@ -29,7 +29,7 @@ module ActiveJob
29
29
 
30
30
  # Performs the job immediately. The job is not sent to the queuing adapter
31
31
  # but directly executed by blocking the execution of others until it's finished.
32
- # `perform_now` returns the value of your job's `perform` method.
32
+ # +perform_now+ returns the value of your job's +perform+ method.
33
33
  #
34
34
  # class MyJob < ActiveJob::Base
35
35
  # def perform
@@ -9,8 +9,8 @@ module ActiveJob
9
9
  module VERSION
10
10
  MAJOR = 6
11
11
  MINOR = 1
12
- TINY = 0
13
- PRE = nil
12
+ TINY = 3
13
+ PRE = "1"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -18,11 +18,14 @@ module ActiveJob
18
18
  private
19
19
  def instrument(operation, payload = {}, &block)
20
20
  enhanced_block = ->(event_payload) do
21
- block.call if block
21
+ value = block.call if block
22
+
22
23
  if defined?(@_halted_callback_hook_called) && @_halted_callback_hook_called
23
24
  event_payload[:aborted] = true
24
25
  @_halted_callback_hook_called = nil
25
26
  end
27
+
28
+ value
26
29
  end
27
30
 
28
31
  ActiveSupport::Notifications.instrument \
@@ -26,7 +26,7 @@ module ActiveJob
26
26
  end
27
27
 
28
28
  # Returns string denoting the name of the configured queue adapter.
29
- # By default returns +"async"+.
29
+ # By default returns <tt>"async"</tt>.
30
30
  def queue_adapter_name
31
31
  _queue_adapter_name
32
32
  end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "active_support/core_ext/class/subclasses"
4
+ require "active_support/testing/assertions"
4
5
 
5
6
  module ActiveJob
6
7
  # Provides helper methods for testing Active Job
@@ -9,6 +10,8 @@ module ActiveJob
9
10
  :performed_jobs, :performed_jobs=,
10
11
  to: :queue_adapter
11
12
 
13
+ include ActiveSupport::Testing::Assertions
14
+
12
15
  module TestQueueAdapter
13
16
  extend ActiveSupport::Concern
14
17
 
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: 6.1.0
4
+ version: 6.1.3.1
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: 2020-12-09 00:00:00.000000000 Z
11
+ date: 2021-03-26 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: 6.1.0
19
+ version: 6.1.3.1
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: 6.1.0
26
+ version: 6.1.3.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: globalid
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -99,10 +99,10 @@ licenses:
99
99
  - MIT
100
100
  metadata:
101
101
  bug_tracker_uri: https://github.com/rails/rails/issues
102
- changelog_uri: https://github.com/rails/rails/blob/v6.1.0/activejob/CHANGELOG.md
103
- documentation_uri: https://api.rubyonrails.org/v6.1.0/
102
+ changelog_uri: https://github.com/rails/rails/blob/v6.1.3.1/activejob/CHANGELOG.md
103
+ documentation_uri: https://api.rubyonrails.org/v6.1.3.1/
104
104
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
105
- source_code_uri: https://github.com/rails/rails/tree/v6.1.0/activejob
105
+ source_code_uri: https://github.com/rails/rails/tree/v6.1.3.1/activejob
106
106
  post_install_message:
107
107
  rdoc_options: []
108
108
  require_paths:
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  - !ruby/object:Gem::Version
119
119
  version: '0'
120
120
  requirements: []
121
- rubygems_version: 3.1.4
121
+ rubygems_version: 3.1.2
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: Job framework with pluggable queues.