rack-prefer 0.2.1 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack/prefer.rb +1 -1
- data/lib/rack/prefer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a5ff790ed1ec0b64a34391353515eddf5aadfc5
|
4
|
+
data.tar.gz: 26f388e1e8246aac227bce1b7d2970714e79f7d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52cb231eac322ae7768b6fe81b940c06e26a2bdd9bcdbce114c5c07a2c1f7c94e97ee44a7e7d3c9c4558aa3dca543fb73f12d2e0abe4040a0d27f60afd1cc023
|
7
|
+
data.tar.gz: 0aca9a4d6e9a4c7a2176d714f23c29722282b5b84d67055968b6de0814e7a71330c503406964431c41993ebfb8d4e1ced5c43000c8f4e24abc1e08ec9a295d10
|
data/lib/rack/prefer.rb
CHANGED
@@ -7,7 +7,7 @@ module Rack
|
|
7
7
|
|
8
8
|
def initialize(req)
|
9
9
|
@values = CGI.parse(
|
10
|
-
(req.
|
10
|
+
(req.env['HTTP_PREFER'] || '').gsub(',','&').gsub(' ','')
|
11
11
|
)
|
12
12
|
@values = {} if !@values.is_a?(Hash)
|
13
13
|
@values.each{|k,v| @values[k] = v.first}
|
data/lib/rack/prefer/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-prefer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Filippos Vasilakis
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-12-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|