garnet_client 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/garnet_client/service.rb +2 -1
- data/lib/garnet_client/utils/http_request.rb +2 -2
- data/lib/garnet_client/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: a35f6708cdb324815061bae7cafb4df432ec632e
|
4
|
+
data.tar.gz: 299f261bc53e734f9356aa08c95a5ea1bb2e69a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d222cb1e668f81080fb311ed36dc33bd04026c138e1464eba12b3c8feb6653fbe77a5b53c24213f18cc48694cdd43d296a2fe2590453c679d5fff1e14b6a32d
|
7
|
+
data.tar.gz: 3b3a7a9306728f03877f7d1f32bd12372e406d4c0b4cfce1d61fecd0332e38393d575ef0eb9581b6689ca403e05ee93c18fb4961db18d9c6785c106856e7b968
|
@@ -24,9 +24,10 @@ module GarnetClient
|
|
24
24
|
# 发送一笔转账
|
25
25
|
def self.tx_transfer(coin_type, source_id, from, to, value)
|
26
26
|
service_path = "/tx/#{coin_type}/transfer"
|
27
|
+
from_address = from.nil? ? '' : from
|
27
28
|
post_params = {
|
28
29
|
"source_id" => source_id,
|
29
|
-
"from" =>
|
30
|
+
"from" => from_address,
|
30
31
|
"to" => to,
|
31
32
|
"value" => value
|
32
33
|
}
|
@@ -8,7 +8,7 @@ module GarnetClient
|
|
8
8
|
|
9
9
|
#发送请求
|
10
10
|
def self.send_post(service_path, query_params)
|
11
|
-
api_url = "#{GarnetClient.api_base_url}
|
11
|
+
api_url = "#{GarnetClient.api_base_url}#{service_path}"
|
12
12
|
headers = GarnetClient.response_headers
|
13
13
|
html_content = ''
|
14
14
|
html_result = ''
|
@@ -41,7 +41,7 @@ module GarnetClient
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def self.send_get(service_path)
|
44
|
-
api_url = "#{GarnetClient.api_base_url}
|
44
|
+
api_url = "#{GarnetClient.api_base_url}#{service_path}"
|
45
45
|
headers = GarnetClient.response_headers
|
46
46
|
html_content = ''
|
47
47
|
html_result = ''
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: garnet_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tarzansos
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|