test_track_rails_client 4.0.0.alpha13 → 4.0.0.alpha14
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 +4 -4
- data/app/models/test_track/session.rb +4 -10
- data/lib/test_track_rails_client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78829ab3aa1352782eb7777f07ac0c66c2b4a21a
|
4
|
+
data.tar.gz: 807fb0fd4539fa956a0047c2e878863e0221a664
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bca371e700670448a29d2e73436147804fcd07715694b9b8e2b45d10a2a04552eb11418d711cd166e3889aa0b22595f219cbbeee3ff463df8271d1409e87f2d4
|
7
|
+
data.tar.gz: 6265f59eb1c76d43743b937ef56ded1da37c5d5f87212efefca97558ab8ce58ebfbf9253f11719aa686770b1d7c1d34ac7b6e5748e13e8bccb3fffff2b227922
|
@@ -95,10 +95,8 @@ class TestTrack::Session
|
|
95
95
|
end
|
96
96
|
|
97
97
|
def _cookie_domain
|
98
|
-
if bare_ip_address?
|
98
|
+
if bare_ip_address? || fully_qualified_cookie_domain_enabled?
|
99
99
|
request.host
|
100
|
-
elsif fully_qualified_cookie_domain_enabled?
|
101
|
-
fully_qualified_domain
|
102
100
|
else
|
103
101
|
wildcard_domain
|
104
102
|
end
|
@@ -108,16 +106,12 @@ class TestTrack::Session
|
|
108
106
|
request.host.match(Resolv::AddressRegex)
|
109
107
|
end
|
110
108
|
|
111
|
-
def fully_qualified_domain
|
112
|
-
public_suffix_host.name
|
113
|
-
end
|
114
|
-
|
115
109
|
def wildcard_domain
|
116
|
-
"." +
|
110
|
+
"." + (public_suffix_domain || request.host)
|
117
111
|
end
|
118
112
|
|
119
|
-
def
|
120
|
-
@
|
113
|
+
def public_suffix_domain
|
114
|
+
@public_suffix_domain ||= PublicSuffix.domain(request.host, default_rule: nil)
|
121
115
|
end
|
122
116
|
|
123
117
|
def manage_cookies!
|
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.
|
4
|
+
version: 4.0.0.alpha14
|
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-
|
16
|
+
date: 2018-11-09 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: airbrake
|