weixin_rails_middleware 1.3.1 → 1.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: f079af9ed5d2cb1eb39c297b00fecdda832e4a1f
4
- data.tar.gz: a491310af214643839d415dc96a1bc83fea0c245
3
+ metadata.gz: 20636ef04ad9e490d71c59375819148285a067e3
4
+ data.tar.gz: 3c9e8ef0d981074eaec67981c93c6965bc84ab28
5
5
  SHA512:
6
- metadata.gz: 8edb6d095295516b0ae531706bb34af81486bd04d372b1accfd3a3b2650417ec4509a8daadbed1d607c7b1d041eab35824457a5fc6d1c3d9159bf1d4ca2ccd9e
7
- data.tar.gz: 6107d9a584ea93dd73592c9e8be7ef8245c910c36f065ebe04eac419c236b2344093023ca66d786cd2c44e724ac7514e7c7c830b7ea9d74d78a31e2e434c29b9
6
+ metadata.gz: adadd27ecb4ce7e0ae949500613fab251d066ef1eefe5bfa6f03be515766009a1319cdfbfa8346806110a8de352b23bd13a9db13c1c9778c11d0c0c80ad79c25
7
+ data.tar.gz: 23c3a8e5b56525c52ce9a5e5e04090bdb90f4d3ab7ea2c265a1eaf55739a2eb0df4607195929637b16f6e365b426d71c4f807ea1ad01033fd0067454f9d43b66
@@ -2,7 +2,6 @@ module WeixinRailsMiddleware
2
2
  class WeixinController < ActionController::Base
3
3
  include ReplyWeixinMessageHelper
4
4
 
5
- skip_before_filter :verify_authenticity_token
6
5
  before_filter :check_is_encrypt, only: [:index, :reply]
7
6
  before_filter :initialize_adapter, :check_weixin_legality, only: [:index, :reply]
8
7
  before_filter :set_weixin_public_account, :set_weixin_message, only: :reply
@@ -70,7 +70,7 @@ module WeixinRailsMiddleware
70
70
  def render_authorize_result(status=401, text=nil, valid=false)
71
71
  text = text || error_msg
72
72
  Rails.logger.error(text) if status != 200
73
- {text: text, status: status, valid: valid}
73
+ {plain: text, status: status, valid: valid}
74
74
  end
75
75
 
76
76
  def error_msg
@@ -1,3 +1,3 @@
1
1
  module WeixinRailsMiddleware
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weixin_rails_middleware
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - lanrion
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-25 00:00:00.000000000 Z
11
+ date: 2016-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
133
  version: '0'
134
134
  requirements: []
135
135
  rubyforge_project:
136
- rubygems_version: 2.4.5.1
136
+ rubygems_version: 2.4.5
137
137
  signing_key:
138
138
  specification_version: 4
139
139
  summary: weixin_rails_middleware for integration weixin