test_track_rails_client 4.0.0.alpha30 → 4.0.0.alpha31

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: 42a893b89a20e0f59b3141ebd08fec53a25de95c
4
- data.tar.gz: 3103bf47ccd21a2a7dd410e00f977ac1932630c0
3
+ metadata.gz: fdf7e2e9c329a7f39382c2387b46b922e139252e
4
+ data.tar.gz: 04bd33f4bbd4954d2b179530f39d6b183f4a8939
5
5
  SHA512:
6
- metadata.gz: 9e68844c7733b072423bd9553c9ad3f16fdd6b4c85eacd98e3d2c191103a5dbf4f291af0b0cdb5e00cecf518d744f320919d43feb8b40a6468c4fdd110d2d4a4
7
- data.tar.gz: 1ce1835c1399e0d0c263c544496e4f9ed2371d7e04dab2b2fc617a26d1c7581682cfc30bee6c286ce6cc62f2fa352c9bae9be5dd44455da7e2babb816c5c2cc7
6
+ metadata.gz: 6a0e93039a0ee0345f6a783085b4d39711fdce7bc79bf70d4a1350862b18997a3c26198073cfa9241f2c28db19afafff33bd8604b0af74870426c52fbe54da6f
7
+ data.tar.gz: c5a5fd759aaa90b203cfc2646cb6b3c451ba41c94de99f4076b2104c19c7b6cf9c41482afb7ae3270f387f26e008f2f9a038298fcf2cb38a1cdf168f77a6f4db
@@ -1,13 +1,13 @@
1
1
  class TestTrack::JobSession
2
2
  def manage
3
3
  raise ArgumentError, "must provide block to `manage`" unless block_given?
4
- raise "already in use" unless RequestStore[:test_track_job_session].nil?
5
4
 
5
+ original_job_session = RequestStore[:test_track_job_session]
6
6
  RequestStore[:test_track_job_session] = self
7
7
  yield
8
8
  ensure
9
9
  notify_unsynced_assignments!
10
- RequestStore[:test_track_job_session] = nil
10
+ RequestStore[:test_track_job_session] = original_job_session
11
11
  end
12
12
 
13
13
  def visitor_dsl_for(identity)
@@ -1,5 +1,5 @@
1
- module Delayed
2
- module Plugins
1
+ module TestTrack
2
+ module DelayedJob
3
3
  class JobSessionPlugin < Delayed::Plugin
4
4
  callbacks do |lifecycle|
5
5
  lifecycle.around(:invoke_job) do |job, *args, &block|
@@ -1,3 +1,3 @@
1
1
  module TestTrackRailsClient
2
- VERSION = "4.0.0.alpha30" # rubocop:disable Style/MutableConstant
2
+ VERSION = "4.0.0.alpha31" # rubocop:disable Style/MutableConstant
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_track_rails_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.alpha30
4
+ version: 4.0.0.alpha31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan O'Neill
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2019-08-27 00:00:00.000000000 Z
16
+ date: 2019-08-29 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: delayed_job
@@ -287,10 +287,10 @@ files:
287
287
  - app/views/tt/api/v1/visitors/show.json.jbuilder
288
288
  - config/initializers/test_track_api.rb
289
289
  - config/routes.rb
290
- - lib/delayed/plugins/job_session_plugin.rb
291
290
  - lib/generators/test_track/migration_generator.rb
292
291
  - lib/tasks/test_track_rails_client_tasks.rake
293
292
  - lib/test_track.rb
293
+ - lib/test_track/delayed_job/job_session_plugin.rb
294
294
  - lib/test_track/server_error_middleware.rb
295
295
  - lib/test_track/unrecoverable_connectivity_error.rb
296
296
  - lib/test_track_rails_client.rb