http_event_logger 0.1.0.rc3 → 0.1.0.rc4

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: de9d42502d6b49be918870c4d4d7cc56d34409a2
4
- data.tar.gz: 3354bf5b60ff429421f73af05b5132b23f5551fd
3
+ metadata.gz: 7b72946022e914339544c26d5023c306d3f4ca36
4
+ data.tar.gz: 07ee6922e997f6772cb153b322c24780c46e75bd
5
5
  SHA512:
6
- metadata.gz: 1cb7fff0c4f5aa0d589d3129c8c368fcc0a3984337b7b9eba02f58cec8f2814e23bd49335d59bb3832b4475cb23e334171ba2a07ad4a792809665c3e43355cf8
7
- data.tar.gz: c28540272e0a389fec2d13cb1edfac6397182dd8373cb621873a7412e4ad6631312c3ef75dbca4fe0a0d6127cd07656682f90e1a7265add2fa7684bbbfe2263a
6
+ metadata.gz: d97a397a87801a98cdb9c9437627463329f71283167f28770297228082d50e84c5afa7d3215c2f5b9444fff32cbe958259c5828d49671cfd7a9ab88b76cabaec
7
+ data.tar.gz: 9dc6c15f52a4c89adfd6d957b0ac385d91a98be2e44b101f8533f589d83c795a13c19a71c2e6ba499536ab55d73cfe79224d38e42918a583fb9cc4b12ec25a52
@@ -16,12 +16,6 @@ module HttpEventLogger
16
16
  HttpEventLogger::Event::Observer.observe(:received, self)
17
17
  end
18
18
 
19
- def body_with_formatting
20
- body.include?("\n") ? "\n#{body}" : body
21
- end
22
-
23
- private
24
-
25
19
  def body
26
20
  if body_read_deferred?
27
21
  "[not available]"
@@ -32,6 +26,12 @@ module HttpEventLogger
32
26
  end
33
27
  end
34
28
 
29
+ def body_with_formatting
30
+ body.include?("\n") ? "\n#{body}" : body
31
+ end
32
+
33
+ private
34
+
35
35
  # open-uri wraps the response in a Net::ReadAdapter, so the response body is not available yet
36
36
  def body_read_deferred?
37
37
  @raw_body.is_a?(Net::ReadAdapter)
@@ -1,3 +1,3 @@
1
1
  module HttpEventLogger
2
- VERSION = "0.1.0.rc3".freeze
2
+ VERSION = "0.1.0.rc4".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http_event_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.rc3
4
+ version: 0.1.0.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Ueckerman