cookies_eu 1.7.4 → 1.7.5

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: 21c2f8a5f27fa8ab770c3be110887798644f17cd9a239fad25c2b92e7aa66f8c
4
- data.tar.gz: 2c38d7762ab9419852746965ceb6267fbae8046386cbf2471ef5ef167675ac06
3
+ metadata.gz: f206986510423550598fa2a1ec037a6cd8b14bca84f14b960505f89c1b3be205
4
+ data.tar.gz: bc5257e6875f8287f38b25372b377784d53d3ddc11802c5cb7ec64ad3c53c292
5
5
  SHA512:
6
- metadata.gz: 504941b367fac69fe25c180ffff1d179bb655159aa613adedc2a3afbbe452c661a715e0825806d9eb835f4394b18599415b92dcdb4d4b66eb97560294bc2d231
7
- data.tar.gz: 57a32e1243c5537f3a9df7cc8dbde9c116c0bedc890a4fa1b7945e20dcb4d5eaae952111b8b31b07d220e6c42e6dedce016d5067c72df90b6bad7e6b7b7ed886
6
+ metadata.gz: baa2a9c7b8732e9498489bd51909b29a2646cc54835358462602fa63b4d84c604beb5d0255daa841fcfc017bae95af99dc7f41b1209db0d418bf2623b0c00de0
7
+ data.tar.gz: 4dfc02c81cd45ee004b2163e0eee4dd305c15e19c120c793df8920c77112f316b08a9079590967f0f787a56260a033b98e04324df26b5ca8e91b8b894e5327a2
@@ -24,7 +24,8 @@ var cookiesEu = {
24
24
  },
25
25
 
26
26
  setCookie: function() {
27
- Cookies.set('cookie_eu_consented', true, { path: '/', expires: 365 });
27
+ var isSecure = location.protocol === 'https:';
28
+ Cookies.set('cookie_eu_consented', true, { path: '/', expires: 365, secure: isSecure });
28
29
 
29
30
  var container = document.querySelector('.js-cookies-eu');
30
31
  container.parentNode.removeChild(container);
@@ -6,8 +6,8 @@ require 'cookies_eu/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "cookies_eu"
8
8
  spec.version = CookiesEu::VERSION
9
- spec.authors = ["Stjepan Hadjic"]
10
- spec.email = ["stjepan.hadjic@infinum.hr"]
9
+ spec.authors = ["Stjepan Hadjic", "Gabrijel Skoro"]
10
+ spec.email = ["stjepan.hadjic@infinum.hr", "gabrijel.skoro@gmail.com"]
11
11
  spec.description = %q{Displays a cookie consent}
12
12
  spec.summary = %q{Displays a cookie consent. If you dont disable cokkies in settings, we assume you are ok with us using cookies}
13
13
  spec.homepage = "https://github.com/infinum/cookies_eu"
@@ -1,3 +1,3 @@
1
1
  module CookiesEu
2
- VERSION = "1.7.4"
2
+ VERSION = "1.7.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cookies_eu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.4
4
+ version: 1.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stjepan Hadjic
8
+ - Gabrijel Skoro
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2019-01-04 00:00:00.000000000 Z
12
+ date: 2019-01-30 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: js_cookie_rails
@@ -55,6 +56,7 @@ dependencies:
55
56
  description: Displays a cookie consent
56
57
  email:
57
58
  - stjepan.hadjic@infinum.hr
59
+ - gabrijel.skoro@gmail.com
58
60
  executables: []
59
61
  extensions: []
60
62
  extra_rdoc_files: []