cwallet-ruby 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cwallet/wallet/api_client.rb +1 -1
- data/lib/cwallet/wallet/client.rb +2 -2
- data/lib/cwallet/wallet/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8be3b29e0225bf3d39b7b1652c19e4617dc0644d
|
4
|
+
data.tar.gz: 4330f66bb5ae361b349c794e6717f83371079c2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0aeb2a2399312f86f77636e0465777e1164fdfaf6d651221d50237917f6ab196965afc79a307ef8fcee6ed4b7c61bd84bb84bdc0c9b14fdd6184934272cf6856
|
7
|
+
data.tar.gz: bb6b3200564cb587201927889619bd844708c4261fc4fb22d7d0072b08009ab9e22ff109c5aa927d9ae9f26ef1293eafb53a99f2efbfbcef87c4b0925aaf4fad
|
@@ -86,7 +86,7 @@ module Cwallet
|
|
86
86
|
req['Content-Type'] = 'application/json'
|
87
87
|
req['User-Agent'] = "cwallet/ruby/#{Cwallet::Wallet::VERSION}"
|
88
88
|
|
89
|
-
uri = URI.parse(Cwallet::Wallet::BASE_API_URL)
|
89
|
+
uri = URI.parse(params[:api_url] || Cwallet::Wallet::BASE_API_URL)
|
90
90
|
conn = Net::HTTP.new(uri.host, uri.port)
|
91
91
|
conn.use_ssl = true
|
92
92
|
resp = conn.request(req)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Cwallet
|
2
2
|
module Wallet
|
3
|
-
BASE_API_URL
|
4
|
-
API_VERSION
|
3
|
+
BASE_API_URL = 'https://stg-wallet-api.fiahub.com'.freeze
|
4
|
+
API_VERSION = '2018-10-10'.freeze
|
5
5
|
|
6
6
|
class Client < NetHTTPClient
|
7
7
|
def initialize(options={})
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cwallet-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Duc Le
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|