isolator 0.2.0 → 0.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: 1cc806ece0afde6f9c1e93a6c3327683da7b26bc7ba93747a45da13d895dedf9
4
- data.tar.gz: 492417283f1964b1438f0a4db100bfc5acc9da68d07105823d6691091f0453ca
3
+ metadata.gz: 9153ccb0db38a3f9f14f9739d594711c64fc022d00218759389849548155001d
4
+ data.tar.gz: 99956b468700b2c508f356d5d4bd07d230137f955837b9b83c0fedebf47fbbf6
5
5
  SHA512:
6
- metadata.gz: e8950064ca9b096926c1b757ac99d597757e2c38333bed49a96b9bdb5be4d5f4ec2b360e44cd2bd97b9438c934b6b9fd0b6ac56734ac70fac4f75edc3e332726
7
- data.tar.gz: a57377a86205267e34cd8220e2d8155a6f5bc4aacb77d428aff9e000c21f2f9a57d50dfbc359efb21d7043ffef1c572f5ca55e50dd00f5816e4244026d73de26
6
+ metadata.gz: 5e2175a197ed494e66ac27e250b6e48c193c0becd6690514ee5ad11d4b77646c147188add49ed0a5de3ccbb72d9f44b29f520c7765d58b4a09e5f4e564ee264c
7
+ data.tar.gz: e705fa7c0de03159198028b2d4b4bec5e8f2584daf64f0747b2088bab45f49ff4b77e4f1782eca2bf6e4c4bb7d44969b59732e1f51992aa9f51bae5f0c8f8489
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## master
4
4
 
5
+ ## 0.2.1 (2018-02-24)
6
+
7
+ - [PR [#10](https://github.com/palkan/isolator/pull/10)] Add `sucker_punch` adapter. ([@alexshgov][])
8
+ - [PR [#9](https://github.com/palkan/isolator/pull/9)] Add `resque scheduler` background job adapter. ([@dsalahutdinov][])
9
+
5
10
  ## 0.2.0 (2018-02-22)
6
11
 
7
12
  - [PR [#8](https://github.com/palkan/isolator/pull/8)] Add resque background job adapter. ([@dsalahutdinov][])
data/README.md CHANGED
@@ -110,6 +110,8 @@ Isolator has a bunch of built-in adapters:
110
110
  - `:active_job`
111
111
  - `:sidekiq`
112
112
  - `:resque`
113
+ - `:resque_scheduler`
114
+ - `:sucker_punch`
113
115
  - `:mailer`
114
116
  - `:webmock` – track mocked HTTP requests (unseen by Sniffer) in tests
115
117
 
data/isolator.gemspec CHANGED
@@ -36,4 +36,6 @@ Gem::Specification.new do |spec|
36
36
  spec.add_development_dependency "test_after_commit", "~> 1.1"
37
37
  spec.add_development_dependency "resque"
38
38
  spec.add_development_dependency "fakeredis"
39
+ spec.add_development_dependency "resque-scheduler"
40
+ spec.add_development_dependency "sucker_punch"
39
41
  end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ Isolator.isolate :resque_scheduler,
4
+ target: Resque.singleton_class,
5
+ method_name: :enqueue_at,
6
+ exception_class: Isolator::BackgroundJobError
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ Isolator.isolate :sucker_punch,
4
+ target: SuckerPunch::Queue.singleton_class,
5
+ method_name: :find_or_create,
6
+ exception_class: Isolator::BackgroundJobError
@@ -8,3 +8,5 @@ end
8
8
 
9
9
  require "isolator/adapters/background_jobs/sidekiq" if defined?(Sidekiq::Client)
10
10
  require "isolator/adapters/background_jobs/resque" if defined?(Resque)
11
+ require "isolator/adapters/background_jobs/resque_scheduler" if defined?(Resque::Scheduler)
12
+ require "isolator/adapters/background_jobs/sucker_punch" if defined?(SuckerPunch::Queue)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Isolator
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
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.2.0
4
+ version: 0.2.1
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-23 00:00:00.000000000 Z
11
+ date: 2018-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sniffer
@@ -206,6 +206,34 @@ dependencies:
206
206
  - - ">="
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: resque-scheduler
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: sucker_punch
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
209
237
  description: Detect non-atomic interactions within DB transactions
210
238
  email:
211
239
  - dementiev.vm@gmail.com
@@ -234,7 +262,9 @@ files:
234
262
  - lib/isolator/adapters/background_jobs.rb
235
263
  - lib/isolator/adapters/background_jobs/active_job.rb
236
264
  - lib/isolator/adapters/background_jobs/resque.rb
265
+ - lib/isolator/adapters/background_jobs/resque_scheduler.rb
237
266
  - lib/isolator/adapters/background_jobs/sidekiq.rb
267
+ - lib/isolator/adapters/background_jobs/sucker_punch.rb
238
268
  - lib/isolator/adapters/base.rb
239
269
  - lib/isolator/adapters/http.rb
240
270
  - lib/isolator/adapters/http/sniffer.rb