shugoi 0.4.1 → 0.4.2

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: da5e8a4eb7751bc07577cd54d4ea60bd44381f2252be064d91ad3aa3a6c3b0a8
4
- data.tar.gz: 8de142c18e79994d46f79eb678fda63fe4d0733d3c712b879f7b070b6af25a69
3
+ metadata.gz: d67dd6c94281f37e1991aeee7619e56094b865d2a4af684b9a998f1900d9a402
4
+ data.tar.gz: 17c98240abde4f8ad2429e276816e8fb77ae86732d3c6d4957cf8abab0b61622
5
5
  SHA512:
6
- metadata.gz: 5d638bfaa3ab7f3ad84db4f2338750275fa874fd0c9997b7a68ea421a32ebacd13188de2ac095ada563cf34910c82f05adbed3d85b7742d15ea6d1c4bd2bdd80
7
- data.tar.gz: fa867be6f999c97f518a46ad74953672679df186c3a24adea785c70a7d507d0c49c58609348bd1119eab0ba01739373f04d8e8cc9a856832862b3febc5f5afbb
6
+ metadata.gz: 1f704301cd98d98da245d31de729da7bab4a2387e001b7cddd514a2d2a653f7d4022069548068b1d3b3c54d6ec5127fd8bf342d5d25d4f67aec22018629c0025
7
+ data.tar.gz: f190ad50e6be8fefc96513cbf925aca508cfba94aea5117ce990a1ac1d6380ff78257a57f643140d7b1c769f6bb22ede6a4ad7f7fcf98ce97fc916f29985059b
data/lib/shugoi/core.rb CHANGED
@@ -54,7 +54,7 @@ module Shugoi
54
54
  return nil if path.include?("/__shugoi/") || path.start_with?("/api/")
55
55
  ua = ctx[:ua].to_s
56
56
 
57
- if ua.match?(/Mozilla/i) && !@config.signing_secret.to_s.empty?
57
+ if !@config.signing_secret.to_s.empty?
58
58
  proof = ctx[:sg_proof].to_s
59
59
  valid_proof = !proof.empty? && @pow.valid?(proof)
60
60
  # Re-audit (résidu #3) : un cookie __sg_ok valide (HMAC serveur, 30 j) saute le
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Shugoi
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shugoi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shugoi