snowplow_ruby_duid 1.1.0.prerelease.1 → 1.1.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0d423dcf182459b3206355c703833d8d39b365887be5e45ebb25923788c7471
|
4
|
+
data.tar.gz: 70c944a2264477a68c50949191f140f8ec0eee046f46924b9d472ae8fc381da2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e67ba4ac8028d8a9432404005e2b4f98a2d213e70b56047ab790b4cb0a03865beb923a471dc992ab01345630a79aa7d529f46943bf12ee69107da617c8ba27bd
|
7
|
+
data.tar.gz: 0ed9979edb270e17662f4c2b96ae33bf65244ff8c29d1fdde3994cfc01ea6906eb530d57f7124aa8bbaf596cb039fe91d9d01fefa45c528740e474af59bf1704
|
data/README.md
CHANGED
@@ -16,13 +16,13 @@ The helper will be included in `ActionController::Base` when the gem is loaded.
|
|
16
16
|
|
17
17
|
#### Configuration
|
18
18
|
|
19
|
-
Since 2020 some browsers require extra settings on cookies, like SameSite and secure settings.
|
19
|
+
Since 2020 some browsers require extra settings on cookies, like [SameSite](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite) and [secure](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#Secure) settings.
|
20
20
|
|
21
|
-
The library provides default values for these two settings(:
|
21
|
+
The library provides default values for these two settings(:lax, false), that you can change:
|
22
22
|
|
23
23
|
```ruby
|
24
|
-
SnowplowRubyDuid::Configuration.same_site = :
|
25
|
-
SnowplowRubyDuid::Configuration.secure =
|
24
|
+
SnowplowRubyDuid::Configuration.same_site = :none
|
25
|
+
SnowplowRubyDuid::Configuration.secure = true
|
26
26
|
```
|
27
27
|
|
28
28
|
### Sinatra
|
@@ -6,8 +6,8 @@ module SnowplowRubyDuid
|
|
6
6
|
module Configuration
|
7
7
|
@allowed = %i[none lax strict]
|
8
8
|
|
9
|
-
@same_site = :
|
10
|
-
@secure =
|
9
|
+
@same_site = :lax
|
10
|
+
@secure = false
|
11
11
|
|
12
12
|
def self.same_site=(value)
|
13
13
|
raise "Not allowed value #{value}, use one of these: #{@allowed}" unless @allowed.include?(value)
|
@@ -15,7 +15,7 @@ Feature: Creating a Snowplow cookie
|
|
15
15
|
Then the cookie has the SameSite attribute equal to '<expected>'
|
16
16
|
Examples:
|
17
17
|
| setting | expected |
|
18
|
-
| |
|
18
|
+
| | lax |
|
19
19
|
| none | none |
|
20
20
|
| lax | lax |
|
21
21
|
| strict | strict |
|
@@ -26,9 +26,9 @@ Feature: Creating a Snowplow cookie
|
|
26
26
|
Then the cookie's secure setting is '<expected>'
|
27
27
|
Examples:
|
28
28
|
| true_false | expected |
|
29
|
-
| - |
|
30
|
-
| true | set
|
31
|
-
| false | not_set
|
29
|
+
| - | not_set |
|
30
|
+
| true | set |
|
31
|
+
| false | not_set |
|
32
32
|
|
33
33
|
Scenario Outline: The cookie should apply for all domains under the top-level domain (no domain for localhost or IP addresses, however)
|
34
34
|
Given the host is '<host>'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snowplow_ruby_duid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simply Business
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -152,9 +152,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
152
152
|
version: '0'
|
153
153
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
154
|
requirements:
|
155
|
-
- - "
|
155
|
+
- - ">="
|
156
156
|
- !ruby/object:Gem::Version
|
157
|
-
version:
|
157
|
+
version: '0'
|
158
158
|
requirements: []
|
159
159
|
rubygems_version: 3.0.3
|
160
160
|
signing_key:
|