http-accept 1.4.0 → 1.4.2

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
2
  SHA1:
3
- metadata.gz: ce16687c7850ca9d1dd0be4c680adb9b97ee4da6
4
- data.tar.gz: d499d0388301d0a70af43c4c1a6cb434c20ec603
3
+ metadata.gz: d796699087069177a88837346428ba7cbc95fb1e
4
+ data.tar.gz: 27f7eb10dd18199d9079725bf1dc068b50abdf54
5
5
  SHA512:
6
- metadata.gz: 222edb80960c3dbee1d005edff20f74397ed570bf78f96a23630a6755aecc78918fcff1710d8a5b592b8061629951841c8affcd111d790145667a5a18f2ff6b4
7
- data.tar.gz: 16dc4e102473806c8b00b24ec29a246f9009d61681a09847d328e81bab6125d1376a3db913b58700f894d04d626c522c39d4795182093fba1fa1d2c23a8ea2db
6
+ metadata.gz: 9f9cb152092c9288ff39b0d50427207450fe39dfb7b425eca018ac4741694af586315fd4991a7233e35158e33b07f2c5cdb2251b201a5b20bd293bc13ccf8455
7
+ data.tar.gz: 448a727b5a490c5e3eb877b3a88044f1d2af41ab4d27de991a27d38b2c178ad4ffc093da3ac18f382afd479ee2f036dbfb5c314e4c42727b14a1f4278ec0aa1b
@@ -32,7 +32,8 @@ module HTTP
32
32
  # https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.9
33
33
  QVALUE = /0(\.[0-9]{0,3})?|1(\.[0]{0,3})?/
34
34
 
35
- LANGUAGE_RANGE = /(?<locale>#{LOCALE})(;q=(?<q>#{QVALUE}))?/
35
+ # https://greenbytes.de/tech/webdav/rfc7231.html#quality.values
36
+ LANGUAGE_RANGE = /(?<locale>#{LOCALE})(\s*;\s*q=(?<q>#{QVALUE}))?/
36
37
 
37
38
  # Provides an efficient data-structure for matching the Accept-Languages header to set of available locales according to https://tools.ietf.org/html/rfc7231#section-5.3.5 and https://tools.ietf.org/html/rfc4647#section-2.3
38
39
  class Locales < Array
@@ -20,6 +20,6 @@
20
20
 
21
21
  module HTTP
22
22
  module Accept
23
- VERSION = "1.4.0"
23
+ VERSION = "1.4.2"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http-accept
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-19 00:00:00.000000000 Z
11
+ date: 2016-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  version: '0'
96
96
  requirements: []
97
97
  rubyforge_project:
98
- rubygems_version: 2.5.2
98
+ rubygems_version: 2.5.1
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: Parse Accept and Accept-Language HTTP headers.