http-accept 1.4.0 → 1.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 +4 -4
- data/lib/http/accept/languages.rb +2 -1
- data/lib/http/accept/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d796699087069177a88837346428ba7cbc95fb1e
|
4
|
+
data.tar.gz: 27f7eb10dd18199d9079725bf1dc068b50abdf54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
data/lib/http/accept/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|