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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1df321d519c8bd16773d5af7b1fd5b65495bb538
4
- data.tar.gz: 7b26b3afc540744d0a0d543168e02d03c7b8285c
3
+ metadata.gz: 8be3b29e0225bf3d39b7b1652c19e4617dc0644d
4
+ data.tar.gz: 4330f66bb5ae361b349c794e6717f83371079c2f
5
5
  SHA512:
6
- metadata.gz: 36b7ce77cc8151e9a5dc86e1ac18acdb3959d5fd02761bb72dcfa7f1c3246e9e9dc10e356da40d81dd896eef6226afaf21827417f0cc4cc78cbc5306222ef9d3
7
- data.tar.gz: cf3c3388612fe0ab1271c5a210b23c68e2aae6aeb4b847813e4ce2bc081590c94147ebe74c1081fe568b1c918d26a4aa013a17e1b9d423bddd928d4b76661d00
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 = 'http://localhost:3000'.freeze
4
- API_VERSION = '2018-10-10'.freeze
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={})
@@ -1,5 +1,5 @@
1
1
  module Cwallet
2
2
  module Wallet
3
- VERSION = "0.0.6"
3
+ VERSION = "0.0.7"
4
4
  end
5
5
  end
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.6
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-12 00:00:00.000000000 Z
11
+ date: 2018-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler