plz 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/plz/response.rb +3 -1
- data/lib/plz/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d16e7dc1ce2ee151b95707d38a2c7e01c083e8e4
|
4
|
+
data.tar.gz: 7c3589d4cafde4a6b993ec2d5b073c2cc43b0ba3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b252fcd39c83256aba2b89a0f1e64c00c753865cac668c8124ba0fb56e78eb022c3d1df42a3089a529f553de65f403e96bb643f5f0296d5ff5243311286946cd
|
7
|
+
data.tar.gz: 4e379afb816dc5f2a2cf4b2e0812f4bc8c1b4c7cf76a17aa5d5cf19d4b62b673d7e2b82664a4383a95f23ab7f494cd99f8f4dda1316e94768a898b63d5c753f7
|
data/CHANGELOG.md
CHANGED
data/lib/plz/response.rb
CHANGED
@@ -24,13 +24,15 @@ module Plz
|
|
24
24
|
private
|
25
25
|
|
26
26
|
# @return [Array<String>]
|
27
|
+
# @example
|
28
|
+
# headers #=> ["Content-Type: application/json"]
|
27
29
|
def headers
|
28
30
|
@raw.headers.sort_by do |key, value|
|
29
31
|
key
|
30
32
|
end.map do |key, value|
|
31
33
|
"%{key}: %{value}" % {
|
32
34
|
key: Rainbow(key.split("-").map(&:camelize).join("-")).underline,
|
33
|
-
value: value,
|
35
|
+
value: Rainbow(value).green,
|
34
36
|
}
|
35
37
|
end
|
36
38
|
end
|
data/lib/plz/version.rb
CHANGED