rack-logjam 0.0.4 → 0.1.0

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: 55e2a3c349fcd4d33da681c9eed409c8aa8a155f
4
- data.tar.gz: 2a12ce51012f33c209d8e71220d131b54831b55e
3
+ metadata.gz: 1b41ef65c7eded4ea8dea271c8b87d7efd09a9dd
4
+ data.tar.gz: 9a9a132674d17a97b9def761ca94b43cc26568c5
5
5
  SHA512:
6
- metadata.gz: 518502842cb28999d9a40e133167cbbe5fdf70398f4f5bee8ac134d142b51d9f7d9344df927042134320476bbb638e62c5f5d237bc20dbf95afdb63ab023f312
7
- data.tar.gz: 16957d2c2cf3ee7cbe1d68f93dc2d158c555685c49b003cb09c5124b6c05b28768c67a32a127cb940afe29fcc1045d6a92fee1cff7b29a0f2ecc143da6c2771f
6
+ metadata.gz: 2200c484906b60998f5ea1f704fa99a9643bc3ca7be94c4e8eded4ed2501ac09263357337554efb72770f79fde9656aa1512f6ac78d7dfd88b97d44522ccb3bb
7
+ data.tar.gz: 553ef5c793e5d16dfe725c90cf350085d11b377d07f905e47b581f8de8583b05e8b935e0b914ae448cbb117d67115b2c3b78b9a245b5dbceff7f4a784cc7330a
@@ -41,7 +41,7 @@ module Rack
41
41
  Status: #{status}
42
42
  Headers: #{headers.inspect}
43
43
  Body:
44
- #{ANSI.cyan { format_body( response.body, accept( env ), env ) }}
44
+ #{ANSI.cyan { format_body( (response.body rescue response), accept( env ), env ) }}
45
45
  end_info
46
46
  end
47
47
 
@@ -85,6 +85,7 @@ Body:
85
85
  end
86
86
 
87
87
  def format_body( body, format, env )
88
+ return body.inspect if body.is_a?( Array )
88
89
  return body if body.strip.nil? || body.strip.empty?
89
90
 
90
91
  if format == ::Mime::JSON.to_s
@@ -2,7 +2,7 @@ module Rack
2
2
 
3
3
  module Logjam
4
4
 
5
- VERSION = '0.0.4'
5
+ VERSION = '0.1.0'
6
6
 
7
7
  end
8
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-logjam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Harrelson
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-09 00:00:00.000000000 Z
12
+ date: 2014-10-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -124,4 +124,3 @@ signing_key:
124
124
  specification_version: 4
125
125
  summary: Logs helpful HTTP information on Rack requests.
126
126
  test_files: []
127
- has_rdoc: