ocean-wechat 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce60b039f69c5c091f565666baffdbbe3368945c072579a8dd5d75a9ffb46089
4
- data.tar.gz: e92c6ae902bbd6dccdf45f9723194072e1f29401990afd5290b3a282e24cdd09
3
+ metadata.gz: '00889d806fd8dda0830ca1604f6c538b0839199b66891a06e3470b64aa2f85b9'
4
+ data.tar.gz: ddb959490205bdce2f3c0c72bcd7ed20a79540a02397369363a496ca89e5ae0a
5
5
  SHA512:
6
- metadata.gz: 43049edceeda6c121450ce3456e51056885b7c3ef3ca19aa7c04e6f0ae0f9348852252dd5c0139febe3f919b8fc3f7d7a53711a2e330dd94b69f5f8fe868ee3b
7
- data.tar.gz: 500d0057720fc1224ee5db1120c57ecc01edccc1901632fb55a6ac414c8fada7d8d2ba1f2d8af119b94a7a1c0fbdefaa64140043a5d6ed9c79a105a99a798071
6
+ metadata.gz: c8b4ff5194c654a6693fe4e6400d47662db3d93aa6f1ceb347d896b75f45b928d2f1e2babae085066df54495d675cbb0155d7fd94b2051d32366ea119b04c59e
7
+ data.tar.gz: 6cffbd5f09c5670b28902be27cfcb33b65d92eb0b2ad6aec8f887eb20b57011c80110b51c3a5d01c4ed897ae131a3358a5b28189f56e36bdd14e3e2e3142edd8
@@ -3,6 +3,7 @@
3
3
  # Wechat service, View more at: https://mp.weixin.qq.com/wiki
4
4
  # example:
5
5
  # Wechat.notify(event: 'crash', first: 'Your website is not accessible', time: Time.now, reason: 'Connect fail!', remark: 'remark', redirect_url: 'www.baidu.com')
6
+ require 'rest_client'
6
7
  module Ocean
7
8
  module Wechat
8
9
  extend self
@@ -104,9 +105,9 @@ module Ocean
104
105
  log.debug "Send #{method} request #{params} to #{url}"
105
106
 
106
107
  res = if method == :get
107
- RestClient.get(url, params)
108
+ ::RestClient.get(url, params)
108
109
  else
109
- RestClient.post(url, params.to_json, content_type: :json, accept: :json)
110
+ ::RestClient.post(url, params.to_json, content_type: :json, accept: :json)
110
111
  end
111
112
 
112
113
  res_body = read_content(res)
@@ -1,5 +1,5 @@
1
1
  module Ocean
2
2
  module Wechat
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean-wechat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - bestjane
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-08 00:00:00.000000000 Z
11
+ date: 2018-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -70,6 +70,7 @@ files:
70
70
  - lib/ocean/wechat/version.rb
71
71
  - ocean-wechat-0.1.0.gem
72
72
  - ocean-wechat-0.1.1.gem
73
+ - ocean-wechat-0.1.2.gem
73
74
  - ocean-wechat.gemspec
74
75
  homepage: ''
75
76
  licenses: []