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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f07a8d7d61f673d93630bc76387e45042ecaba6
4
- data.tar.gz: c1b1b718a3cf09b83b80aca3c783e3c5991f84fd
3
+ metadata.gz: d16e7dc1ce2ee151b95707d38a2c7e01c083e8e4
4
+ data.tar.gz: 7c3589d4cafde4a6b993ec2d5b073c2cc43b0ba3
5
5
  SHA512:
6
- metadata.gz: 3485ee06d7409b3a8c15544245947f6fd5121165f7b488de9fd6637142a00bb18e80c7a014399d50e76a6e68f68cf9d25e0459a2cc4aba3388073ebd15b139d6
7
- data.tar.gz: 406e5b5bd2e6bd055934214adbdb50925703eef87def6633c62eebdf04acd2cc67f0613b6b056e9f082a3954758479712e0914d4836adba00ab1c65e0e4dc5f7
6
+ metadata.gz: b252fcd39c83256aba2b89a0f1e64c00c753865cac668c8124ba0fb56e78eb022c3d1df42a3089a529f553de65f403e96bb643f5f0296d5ff5243311286946cd
7
+ data.tar.gz: 4e379afb816dc5f2a2cf4b2e0812f4bc8c1b4c7cf76a17aa5d5cf19d4b62b673d7e2b82664a4383a95f23ab7f494cd99f8f4dda1316e94768a898b63d5c753f7
@@ -1,3 +1,6 @@
1
+ ## 0.0.3
2
+ * Color header value
3
+
1
4
  ## 0.0.2
2
5
  * cURL-like output
3
6
  * Color output
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Plz
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura