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 +4 -4
- data/lib/ocean/wechat.rb +3 -2
- data/lib/ocean/wechat/version.rb +1 -1
- data/ocean-wechat-0.1.2.gem +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '00889d806fd8dda0830ca1604f6c538b0839199b66891a06e3470b64aa2f85b9'
|
4
|
+
data.tar.gz: ddb959490205bdce2f3c0c72bcd7ed20a79540a02397369363a496ca89e5ae0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8b4ff5194c654a6693fe4e6400d47662db3d93aa6f1ceb347d896b75f45b928d2f1e2babae085066df54495d675cbb0155d7fd94b2051d32366ea119b04c59e
|
7
|
+
data.tar.gz: 6cffbd5f09c5670b28902be27cfcb33b65d92eb0b2ad6aec8f887eb20b57011c80110b51c3a5d01c4ed897ae131a3358a5b28189f56e36bdd14e3e2e3142edd8
|
data/lib/ocean/wechat.rb
CHANGED
@@ -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)
|
data/lib/ocean/wechat/version.rb
CHANGED
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.
|
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-
|
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: []
|