coinqvest_merchant_sdk 0.0.4 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 306046a6a84bebe48cefe02eaa0e89ebac53ee8e
4
- data.tar.gz: c6bdf475ad54e5fd11e30b8cea9ebddb39b70340
2
+ SHA256:
3
+ metadata.gz: 3dc48d6507836f7f9489214adaf476b7cec7c7e7f06787f4f02d0b67452d9285
4
+ data.tar.gz: cd2540bcaf2ffd9082b3c07394289346ceadb34f8eea0c6f58c2c27f3bc026a0
5
5
  SHA512:
6
- metadata.gz: efe0dbe0a5d4962881816eb458ba32b63c207a5d974c0e7b6c5655a6660c15a9cbfdecf1597f647e94f817bc3733701a197f1d97ac41d13dd130f33c97dd4179
7
- data.tar.gz: b6c21b5da3cd7d3a8981d9016b9558bd30aa2bfd49a4bce32164485ff8ec02fc2808ade12e9eea7c9d6badbea3a8af15433968f119ce217dd6b4fae34c525a15
6
+ metadata.gz: 7dd60aae311c8b7519108c094f74c061369b2e07882308b560cd32779f30bf3baa110d50f90fef85d6070386025d23847688a7a253a7bd84e27b19d70777831b
7
+ data.tar.gz: ba8269165f65ccf8d78a0003bc808282305686cb9e6b2145116db0ac89597e04f783a9347af2efed17b8d3ad2bef68ba131be1420de508c84076f45166ad3966
@@ -8,13 +8,13 @@ Gem::Specification.new do |s|
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ['COINQVEST Ltd.']
10
10
  s.email = ['service@coinqvest.com']
11
- s.homepage = 'http://www.coinqvest.com'
11
+ s.homepage = 'https://www.coinqvest.com'
12
12
  s.summary = %q{Ruby Merchant SDK for COINQVEST. Programmatically accept and settle payments in digital currencies.}
13
13
  s.licenses = ['Apache-2.0']
14
14
  s.required_ruby_version = '>= 2.0.0'
15
15
 
16
16
  s.add_runtime_dependency 'rest-client', '~> 2.1', '>= 2.1.0'
17
- s.add_runtime_dependency 'json', '~> 1.8', '>= 1.8.3'
17
+ s.add_runtime_dependency 'json', '~> 2.3', '>= 2.3.0'
18
18
 
19
19
  s.files = `git ls-files`.split("\n")
20
20
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -16,7 +16,7 @@ module CoinqvestMerchantSDK
16
16
  # @param secret; as given by https://www.coinqvest.com/en/api-settings
17
17
  # @param log_file; optional log file path
18
18
  # @constructor
19
- def initialize(key, secret, log_file = NIL)
19
+ def initialize(key, secret, log_file = nil)
20
20
 
21
21
  # @string The API Key as given by https://www.coinqvest.com/en/api-settings
22
22
  @key = key
@@ -36,8 +36,8 @@ module CoinqvestMerchantSDK
36
36
  # @string COINQVEST connect url
37
37
  @connect_url = CoinqvestMerchantSDK::CONNECT_URL
38
38
 
39
- # @string|NIL Specifies the log file to which to write, if any.
40
- @log_file = log_file ? log_file : NIL
39
+ # @string|nil Specifies the log file to which to write, if any.
40
+ @log_file = log_file ? log_file : nil
41
41
 
42
42
  end
43
43
 
@@ -152,9 +152,9 @@ module CoinqvestMerchantSDK
152
152
  def build_headers(endpoint, method, params)
153
153
 
154
154
  timestamp = Time.now.to_i
155
- body = NIL
155
+ body = nil
156
156
  if method != 'GET'
157
- body = params.length > 0 ? params.to_json : NIL
157
+ body = params.length > 0 ? params.to_json : nil
158
158
  end
159
159
  data = endpoint + timestamp.to_s + method + body.to_s
160
160
 
@@ -171,7 +171,7 @@ module CoinqvestMerchantSDK
171
171
  private
172
172
  def log(text)
173
173
 
174
- if @log_file == NIL
174
+ if @log_file == nil
175
175
  return
176
176
  end
177
177
 
@@ -1,6 +1,6 @@
1
1
  module CoinqvestMerchantSDK
2
2
 
3
- CLIENT_VERSION = '0.0.4'
3
+ CLIENT_VERSION = '0.0.6'
4
4
 
5
5
  CLIENT_NAME = 'ruby_merchant_sdk'
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coinqvest_merchant_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - COINQVEST Ltd.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-11 00:00:00.000000000 Z
11
+ date: 2022-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -36,21 +36,21 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '1.8'
39
+ version: '2.3'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 1.8.3
42
+ version: 2.3.0
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '1.8'
49
+ version: '2.3'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 1.8.3
53
- description:
52
+ version: 2.3.0
53
+ description:
54
54
  email:
55
55
  - service@coinqvest.com
56
56
  executables: []
@@ -64,11 +64,11 @@ files:
64
64
  - lib/coinqvest_merchant_sdk.rb
65
65
  - lib/coinqvest_merchant_sdk/client.rb
66
66
  - lib/coinqvest_merchant_sdk/config.rb
67
- homepage: http://www.coinqvest.com
67
+ homepage: https://www.coinqvest.com
68
68
  licenses:
69
69
  - Apache-2.0
70
70
  metadata: {}
71
- post_install_message:
71
+ post_install_message:
72
72
  rdoc_options: []
73
73
  require_paths:
74
74
  - lib
@@ -83,9 +83,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  requirements: []
86
- rubyforge_project:
87
- rubygems_version: 2.5.2.3
88
- signing_key:
86
+ rubygems_version: 3.3.11
87
+ signing_key:
89
88
  specification_version: 4
90
89
  summary: Ruby Merchant SDK for COINQVEST. Programmatically accept and settle payments
91
90
  in digital currencies.