susu 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9265159ea4ffbfd96a81c1fb6b32764efee6526f
4
- data.tar.gz: 76dfbb7c827da1aa6bae3d78a607bf79c8175a11
3
+ metadata.gz: 4223e5a03ac2c83ebb1b98b701ab75c78dd420ab
4
+ data.tar.gz: d7c9838def56b9b4b77b901728a254cd8d1fe499
5
5
  SHA512:
6
- metadata.gz: 162ecc3408bb9c172ec727581e4e995a9212e87a8270f6f4bbe208ba8284a77e85a84ee6572b6ac5b2b8e95e7c940cdacaefa9767bc761153a0347cb4a081607
7
- data.tar.gz: 32c321be14084c961f313a22555cd9fb126e1cf318c6c14d26602840b0dfd682ae3e81d8fc61193b433977f60e3c5983b3e10902315894c356f1d87f9482a7cd
6
+ metadata.gz: 83b97c235e6c2f36ebbdcbee7b3e4fc29b9e2177ffcaf9a7694687d1ef859e70a72af85c6c6767f2ab140cf3d5dc46c4262652c82876062aa169b4cb32fabf64
7
+ data.tar.gz: fb120b47ede95dacc8e58f1adb2a58e2174725cd06738a4b6f20b21b330c6dd8b50c4dc0ca43ef50ae20985d5ea600c620c19ad8b5ddb739a33ed13e8e7fc779
data/lib/susu/susu.rb CHANGED
@@ -22,6 +22,8 @@ module Susu
22
22
  method = method.to_s.upcase
23
23
  response_body = parse_body(response, encoding, content_type)
24
24
  post_params = utf_encoded(post_params.to_s.dup)
25
+ response_body = '' if [500, '500', 404, '404'].include?(status)
26
+
25
27
  # log("#{method.to_s.upcase} #{uri} completed with status code #{status} in #{seconds} seconds")
26
28
  log("\n#{LOG_PREFIX}method=#{method} path=#{uri} status=#{status} duration=#{duration} post_params=#{post_params} response=#{response_body}")
27
29
  end
data/lib/susu/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Susu
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: susu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - hoptq