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 +4 -4
- data/Gemfile.lock +3 -3
- data/lib/blsm-mp-wx/version.rb +1 -1
- data/lib/blsm-mp-wx.rb +1 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f8627cdc21ebebaae6bd5ba1a751c7075da830c
|
4
|
+
data.tar.gz: 3fd6d1978070acea8a13f3f9596ef1c41d2bff6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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.
|
122
|
+
1.12.5
|
data/lib/blsm-mp-wx/version.rb
CHANGED
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 =
|
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.
|
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-
|
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.
|
195
|
+
rubygems_version: 2.4.8
|
196
196
|
signing_key:
|
197
197
|
specification_version: 4
|
198
198
|
summary: "首趣微店微信公众号基本模块"
|