activejob 5.0.0.rc1 → 5.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of activejob might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a684d6691463c305b16c090c08dfcbf70b95170
4
- data.tar.gz: d723d098ff9f4a68fdfed6f7a584c81cd840acb7
3
+ metadata.gz: c5334241ce5e9bff0d246220313fdedde392bd41
4
+ data.tar.gz: e6d9dc15fcdd47de4107af08fa093d95db1120f5
5
5
  SHA512:
6
- metadata.gz: 56fd55a9d436520e9c1c53b0f75b315673d5787f0fdd22c28024e59437dbad00e60e710ca91b20bc3d94b5bc8e95b78450702c564fdcbca913c4f9a501896e71
7
- data.tar.gz: 15e6c01e70f7411f0785ff5f981ed2dc167486413f8517382dde9bde86913814750f0eb6848e857adffa2af86c2dc4d8c0ef6114a601443b1223aa012684ce7f
6
+ metadata.gz: e74cc0eaedd7b85ac835a115c64867d33ae29128b00a30e4b5dd56fcdaa5efa9a251d9b55d8a0fab1f2d3bf472a94b649bddffd8121d839a25f341899007e15d
7
+ data.tar.gz: 909ebed4ed171fd33578ad13860044a242a1faa6227d416807368e6bcac0cb39b061e03e95912f1c148a09de5b5cc60f33547ff91aa4e7c10b7e9bea61232f76
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## Rails 5.0.0.rc2 (June 22, 2016) ##
2
+
3
+ * No changes.
4
+
5
+
1
6
  ## Rails 5.0.0.rc1 (May 06, 2016) ##
2
7
 
3
8
  * No changes.
@@ -24,7 +24,7 @@ module ActiveJob
24
24
  end
25
25
 
26
26
  # Raised when an unsupported argument type is set as a job argument. We
27
- # currently support NilClass, Fixnum, Float, String, TrueClass, FalseClass,
27
+ # currently support NilClass, Integer, Fixnum, Float, String, TrueClass, FalseClass,
28
28
  # Bignum, BigDecimal, and objects that can be represented as GlobalIDs (ex: Active Record).
29
29
  # Raised if you set the key for a Hash something else than a string or
30
30
  # a symbol. Also raised when trying to serialize an object which can't be
@@ -34,7 +34,8 @@ module ActiveJob
34
34
  module Arguments
35
35
  extend self
36
36
  # :nodoc:
37
- TYPE_WHITELIST = [ NilClass, Fixnum, Float, String, TrueClass, FalseClass, Bignum, BigDecimal ]
37
+ # Calls #uniq since Integer, Fixnum, and Bignum are all the same class on Ruby 2.4+
38
+ TYPE_WHITELIST = [ NilClass, String, Integer, Fixnum, Bignum, Float, BigDecimal, TrueClass, FalseClass ].uniq
38
39
 
39
40
  # Serializes a set of arguments. Whitelisted types are returned
40
41
  # as-is. Arrays/Hashes are serialized element by element.
@@ -34,7 +34,7 @@ module ActiveJob
34
34
  perform(*arguments)
35
35
  end
36
36
  rescue => exception
37
- rescue_with_handler(exception) || raise(exception)
37
+ rescue_with_handler(exception) || raise
38
38
  end
39
39
 
40
40
  def perform(*)
@@ -8,7 +8,7 @@ module ActiveJob
8
8
  MAJOR = 5
9
9
  MINOR = 0
10
10
  TINY = 0
11
- PRE = "rc1"
11
+ PRE = "rc2"
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
14
14
  end
@@ -41,7 +41,7 @@ module ActiveJob
41
41
  def tag_logger(*tags)
42
42
  if logger.respond_to?(:tagged)
43
43
  tags.unshift "ActiveJob" unless logger_tagged_by_active_job?
44
- ActiveJob::Base.logger.tagged(*tags){ yield }
44
+ logger.tagged(*tags){ yield }
45
45
  else
46
46
  yield
47
47
  end
@@ -9,7 +9,7 @@ module ActiveJob
9
9
  to: :queue_adapter
10
10
 
11
11
  def before_setup # :nodoc:
12
- test_adapter = ActiveJob::QueueAdapters::TestAdapter.new
12
+ test_adapter = queue_adapter_for_test
13
13
 
14
14
  @old_queue_adapters = (ActiveJob::Base.subclasses << ActiveJob::Base).select do |klass|
15
15
  # only override explicitly set adapters, a quirk of `class_attribute`
@@ -32,6 +32,19 @@ module ActiveJob
32
32
  end
33
33
  end
34
34
 
35
+ # Specifies the queue adapter to use with all active job test helpers.
36
+ #
37
+ # Returns an instance of the queue adapter and defaults to
38
+ # <tt>ActiveJob::QueueAdapters::TestAdapter</tt>.
39
+ #
40
+ # Note: The adapter provided by this method must provide some additional
41
+ # methods from those expected of a standard <tt>ActiveJob::QueueAdapter</tt>
42
+ # in order to be used with the active job test helpers. Refer to
43
+ # <tt>ActiveJob::QueueAdapters::TestAdapter</tt>.
44
+ def queue_adapter_for_test
45
+ ActiveJob::QueueAdapters::TestAdapter.new
46
+ end
47
+
35
48
  # Asserts that the number of enqueued jobs matches the given number.
36
49
  #
37
50
  # def test_jobs
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: 5.0.0.rc1
4
+ version: 5.0.0.rc2
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: 2016-05-06 00:00:00.000000000 Z
11
+ date: 2016-06-22 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: 5.0.0.rc1
19
+ version: 5.0.0.rc2
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: 5.0.0.rc1
26
+ version: 5.0.0.rc2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: globalid
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  version: 1.3.1
102
102
  requirements: []
103
103
  rubyforge_project:
104
- rubygems_version: 2.5.1
104
+ rubygems_version: 2.6.4
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: Job framework with pluggable queues.