hubrise_initializer 1.0.6 → 1.0.9

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: e164109cf0488dcc05d61b2ae44ae497291e1bf804e3e929f9cb7e996bbe4199
4
- data.tar.gz: d57974cc92c7c0747db8ae2b2c3db9235cdd25fac8a6054152092e04feb66d2c
3
+ metadata.gz: 4712643d0fd1338318c2019d0727b810a7b97e8445a361835fc93d72e3e2582a
4
+ data.tar.gz: f0c1f66f34070c92e67623687b82dec02bf119c8671332b2acc45929c4329d9a
5
5
  SHA512:
6
- metadata.gz: a0a9800de0dfa9dc5091664eae69f31519ceadbf3b0d28991f9fdba4a6f2e62864cb4e21fcdb6bcf071c2d7131d890617cec3fbadfd229af40fbaa3fd4cac0c9
7
- data.tar.gz: 329472573bf26b2de9d06757989e87f19ff2c788221bd4bd426833033ef6aa0f57982b79da16d9d43f161b015d78b488de90afe15f0b73ada16a8754c1a03bf8
6
+ metadata.gz: 7bfbbfb03bc8b8f83ae24d01b062f179e26433367af7e81b7e689a8f4a3ac62661821ad843d2f5695401692c2163a71008d71a4cb9bdce128497488247b6c910
7
+ data.tar.gz: 93c27b373bfcb3f1386c8bc7ebfaf3930727dbd6e2fa06797e416dddf9ed022f9d3415899560d2d839d9b926940bed8f169590c07bc5a19be9fe04e3de9af75c
@@ -1,21 +1,20 @@
1
1
  name: rubocop
2
-
3
2
  on: push
4
3
 
5
4
  jobs:
6
- test:
5
+ rubocop:
7
6
  runs-on: ubuntu-latest
8
- name: Code style check
9
-
10
- container:
11
- image: ruby:2.7.6-bullseye
7
+ timeout-minutes: 20
12
8
 
13
9
  steps:
14
10
  - name: Clone repository
15
- uses: actions/checkout@v2
11
+ uses: actions/checkout@v4
16
12
 
17
- - name: Install rubocop
18
- run: gem install rubocop -v 0.81.0
13
+ - name: Install Ruby and the gems
14
+ uses: ruby/setup-ruby@v1
15
+ with:
16
+ ruby-version: 3.1.4
17
+ bundler-cache: true
19
18
 
20
19
  - name: Rubocop
21
- run: rubocop
20
+ run: bundle exec rubocop
@@ -1,21 +1,20 @@
1
1
  name: spec
2
-
3
2
  on: push
4
3
 
5
4
  jobs:
6
- test:
5
+ spec:
7
6
  runs-on: ubuntu-latest
8
- name: Run all
9
-
10
- container:
11
- image: ruby:2.7.6-bullseye
7
+ timeout-minutes: 20
12
8
 
13
9
  steps:
14
10
  - name: Clone repository
15
- uses: actions/checkout@v2
11
+ uses: actions/checkout@v4
16
12
 
17
- - name: Install gems
18
- run: bundle install --jobs 4 --retry 3
13
+ - name: Install Ruby and the gems
14
+ uses: ruby/setup-ruby@v1
15
+ with:
16
+ ruby-version: 3.1.4
17
+ bundler-cache: true
19
18
 
20
19
  - name: Run tests
21
- run: rspec
20
+ run: bundle exec rspec
data/.rubocop.yml CHANGED
@@ -1,6 +1,7 @@
1
1
  AllCops:
2
2
  Exclude:
3
3
  - 'db/*schema.rb'
4
+ - 'vendor/bundle/**/*'
4
5
  DisabledByDefault: true
5
6
  StyleGuideBaseURL: https://shopify.github.io/ruby-style-guide/
6
7
 
@@ -18,19 +19,21 @@ Layout/LineLength:
18
19
  Exclude:
19
20
  - 'db/migrate*/**/*'
20
21
  - 'spec/**/*'
22
+ - 'bridges/**/spec/**/*'
21
23
  AllowHeredoc: true
