wechat_public_api 0.1.8 → 0.1.9

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: cf03b94677d492c771a393f051fc7e404ca61948
4
- data.tar.gz: 18d0bc5e816de888b88b0f92129ee2f2427b7bc5
3
+ metadata.gz: 86044f37fa4700c008ef478330acaae14c42a5af
4
+ data.tar.gz: 569ece2dd447d793239d2d414cb9feac28c4fdcc
5
5
  SHA512:
6
- metadata.gz: 6fab8270bf039274035018f034c988883efe8ee9b737a247b80442ff2b53ab09efa31894b76798055afcc1cd1b9e8e7fb69abe6e1f3157c509f4713d02ba70e3
7
- data.tar.gz: dbeac2f9be4e9a70b6c5a713d1c4aa0e2bdfc496c1be17da12a1fd86236e6c6848a2e8cbd846ed442f5c2c06919b1b6e3c187048452a433d684c11a686bd5a84
6
+ metadata.gz: dcd7a2071e9c94ddecfe56bddc73c1fb42648812ffd79e7a13a2e088b097dc76d9cf8ccbbccc9fb675adbf1748dc3996770ea401f0a443a3cc3600b81b7373e0
7
+ data.tar.gz: d6145add1bc8f2102fe0ef49ed3d15a300a88faa0b95c8cc0657900daf6fb8cd27a377b4d673648ca2b0b9927faec56eae01a43c071ac69dd75e9915ce2adbc5
data/.gitignore CHANGED
@@ -6,4 +6,4 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
- .gem
9
+ *.gem
@@ -15,12 +15,11 @@ class WechatPublicApi
15
15
  # get access_token
16
16
  access_token = get_access_token()
17
17
 
18
- @access_token = Wxutils.get_access_token wx_account
19
- uri = URI.parse("https://api.weixin.qq.com/cgi-bin/message/template/#{url_params}?access_token=#{@access_token}")
18
+ uri = URI.parse("https://api.weixin.qq.com/cgi-bin/message/template/#{url_params}?access_token=#{access_token}")
20
19
  http = Net::HTTP.new(uri.host, uri.port)
21
20
  http.use_ssl = true
22
21
  http.verify_mode = OpenSSL::SSL::VERIFY_NONE
23
- request = Net::HTTP::Post.new("/cgi-bin/message/template/#{url_params}?access_token=#{@access_token}")
22
+ request = Net::HTTP::Post.new("/cgi-bin/message/template/#{url_params}?access_token=#{access_token}")
24
23
  request.add_field('Content-Type', 'application/json')
25
24
  # 部分字符转换为json后 成为unicode编码
26
25
  request.body = message.to_json.gsub(/\\u([0-9a-z]{4})/) {|s| [$1.to_i(16)].pack("U")}
@@ -1,3 +1,3 @@
1
1
  class WechatPublicApi
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wechat_public_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - '张明鑫 wechat number: zmx119966'
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-25 00:00:00.000000000 Z
11
+ date: 2018-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -135,12 +135,6 @@ files:
135
135
  - lib/wechat_public_api/user.rb
136
136
  - lib/wechat_public_api/utils.rb
137
137
  - lib/wechat_public_api/version.rb
138
- - wechat_public_api-0.1.1.gem
139
- - wechat_public_api-0.1.2.gem
140
- - wechat_public_api-0.1.3.gem
141
- - wechat_public_api-0.1.4.gem
142
- - wechat_public_api-0.1.5.gem
143
- - wechat_public_api-0.1.6.gem
144
138
  - wechat_public_api.gemspec
145
139
  homepage: https://github.com/Diyilou/wechat_public_api.git
146
140
  licenses:
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file