test_track_rails_client 0.9.18 → 0.9.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjA3NGI2YjliN2I5M2YwZTMxMzdmMWViMDZkYzdjMGViODhhNzFmNA==
4
+ ZjBiNDc0ODg2MTNiMjFjYjdjMzg5Y2EyOGFlNjk3MTNjN2I4ZWY2OA==
5
5
  data.tar.gz: !binary |-
6
- NmViNmVkMWU4NTI1ZmM2MDZiOGYzNTFiMTI1ZDBlZmJhYjNjMDcwMQ==
6
+ ZmVkMzc4NmNjNDgwZDM2OTE1YTZjOGJhYzM5ZmM4MTVmOTI1OWMwYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODU2NzI0NjhmNGIzOWIwYzMyZDcxY2M0MDIyNjg1ZWU5ZDJkM2QwMTk0YWE0
10
- NTc1MmZkMzY4MDMxZjQwY2NmNDk3OWRiMzM0ZmIzYmYzYWQ2OTEwNWJlMmQ0
11
- M2MxMzc2NTQ3YWQ0MzdmNjNhZDBhZjFmYzQ4NjhhYTRiZWUwYjk=
9
+ YzNhNjg4ZmJjNTE0NWY1MjgxMjY2YzM0ZmE1ZGI4NDYzNmIyNzc5MTYxMzhk
10
+ OGZkYmI5YTVjMDc1N2VkNjllNDZiNzE0MjNlMDgyNGU1ZDExZDQ3MGQyMjE4
11
+ NzM0ZmM5MDk2MGQ3OWJlYzRhNjRhOTVmZDY3NGE3NmEyMWMwMGY=
12
12
  data.tar.gz: !binary |-
13
- NzA2OWI5ZDE4OTQ0OGMwMDdlYjU0Mjg0ZmY0MDU2MTk1NzY3Nzc0MGMyNDg2
14
- NjAyMDZlOTRiMGRkNWRmOWE1NzU2ZDA3YWFiNWFiMmZhZmVkZGRhOTZlZjk3
15
- OGE2MGFlOGMyNmJlMTk0YzQ4MzZmOWM2ZjI2ZjJkOGIxM2RlYjU=
13
+ N2E1MGUxYzc4YzRjNjZiMjU1OWUyZWVlYWNiNzEzOTZkYzBmNzJhOWNiZTc4
14
+ OTMxY2U2YTU2MmJmZmJjZTAxNjg4YWI2ZjEwYTUzZDE1NzRlYjc2N2Q1NzBh
15
+ ZjQ4NmY5OWU1ZDBmYjM4NjZmNjFjNzc1OTI3ZjhhMmUyYTg3ODM=
@@ -114,7 +114,7 @@ class TestTrack::Session
114
114
  ##
115
115
  # This block creates an unbounded number of threads up to 1 per request.
116
116
  # This can potentially cause issues under high load, in which case we should move to a thread pool/work queue.
117
- Thread.new do
117
+ new_thread_with_request_store do
118
118
  TestTrack::UnsyncedAssignmentsNotifier.new(payload).notify
119
119
  end
120
120
  end
@@ -173,4 +173,17 @@ class TestTrack::Session
173
173
  def fully_qualified_cookie_domain_enabled?
174
174
  ENV['TEST_TRACK_FULLY_QUALIFIED_COOKIE_DOMAIN_ENABLED'] == '1'
175
175
  end
176
+
177
+ def new_thread_with_request_store
178
+ Thread.new(RequestStore.store) do |original_store|
179
+ begin
180
+ RequestStore.begin!
181
+ RequestStore.store.merge!(original_store)
182
+ yield
183
+ ensure
184
+ RequestStore.end!
185
+ RequestStore.clear!
186
+ end
187
+ end
188
+ end
176
189
  end
@@ -1,3 +1,3 @@
1
1
  module TestTrackRailsClient
2
- VERSION = "0.9.18" # rubocop:disable Style/MutableConstant
2
+ VERSION = "0.9.19" # 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: 0.9.18
4
+ version: 0.9.19
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: 2016-12-31 00:00:00.000000000 Z
16
+ date: 2017-02-22 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: rails
@@ -411,7 +411,8 @@ required_ruby_version: !ruby/object:Gem::Requirement
411
411
  requirements:
412
412
  - - ! '>='
413
413
  - !ruby/object:Gem::Version
414
- version: 1.9.3
414
+ version: !binary |-
415
+ MS45LjM=
415
416
  required_rubygems_version: !ruby/object:Gem::Requirement
416
417
  requirements:
417
418
  - - ! '>='