22
24
  AllowURI: true
23
25
  URISchemes:
24
26
  - http
25
27
  - https
26
28
  IgnoreCopDirectives: false
27
- IgnoredPatterns:
29
+ AllowedPatterns:
28
30
  - '\A\s*(remote_)?test(_\w+)?\s.*(do|->)(\s|\Z)'
31
+ - '\A\s*#'
29
32
 
30
33
  Style/MethodCallWithArgsParentheses:
31
34
  Enabled: true
32
35
  IgnoreMacros: true
33
- IgnoredMethods:
36
+ AllowedMethods:
34
37
  - require
35
38
  - require_relative
36
39
  - require_dependency
@@ -110,7 +113,7 @@ Style/BlockDelimiters:
110
113
  - let!
111
114
  - subject
112
115
  - watch
113
- IgnoredMethods:
116
+ AllowedMethods:
114
117
  - lambda
115
118
  - proc
116
119
  - it
@@ -459,7 +462,7 @@ Layout/SpaceInsideStringInterpolation:
459
462
  - no_space
460
463
 
461
464
  Style/SymbolProc:
462
- IgnoredMethods:
465
+ AllowedMethods:
463
466
  - respond_to
464
467
  - define_method
465
468
 
@@ -667,7 +670,7 @@ Style/LineEndConcatenation:
667
670
  Style/MethodCallWithoutArgsParentheses:
668
671
  Enabled: true
669
672
 
670
- Style/MethodMissingSuper:
673
+ Lint/MissingSuper:
671
674
  Enabled: true
672
675
 
673
676
  Style/MissingRespondToMissing:
@@ -799,7 +802,7 @@ Layout/SpaceInsideRangeLiteral:
799
802
  Style/SymbolLiteral:
800
803
  Enabled: true
801
804
 
802
- Layout/Tab:
805
+ Layout/IndentationStyle:
803
806
  Enabled: true
804
807
 
805
808
  Layout/TrailingWhitespace:
@@ -830,7 +833,7 @@ Style/ZeroLengthPredicate:
830
833
  Enabled: true
831
834
 
832
835
  Layout/HeredocIndentation:
833
- EnforcedStyle: squiggly
836
+ Enabled: true
834
837
 
835
838
  Lint/AmbiguousOperator:
836
839
  Enabled: true
@@ -956,7 +959,7 @@ Lint/UselessAccessModifier:
956
959
  Lint/UselessAssignment:
957
960
  Enabled: true
958
961
 
959
- Lint/UselessComparison:
962
+ Lint/BinaryOperatorWithIdenticalOperands:
960
963
  Enabled: true
961
964
 
962
965
  Lint/UselessElseWithoutRescue:
data/Gemfile CHANGED
@@ -1,10 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
  source "https://rubygems.org"
3
3
 
4
- gem "rails", "~> 6.0"
4
+ gem "rails", "~> 7.0"
5
5
  gem "rspec"
6
- gem "rspec-rails", "~> 5.0"
6
+ gem "rspec-rails", "~> 6.1"
7
7
  gem "hubrise_initializer", path: "."
8
8
 
9
- gem "rubocop", "0.81.0"
9
+ gem "rubocop", "1.62.1"
10
10
  gem "webmock"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hubrise_initializer (1.0.6)
4
+ hubrise_initializer (1.0.9)
5
5
  act-fluent-logger-rails (~> 0.6)
6
6
  lograge (~> 0.11)
7
7
  lograge-sql
@@ -14,206 +14,261 @@ GEM
14
14
  activesupport (>= 4)
15
15
  fluent-logger
16
16
  railties (>= 4)
17
- actioncable (6.1.6.1)
18
- actionpack (= 6.1.6.1)
19
- activesupport (= 6.1.6.1)
17
+ actioncable (7.1.3.2)
18
+ actionpack (= 7.1.3.2)
19
+ activesupport (= 7.1.3.2)
20
20
  nio4r (~> 2.0)
21
21
  websocket-driver (>= 0.6.1)
22
- actionmailbox (6.1.6.1)
23
- actionpack (= 6.1.6.1)
24
- activejob (= 6.1.6.1)
25
- activerecord (= 6.1.6.1)
26
- activestorage (= 6.1.6.1)
27
- activesupport (= 6.1.6.1)
22
+ zeitwerk (~> 2.6)
23
+ actionmailbox (7.1.3.2)
24
+ actionpack (= 7.1.3.2)
25
+ activejob (= 7.1.3.2)
26
+ activerecord (= 7.1.3.2)
27
+ activestorage (= 7.1.3.2)
28
+ activesupport (= 7.1.3.2)
28
29
  mail (>= 2.7.1)
29
- actionmailer (6.1.6.1)
30
- actionpack (= 6.1.6.1)
31
- actionview (= 6.1.6.1)
32
- activejob (= 6.1.6.1)
33
- activesupport (= 6.1.6.1)
30
+ net-imap
31
+ net-pop
32
+ net-smtp
33
+ actionmailer (7.1.3.2)
34
+ actionpack (= 7.1.3.2)
35
+ actionview (= 7.1.3.2)
36
+ activejob (= 7.1.3.2)
37
+ activesupport (= 7.1.3.2)
34
38
  mail (~> 2.5, >= 2.5.4)
35
- rails-dom-testing (~> 2.0)
36
- actionpack (6.1.6.1)
37
- actionview (= 6.1.6.1)
38
- activesupport (= 6.1.6.1)
39
- rack (~> 2.0, >= 2.0.9)
39
+ net-imap
40
+ net-pop
41
+ net-smtp
42
+ rails-dom-testing (~> 2.2)
43
+ actionpack (7.1.3.2)
44
+ actionview (= 7.1.3.2)
45
+ activesupport (= 7.1.3.2)
46
+ nokogiri (>= 1.8.5)
47
+ racc
48
+ rack (>= 2.2.4)
49
+ rack-session (>= 1.0.1)
40
50
  rack-test (>= 0.6.3)
41
- rails-dom-testing (~> 2.0)
42
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
43
- actiontext (6.1.6.1)
44
- actionpack (= 6.1.6.1)
45
- activerecord (= 6.1.6.1)
46
- activestorage (= 6.1.6.1)
47
- activesupport (= 6.1.6.1)
51
+ rails-dom-testing (~> 2.2)
52
+ rails-html-sanitizer (~> 1.6)
53
+ actiontext (7.1.3.2)
54
+ actionpack (= 7.1.3.2)
55
+ activerecord (= 7.1.3.2)
56
+ activestorage (= 7.1.3.2)
57
+ activesupport (= 7.1.3.2)
58
+ globalid (>= 0.6.0)
48
59
  nokogiri (>= 1.8.5)
49
- actionview (6.1.6.1)
50
- activesupport (= 6.1.6.1)
60
+ actionview (7.1.3.2)
61
+ activesupport (= 7.1.3.2)
51
62
  builder (~> 3.1)
52
- erubi (~> 1.4)
53
- rails-dom-testing (~> 2.0)
54
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
55
- activejob (6.1.6.1)
56
- activesupport (= 6.1.6.1)
63
+ erubi (~> 1.11)
64
+ rails-dom-testing (~> 2.2)
65
+ rails-html-sanitizer (~> 1.6)
66
+ activejob (7.1.3.2)
67
+ activesupport (= 7.1.3.2)
57
68
  globalid (>= 0.3.6)
58
- activemodel (6.1.6.1)
59
- activesupport (= 6.1.6.1)
60
- activerecord (6.1.6.1)
61
- activemodel (= 6.1.6.1)
62
- activesupport (= 6.1.6.1)
63
- activestorage (6.1.6.1)
64
- actionpack (= 6.1.6.1)
65
- activejob (= 6.1.6.1)
66
- activerecord (= 6.1.6.1)
67
- activesupport (= 6.1.6.1)
69
+ activemodel (7.1.3.2)
70
+ activesupport (= 7.1.3.2)
71
+ activerecord (7.1.3.2)
72
+ activemodel (= 7.1.3.2)
73
+ activesupport (= 7.1.3.2)
74
+ timeout (>= 0.4.0)
75
+ activestorage (7.1.3.2)
76
+ actionpack (= 7.1.3.2)
77
+ activejob (= 7.1.3.2)
78
+ activerecord (= 7.1.3.2)
79
+ activesupport (= 7.1.3.2)
68
80
  marcel (~> 1.0)
