activejob 6.1.0.rc1 → 6.1.2.1

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: dc9b631f7b43e77aa14e8fb65525b51ad82f92f5b0046d15d44c2e5f2429a2aa
4
- data.tar.gz: a2e8afb6e5295337e82c0f0c3de726cbe11dcedba0f2f34c6c4323170a74dc13
3
+ metadata.gz: fc0253f7821dd766d7c739138c6cf41ae11d40f7319ec71c40bba77b92b3b070
4
+ data.tar.gz: b3b78bc71d73e08219c4ad3702cb2d4d962d52e0ee4ee396dcab3cb36b91747b
5
5
  SHA512:
6
- metadata.gz: b30c316861f1ae07c363df9184ef9a306d796756429d11978166b3864263cc72ff521c6d27093e17f0e2e850b6921c3dd39702646d6f5b7a5a198221d1e68f4f
7
- data.tar.gz: 99ed04c52a31748e94edd687fe93a48de660e44d29b5645597a278a97450405f57c28b92d69b98cf0f3ded97711952a58b700b9f90e2ad8dac5148b843920b17
6
+ metadata.gz: aaaa96f185e3086583b49885c737d58796af783e0cd4076b954584afb55d701d9cb6621f25126ef3793c289f021de7e9ce12f74c0b1aab94e5e6222de8493df5
7
+ data.tar.gz: e3ba493abb02f761217c44d4822e48512e904963d2a158bdad01ebd73e4caa2e8374720d9aecde428309828d26ecddf7a6afb7e22cca7a7e8d1efb8b267cdad3
data/CHANGELOG.md CHANGED
@@ -1,4 +1,25 @@
1
- ## Rails 6.1.0.rc1 (November 02, 2020) ##
1
+ ## Rails 6.1.2.1 (February 10, 2021) ##
2
+
3
+ * No changes.
4
+
5
+
6
+ ## Rails 6.1.2 (February 09, 2021) ##
7
+
8
+ * No changes.
9
+
10
+
11
+ ## Rails 6.1.1 (January 07, 2021) ##
12
+
13
+ * Make `retry_job` return the job that was created.
14
+
15
+ *Rafael Mendonça França*
16
+
17
+ * Include `ActiveSupport::Testing::Assertions` in `ActiveJob::TestHelpers`.
18
+
19
+ *Mikkel Malmberg*
20
+
21
+
22
+ ## Rails 6.1.0 (December 09, 2020) ##
2
23
 
3
24
  * Recover nano precision when serializing `Time`, `TimeWithZone` and `DateTime` objects.
4
25
 
@@ -73,7 +94,7 @@
73
94
  ```
74
95
 
75
96
  A new message will be logged in case a job couldn't be enqueued, either because the callback chain was halted or
76
- because an exception happened during enqueing. (i.e. Redis is down when you try to enqueue your job)
97
+ because an exception happened during enqueuing. (i.e. Redis is down when you try to enqueue your job)
77
98
 
78
99
  *Edouard Chin*
79
100
 
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
@@ -9,8 +9,8 @@ module ActiveJob
9
9
  module VERSION
10
10
  MAJOR = 6
11
11
  MINOR = 1
12
- TINY = 0
13
- PRE = "rc1"
12
+ TINY = 2
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 \
@@ -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.rc1
4
+ version: 6.1.2.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-11-02 00:00:00.000000000 Z
11
+ date: 2021-02-10 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.rc1
19
+ version: 6.1.2.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.rc1
26
+ version: 6.1.2.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.rc1/activejob/CHANGELOG.md
103
- documentation_uri: https://api.rubyonrails.org/v6.1.0.rc1/
102
+ changelog_uri: https://github.com/rails/rails/blob/v6.1.2.1/activejob/CHANGELOG.md
103
+ documentation_uri: https://api.rubyonrails.org/v6.1.2.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.rc1/activejob
105
+ source_code_uri: https://github.com/rails/rails/tree/v6.1.2.1/activejob
106
106
  post_install_message:
107
107
  rdoc_options: []
108
108
  require_paths:
@@ -114,11 +114,11 @@ 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
121
+ rubygems_version: 3.0.3
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: Job framework with pluggable queues.