Commit 4ee383b1 by lanrion

added yajl-ruby JSON parsing and encoding

parent f2006a06
...@@ -5,6 +5,8 @@ require "weixin_authorize/handler" ...@@ -5,6 +5,8 @@ require "weixin_authorize/handler"
require "weixin_authorize/api" require "weixin_authorize/api"
require "weixin_authorize/client" require "weixin_authorize/client"
MultiJson.use :yajl
module WeixinAuthorize module WeixinAuthorize
# Storage # Storage
......
...@@ -22,6 +22,10 @@ Gem::Specification.new do |spec| ...@@ -22,6 +22,10 @@ Gem::Specification.new do |spec|
spec.add_dependency "multi_json", "~> 1.9.0" spec.add_dependency "multi_json", "~> 1.9.0"
spec.add_dependency "redis", "~> 3.0.7" spec.add_dependency "redis", "~> 3.0.7"
# A streaming JSON parsing and encoding library for Ruby (C bindings to yajl)
# https://github.com/brianmario/yajl-ruby
spec.add_dependency "yajl-ruby", "~> 1.2.0"
spec.add_development_dependency "bundler", "~> 1.3" spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "rake" spec.add_development_dependency "rake"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment