test_track_rails_client 0.9.18 → 0.9.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/models/test_track/session.rb +14 -1
- data/lib/test_track_rails_client/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjBiNDc0ODg2MTNiMjFjYjdjMzg5Y2EyOGFlNjk3MTNjN2I4ZWY2OA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmVkMzc4NmNjNDgwZDM2OTE1YTZjOGJhYzM5ZmM4MTVmOTI1OWMwYg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzNhNjg4ZmJjNTE0NWY1MjgxMjY2YzM0ZmE1ZGI4NDYzNmIyNzc5MTYxMzhk
|
10
|
+
OGZkYmI5YTVjMDc1N2VkNjllNDZiNzE0MjNlMDgyNGU1ZDExZDQ3MGQyMjE4
|
11
|
+
NzM0ZmM5MDk2MGQ3OWJlYzRhNjRhOTVmZDY3NGE3NmEyMWMwMGY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
-
|
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
|
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.
|
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:
|
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:
|
414
|
+
version: !binary |-
|
415
|
+
MS45LjM=
|
415
416
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
416
417
|
requirements:
|
417
418
|
- - ! '>='
|