url_tokenizer 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/url_tokenizer/wowza.rb +6 -4
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0986700f3d09a93ee40fa87e98b22bef740d65ee
4
- data.tar.gz: 1d2d36c5d9dd5c8e64513acc3424e1582e8956cd
3
+ metadata.gz: 8184a52e7f3e497e444b12a011dbc15a75970c4b
4
+ data.tar.gz: 255ee09df27f9f4c9d48f45cb378540f3c4bf59d
5
5
  SHA512:
6
- metadata.gz: c389214dec19186c62700876375ca0ba36edcb86fa1b2c92d8c98fd98a2d324ca91f3672833f5da2caa400bc31b7f5a8fef4a02577fca5e57857303a4bd7e2b8
7
- data.tar.gz: d8d076a87f1fa00c205e39bcc3df0980172185c65c82f51c8a56086ceddd93a8a88083c8ba1e5ead5190e815770c7d4fac17a2f0cae97a8c73b835eea047d3f8
6
+ metadata.gz: 4ebee59503b6e4c16b168cf4ffcf73273deeb0c07efc65b1c913a62813d8267f698de57878ecf25cbe68a381797f473b00fac2a69fbde9f777bff1632b3ca44d
7
+ data.tar.gz: 0357a3504d3ffd143fd4f7223d911bb1aa0d873ef505c1956ea894745c93c9b094d38fb7a04b49abcd64d86b79bdffd93c98c6a4115c53a57473a3462439e456
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.3
1
+ 1.1.4
@@ -35,10 +35,12 @@ module UrlTokenizer
35
35
  end
36
36
 
37
37
  def encode_query(url, provider_options)
38
- string_to_tokenize = [
39
- "#{ url }?#{ key }",
40
- build_query(provider_options)
41
- ].compact.join '&'
38
+ pieces = build_query(provider_options).split('&')
39
+ pieces << key
40
+
41
+ query = pieces.compact.sort.join '&'
42
+
43
+ string_to_tokenize = "#{ url }?#{ query }"
42
44
 
43
45
  build_query provider_options.merge(
44
46
  wowzatokenhash: digest(string_to_tokenize)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: url_tokenizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Paramonov