honeycombio / libhoney-rb

Ruby library for sending data to Honeycomb
Apache License 2.0
11 stars 30 forks source link

Use keyword splat to avoid deprecation warnings in ruby 2.7.0 #50

Closed BRMatt closed 4 years ago

BRMatt commented 4 years ago

Under ruby 2.7.0 I see thousands of lines like this when using the gem:

libhoney-1.14.2/lib/libhoney/cleaner.rb:59: warning: Using the last argument as keyword parameters is deprecated
libhoney-1.14.2/lib/libhoney/cleaner.rb:59: warning: Using the last argument as keyword parameters is deprecated
libhoney-1.14.2/lib/libhoney/cleaner.rb:59: warning: Using the last argument as keyword parameters is deprecated
libhoney-1.14.2/lib/libhoney/cleaner.rb:59: warning: Using the last argument as keyword parameters is deprecated
libhoney-1.14.2/lib/libhoney/cleaner.rb:59: warning: Using the last argument as keyword parameters is deprecated
libhoney-1.14.2/lib/libhoney/cleaner.rb:59: warning: Using the last argument as keyword parameters is deprecated
libhoney-1.14.2/lib/libhoney/cleaner.rb:59: warning: Using the last argument as keyword parameters is deprecated
libhoney-1.14.2/lib/libhoney/cleaner.rb:59: warning: Using the last argument as keyword parameters is deprecated
libhoney-1.14.2/lib/libhoney/cleaner.rb:59: warning: Using the last argument as keyword parameters is deprecated

This operator has been available since ruby 2.0.0, so hopefully introducing it won't cause issues.