blsm-mp-wx 0.3.0 → 0.3.2

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: 881b123dd2b475f9607f9bc45428e869efce32d3
4
- data.tar.gz: 1dfc2b3487e0d83e470e81eb522c9890dfd925af
3
+ metadata.gz: 1f8627cdc21ebebaae6bd5ba1a751c7075da830c
4
+ data.tar.gz: 3fd6d1978070acea8a13f3f9596ef1c41d2bff6f
5
5
  SHA512:
6
- metadata.gz: a7222b394041e3ac74f6894c6af38cc85c0ebee7c946d4595e34d398965f4b753d505b4f10411d4c4c28673e3517e18027bf248440b0a52555f5d89a5feb8218
7
- data.tar.gz: 8a7bbc83df0d56ef1d5f37092ec9596f824ed4417f23047dfac12c28ddacac96e1bc2eca1050db7ebd2274e0c571e876cfbdf4ce1ed419960a00e8144456b512
6
+ metadata.gz: 319af98b7850002080c95c0a8d7be39f3989d9d3bc74030c00cff82532ce6ba89338a01c7a9117195325a7a2891a0419dadc5444a933d4326b9f66159924eb20
7
+ data.tar.gz: 187ca1692b3ef235337d6eae4a98e115d028483a38cd8a2224e72fe8f295f81b7731324d31b33bd01a69ff0c39f8d122d5ac1472d1d518ce0a8bace2f1ce1e27
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- blsm-mp-wx (0.2.9)
4
+ blsm-mp-wx (0.3.2)
5
5
 
6
6
  GEM
7
7
  remote: https://ruby.taobao.org/
@@ -38,7 +38,7 @@ GEM
38
38
  certified (1.0.0)
39
39
  diff-lcs (1.2.5)
40
40
  erubis (2.7.0)
41
- faraday (0.9.1)
41
+ faraday (0.9.2)
42
42
  multipart-post (>= 1.2, < 3)
43
43
  hike (1.2.3)
44
44
  i18n (0.7.0)
@@ -119,4 +119,4 @@ DEPENDENCIES
119
119
  rspec (~> 3.2)
120
120
 
121
121
  BUNDLED WITH
122
- 1.11.2
122
+ 1.12.5
@@ -1,3 +1,3 @@
1
1
  module BlsmMpWx
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.2"
3
3
  end
data/lib/blsm-mp-wx.rb CHANGED
@@ -197,13 +197,9 @@ module BlsmMpWx
197
197
  response = Faraday.new(:url => 'https://api.weixin.qq.com').post do |req|
198
198
  req.url '/cgi-bin/shorturl'
199
199
  req.headers['Content-Type'] = 'application/json'
200
- data = {
201
- action: 'long2short',
202
- long_url: long_url
203
- }
204
200
  req.params[:long_url] = long_url
205
201
  req.params[:access_token] = access_token
206
- req.body = data.to_json
202
+ req.body = "{\"action\":\"long2short\",\"long_url\":\"#{long_url}\"}"
207
203
  end
208
204
 
209
205
  json_obj = parse_json(response.body)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blsm-mp-wx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - saxer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-06-30 00:00:00.000000000 Z
11
+ date: 2016-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  version: '0'
193
193
  requirements: []
194
194
  rubyforge_project:
195
- rubygems_version: 2.4.3
195
+ rubygems_version: 2.4.8
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: "首趣微店微信公众号基本模块"