Skip to content

plugin_helper: server: compat: Suppress keyword arguments incompatibiity warnings#3180

Merged
cosmo0920 merged 1 commit into
masterfrom
supress-hash-object-incompatible-warnings-on-keyward-arguments-in-compat-module-of-server-plugin-helper
Dec 1, 2020
Merged

plugin_helper: server: compat: Suppress keyword arguments incompatibiity warnings#3180
cosmo0920 merged 1 commit into
masterfrom
supress-hash-object-incompatible-warnings-on-keyward-arguments-in-compat-module-of-server-plugin-helper

Conversation

@cosmo0920

Copy link
Copy Markdown
Contributor

Signed-off-by: Hiroshi Hatake hatake@clear-code.com

Which issue(s) this PR fixes:
None

What this PR does / why we need it:
Otherwise, Ruby 2.7 complains with the following warnings (also Fluentd master doesn't take care of it):

/usr/lib/ruby/gems/2.7.0/gems/fluentd-1.11.5/lib/fluent/plugin_helper/http_server/compat/server.rb:84: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/usr/lib/ruby/gems/2.7.0/gems/fluentd-1.11.5/lib/fluent/plugin_helper/http_server/compat/webrick_handler.rb:26: warning: The called method `build' is defined here

Docs Changes:
No need.

Release Note:
Same as title.

…ity warnings

Otherwise, Ruby 2.7 complains with the following warnings:

```log
/usr/lib/ruby/gems/2.7.0/gems/fluentd-1.11.5/lib/fluent/plugin_helper/http_server/compat/server.rb:84: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
/usr/lib/ruby/gems/2.7.0/gems/fluentd-1.11.5/lib/fluent/plugin_helper/http_server/compat/webrick_handler.rb:26: warning: The called method `build' is defined here
```

Signed-off-by: Hiroshi Hatake <hatake@clear-code.com>
@cosmo0920 cosmo0920 requested a review from repeatedly November 24, 2020 07:26
@cosmo0920 cosmo0920 merged commit 9110685 into master Dec 1, 2020
@cosmo0920 cosmo0920 deleted the supress-hash-object-incompatible-warnings-on-keyward-arguments-in-compat-module-of-server-plugin-helper branch December 1, 2020 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants