hubrise_initializer 0.2.2.3 → 0.2.2.4

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
  SHA256:
3
- metadata.gz: f22710218dc1f2ceed8d40acc5fef48acce4a3fb94076d5f07cbfc82f5f966a1
4
- data.tar.gz: f87ec018c22c76edf30daccbc5174c1b5f4ec53ea9a79ecb31a6fdb80a64c870
3
+ metadata.gz: 38a0b1e4aaa8973347597a11bba638e38e61f6c19028fbdbfda8a8a4041eb5c1
4
+ data.tar.gz: e630c7e49057b857a3c342f3fb9ca5d49a2c2a6e729caa904ddf913a68701e9b
5
5
  SHA512:
6
- metadata.gz: dfe24f5765dd503483e6164a2e7639664ece0dd981afccd1ce9b05951547ff5c56b876d77954b548b51cf9c9e10efd49f24b4860e45216d67cd98eebda89f906
7
- data.tar.gz: dbe97d10b1aa560f75277df02e4d914221faaf526003b485506701072605696a2b9e1e7e15fb6d4b52f6107090ae0de501a2cb53effe46dad9566921cb38a2f0
6
+ metadata.gz: 2e49577d6eaf39b80849576ad54017813a7297b9376b48249ecad8be21f55b944145dacfa3c29eb920770231ad683f75e9cca00e8fd84673e9411d00debf7543
7
+ data.tar.gz: bb63fc2423756d040a67860700e39946654e78ca031f8884a35abdcde7a3491aedeefa140543cf171da4ed03fef0b7f839962eb0b6062e647e81e860b1f40c74
@@ -15,8 +15,8 @@ class HubriseInitializer
15
15
  params: request.query_string.presence
16
16
  }.merge(
17
17
  if ENV['RAILS_LOGRAGE_QUERY'] == 'true'
18
- puts "request.raw_post.encoding = #{request.raw_post.encoding}"
19
- puts "response.body.encoding = #{response.body.encoding}"
18
+ puts "request.raw_post.encoding = #{request.raw_post.encoding} - request.raw_post = #{request.raw_post}\n\n"
19
+ puts "response.body.encoding = #{response.body.encoding} - response.body = #{response.body}\n\n"
20
20
  {
21
21
  request_headers: process_request_headers(request).to_s,
22
22
  request_body: truncate_body(request.raw_post),
@@ -34,7 +34,9 @@ class HubriseInitializer
34
34
  TRUNCATED_BODY_MAX_LENGTH = 1000
35
35
 
36
36
  def truncate_body(s)
37
- s.presence&.squish.truncate(TRUNCATED_BODY_MAX_LENGTH, omission: '...')
37
+ s.present? ?
38
+ s.presence.squish.truncate(TRUNCATED_BODY_MAX_LENGTH, omission: '...') :
39
+ nil
38
40
  end
39
41
 
40
42
  def process_request_headers(request)
@@ -1,3 +1,3 @@
1
1
  class HubriseInitializer
2
- VERSION = '0.2.2.3'.freeze
2
+ VERSION = '0.2.2.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubrise_initializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2.3
4
+ version: 0.2.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antoine Monnier