hubrise_initializer 1.0.5 → 1.0.6

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: 9f9790a54b0c9d27bbf7feeb4233ba20200618d10e8b6dac2f576aa0719075dc
4
- data.tar.gz: 2c7ad455dd3a9e29b7c6a0632b921c29b48e81bb1c2d48ba65d4703d30b2f1c9
3
+ metadata.gz: e164109cf0488dcc05d61b2ae44ae497291e1bf804e3e929f9cb7e996bbe4199
4
+ data.tar.gz: d57974cc92c7c0747db8ae2b2c3db9235cdd25fac8a6054152092e04feb66d2c
5
5
  SHA512:
6
- metadata.gz: 960c86b65e78b659750c5d05ff63b8cf7b2160ee905e5ff5b63b9ff3dc7020e1b1392cc1a05978134479d97b782c15ed4545938ce385f6ed14e475115c520ec2
7
- data.tar.gz: 21c0a7b5c5e194e4119f031a3736c0a34f0d6d56c678dc84d8e6c8b6c1c91a57197e975662b4de1ff5bd484976a30b7d1b61c8ad3ad813f1d5cd3f6f18f9e573
6
+ metadata.gz: a0a9800de0dfa9dc5091664eae69f31519ceadbf3b0d28991f9fdba4a6f2e62864cb4e21fcdb6bcf071c2d7131d890617cec3fbadfd229af40fbaa3fd4cac0c9
7
+ data.tar.gz: 329472573bf26b2de9d06757989e87f19ff2c788221bd4bd426833033ef6aa0f57982b79da16d9d43f161b015d78b488de90afe15f0b73ada16a8754c1a03bf8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hubrise_initializer (1.0.5)
4
+ hubrise_initializer (1.0.6)
5
5
  act-fluent-logger-rails (~> 0.6)
6
6
  lograge (~> 0.11)
7
7
  lograge-sql
@@ -110,7 +110,7 @@ GEM
110
110
  mini_mime (1.1.2)
111
111
  mini_portile2 (2.8.0)
112
112
  minitest (5.16.2)
113
- msgpack (1.5.3)
113
+ msgpack (1.6.0)
114
114
  nio4r (2.5.8)
115
115
  nokogiri (1.13.7)
116
116
  mini_portile2 (~> 2.8.0)
@@ -41,10 +41,12 @@ class HubriseInitializer
41
41
  def switch_to_utf8(s)
42
42
  return unless s
43
43
 
44
- return s if s.encoding == Encoding::UTF_8
45
-
46
- s_utf_8 = s.dup.force_encoding(Encoding::UTF_8)
47
- return s_utf_8 if s_utf_8.valid_encoding?
44
+ if s.encoding == Encoding::UTF_8
45
+ return s if s.valid_encoding?
46
+ else
47
+ s_utf_8 = s.dup.force_encoding(Encoding::UTF_8)
48
+ return s_utf_8 if s_utf_8.valid_encoding?
49
+ end
48
50
 
49
51
  # Fallback for binary data
50
52
  "Binary (#{s.size} bytes)"
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  class HubriseInitializer
3
- VERSION = "1.0.5"
3
+ VERSION = "1.0.6"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubrise_initializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antoine Monnier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-20 00:00:00.000000000 Z
11
+ date: 2022-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lograge
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  requirements: []
105
- rubygems_version: 3.1.2
105
+ rubygems_version: 3.3.5
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: Rails app initializers optimized for HubRise