test_track_rails_client 4.0.0.alpha10 → 4.0.0.alpha11

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: ca0050364986fb6ceb12563a3442cd7730e2f718
4
- data.tar.gz: 19b0350fb87fd5cf8f572efdf10cb47788e07cab
3
+ metadata.gz: 8f67041dc87c99e93672e4d9b821bd8cd4cf7fd8
4
+ data.tar.gz: 3a46c5e317ebd42896a05812a5bfc7f17cafe697
5
5
  SHA512:
6
- metadata.gz: cbf9a7b291712fbf42947f95e7640cddfe70dcd053ebd42f173b4c3867fa350cd7e14c7f3863d40d7039f3e700d36ddc4440dba9de8815a87e66fa7196f84531
7
- data.tar.gz: 02bb28ab4a8d73b8cbaef9d285fdea8082d005516a0369d200fa2ae404809420072e5b76068c346c04638be5b9e7816bb1d847436e781c3ed4ee26fcc38fb152
6
+ metadata.gz: 0cdac598e2643894f56eb96222b65139591454cc99417ed5bc96e9703fbef633f066b52cae275eeba369f32aa827c2da2317542b0daf72055177ce1bedd23237
7
+ data.tar.gz: f9f5f31072b79aca2cc436ef60aa0d6d27f100b68540586a615df9201e150f401fbbc207d89e756488e187b87e85efd4d25831d030f6ecbea4e79b5256a91c89
@@ -34,5 +34,7 @@ class TestTrack::LazyVisitorByIdentity
34
34
  id: remote_visitor.id,
35
35
  assignments: remote_visitor.assignments
36
36
  )
37
+ rescue *TestTrack::SERVER_ERRORS => e
38
+ raise TestTrack::UnrecoverableConnectivityError, e
37
39
  end
38
40
  end
@@ -0,0 +1,4 @@
1
+ module TestTrack
2
+ class UnrecoverableConnectivityError < RuntimeError
3
+ end
4
+ end
data/lib/test_track.rb CHANGED
@@ -10,6 +10,7 @@ require 'mixpanel-ruby'
10
10
  require 'resolv'
11
11
  require 'faraday_middleware'
12
12
  require 'request_store'
13
+ require 'test_track/unrecoverable_connectivity_error'
13
14
 
14
15
  module TestTrack
15
16
  module_function
@@ -1,3 +1,3 @@
1
1
  module TestTrackRailsClient
2
- VERSION = "4.0.0.alpha10" # rubocop:disable Style/MutableConstant
2
+ VERSION = "4.0.0.alpha11" # 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.alpha10
4
+ version: 4.0.0.alpha11
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: 2018-08-01 00:00:00.000000000 Z
16
+ date: 2018-10-23 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: airbrake
@@ -303,6 +303,7 @@ files:
303
303
  - lib/generators/test_track/migration_generator.rb
304
304
  - lib/tasks/test_track_rails_client_tasks.rake
305
305
  - lib/test_track.rb
306
+ - lib/test_track/unrecoverable_connectivity_error.rb
306
307
  - lib/test_track_rails_client.rb
307
308
  - lib/test_track_rails_client/assignment_helper.rb
308
309
  - lib/test_track_rails_client/engine.rb