isolator 0.1.1 → 0.2.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
  SHA256:
3
- metadata.gz: 38905f69bca58765b25b0f588eda24538e522602ef77f0d37376b4caa05afa55
4
- data.tar.gz: 94f1e3f293721937ae14595b7d2e7b2bfa5092ead7b5b64b5a9f1358a0d6ec5e
3
+ metadata.gz: 1cc806ece0afde6f9c1e93a6c3327683da7b26bc7ba93747a45da13d895dedf9
4
+ data.tar.gz: 492417283f1964b1438f0a4db100bfc5acc9da68d07105823d6691091f0453ca
5
5
  SHA512:
6
- metadata.gz: bba8476b6fedabe69147d938a46aa83200eaafb5a128ee3cb71b4877aa18ffe6ce8e2037818801e4451bbbf9a6982b42e6f3c64963bd6701ca149af3d905ffb0
7
- data.tar.gz: 8bb077f2ff577f6df9cf8bd8fb976bce3eccf0c65de1c8aab90f5b328eb20d50a6af86806cc806898f058f1c03c4db160e9f38f49276d5a29ebcc323085a92bc
6
+ metadata.gz: e8950064ca9b096926c1b757ac99d597757e2c38333bed49a96b9bdb5be4d5f4ec2b360e44cd2bd97b9438c934b6b9fd0b6ac56734ac70fac4f75edc3e332726
7
+ data.tar.gz: a57377a86205267e34cd8220e2d8155a6f5bc4aacb77d428aff9e000c21f2f9a57d50dfbc359efb21d7043ffef1c572f5ca55e50dd00f5816e4244026d73de26
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 0.2.0 (2018-02-22)
6
+
7
+ - [PR [#8](https://github.com/palkan/isolator/pull/8)] Add resque background job adapter. ([@dsalahutdinov][])
8
+
5
9
  ## 0.1.1 (2018-02-21)
6
10
 
7
11
  - Update `sniffer` required mininum version. ([@palkan][])
@@ -21,3 +25,4 @@
21
25
  [@palkan]: https://github.com/palkan
22
26
  [@alexshgov]: https://github.com/alexshgov
23
27
  [@TheSmartnik]: https://github.com/TheSmartnik
28
+ [@dsalahutdinov]: https://github.com/dsalahutdinov
data/README.md CHANGED
@@ -109,6 +109,7 @@ Isolator has a bunch of built-in adapters:
109
109
  - `:http` – built on top of [Sniffer][]
110
110
  - `:active_job`
111
111
  - `:sidekiq`
112
+ - `:resque`
112
113
  - `:mailer`
113
114
  - `:webmock` – track mocked HTTP requests (unseen by Sniffer) in tests
114
115
 
data/isolator.gemspec CHANGED
@@ -34,4 +34,6 @@ Gem::Specification.new do |spec|
34
34
  spec.add_development_dependency "sidekiq", "~> 5.0"
35
35
  spec.add_development_dependency "webmock", "~> 3.1"
36
36
  spec.add_development_dependency "test_after_commit", "~> 1.1"
37
+ spec.add_development_dependency "resque"
38
+ spec.add_development_dependency "fakeredis"
37
39
  end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ Isolator.isolate :resque,
4
+ target: Resque.singleton_class,
5
+ method_name: :enqueue,
6
+ exception_class: Isolator::BackgroundJobError
@@ -7,3 +7,4 @@ if defined?(ActiveSupport)
7
7
  end
8
8
 
9
9
  require "isolator/adapters/background_jobs/sidekiq" if defined?(Sidekiq::Client)
10
+ require "isolator/adapters/background_jobs/resque" if defined?(Resque)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Isolator
4
- VERSION = "0.1.1"
4
+ VERSION = "0.2.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isolator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Dementyev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-21 00:00:00.000000000 Z
11
+ date: 2018-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sniffer
@@ -178,6 +178,34 @@ dependencies:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
180
  version: '1.1'
181
+ - !ruby/object:Gem::Dependency
182
+ name: resque
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: fakeredis
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
181
209
  description: Detect non-atomic interactions within DB transactions
182
210
  email:
183
211
  - dementiev.vm@gmail.com
@@ -205,6 +233,7 @@ files:
205
233
  - lib/isolator/adapters/after_commit.rb
206
234
  - lib/isolator/adapters/background_jobs.rb
207
235
  - lib/isolator/adapters/background_jobs/active_job.rb
236
+ - lib/isolator/adapters/background_jobs/resque.rb
208
237
  - lib/isolator/adapters/background_jobs/sidekiq.rb
209
238
  - lib/isolator/adapters/base.rb
210
239
  - lib/isolator/adapters/http.rb