activejob 6.1.0.rc2 → 6.1.3

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: 440134b603c43896fefc8ab03b787679e37e8862f896a7ac55e45949b765f0a4
4
- data.tar.gz: c98cec1ff12d0b6e56200bd99e25480eaf171aea2e0f252e68b5cd442f6782cb
3
+ metadata.gz: 06b7a7bed80f199578ac2f9ab05679e6261c8ef7bc99fd05111c9bebd491de1c
4
+ data.tar.gz: 62257a244095d13a31fac5d6bfc118b19733fb68e198a2a19327a7d428c8c22d
5
5
  SHA512:
6
- metadata.gz: 173c876fb4b08fdcb3ef3acb7e32e9d8b793044f80d0cd8490204772a2e730a58e7cf12b3b3392b0a808c79811bc2e984c114eacb86ee689ce8914b067249289
7
- data.tar.gz: 219b5cf6e8acf7ecb429553ce27e157f6ff4efc8aee38cf605119b7cb997a84cfd333015400707220423e41950ce698adf8769ace6da5649cc64ce04a07247a8
6
+ metadata.gz: e7d499eec6ddb00226739f78c66a02987d738b85d16c2c6bd18985978aa5a99dbfcb6ca0636dff017c6fd57613234cb8e7ff5002a22b84a23c1caae6978f550a
7
+ data.tar.gz: d9728f83f8309179f93d1a73a4d10113aa02ac0e41f2deb40e4fe94c0599782efeaf801df0f54aa017d29f723e7d6595c5b73d44557f1438bb5c0f862d2ac3a9
data/CHANGELOG.md CHANGED
@@ -1,9 +1,30 @@
1
- ## Rails 6.1.0.rc2 (December 01, 2020) ##
1
+ ## Rails 6.1.3 (February 17, 2021) ##
2
2
 
3
3
  * No changes.
4
4
 
5
5
 
6
- ## Rails 6.1.0.rc1 (November 02, 2020) ##
6
+ ## Rails 6.1.2.1 (February 10, 2021) ##
7
+
8
+ * No changes.
9
+
10
+
11
+ ## Rails 6.1.2 (February 09, 2021) ##
12
+
13
+ * No changes.
14
+
15
+
16
+ ## Rails 6.1.1 (January 07, 2021) ##
17
+
18
+ * Make `retry_job` return the job that was created.
19
+
20
+ *Rafael Mendonça França*
21
+
22
+ * Include `ActiveSupport::Testing::Assertions` in `ActiveJob::TestHelpers`.
23
+
24
+ *Mikkel Malmberg*
25
+
26
+
27
+ ## Rails 6.1.0 (December 09, 2020) ##
7
28
 
8
29
  * Recover nano precision when serializing `Time`, `TimeWithZone` and `DateTime` objects.
9
30
 
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 = "rc2"
12
+ TINY = 3
13
+ PRE = nil
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
@@ -12,7 +12,7 @@ module ActiveJob
12
12
  # Rails.application.config.active_job.queue_adapter = :inline
13
13
  class InlineAdapter
14
14
  def enqueue(job) #:nodoc:
15
- Thread.new { Base.execute(job.serialize) }.join
15
+ Base.execute(job.serialize)
16
16
  end
17
17
 
18
18
  def enqueue_at(*) #:nodoc:
@@ -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.rc2
4
+ version: 6.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-01 00:00:00.000000000 Z
11
+ date: 2021-02-17 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.rc2
19
+ version: 6.1.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: 6.1.0.rc2
26
+ version: 6.1.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: globalid
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -99,11 +99,11 @@ 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.rc2/activejob/CHANGELOG.md
103
- documentation_uri: https://api.rubyonrails.org/v6.1.0.rc2/
102
+ changelog_uri: https://github.com/rails/rails/blob/v6.1.3/activejob/CHANGELOG.md
103
+ documentation_uri: https://api.rubyonrails.org/v6.1.3/
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.rc2/activejob
106
- post_install_message:
105
+ source_code_uri: https://github.com/rails/rails/tree/v6.1.3/activejob
106
+ post_install_message:
107
107
  rdoc_options: []
108
108
  require_paths:
109
109
  - lib
@@ -114,12 +114,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
114
114
  version: 2.5.0
115
115
  required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - ">"
117
+ - - ">="
118
118
  - !ruby/object:Gem::Version
119
- version: 1.3.1
119
+ version: '0'
120
120
  requirements: []
121
- rubygems_version: 3.1.4
122
- signing_key:
121
+ rubygems_version: 3.2.3
122
+ signing_key:
123
123
  specification_version: 4
124
124
  summary: Job framework with pluggable queues.
125
125
  test_files: []