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 +4 -4
- data/LICENSE.txt +2 -2
- data/lib/shb/abstract_client.rb +8 -4
- data/lib/shb/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: b24b2293efb51a6d6bf1b42dfc1cac0350e7d442
|
4
|
+
data.tar.gz: d57822f8141f5435ec505fa7c4117525c313b211
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d0e7991dbc05e3ca7df6855f18e5c7e9175db0529972b1a3d4368ff4256bd7ec7ee7db32b921a86c562fcf8a05eb6724e909e5dd97044b928c746ded0018c6e
|
7
|
+
data.tar.gz: 3b73cb75413c14cbcf3db4db95259124983209d4c17ae47d3d783616436d21ce207357cff946187aeaba0683a20e8d57d690204880e0af43656b7b1f449a73c7
|
data/LICENSE.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright (c) 2013
|
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.
|
data/lib/shb/abstract_client.rb
CHANGED
@@ -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,
|
93
|
-
|
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,
|
101
|
-
|
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
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.
|
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-
|
11
|
+
date: 2014-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|