69
- mini_mime (>= 1.1.0)
70
- activesupport (6.1.6.1)
81
+ activesupport (7.1.3.2)
82
+ base64
83
+ bigdecimal
71
84
  concurrent-ruby (~> 1.0, >= 1.0.2)
85
+ connection_pool (>= 2.2.5)
86
+ drb
72
87
  i18n (>= 1.6, < 2)
73
88
  minitest (>= 5.1)
89
+ mutex_m
74
90
  tzinfo (~> 2.0)
75
- zeitwerk (~> 2.3)
76
- addressable (2.8.0)
77
- public_suffix (>= 2.0.2, < 5.0)
91
+ addressable (2.8.6)
92
+ public_suffix (>= 2.0.2, < 6.0)
78
93
  ast (2.4.2)
94
+ base64 (0.2.0)
95
+ bigdecimal (3.1.7)
79
96
  builder (3.2.4)
80
- concurrent-ruby (1.1.10)
81
- crack (0.4.5)
97
+ concurrent-ruby (1.2.3)
98
+ connection_pool (2.4.1)
99
+ crack (1.0.0)
100
+ bigdecimal
82
101
  rexml
83
102
  crass (1.0.6)
84
- diff-lcs (1.5.0)
85
- erubi (1.10.0)
86
- fluent-logger (0.9.0)
103
+ date (3.3.4)
104
+ diff-lcs (1.5.1)
105
+ drb (2.2.1)
106
+ erubi (1.12.0)
107
+ fluent-logger (0.9.1)
87
108
  msgpack (>= 1.0.0, < 2)
88
- globalid (1.0.0)
89
- activesupport (>= 5.0)
90
- hashdiff (1.0.1)
91
- i18n (1.12.0)
109
+ globalid (1.2.1)
110
+ activesupport (>= 6.1)
111
+ hashdiff (1.1.0)
112
+ i18n (1.14.4)
92
113
  concurrent-ruby (~> 1.0)
93
- jaro_winkler (1.5.4)
94
- lograge (0.12.0)
114
+ io-console (0.7.2)
115
+ irb (1.12.0)
116
+ rdoc
117
+ reline (>= 0.4.2)
118
+ json (2.7.1)
119
+ language_server-protocol (3.17.0.3)
120
+ lograge (0.14.0)
95
121
  actionpack (>= 4)
96
122
  activesupport (>= 4)
97
123
  railties (>= 4)
98
124
  request_store (~> 1.0)
99
- lograge-sql (2.0.0)
100
- activerecord (>= 5, < 7.1)
125
+ lograge-sql (2.3.2)
126
+ activerecord (>= 5, < 7.2)
101
127
  lograge (~> 0.11)
102
128
  logstash-event (1.2.02)
103
- loofah (2.18.0)
129
+ loofah (2.22.0)
104
130
  crass (~> 1.0.2)
105
- nokogiri (>= 1.5.9)
106
- mail (2.7.1)
131
+ nokogiri (>= 1.12.0)
132
+ mail (2.8.1)
107
133
  mini_mime (>= 0.1.1)
