activejob-retry 0.3.1 → 0.4.0

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
  SHA1:
3
- metadata.gz: 649c90639e2a54249a33338f867d60e5c9cf0bb6
4
- data.tar.gz: de4dd8cf45fb3d5eae88b50ff3d490883ec0e170
3
+ metadata.gz: 62121fac94a24726a037706f645dde646c99d6c1
4
+ data.tar.gz: 85be924cff39e2494302ba2789f08094418c3901
5
5
  SHA512:
6
- metadata.gz: 63d82e1e637b156b5a0cb9717622d6630761ce1f7a27d5c375a2d34c380b9373cc35f2fae020deee29d924ca0db8c48bf96b00074f1716b4df07836195ccca78
7
- data.tar.gz: ec5f0eb4c07f3595bc6164d34028dcaa13fe8b2f27884764efb11c4b8fb689fea5ce3a1b229ef0258615212fb9c7469d8bf4dd51b9de8b6a6c644899678d4576
6
+ metadata.gz: 6b522502d0e9ccb5b8302f81110273d757400238fb21b1708adf3ec65145313f9817f37c32a5ea7ee80b7e043405e03d4d4fb772c4226be957ecfcd37c467a24
7
+ data.tar.gz: aeb5b20b8d3fe2bd56c8a5a81756ed8592f98df9a6e2fca8368fe41ce6ec1ca17c6caff31ad126a2d7f38977dcd2206e455e56a25ea5b1f76695d2896d2ac549
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activejob-retry (0.3.1)
4
+ activejob-retry (0.4.0)
5
5
  activejob (>= 4.2)
6
6
  activesupport (>= 4.2)
7
7
 
@@ -12,18 +12,20 @@ end
12
12
 
13
13
  module ActiveJob
14
14
  module Retry
15
- SUPPORTED_ADAPTERS = [
16
- 'ActiveJob::QueueAdapters::BackburnerAdapter',
17
- 'ActiveJob::QueueAdapters::DelayedJobAdapter',
18
- 'ActiveJob::QueueAdapters::ResqueAdapter',
19
- 'ActiveJob::QueueAdapters::QueAdapter'
15
+ PROBLEMATIC_ADAPTERS = [
16
+ 'ActiveJob::QueueAdapters::InlineAdapter',
17
+ 'ActiveJob::QueueAdapters::QuAdapter',
18
+ 'ActiveJob::QueueAdapters::QueueClassicAdapter',
19
+ 'ActiveJob::QueueAdapters::SidekiqAdapter',
20
+ 'ActiveJob::QueueAdapters::SneakersAdapter',
21
+ 'ActiveJob::QueueAdapters::SuckerPunchAdapter'
20
22
  ].freeze
21
23
 
22
24
  def self.included(base)
23
- unless SUPPORTED_ADAPTERS.include?(ActiveJob::Base.queue_adapter.to_s)
24
- raise UnsupportedAdapterError,
25
- 'Only Backburner, DelayedJob, Que, and Resque support delayed ' \
26
- "retries. #{ActiveJob::Base.queue_adapter} is not supported."
25
+ if PROBLEMATIC_ADAPTERS.include?(ActiveJob::Base.queue_adapter.name)
26
+ warn("#{ActiveJob::Base.queue_adapter.name} does not support delayed retries, " \
27
+ 'so does not work with ActiveJob::Retry. You may experience strange ' \
28
+ 'behaviour.')
27
29
  end
28
30
 
29
31
  base.extend(ClassMethods)
@@ -1,5 +1,5 @@
1
1
  module ActiveJob
2
2
  module Retry
3
- VERSION = '0.3.1'
3
+ VERSION = '0.4.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activejob-retry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Seymour
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-06 00:00:00.000000000 Z
11
+ date: 2015-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activejob