snowplow_ruby_duid 1.1.0.prerelease.1 → 1.1.0

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,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 972f7e668aa1cb73bf11332da5c932206133bc59af99c4a4cdfc1d4598ab1d6b
4
- data.tar.gz: de197f60ee4fd72f040b4fbc6539ff3d58c9e734cd7f16f69de02239b483553e
3
+ metadata.gz: a0d423dcf182459b3206355c703833d8d39b365887be5e45ebb25923788c7471
4
+ data.tar.gz: 70c944a2264477a68c50949191f140f8ec0eee046f46924b9d472ae8fc381da2
5
5
  SHA512:
6
- metadata.gz: dc84fb92fa343c0f5d264429b4e2f9e1d2ddb42fdd5fbc46e9f73c3cde26b12c041fa0215198b5515e87f8f033b09924f303fe1e50df0378a57c8f9b05904bd4
7
- data.tar.gz: 2fbed46e0c38efba11bf3665e17846cc27c6960d17edb7308c6f5e94f4d5c2bde2c49bd080eeab4b2c0bbc32bad201dd2f2478dbc00b72ba8143c8e150c9f69d
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(:none, true), that you can change:
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 = :lax
25
- SnowplowRubyDuid::Configuration.secure = false
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 = :none
10
- @secure = true
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SnowplowRubyDuid
4
- VERSION = '1.1.0.prerelease.1'
4
+ VERSION = '1.1.0'
5
5
  end
@@ -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
- | | none |
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
- | - | set |
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>'
@@ -26,8 +26,7 @@ module SnowplowRubyDuid
26
26
  domain: '.simplybusiness.co.uk',
27
27
  expires: (Time.parse '2017-01-22 15:26:31 +0000').to_time,
28
28
  path: '/',
29
- same_site: :none,
30
- secure: true,
29
+ same_site: :lax,
31
30
  value: 'domain_user_id.1421940391.0.1421940391.'
32
31
  )
33
32
  end
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.prerelease.1
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-16 00:00:00.000000000 Z
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: 1.3.1
157
+ version: '0'
158
158
  requirements: []
159
159
  rubygems_version: 3.0.3
160
160
  signing_key: