xi_wechat_corp 1.0.1 → 1.0.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: f43b1974370248c09d051e2e6892767be0991916
4
- data.tar.gz: 3597d0baf0dee464ddae6ac9a6124694607cbff3
3
+ metadata.gz: 0015103d9ab6dc8c97dae013099f53c9ff861599
4
+ data.tar.gz: c1163dc721674f445544ac0c7fd5cda890b5bcee
5
5
  SHA512:
6
- metadata.gz: 7bae479c83066ae4b2950a44804aec6ef600731f4bd36e9dbdfe3242f9c89df8e611c094d4596463b293ba18941fb185f3c112130d3c4c80c2155646ae2d8df7
7
- data.tar.gz: c0fc91b01d1f986e8589a8cd6cc9a8e696319d92bfee9c6f83c48274b6df0d8c0e3c160723b73a51a94ba83ed9a73058988b7e65193496794affc1efe99558fb
6
+ metadata.gz: b0fbe213eb55cd3aa8d693104fb95bd503edce13ebb05aeb606c714b1e034a881e53f3e29e498d5400c388ed0080f0ac3065d31d87e096ca9460fef64d579e32
7
+ data.tar.gz: cd10836fd1b916956394c781978bcb8fe87045d02ca94da1bd11e4c87c724a602e006db0c976907cc3b64b69922f415e2cce3b92a9b4b5b8387f8d3092ab3bb0
@@ -1,7 +1,7 @@
1
1
  require 'securerandom'
2
2
  require 'base64'
3
- require_relative 'error'
4
- require_relative 'pkcs7_encoder'
3
+ require 'xi_wechat_corp/error'
4
+ require 'xi_wechat_corp/pkcs7_encoder'
5
5
 
6
6
  module XiWechatCorp
7
7
  class AesCrypt
@@ -1,6 +1,6 @@
1
1
  require 'faraday'
2
2
  require 'faraday_middleware'
3
- require_relative 'access_token'
3
+ require 'xi_wechat_corp/api/access_token'
4
4
 
5
5
  module XiWechatCorp
6
6
  module API
@@ -1,7 +1,7 @@
1
1
  require 'rack/utils'
2
2
  require 'xi_wechat_corp/sha1_signer'
3
3
  require 'xi_wechat_corp/aes_crypt'
4
- require_relative 'request'
4
+ require 'xi_wechat_corp/callback/request'
5
5
 
6
6
  module XiWechatCorp
7
7
  module Callback
@@ -1,9 +1,9 @@
1
1
  require 'rack/utils'
2
2
  require 'xi_wechat_corp'
3
3
  require 'xi_wechat_corp/error'
4
- require_relative 'request'
5
- require_relative 'response'
6
- require_relative 'config'
4
+ require 'xi_wechat_corp/callback/request'
5
+ require 'xi_wechat_corp/callback/response'
6
+ require 'xi_wechat_corp/callback/config'
7
7
 
8
8
  module XiWechatCorp
9
9
  module Callback
@@ -1,5 +1,5 @@
1
1
  require 'multi_xml'
2
- require_relative 'response'
2
+ require 'xi_wechat_corp/callback/response'
3
3
 
4
4
  module XiWechatCorp
5
5
  module Callback
@@ -1,7 +1,8 @@
1
1
  module XiWechatCorp
2
2
  module Callback
3
+ autoload :Request, 'xi_wechat_corp/callback/request'
4
+ autoload :Response, 'xi_wechat_corp/callback/response'
5
+ autoload :Rack, 'xi_wechat_corp/callback/rack'
6
+ autoload :GrapeXmlParser, 'xi_wechat_corp/callback/grape_xml_parser'
3
7
  end
4
8
  end
5
-
6
- require 'xi_wechat_corp/callback/request'
7
- require 'xi_wechat_corp/callback/response'
@@ -1,4 +1,4 @@
1
- require_relative 'error'
1
+ require 'xi_wechat_corp/error'
2
2
 
3
3
  module XiWechatCorp
4
4
  # This file is modified from offical python example
@@ -1,3 +1,3 @@
1
1
  module XiWechatCorp
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xi_wechat_corp
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Yang