Commit 8df1086
authored
console_adapter: support console gem v1.30 (#4857)
**Which issue(s) this PR fixes**:
Fixes #
**What this PR does / why we need it**:
This patch will fix following error:
```
NoMethodError: undefined method `seek' for nil:NilClass
/home/runner/work/fluentd/fluentd/lib/fluent/log/console_adapter.rb:61:in `call'
/opt/hostedtoolcache/Ruby/3.2.7/x64/lib/ruby/gems/3.2.0/gems/console-1.30.0/lib/console/output/wrapper.rb:35:in `call'
/opt/hostedtoolcache/Ruby/3.2.7/x64/lib/ruby/gems/3.2.0/gems/console-1.30.0/lib/console/output/failure.rb:38:in `call'
/opt/hostedtoolcache/Ruby/3.2.7/x64/lib/ruby/gems/3.2.0/gems/console-1.30.0/lib/console/filter.rb:48:in `block (3 levels) in []'
/home/runner/work/fluentd/fluentd/test/log/test_console_adapter.rb:58:in `test_args'
```
Ref. https://github.com/fluent/fluentd/actions/runs/13714056838
The variable name was changed at
socketry/console@1529fef#diff-757206aeb67c0bd1c0d1813dfbff0a140a68920505520e8163b3a274fbab05ceR30
Since now Fluentd assumes Ruby 3.2 or later, this discards the related
code to support Ruby before v3.1.
**Docs Changes**:
Not needed.
**Release Note**:
The same as the title.
Signed-off-by: Shizuo Fujita <[email protected]>1 parent 3a4ef4c commit 8df1086
2 files changed
+5
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
| 24 | + | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| |||
58 | 56 | | |
59 | 57 | | |
60 | 58 | | |
61 | | - | |
62 | | - | |
| 59 | + | |
| 60 | + | |
63 | 61 | | |
64 | | - | |
| 62 | + | |
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
| |||
0 commit comments