protocol-http 0.47.0 → 0.47.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/protocol/http/header/priority.rb +5 -3
- data/lib/protocol/http/header/split.rb +10 -0
- data/lib/protocol/http/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8281f44eb94360f117cba9ef4770386d57b72049ec2200e45041f7b93193147
|
4
|
+
data.tar.gz: 0e93ed313a1a91971568b575b58db52857f15da6a92fe8764294f2b6ef2335c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f5765e41ef7706b20f8c82812099dc5e79fa6f5c9036332688e5dde9ea0a41a52d44a2442aa33d3514f977939f70c32b40fa858179d4bada70df5b70227e7ab
|
7
|
+
data.tar.gz: 8835f1c4351794d80db3c917b374648a2090c89619b9bd9deb556955a86eb230118814930d2b8d363838b49f0d2a75d7cee0f8f91bbc2393146cc8cecc9c4f68
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -29,13 +29,15 @@ module Protocol
|
|
29
29
|
# The default urgency level if not specified.
|
30
30
|
DEFAULT_URGENCY = 3
|
31
31
|
|
32
|
-
#
|
32
|
+
# The urgency level, if specified using `u=`. 0 is the highest priority, and 7 is the lowest.
|
33
|
+
#
|
34
|
+
# Note that when duplicate Dictionary keys are encountered, all but the last instance are ignored.
|
33
35
|
#
|
34
36
|
# @returns [Integer | Nil] the urgency level if specified, or `nil` if not present.
|
35
37
|
def urgency(default = DEFAULT_URGENCY)
|
36
|
-
if value = self.
|
38
|
+
if value = self.reverse_find{|value| value.start_with?("u=")}
|
37
39
|
_, level = value.split("=", 2)
|
38
|
-
return level
|
40
|
+
return Integer(level)
|
39
41
|
end
|
40
42
|
|
41
43
|
return default
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protocol-http
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.47.
|
4
|
+
version: 0.47.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -47,7 +47,7 @@ cert_chain:
|
|
47
47
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
48
48
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
49
49
|
-----END CERTIFICATE-----
|
50
|
-
date: 2024-
|
50
|
+
date: 2024-12-04 00:00:00.000000000 Z
|
51
51
|
dependencies: []
|
52
52
|
description:
|
53
53
|
email:
|
metadata.gz.sig
CHANGED
Binary file
|