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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c8ed31800749fbfe9e181ace19863d8ae066c68
4
- data.tar.gz: 54aa0f4228ea861557344822b69ddf5ec51c61b3
3
+ metadata.gz: 9f10018fd4d430ca1dfc8eecd3985ac4107ec08e
4
+ data.tar.gz: 9f0245f8a7b2201a89f0b8881cbac0ae75120b54
5
5
  SHA512:
6
- metadata.gz: 1606afc33fac430947f74b99ad4e8d4ea9cf3dce1eedb2f4377ce3459a72d46c61d5b6e5d70ce0213f097e46b921c6c382ae3187abeae9cd28bfba9ab8d4b005
7
- data.tar.gz: fd555575267c3993232a0513a1d4cf3734caad130a6ab4094ec4a9e7a3273b73dea54c366dc340fcb0722f9e2e8572859f34078f2926d8870b8638280a0c11fd
6
+ metadata.gz: 21920443bea67e74284c189b1be1beac8324d1bbe78df7689fb8d8249c697dba7a2f15f020aafa6e5ad7b54f52d1d4a954a5ea0cd4bad12a0ae40d994c7693f1
7
+ data.tar.gz: 44bd8e6f1c54aa861f9da4e9f77165a00c45b727ee268e273a9160890e69542ec640c08a945dca7804595c026c039388cc661611adc539980af6d85f524ebc97
@@ -1,3 +1,3 @@
1
1
  module YxSdk
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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.5
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-22 00:00:00.000000000 Z
11
+ date: 2016-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler