hubrise_initializer 1.0.8 → 1.0.10

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: 38a45b9d1b9a08bbd3e487b92aae96e8509c526ff9b2b0ef9c053be827bdb78c
4
- data.tar.gz: e622574c20da51cd1dc6cf7b86344e200741066b5d410b7b78e8639db780cfdc
3
+ metadata.gz: f10d0072880aa14d8595dfeaf797fb66de7f2b62c1a2ccb20a1ddea7f379eab9
4
+ data.tar.gz: 67cfd3c1bae85b8489fd3206dad261d9e6917017c786030e9182490690e65b61
5
5
  SHA512:
6
- metadata.gz: 2ab69a87ceff155408cd2ea99ddde23e2d1e5e81d4eba4a740b9a170be232ba12233ba5865474a9f1a169d45d8bdd5b2d266d19968f95e97bda01b0e3d67a578
7
- data.tar.gz: 1ce642806f6e829e591228fb36bc61e7920f26c8e4ac7316e2bc266533fbd19bd80a8544b2ee74e4c5016e78c54715cea1599e5ea4aa9fb4c03953de07ec09d4
6
+ metadata.gz: 7db367f5651bbeac243caa08a0203bba86e5c1c8fb62186b1034837c79b35cf175cde8e43af4b36c7bf5494994043a048afbbd1e0bb459f508936b194db35c23
7
+ data.tar.gz: b23414a574c0883502c26e92d5869fb8c7d6c349c106965e9344dc20577b33602f1d85f1ce4b2602f9660dd8a8664b2553e4d6825107ee3840da161d9f6f3571
@@ -4,15 +4,16 @@ on: push
4
4
  jobs:
5
5
  rubocop:
6
6
  runs-on: ubuntu-latest
7
+ timeout-minutes: 20
7
8
 
8
9
  steps:
9
10
  - name: Clone repository
10
11
  uses: actions/checkout@v4
11
12
 
12
- - name: Install Ruby, run bundle install and cache the gems
13
+ - name: Install Ruby and the gems
13
14
  uses: ruby/setup-ruby@v1
14
15
  with:
15
- ruby-version: 3.1.4
16
+ ruby-version: 3.4.12
16
17
  bundler-cache: true
17
18
 
18
19
  - name: Rubocop
@@ -4,15 +4,16 @@ on: push
4
4
  jobs:
5
5
  spec:
6
6
  runs-on: ubuntu-latest
7
+ timeout-minutes: 20
7
8
 
8
9
  steps:
9
10
  - name: Clone repository
10
11
  uses: actions/checkout@v4
11
12
 
12
- - name: Install Ruby, run bundle install and cache the gems
13
+ - name: Install Ruby and the gems
13
14
  uses: ruby/setup-ruby@v1
14
15
  with:
15
- ruby-version: 3.1.4
16
+ ruby-version: 3.4.12
16
17
  bundler-cache: true
17
18
 
18
19
  - name: Run tests
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.4.12
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hubrise_initializer (1.0.8)
4
+ hubrise_initializer (1.0.10)
5
5
  act-fluent-logger-rails (~> 0.6)
6
6
  lograge (~> 0.11)
7
7
  lograge-sql
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  class HubriseInitializer
3
- VERSION = "1.0.8"
3
+ VERSION = "1.0.10"
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
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hubrise_initializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antoine Monnier
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-04-03 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: lograge
@@ -66,8 +65,6 @@ dependencies:
66
65
  - - "~>"
67
66
  - !ruby/object:Gem::Version
68
67
  version: '1.2'
69
- description:
70
- email:
71
68
  executables: []
72
69
  extensions: []
73
70
  extra_rdoc_files: []
@@ -76,6 +73,7 @@ files:
76
73
  - ".github/workflows/spec.yml"
77
74
  - ".gitignore"
78
75
  - ".rubocop.yml"
76
+ - ".ruby-version"
79
77
  - Gemfile
80
78
  - Gemfile.lock
81
79
  - README.md
@@ -87,7 +85,6 @@ homepage: https://github.com/hubrise/rails-initializer.git
87
85
  licenses:
88
86
  - MIT
89
87
  metadata: {}
90
- post_install_message:
91
88
  rdoc_options: []
92
89
  require_paths:
93
90
  - lib
@@ -102,8 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
99
  - !ruby/object:Gem::Version
103
100
  version: '0'
104
101
  requirements: []
105
- rubygems_version: 3.3.5
106
- signing_key:
102
+ rubygems_version: 3.6.9
107
103
  specification_version: 4
108
104
  summary: Rails app initializers optimized for HubRise
109
105
  test_files: []