yx_sdk 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yx_sdk/version.rb +1 -1
- data/lib/yx_sdk.rb +2 -0
- 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: 9f10018fd4d430ca1dfc8eecd3985ac4107ec08e
|
4
|
+
data.tar.gz: 9f0245f8a7b2201a89f0b8881cbac0ae75120b54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21920443bea67e74284c189b1be1beac8324d1bbe78df7689fb8d8249c697dba7a2f15f020aafa6e5ad7b54f52d1d4a954a5ea0cd4bad12a0ae40d994c7693f1
|
7
|
+
data.tar.gz: 44bd8e6f1c54aa861f9da4e9f77165a00c45b727ee268e273a9160890e69542ec640c08a945dca7804595c026c039388cc661611adc539980af6d85f524ebc97
|
data/lib/yx_sdk/version.rb
CHANGED
data/lib/yx_sdk.rb
CHANGED
@@ -16,6 +16,7 @@ module YxSdk
|
|
16
16
|
if endpoint == "plain" || endpoint == CUSTOM_ENDPOINT
|
17
17
|
post_body = JSON.dump(post_body)
|
18
18
|
end
|
19
|
+
logger.info("request url is #{post_api_url}, header is #{header}")
|
19
20
|
load_json(resource(post_api_url, header).post(post_body, params: url_params))
|
20
21
|
end
|
21
22
|
|
@@ -27,6 +28,7 @@ module YxSdk
|
|
27
28
|
# return hash
|
28
29
|
def load_json(string)
|
29
30
|
result_hash = JSON.parse(string.force_encoding("UTF-8").gsub(/[\u0011-\u001F]/, ""))
|
31
|
+
logger.info "response #{result_hash}"
|
30
32
|
code = result_hash.delete("code")
|
31
33
|
info = result_hash.delete("info")
|
32
34
|
ResultHandler.new(code, info)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yx_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- karidyang
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|