distack-urlsign 0.3.2 → 0.3.3

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
- SHA1:
3
- metadata.gz: 7fa33d08fc927d8297e304ce2966779fdd8ca6ab
4
- data.tar.gz: 3474af3ad913ee2e79ae0f2cf78ec3915c6ff7b8
2
+ SHA256:
3
+ metadata.gz: d8bf28b92db9b96ee64d93239c8aec5ae0888db8da7fabbc8d4391554c99295b
4
+ data.tar.gz: e64f55df83f3820c5aca2b40040230db7d739bf26e8cdab8d607535e8c16f33a
5
5
  SHA512:
6
- metadata.gz: 1ad987c2d9c6fbe61bcb5a8b5783e3d2274a9cdde280c05261573a3ca5ffc2d099c4914f36d862883288bbf05d37848be8f2b89087279575e54900ba1d1191a3
7
- data.tar.gz: cb5812370e9ba645c89c271cf91c28c2f50b20bcef87e3dc4188cf915a8e189d741d8bbb1ec5d04d5ae64490d11053e5a587cf933b098ba773741bb0a55dbad4
6
+ metadata.gz: 2f265a643120ac6b637e0cded9f532709c853e416006ad9336e0a4f7a700816ca31dc4c08077060417b64bd21c3da8213c8bb9416c95aa9a4b6e89c06e9fc923
7
+ data.tar.gz: 6360cf15b12d4383f41d07fe931dd17e22e6869d4d24487923d7506d9f912f19cf86c29813b1ee4cac54e56ce93516498d032085015673728ccf5de5802eac52
@@ -59,7 +59,7 @@ module Distack::URLSign
59
59
  rawsig = OpenSSL::HMAC.digest(digest, @key, chunks.join)
60
60
  signature = Base64.urlsafe_encode64(rawsig)
61
61
 
62
- if secure_compare(signature, URI.decode(q["_signature"]).to_s)
62
+ if secure_compare(signature, CGI.unescape(q["_signature"]).to_s)
63
63
  new_url = url.dup
64
64
  new_url.query = original_qs
65
65
  new_url
@@ -1,5 +1,5 @@
1
1
  module Distack
2
2
  module URLSign
3
- VERSION = "0.3.2"
3
+ VERSION = "0.3.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: distack-urlsign
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Kochenburger
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-13 00:00:00.000000000 Z
11
+ date: 2022-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -106,7 +106,7 @@ files:
106
106
  homepage: https://github.com/distack/urlsign-rb
107
107
  licenses: []
108
108
  metadata: {}
109
- post_install_message:
109
+ post_install_message:
110
110
  rdoc_options: []
111
111
  require_paths:
112
112
  - lib
@@ -121,9 +121,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  requirements: []
124
- rubyforge_project:
125
- rubygems_version: 2.4.5
126
- signing_key:
124
+ rubygems_version: 3.1.6
125
+ signing_key:
127
126
  specification_version: 4
128
127
  summary: urlsign is a simple HMAC-based implementation for URL signing and verification
129
128
  test_files: []