From 05bc5e4d98eb00ed76eb371109313d4d2eed2117 Mon Sep 17 00:00:00 2001 From: Marcin Olszowy Date: Sun, 2 Oct 2022 01:41:38 +0300 Subject: [PATCH] * Ruby 3 compatibility fix --- src/lib/coinqvest_merchant_sdk/client.rb | 6 +++--- src/lib/coinqvest_merchant_sdk/config.rb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/coinqvest_merchant_sdk/client.rb b/src/lib/coinqvest_merchant_sdk/client.rb index d272a45..b5ea6dd 100644 --- a/src/lib/coinqvest_merchant_sdk/client.rb +++ b/src/lib/coinqvest_merchant_sdk/client.rb @@ -16,7 +16,7 @@ class Client # @param secret; as given by https://www.coinqvest.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.coinqvest.com/en/api-settings @key = key @@ -36,8 +36,8 @@ def initialize(key, secret, log_file = NIL) # @string COINQVEST connect url @connect_url = CoinqvestMerchantSDK::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 diff --git a/src/lib/coinqvest_merchant_sdk/config.rb b/src/lib/coinqvest_merchant_sdk/config.rb index 4d88d72..248ac84 100644 --- a/src/lib/coinqvest_merchant_sdk/config.rb +++ b/src/lib/coinqvest_merchant_sdk/config.rb @@ -1,6 +1,6 @@ module CoinqvestMerchantSDK - CLIENT_VERSION = '0.0.5' + CLIENT_VERSION = '0.0.6' CLIENT_NAME = 'ruby_merchant_sdk'