activejob 6.0.0.rc2 → 6.0.0

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: c520aef66d19d431d033a2056b0bcf9def9b16955349c68d255f82e0155b4f16
4
- data.tar.gz: '0394dde245da36f499feb928edf403481a8f5d453fd16ebb06c702cd256f4f59'
3
+ metadata.gz: 7973ed6448fa8c345584aa106b5cbb2e7d4f0ec00dd9951ac9f620592e825dc9
4
+ data.tar.gz: '020897732f85bb7e354ebedda165f052444dcf22f14cc111e2e5f20bca70ce95'
5
5
  SHA512:
6
- metadata.gz: 0eb7b32544df04a4f58f2eb8983fd963b7636a7f948e8b1a6c6f62e789e8be7b4b34707232020e4e5a355517aa5d578d2677aae381795527f2a5090f27c9fea9
7
- data.tar.gz: 442d7b611fe4ee5ef6a1ce28c94e4086128a6baa40ab089bde16e6ac9eb6d48ec0c41bffc359afda7c1940ddbfd0349770db5c147cdac352a58cd6f7a27bceed
6
+ metadata.gz: 3c35419aea4a165a892334a40912031468bc691effd8c88740f63a2c99cf83fdebc2a76c118c7b9a93f83ac9159ef81fca748fd42155690d058c3c76c7ac5e3b
7
+ data.tar.gz: 602ed0cd77b1e68a17314c134314f4fdb26fbc7fea831bfc581ec5b7da4b4ed87f4ed1142c7a43e6781b059e8df6fa5c2efb6854bb69db20aa2bbebc179615af
@@ -1,3 +1,10 @@
1
+ ## Rails 6.0.0 (August 16, 2019) ##
2
+
3
+ * `assert_enqueued_with` and `assert_performed_with` can now test jobs with relative delay.
4
+
5
+ *Vlado Cingel*
6
+
7
+
1
8
  ## Rails 6.0.0.rc2 (July 22, 2019) ##
2
9
 
3
10
  * No changes.
@@ -10,7 +10,7 @@ module ActiveJob
10
10
  MAJOR = 6
11
11
  MINOR = 0
12
12
  TINY = 0
13
- PRE = "rc2"
13
+ PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -630,7 +630,7 @@ module ActiveJob
630
630
 
631
631
  def prepare_args_for_assertion(args)
632
632
  args.dup.tap do |arguments|
633
- arguments[:at] = arguments[:at].to_f if arguments[:at]
633
+ arguments[:at] = round_time_arguments(arguments[:at]) if arguments[:at]
634
634
  arguments[:args] = round_time_arguments(arguments[:args]) if arguments[:args]
635
635
  end
636
636
  end
@@ -650,6 +650,7 @@ module ActiveJob
650
650
 
651
651
  def deserialize_args_for_assertion(job)
652
652
  job.dup.tap do |new_job|
653
+ new_job[:at] = round_time_arguments(Time.at(new_job[:at])) if new_job[:at]
653
654
  new_job[:args] = ActiveJob::Arguments.deserialize(new_job[:args]) if new_job[:args]
654
655
  end
655
656
  end
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.0.0.rc2
4
+ version: 6.0.0
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: 2019-07-22 00:00:00.000000000 Z
11
+ date: 2019-08-16 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.0.0.rc2
19
+ version: 6.0.0
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.0.0.rc2
26
+ version: 6.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: globalid
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -94,8 +94,8 @@ homepage: https://rubyonrails.org
94
94
  licenses:
95
95
  - MIT
96
96
  metadata:
97
- source_code_uri: https://github.com/rails/rails/tree/v6.0.0.rc2/activejob
98
- changelog_uri: https://github.com/rails/rails/blob/v6.0.0.rc2/activejob/CHANGELOG.md
97
+ source_code_uri: https://github.com/rails/rails/tree/v6.0.0/activejob
98
+ changelog_uri: https://github.com/rails/rails/blob/v6.0.0/activejob/CHANGELOG.md
99
99
  post_install_message:
100
100
  rdoc_options: []
101
101
  require_paths:
@@ -107,9 +107,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
107
107
  version: 2.5.0
108
108
  required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - ">"
110
+ - - ">="
111
111
  - !ruby/object:Gem::Version
112
- version: 1.3.1
112
+ version: '0'
113
113
  requirements: []
114
114
  rubygems_version: 3.0.1
115
115
  signing_key: