Skip to content

Commit fe3fa08

Browse files
jeffkowalskidmke
authored andcommitted
Adjust for 2.7-style keyword arguments
lib/influxdb/client.rb:54: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call lib/influxdb/config.rb:73: warning: The called method `initialize' is defined here
1 parent 3697f6b commit fe3fa08

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/influxdb/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Client
5151
# +:retry+:: number of times a failed request should be retried. Defaults to infinite.
5252
def initialize(database = nil, **opts)
5353
opts[:database] = database if database.is_a? String
54-
@config = InfluxDB::Config.new(opts)
54+
@config = InfluxDB::Config.new(**opts)
5555
@stopped = false
5656
@writer = find_writer
5757

lib/influxdb/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module InfluxDB # :nodoc:
2-
VERSION = "0.7.0".freeze
2+
VERSION = "0.7.1".freeze
33
end

0 commit comments

Comments
 (0)