108
- marcel (1.0.2)
109
- method_source (1.0.0)
110
- mini_mime (1.1.2)
111
- mini_portile2 (2.8.0)
112
- minitest (5.16.2)
113
- msgpack (1.6.0)
114
- nio4r (2.5.8)
115
- nokogiri (1.13.7)
116
- mini_portile2 (~> 2.8.0)
134
+ net-imap
135
+ net-pop
136
+ net-smtp
137
+ marcel (1.0.4)
138
+ mini_mime (1.1.5)
139
+ mini_portile2 (2.8.5)
140
+ minitest (5.22.3)
141
+ msgpack (1.7.2)
142
+ mutex_m (0.2.0)
143
+ net-imap (0.4.10)
144
+ date
145
+ net-protocol
146
+ net-pop (0.1.2)
147
+ net-protocol
148
+ net-protocol (0.2.2)
149
+ timeout
150
+ net-smtp (0.5.0)
151
+ net-protocol
152
+ nio4r (2.7.1)
153
+ nokogiri (1.16.3)
154
+ mini_portile2 (~> 2.8.2)
117
155
  racc (~> 1.4)
118
- parallel (1.22.1)
119
- parser (3.1.2.0)
156
+ parallel (1.24.0)
157
+ parser (3.3.0.5)
120
158
  ast (~> 2.4.1)
121
- public_suffix (4.0.7)
122
- racc (1.6.0)
123
- rack (2.2.4)
124
- rack-test (2.0.2)
159
+ racc
160
+ psych (5.1.2)
161
+ stringio
162
+ public_suffix (5.0.5)
163
+ racc (1.7.3)
164
+ rack (3.0.10)
165
+ rack-session (2.0.0)
166
+ rack (>= 3.0.0)
167
+ rack-test (2.1.0)
125
168
  rack (>= 1.3)
126
- rails (6.1.6.1)
127
- actioncable (= 6.1.6.1)
128
- actionmailbox (= 6.1.6.1)
129
- actionmailer (= 6.1.6.1)
130
- actionpack (= 6.1.6.1)
131
- actiontext (= 6.1.6.1)
132
- actionview (= 6.1.6.1)
133
- activejob (= 6.1.6.1)
134
- activemodel (= 6.1.6.1)
135
- activerecord (= 6.1.6.1)
136
- activestorage (= 6.1.6.1)
137
- activesupport (= 6.1.6.1)
169
+ rackup (2.1.0)
170
+ rack (>= 3)
171
+ webrick (~> 1.8)
172
+ rails (7.1.3.2)
173
+ actioncable (= 7.1.3.2)
174
+ actionmailbox (= 7.1.3.2)
175
+ actionmailer (= 7.1.3.2)
176
+ actionpack (= 7.1.3.2)
177
+ actiontext (= 7.1.3.2)
178
+ actionview (= 7.1.3.2)
179
+ activejob (= 7.1.3.2)
180
+ activemodel (= 7.1.3.2)
181
+ activerecord (= 7.1.3.2)
182
+ activestorage (= 7.1.3.2)
183
+ activesupport (= 7.1.3.2)
138
184
  bundler (>= 1.15.0)
139
- railties (= 6.1.6.1)
140
- sprockets-rails (>= 2.0.0)
141
- rails-dom-testing (2.0.3)
142
- activesupport (>= 4.2.0)
185
+ railties (= 7.1.3.2)
186
+ rails-dom-testing (2.2.0)
187
+ activesupport (>= 5.0.0)
188
+ minitest
143
189
  nokogiri (>= 1.6)
144
- rails-html-sanitizer (1.4.3)
145
- loofah (~> 2.3)
146
- railties (6.1.6.1)
147
- actionpack (= 6.1.6.1)
148
- activesupport (= 6.1.6.1)
149
- method_source
190
+ rails-html-sanitizer (1.6.0)
191
+ loofah (~> 2.21)
192
+ nokogiri (~> 1.14)
193
+ railties (7.1.3.2)
194
+ actionpack (= 7.1.3.2)
195
+ activesupport (= 7.1.3.2)
196
+ irb
197
+ rackup (>= 1.0.0)
150
198
  rake (>= 12.2)
151
- thor (~> 1.0)
199
+ thor (~> 1.0, >= 1.2.2)
200
+ zeitwerk (~> 2.6)
152
201
  rainbow (3.1.1)
153
- rake (13.0.6)
154
- request_store (1.5.1)
202
+ rake (13.2.0)
203
+ rdoc (6.6.3.1)
204
+ psych (>= 4.0.0)
205
+ regexp_parser (2.9.0)
206
+ reline (0.5.0)
207
+ io-console (~> 0.5)
208
+ request_store (1.6.0)
155
209
  rack (>= 1.4)
156
- rexml (3.2.5)
157
- rspec (3.11.0)
158
- rspec-core (~> 3.11.0)
159
- rspec-expectations (~> 3.11.0)
160
- rspec-mocks (~> 3.11.0)
161
- rspec-core (3.11.0)
162
- rspec-support (~> 3.11.0)
163
- rspec-expectations (3.11.0)
210
+ rexml (3.2.6)
211
+ rspec (3.13.0)
212
+ rspec-core (~> 3.13.0)
213
+ rspec-expectations (~> 3.13.0)
214
+ rspec-mocks (~> 3.13.0)
215
+ rspec-core (3.13.0)
216
+ rspec-support (~> 3.13.0)
217
+ rspec-expectations (3.13.0)
164
218
  diff-lcs (>= 1.2.0, < 2.0)
165
- rspec-support (~> 3.11.0)
166
- rspec-mocks (3.11.1)
219
+ rspec-support (~> 3.13.0)
220
+ rspec-mocks (3.13.0)
167
221
  diff-lcs (>= 1.2.0, < 2.0)
168
- rspec-support (~> 3.11.0)
169
- rspec-rails (5.1.2)
170
- actionpack (>= 5.2)
171
- activesupport (>= 5.2)
172
- railties (>= 5.2)
173
- rspec-core (~> 3.10)
174
- rspec-expectations (~> 3.10)
175
- rspec-mocks (~> 3.10)
176
- rspec-support (~> 3.10)
177
- rspec-support (3.11.0)
178
- rubocop (0.81.0)
179
- jaro_winkler (~> 1.5.1)
222
+ rspec-support (~> 3.13.0)
223
+ rspec-rails (6.1.2)
224
+ actionpack (>= 6.1)
225
+ activesupport (>= 6.1)
226
+ railties (>= 6.1)
227
+ rspec-core (~> 3.13)
228
+ rspec-expectations (~> 3.13)
229
+ rspec-mocks (~> 3.13)
230
+ rspec-support (~> 3.13)
231
+ rspec-support (3.13.1)
232
+ rubocop (1.62.1)
233
+ json (~> 2.3)
234
+ language_server-protocol (>= 3.17.0)
180
235
  parallel (~> 1.10)
181
- parser (>= 2.7.0.1)
236
+ parser (>= 3.3.0.2)
182
237
  rainbow (>= 2.2.2, < 4.0)
183
- rexml
238
+ regexp_parser (>= 1.8, < 3.0)
239
+ rexml (>= 3.2.5, < 4.0)
240
+ rubocop-ast (>= 1.31.1, < 2.0)
184
241
  ruby-progressbar (~> 1.7)
185
- unicode-display_width (>= 1.4.0, < 2.0)
186
- ruby-progressbar (1.11.0)
187
- sprockets (4.1.1)
188
- concurrent-ruby (~> 1.0)
189
- rack (> 1, < 3)
190
- sprockets-rails (3.4.2)
191
- actionpack (>= 5.2)
192
- activesupport (>= 5.2)
193
- sprockets (>= 3.0.0)
194
- thor (1.2.1)
195
- tzinfo (2.0.4)
242
+ unicode-display_width (>= 2.4.0, < 3.0)
243
+ rubocop-ast (1.31.2)
244
+ parser (>= 3.3.0.4)
245
+ ruby-progressbar (1.13.0)
246
+ stringio (3.1.0)
247
+ thor (1.3.1)
248
+ timeout (0.4.1)
249
+ tzinfo (2.0.6)
196
250
  concurrent-ruby (~> 1.0)
197
- unicode-display_width (1.8.0)
198
- webmock (3.14.0)
251
+ unicode-display_width (2.5.0)
252
+ webmock (3.23.0)
199
253
  addressable (>= 2.8.0)
200
254
  crack (>= 0.3.2)
201
255
  hashdiff (>= 0.4.0, < 2.0.0)
202
- websocket-driver (0.7.5)
256
+ webrick (1.8.1)
257
+ websocket-driver (0.7.6)
203
258
  websocket-extensions (>= 0.1.0)
204
259
  websocket-extensions (0.1.5)
205
- zeitwerk (2.6.0)
260
+ zeitwerk (2.6.13)
206
261
 
207
262
  PLATFORMS
208
263
  ruby
209
264
 
210
265
  DEPENDENCIES
211
266
  hubrise_initializer!
212
- rails (~> 6.0)
267
+ rails (~> 7.0)
213
268
  rspec
214
- rspec-rails (~> 5.0)
215
- rubocop (= 0.81.0)
269
+ rspec-rails (~> 6.1)
270
+ rubocop (= 1.62.1)
216
271
  webmock
217
272
 
218
273
  BUNDLED WITH
219
- 2.1.2
274
+ 2.5.7
data/README.md CHANGED
@@ -47,7 +47,7 @@ To upload the latest version to RubyGems.org:
47
47
  2. Tag the repository:
48
48
  ```bash
49
49
  bundle install
50
- VERSION=1.0.5
50
+ VERSION=1.0.8
51
51
  git add Gemfile.lock
52
52
  git add lib/hubrise_initializer/version.rb
53
53
  git commit -m "Version $VERSION"
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  class HubriseInitializer
3
- VERSION = "1.0.6"
3
+ VERSION = "1.0.9"
4
4
  end
@@ -40,7 +40,16 @@ class HubriseInitializer
40
40
  when "fluentd"
41
41
  # Log to fluentd (kubernetes)
42
42
  # ENV['FLUENTD_URL'] is used internally by this logger
43
- config.logger = ActFluentLoggerRails::Logger.new
43
+ config.logger = ActFluentLoggerRails::Logger.new(
44
+ settings: {
45
+ # AM 25/4/2025: it's critical to make logging non-blocking so that an ElasticSearch outage does not block
46
+ # the application.
47
+ # See https://docs.google.com/document/d/1fL7PYC2Vb_eqlbUGYWZ7ZvLvX_o821LL1QZxBM_xjXc/edit?tab=t.0
48
+ use_nonblock: true, # default: false – makes writes non-blocking
49
+ wait_writeable: false, # default: true – skip IO.select; drop on EAGAIN
50
+ # End of AM 25/4/2025
51
+ }
52
+ )
44
53
 
45
54
  config.lograge.enabled = true
46
55
  config.lograge.formatter = ::Lograge::Formatters::Json.new
@@ -86,7 +95,7 @@ class HubriseInitializer
86
95
  # - 172.0.0.0/8: host in docker-compose
87
96
  # - 192.168.0.0/16: inter containers network in docker-compose
88
97
  # - 10.244.0.0/16: pod networks in Kubernetes
89
- config.web_console.whitelisted_ips = ["172.0.0.0/8", "192.168.0.0/16", "10.0.0.0/8"]
98
+ config.web_console.allowed_ips = ["172.0.0.0/8", "192.168.0.0/16", "10.0.0.0/8"]
90
99
  end
91
100
  end
92
101
  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.6
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antoine Monnier
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-14 00:00:00.000000000 Z
11
+ date: 2025-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lograge
@@ -66,8 +66,8 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.2'
69
- description:
70
- email:
69
+ description:
70
+ email:
71
71
  executables: []
72
72
  extensions: []
73
73
  extra_rdoc_files: []
@@ -87,7 +87,7 @@ homepage: https://github.com/hubrise/rails-initializer.git
87
87
  licenses:
88
88
  - MIT
89
89
  metadata: {}
90
- post_install_message:
90
+ post_install_message:
91
91
  rdoc_options: []
92
92
  require_paths:
93
93
  - lib
@@ -102,8 +102,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  requirements: []
105
- rubygems_version: 3.3.5
106
- signing_key:
105
+ rubygems_version: 3.4.20
106
+ signing_key:
107
107
  specification_version: 4
108
108
  summary: Rails app initializers optimized for HubRise
109
109
  test_files: []