Skip to content

Commit

Permalink
Merge pull request #15 from marcinx/master
Browse files Browse the repository at this point in the history
* Ruby 3 compatibility fix
  • Loading branch information
marcinx authored Oct 1, 2022
2 parents 218bb97 + 41c251c commit b7e9c1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/lib/ruby_hlr_client/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Client
# @param secret; as given by https://www.hlr-lookups.com/en/api-settings
# @param log_file; optional log file path
# @constructor
def initialize(key, secret, log_file = NIL)
def initialize(key, secret, log_file = nil)

# @string The API Key as given by https://www.hlr-lookups.com/en/api-settings
@key = key
Expand All @@ -36,8 +36,8 @@ def initialize(key, secret, log_file = NIL)
# @string HLR Lookup connect url
@connect_url = HlrLookupsSDK::CONNECT_URL

# @string|NIL Specifies the log file to which to write, if any.
@log_file = log_file ? log_file : NIL
# @string|nil Specifies the log file to which to write, if any.
@log_file = log_file ? log_file : nil

end

Expand Down
2 changes: 1 addition & 1 deletion src/lib/ruby_hlr_client/config.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module HlrLookupsSDK

CLIENT_VERSION = '2.0.1'
CLIENT_VERSION = '2.0.2'

CLIENT_NAME = 'ruby_hlr_client'

Expand Down

0 comments on commit b7e9c1b

Please sign in to comment.