http-accept 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/http/accept/languages.rb +1 -1
- data/lib/http/accept/media_types.rb +2 -3
- 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: 3a7f746dc94e3b5c11723e592682f5a8cd7059ee
|
4
|
+
data.tar.gz: c96d725eddaf783346e22794a8fd2d0b35b1a23b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7747cc2209e7a651ef8f78fe96571929b930ac0f4274b8df11ce373673f06be47b9ed5f1955dd33c58d83b91fe4c3a95288b803a0601de5a3d198f0b7358c34
|
7
|
+
data.tar.gz: c69414ed28b553888a5912ccd59d86eb32f3cbebbfc355b2aa5c51084fb62bfca807db60bad584d548d22c150f1899f5a631c8518d6cefe00b003cbe4a3e974c
|
@@ -100,19 +100,18 @@ module HTTP
|
|
100
100
|
while scanner.scan(PARAMETER)
|
101
101
|
key = scanner[:key]
|
102
102
|
|
103
|
+
# If the regular expression PARAMETER matched, it must be one of these two:
|
103
104
|
if value = scanner[:value]
|
104
105
|
parameters[key] = value
|
105
106
|
elsif quoted_value = scanner[:quoted_value]
|
106
107
|
parameters[key] = QuotedString.unquote(quoted_value, normalize_whitespace)
|
107
|
-
else
|
108
|
-
raise ParseError.new("Could not parse parameter!")
|
109
108
|
end
|
110
109
|
end
|
111
110
|
|
112
111
|
yield self.new(mime_type, parameters)
|
113
112
|
|
114
113
|
# Are there more?
|
115
|
-
|
114
|
+
break unless scanner.scan(/\s*,\s*/)
|
116
115
|
end
|
117
116
|
|
118
117
|
raise ParseError.new("Could not parse entire string!") unless scanner.eos?
|
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.1.
|
4
|
+
version: 1.1.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-
|
11
|
+
date: 2016-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
93
|
version: '0'
|
94
94
|
requirements: []
|
95
95
|
rubyforge_project:
|
96
|
-
rubygems_version: 2.
|
96
|
+
rubygems_version: 2.4.8
|
97
97
|
signing_key:
|
98
98
|
specification_version: 4
|
99
99
|
summary: Parse Accept and Accept-Language HTTP headers.
|