shb 0.0.3 → 0.0.4

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: cdc3a72b6032d46883aed8f77e69cb31cb383b93
4
- data.tar.gz: 08b208e4f0947c2e0c21c893f9ffbe46a7c6c7f2
3
+ metadata.gz: b24b2293efb51a6d6bf1b42dfc1cac0350e7d442
4
+ data.tar.gz: d57822f8141f5435ec505fa7c4117525c313b211
5
5
  SHA512:
6
- metadata.gz: 3885df3451532f906bc6c857d5cb2daa84f1b3311e034522096ca4af6f3aee71e2668c59a3cf1388d2319f63e560686e92a2d20a98caa1a7df7845d897f91bdf
7
- data.tar.gz: 52781eb715d77113aa179d333761fbd35b6148522af22621689594c78e9546b6ed38741dad2713dcecdd916d0ab7a5655270d1116306ec3b069927ee1607b0d5
6
+ metadata.gz: 7d0e7991dbc05e3ca7df6855f18e5c7e9175db0529972b1a3d4368ff4256bd7ec7ee7db32b921a86c562fcf8a05eb6724e909e5dd97044b928c746ded0018c6e
7
+ data.tar.gz: 3b73cb75413c14cbcf3db4db95259124983209d4c17ae47d3d783616436d21ce207357cff946187aeaba0683a20e8d57d690204880e0af43656b7b1f449a73c7
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013 Philip Hallstrom
1
+ Copyright (c) 2013 Supreme Golf
2
2
 
3
3
  MIT License
4
4
 
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
19
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
20
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
21
  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -89,16 +89,20 @@ module Shb
89
89
 
90
90
  io.puts
91
91
  io.puts ">>>>>>>>>> #{response.request.http_method::METHOD} #{response.request.last_uri.to_s}"
92
- response.request.options[:headers].sort.each do |k,v|
93
- io.puts "#{k}: #{v}"
92
+ response.request.options[:headers].sort.each do |k,vs|
93
+ [vs].flatten.each do |v|
94
+ io.puts "#{k}: #{v}"
95
+ end
94
96
  end
95
97
  io.puts
96
98
  io.puts response.request.options[:body]
97
99
 
98
100
  io.puts
99
101
  io.puts "<<<<<<<<<< #{response.code} #{response.message}"
100
- response.headers.sort.each do |k,v|
101
- io.puts "#{k}: #{v}"
102
+ response.headers.sort.each do |k,vs|
103
+ [vs].flatten.each do |v|
104
+ io.puts "#{k}: #{v}"
105
+ end
102
106
  end
103
107
  io.puts
104
108
  io.puts response.body
data/lib/shb/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Shb
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Hallstrom
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-08 00:00:00.000000000 Z
11
+ date: 2014-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport