hubrise_initializer 1.0.4 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +1 -1
- data/lib/hubrise_initializer/lograge.rb +6 -4
- data/lib/hubrise_initializer/version.rb +1 -1
- data/lib/hubrise_initializer.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e164109cf0488dcc05d61b2ae44ae497291e1bf804e3e929f9cb7e996bbe4199
|
4
|
+
data.tar.gz: d57974cc92c7c0747db8ae2b2c3db9235cdd25fac8a6054152092e04feb66d2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
113
|
+
msgpack (1.6.0)
|
114
114
|
nio4r (2.5.8)
|
115
115
|
nokogiri (1.13.7)
|
116
116
|
mini_portile2 (~> 2.8.0)
|
data/README.md
CHANGED
@@ -41,10 +41,12 @@ class HubriseInitializer
|
|
41
41
|
def switch_to_utf8(s)
|
42
42
|
return unless s
|
43
43
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
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)"
|
data/lib/hubrise_initializer.rb
CHANGED
@@ -65,7 +65,7 @@ class HubriseInitializer
|
|
65
65
|
end
|
66
66
|
|
67
67
|
def configure_active_job_logger
|
68
|
-
Rails.application.
|
68
|
+
Rails.application.initializer("hubrise_initializer.active_job.logger", after: "active_job.logger") do
|
69
69
|
ActiveJob::Base.logger = case ENV["RAILS_LOGGER"]
|
70
70
|
when "stdout", "fluentd"
|
71
71
|
# Do not send ActiveJobs logs to fluentd as this would create new Elasticsearch entries detached from the
|
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.
|
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-
|
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.
|
105
|
+
rubygems_version: 3.3.5
|
106
106
|
signing_key:
|
107
107
|
specification_version: 4
|
108
108
|
summary: Rails app initializers optimized for HubRise
|