weixin_authorize_905 1.6.5

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.
Files changed (50) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +2 -0
  3. data/.gitignore +19 -0
  4. data/.rspec +2 -0
  5. data/.travis.yml +11 -0
  6. data/Gemfile +5 -0
  7. data/LICENSE.txt +22 -0
  8. data/README.md +72 -0
  9. data/Rakefile +1 -0
  10. data/lib/weixin_authorize.rb +97 -0
  11. data/lib/weixin_authorize/api.rb +3 -0
  12. data/lib/weixin_authorize/api/custom.rb +176 -0
  13. data/lib/weixin_authorize/api/data_cube.rb +8 -0
  14. data/lib/weixin_authorize/api/groups.rb +60 -0
  15. data/lib/weixin_authorize/api/mass.rb +80 -0
  16. data/lib/weixin_authorize/api/media.rb +149 -0
  17. data/lib/weixin_authorize/api/menu.rb +36 -0
  18. data/lib/weixin_authorize/api/oauth.rb +50 -0
  19. data/lib/weixin_authorize/api/qrcode.rb +62 -0
  20. data/lib/weixin_authorize/api/template.rb +34 -0
  21. data/lib/weixin_authorize/api/user.rb +69 -0
  22. data/lib/weixin_authorize/carrierwave/weixin_uploader.rb +4 -0
  23. data/lib/weixin_authorize/client.rb +95 -0
  24. data/lib/weixin_authorize/config.rb +35 -0
  25. data/lib/weixin_authorize/handler.rb +3 -0
  26. data/lib/weixin_authorize/handler/exceptions.rb +5 -0
  27. data/lib/weixin_authorize/handler/global_code.rb +127 -0
  28. data/lib/weixin_authorize/handler/result_handler.rb +52 -0
  29. data/lib/weixin_authorize/js_ticket/object_store.rb +21 -0
  30. data/lib/weixin_authorize/js_ticket/redis_store.rb +41 -0
  31. data/lib/weixin_authorize/js_ticket/store.rb +40 -0
  32. data/lib/weixin_authorize/token/object_store.rb +25 -0
  33. data/lib/weixin_authorize/token/redis_store.rb +38 -0
  34. data/lib/weixin_authorize/token/store.rb +72 -0
  35. data/lib/weixin_authorize/version.rb +3 -0
  36. data/spec/1_fetch_access_token_spec.rb +43 -0
  37. data/spec/2_fetch_jsticket_spec.rb +10 -0
  38. data/spec/api/custom_spec.rb +71 -0
  39. data/spec/api/groups_spec.rb +74 -0
  40. data/spec/api/mass_spec.rb +70 -0
  41. data/spec/api/media_spec.rb +82 -0
  42. data/spec/api/medias/favicon.ico +0 -0
  43. data/spec/api/medias/ruby-logo.jpg +0 -0
  44. data/spec/api/menu_spec.rb +26 -0
  45. data/spec/api/qrcode_spec.rb +22 -0
  46. data/spec/api/template_spec.rb +40 -0
  47. data/spec/api/user_spec.rb +26 -0
  48. data/spec/spec_helper.rb +130 -0
  49. data/weixin_authorize.gemspec +48 -0
  50. metadata +301 -0
@@ -0,0 +1,26 @@
1
+ # encoding: utf-8
2
+ describe WeixinAuthorize::Api::Menu do
3
+
4
+ it "can create a menu" do
5
+ menu = '{"button":[{"type":"click","name":"今日歌曲","key":"V1001_TODAY_MUSIC"},{"type":"click","name":"歌手简介","key":"V1001_TODAY_SINGER"},{"name":"菜单","sub_button":[{"type":"view","name":"搜索","url":"http://www.soso.com/"},{"type":"view","name":"视频","url":"http://v.qq.com/"},{"type":"click","name":"赞一下我们","key":"V1001_GOOD"}]}]}'
6
+ response = $client.create_menu(JSON.load(menu)) # or Json string
7
+ expect(response.code).to eq(WeixinAuthorize::OK_CODE)
8
+ end
9
+
10
+ it "can't create a menu if invalid button size" do
11
+ menu = '{"button":[]}'
12
+ response = $client.create_menu(menu)
13
+ expect(response.code).not_to eq(WeixinAuthorize::OK_CODE)
14
+ end
15
+
16
+ it "can get a weixin Menu info" do
17
+ menu_info = $client.menu
18
+ expect(menu_info.result.keys[0]).to eq("menu")
19
+ expect(menu_info.code).to eq(WeixinAuthorize::OK_CODE)
20
+ end
21
+
22
+ it "can delete weixin Menu" do
23
+ response = $client.delete_menu
24
+ expect(response.code).to eq(WeixinAuthorize::OK_CODE)
25
+ end
26
+ end
@@ -0,0 +1,22 @@
1
+ describe WeixinAuthorize::Api::Qrcode do
2
+
3
+ it "#create_qr_scene" do
4
+ response = $client.create_qr_scene("123")
5
+ expect(response.code).to eq(WeixinAuthorize::OK_CODE)
6
+ expect(response.result.keys).to eq(["ticket", "expire_seconds", "url"])
7
+ expect(response.result["expire_seconds"]).to eq(1800)
8
+ end
9
+
10
+ it "#create_qr_limit_scene" do
11
+ response = $client.create_qr_limit_scene(scene_id: 1234, scene_str: "wechat")
12
+ expect(response.code).to eq(WeixinAuthorize::OK_CODE)
13
+ expect(response.result.keys).to eq(["ticket", "url"])
14
+ end
15
+
16
+ it "#return_qr_url" do
17
+ response = $client.create_qr_limit_scene(scene_id: 1234, scene_str: "wechat")
18
+ qr_url = $client.qr_code_url(response.result["ticket"])
19
+ expect(response.code).to eq(WeixinAuthorize::OK_CODE)
20
+ expect(qr_url).to match(/(\S+\.(com|net|org|edu|gov)(\/\S+)?)/)
21
+ end
22
+ end
@@ -0,0 +1,40 @@
1
+ describe WeixinAuthorize::Api::Template do
2
+ # {{first.DATA}}
3
+ # 项目名称:{{class.DATA}}
4
+ # 时间:{{time.DATA}}
5
+ # 地点:{{add.DATA}}
6
+ # {{remark.DATA}}
7
+ it "can send template msg" do
8
+ url = "http://www.baidu.com"
9
+ data = {
10
+ first: {
11
+ value: "报名结果通知",
12
+ color: "#173277"
13
+ },
14
+ class: {
15
+ value: "领导与管理课程培训/人格测评",
16
+ color: "#173177"
17
+ },
18
+ time: {
19
+ value: "11月6日—11月7日(周三—周五)",
20
+ color: "#274177"
21
+ },
22
+ add: {
23
+ value: "F302室",
24
+ color: "#274377"
25
+ },
26
+ remark: {
27
+ value: "您可点击【详情】查看详细信息。",
28
+ color: "#274377"
29
+ }
30
+ }
31
+ msg_result = $client.send_template_msg(
32
+ ENV["OPENID"],
33
+ ENV["TEMPLATE_ID"],
34
+ url,
35
+ "#173177",
36
+ data
37
+ )
38
+ expect(msg_result.code).to eq(WeixinAuthorize::OK_CODE)
39
+ end
40
+ end
@@ -0,0 +1,26 @@
1
+ describe WeixinAuthorize::Api::User do
2
+ it "can get a weixin User info" do
3
+ user_info = $client.user(ENV["OPENID"])
4
+ expect(user_info.code).to eq(WeixinAuthorize::OK_CODE)
5
+ expect(user_info.result["openid"]).to eq(ENV["OPENID"])
6
+ end
7
+
8
+ it "can get followers infos" do
9
+ valid_info = $client.is_valid?
10
+ expect(valid_info).to eq(true)
11
+ followers = $client.followers
12
+ expect(followers.code).to eq(WeixinAuthorize::OK_CODE)
13
+ expect(followers.result.keys).to eq(["total", "count", "data", "next_openid"])
14
+
15
+ valid_info = $client.is_valid?
16
+ expect(valid_info).to eq(true)
17
+ followers = $client.followers
18
+ expect(followers.code).to eq(WeixinAuthorize::OK_CODE)
19
+ expect(followers.result.keys).to eq(["total", "count", "data", "next_openid"])
20
+ end
21
+
22
+ it "can update user remark" do
23
+ user_info = $client.update_remark(ENV["OPENID"], "dylan")
24
+ expect(user_info.code).to eq(WeixinAuthorize::OK_CODE)
25
+ end
26
+ end
@@ -0,0 +1,130 @@
1
+ # This file was generated by the `rspec --init` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # The generated `.rspec` file contains `--require spec_helper` which will cause this
4
+ # file to always be loaded, without a need to explicitly require it in any files.
5
+ #
6
+ # Given that it is always loaded, you are encouraged to keep this file as
7
+ # light-weight as possible. Requiring heavyweight dependencies from this file
8
+ # (such as loading up an entire rails app) will add to the boot time of your
9
+ # test suite on EVERY test run, even for an individual file that may not need
10
+ # all of that loaded.
11
+ #
12
+ # The `.rspec` file also contains a few flags that are not defaults but that
13
+ # users commonly want.
14
+ #
15
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
16
+ require "rspec"
17
+ require "weixin_authorize"
18
+ require "redis"
19
+ require "redis-namespace"
20
+
21
+ require 'coveralls'
22
+ require 'simplecov'
23
+ require "codeclimate-test-reporter"
24
+
25
+ require "pry-rails"
26
+
27
+ Coveralls.wear!
28
+
29
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
30
+ SimpleCov::Formatter::HTMLFormatter,
31
+ Coveralls::SimpleCov::Formatter
32
+ ]
33
+
34
+ SimpleCov.start
35
+
36
+ ENV['CODECLIMATE_REPO_TOKEN'] = "c91fecbbd9e414e7cc3ad7a7d99207145de0ac65a3368de09e8c19295343d399"
37
+ CodeClimate::TestReporter.start
38
+
39
+ # If you want test, change your weixin test profile
40
+ ENV["APPID"]="wx986f04063d341d04"
41
+ ENV["APPSECRET"]="1a941cd88cb4579ba98ec06b6813af03"
42
+ ENV["OPENID"]="o9k6BuB0kydAcPTc7sPxppB1GQqA"
43
+ ENV["TEMPLATE_ID"]="-8ooXrOK3VD3HuSS8--nH154PO9Lw2E7T-RV1uTaGLc"
44
+
45
+ # Comment to test for ClientStorage
46
+ redis = Redis.new(host: "127.0.0.1", port: "6379", db: 15)
47
+
48
+ namespace = "weixin_test:weixin_authorize"
49
+
50
+ # cleanup keys in the current namespace when restart server everytime.
51
+ exist_keys = redis.keys("#{namespace}:*")
52
+ exist_keys.each{|key|redis.del(key)}
53
+
54
+ redis_with_ns = Redis::Namespace.new("#{namespace}", :redis => redis)
55
+
56
+ WeixinAuthorize.configure do |config|
57
+ config.redis = redis_with_ns
58
+ # config.key_expired = 200
59
+ config.rest_client_options = {timeout: 10, open_timeout: 10, verify_ssl: true}
60
+ end
61
+
62
+ $client = WeixinAuthorize::Client.new(ENV["APPID"], ENV["APPSECRET"])
63
+
64
+ RSpec.configure do |config|
65
+ # The settings below are suggested to provide a good initial experience
66
+ # with RSpec, but feel free to customize to your heart's content.
67
+ =begin
68
+ # These two settings work together to allow you to limit a spec run
69
+ # to individual examples or groups you care about by tagging them with
70
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
71
+ # get run.
72
+ config.filter_run :focus
73
+ config.run_all_when_everything_filtered = true
74
+
75
+ # Many RSpec users commonly either run the entire suite or an individual
76
+ # file, and it's useful to allow more verbose output when running an
77
+ # individual spec file.
78
+ if config.files_to_run.one?
79
+ # RSpec filters the backtrace by default so as not to be so noisy.
80
+ # This causes the full backtrace to be printed when running a single
81
+ # spec file (e.g. to troubleshoot a particular spec failure).
82
+ config.full_backtrace = true
83
+
84
+ # Use the documentation formatter for detailed output,
85
+ # unless a formatter has already been configured
86
+ # (e.g. via a command-line flag).
87
+ config.formatter = 'doc' if config.formatters.none?
88
+ end
89
+
90
+ # Print the 10 slowest examples and example groups at the
91
+ # end of the spec run, to help surface which specs are running
92
+ # particularly slow.
93
+ config.profile_examples = 10
94
+
95
+ # Run specs in random order to surface order dependencies. If you find an
96
+ # order dependency and want to debug it, you can fix the order by providing
97
+ # the seed, which is printed after each run.
98
+ # --seed 1234
99
+ config.order = :random
100
+
101
+ # Seed global randomization in this process using the `--seed` CLI option.
102
+ # Setting this allows you to use `--seed` to deterministically reproduce
103
+ # test failures related to randomization by passing the same `--seed` value
104
+ # as the one that triggered the failure.
105
+ Kernel.srand config.seed
106
+
107
+ # rspec-expectations config goes here. You can use an alternate
108
+ # assertion/expectation library such as wrong or the stdlib/minitest
109
+ # assertions if you prefer.
110
+ config.expect_with :rspec do |expectations|
111
+ # Enable only the newer, non-monkey-patching expect syntax.
112
+ # For more details, see:
113
+ # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
114
+ expectations.syntax = :expect
115
+ end
116
+
117
+ # rspec-mocks config goes here. You can use an alternate test double
118
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
119
+ config.mock_with :rspec do |mocks|
120
+ # Enable only the newer, non-monkey-patching expect syntax.
121
+ # For more details, see:
122
+ # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
123
+ mocks.syntax = :expect
124
+
125
+ # Prevents you from mocking or stubbing a method that does not exist on
126
+ # a real object. This is generally recommended.
127
+ mocks.verify_partial_doubles = true
128
+ end
129
+ =end
130
+ end
@@ -0,0 +1,48 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'weixin_authorize/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "weixin_authorize_905"
8
+ spec.version = WeixinAuthorize::VERSION
9
+ spec.authors = ["lanrion"]
10
+ spec.email = ["huaitao-deng@foxmail.com"]
11
+ spec.description = %q{weixin api authorize access_token}
12
+ spec.summary = %q{weixin api authorize access_token}
13
+ spec.homepage = "https://github.com/lanrion/weixin_authorize"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency "rest-client", ">= 1.6.7"
22
+ spec.add_dependency "redis", ">= 3.1.0"
23
+
24
+ spec.add_dependency "carrierwave", ">= 0.10.0"
25
+ spec.add_dependency 'mini_magick', '>= 3.7.0'
26
+
27
+ # A streaming JSON parsing and encoding library for Ruby (C bindings to yajl)
28
+ # https://github.com/brianmario/yajl-ruby
29
+ # yajl-ruby 不支持 jruby
30
+ if RUBY_PLATFORM == 'java'
31
+ spec.add_dependency "json"
32
+ else
33
+ spec.add_dependency "yajl-ruby", ">= 1.2.0"
34
+ end
35
+
36
+ spec.add_development_dependency "bundler"
37
+ spec.add_development_dependency "rake"
38
+ spec.add_development_dependency "rspec"
39
+ spec.add_development_dependency "redis-namespace"
40
+ spec.add_development_dependency "codeclimate-test-reporter"
41
+ spec.add_development_dependency "simplecov", "~> 0.10.0"
42
+ spec.add_development_dependency 'coveralls', '~> 0.8.2'
43
+ spec.add_development_dependency 'pry-rails'
44
+ if RUBY_PLATFORM != 'java'
45
+ spec.add_development_dependency 'pry-byebug'
46
+ end
47
+
48
+ end
metadata ADDED
@@ -0,0 +1,301 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: weixin_authorize_905
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.6.5
5
+ platform: ruby
6
+ authors:
7
+ - lanrion
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-07-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rest-client
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 1.6.7
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 1.6.7
27
+ - !ruby/object:Gem::Dependency
28
+ name: redis
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 3.1.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 3.1.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: carrierwave
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 0.10.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: 0.10.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: mini_magick
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 3.7.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 3.7.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: yajl-ruby
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: 1.2.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: 1.2.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: bundler
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rake
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rspec
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: redis-namespace
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: codeclimate-test-reporter
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: simplecov
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 0.10.0
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 0.10.0
167
+ - !ruby/object:Gem::Dependency
168
+ name: coveralls
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: 0.8.2
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: 0.8.2
181
+ - !ruby/object:Gem::Dependency
182
+ name: pry-rails
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: pry-byebug
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ description: weixin api authorize access_token
210
+ email:
211
+ - huaitao-deng@foxmail.com
212
+ executables: []
213
+ extensions: []
214
+ extra_rdoc_files: []
215
+ files:
216
+ - ".coveralls.yml"
217
+ - ".gitignore"
218
+ - ".rspec"
219
+ - ".travis.yml"
220
+ - Gemfile
221
+ - LICENSE.txt
222
+ - README.md
223
+ - Rakefile
224
+ - lib/weixin_authorize.rb
225
+ - lib/weixin_authorize/api.rb
226
+ - lib/weixin_authorize/api/custom.rb
227
+ - lib/weixin_authorize/api/data_cube.rb
228
+ - lib/weixin_authorize/api/groups.rb
229
+ - lib/weixin_authorize/api/mass.rb
230
+ - lib/weixin_authorize/api/media.rb
231
+ - lib/weixin_authorize/api/menu.rb
232
+ - lib/weixin_authorize/api/oauth.rb
233
+ - lib/weixin_authorize/api/qrcode.rb
234
+ - lib/weixin_authorize/api/template.rb
235
+ - lib/weixin_authorize/api/user.rb
236
+ - lib/weixin_authorize/carrierwave/weixin_uploader.rb
237
+ - lib/weixin_authorize/client.rb
238
+ - lib/weixin_authorize/config.rb
239
+ - lib/weixin_authorize/handler.rb
240
+ - lib/weixin_authorize/handler/exceptions.rb
241
+ - lib/weixin_authorize/handler/global_code.rb
242
+ - lib/weixin_authorize/handler/result_handler.rb
243
+ - lib/weixin_authorize/js_ticket/object_store.rb
244
+ - lib/weixin_authorize/js_ticket/redis_store.rb
245
+ - lib/weixin_authorize/js_ticket/store.rb
246
+ - lib/weixin_authorize/token/object_store.rb
247
+ - lib/weixin_authorize/token/redis_store.rb
248
+ - lib/weixin_authorize/token/store.rb
249
+ - lib/weixin_authorize/version.rb
250
+ - spec/1_fetch_access_token_spec.rb
251
+ - spec/2_fetch_jsticket_spec.rb
252
+ - spec/api/custom_spec.rb
253
+ - spec/api/groups_spec.rb
254
+ - spec/api/mass_spec.rb
255
+ - spec/api/media_spec.rb
256
+ - spec/api/medias/favicon.ico
257
+ - spec/api/medias/ruby-logo.jpg
258
+ - spec/api/menu_spec.rb
259
+ - spec/api/qrcode_spec.rb
260
+ - spec/api/template_spec.rb
261
+ - spec/api/user_spec.rb
262
+ - spec/spec_helper.rb
263
+ - weixin_authorize.gemspec
264
+ homepage: https://github.com/lanrion/weixin_authorize
265
+ licenses:
266
+ - MIT
267
+ metadata: {}
268
+ post_install_message:
269
+ rdoc_options: []
270
+ require_paths:
271
+ - lib
272
+ required_ruby_version: !ruby/object:Gem::Requirement
273
+ requirements:
274
+ - - ">="
275
+ - !ruby/object:Gem::Version
276
+ version: '0'
277
+ required_rubygems_version: !ruby/object:Gem::Requirement
278
+ requirements:
279
+ - - ">="
280
+ - !ruby/object:Gem::Version
281
+ version: '0'
282
+ requirements: []
283
+ rubyforge_project:
284
+ rubygems_version: 2.5.1
285
+ signing_key:
286
+ specification_version: 4
287
+ summary: weixin api authorize access_token
288
+ test_files:
289
+ - spec/1_fetch_access_token_spec.rb
290
+ - spec/2_fetch_jsticket_spec.rb
291
+ - spec/api/custom_spec.rb
292
+ - spec/api/groups_spec.rb
293
+ - spec/api/mass_spec.rb
294
+ - spec/api/media_spec.rb
295
+ - spec/api/medias/favicon.ico
296
+ - spec/api/medias/ruby-logo.jpg
297
+ - spec/api/menu_spec.rb
298
+ - spec/api/qrcode_spec.rb
299
+ - spec/api/template_spec.rb
300
+ - spec/api/user_spec.rb
301
+ - spec/spec_helper.rb