wxapi 1.0.1 → 1.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 100fdf3b99ae4aeb7ddc3a7c4433c502b56048d9235590944b369a7989320729
4
- data.tar.gz: 1af2c21175d8f63f62078b0b3944579d8af9628ef44aff78ab13f2ba3f945267
3
+ metadata.gz: 05a6023ecbfe39cec24b74c8dbbc721c2b98d6c923a4361b2b54176ed0f1e994
4
+ data.tar.gz: c2e7cc04f2901ca7b781ec48e849acfe31a9bf8fbfc0fe09579309d1ef86e621
5
5
  SHA512:
6
- metadata.gz: d226b31593a1a794963ba8a6acb4820ca785c3eff1545d35e4e2233a46cd2341de4bccef98797db4727ca1d2fc0d3763291549cc015c34d9a3424d0df3e848dd
7
- data.tar.gz: ceabcbb9eb1bb2f5535c3dc9b83b31be552a32ce5afa0c2fcd347242fe0a3095361b18165c3b330ffdd7d3d6ba804036ee3fa2138e4df448254ade1dbeb0d4ce
6
+ metadata.gz: 968d5532cc49c9ad8cd66125870d7fcf0b5f459d61e25c202d1400e950d4ca0b5748a408bc924dbf4f6373cfe010976a37638f3b6b081e838c6787976dc124ed
7
+ data.tar.gz: 02d633229c61daf254424f3cc49134fd8329448fbdd744a5e2217b2388ccd631b57c0ff025df9e080474cd5e7ec2f9538a7db1caa96c5e1e28c1d73bd50fe90d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- wxapi (1.0.0)
4
+ wxapi (1.0.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/Rakefile CHANGED
@@ -4,6 +4,6 @@ task :default => :spec
4
4
 
5
5
  task :upload do |t|
6
6
  puts "Uploading not implemented"
7
- wxApi = WxApi.new app_id: 'wx3b8fe6d36cc00e3e'
7
+ wxApi = Wxapi.new app_id: 'wx3b8fe6d36cc00e3e'
8
8
  puts wxApi.get_access_token
9
9
  end
data/bin/console CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
- require "wx_api"
4
+ require "wxapi"
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
@@ -5,7 +5,7 @@
5
5
  # Wechat number: zmx119966
6
6
  ####################################################
7
7
 
8
- class WxApi
8
+ class Wxapi
9
9
  module AccessToken
10
10
 
11
11
  ###
data/lib/wxapi/account.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  # Wechat number: zmx119966
6
6
  ####################################################
7
7
 
8
- class WxApi
8
+ class Wxapi
9
9
  module Account
10
10
  ###
11
11
  # 获取临时场景带惨二维码,30天有效
data/lib/wxapi/aes.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  # Wechat number: zmx119966
6
6
  ####################################################
7
7
 
8
- class WxApi
8
+ class Wxapi
9
9
  module Aes
10
10
  # 解密
11
11
  def decrypt(key, dicrypted_string)
@@ -5,7 +5,7 @@
5
5
  # Wechat number: zmx119966
6
6
  ####################################################
7
7
 
8
- class WxApi
8
+ class Wxapi
9
9
  module Kf
10
10
 
11
11
  ###
@@ -5,7 +5,7 @@
5
5
  # Wechat number: zmx119966
6
6
  ####################################################
7
7
 
8
- class WxApi
8
+ class Wxapi
9
9
  module Material
10
10
  ###
11
11
  # 获得临时图片素材的 media_id
data/lib/wxapi/menu.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  # Wechat number: zmx119966
6
6
  ####################################################
7
7
 
8
- class WxApi
8
+ class Wxapi
9
9
  module Menu
10
10
  ###
11
11
  # create wechat public menu
@@ -5,7 +5,7 @@
5
5
  # Wechat number: zmx119966
6
6
  ####################################################
7
7
 
8
- class WxApi
8
+ class Wxapi
9
9
  module Tp
10
10
  ###
11
11
  # @param <JSON> message
data/lib/wxapi/user.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  # Wechat number: zmx119966
6
6
  ####################################################
7
7
 
8
- class WxApi
8
+ class Wxapi
9
9
  module User
10
10
  # 获取用户信息
11
11
  # @return <JSON>
data/lib/wxapi/utils.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  # Wechat number: zmx119966
6
6
  ####################################################
7
7
 
8
- class WxApi
8
+ class Wxapi
9
9
  module Utils
10
10
  # todo
11
11
  end
data/lib/wxapi/version.rb CHANGED
@@ -1,3 +1,3 @@
1
- class WxApi
2
- VERSION = "1.0.1"
1
+ class Wxapi
2
+ VERSION = "1.0.2"
3
3
  end
@@ -9,7 +9,7 @@ require "wxapi/utils"
9
9
  require "wxapi/user"
10
10
  require "wxapi/material"
11
11
 
12
- class WxApi
12
+ class Wxapi
13
13
 
14
14
 
15
15
 
data/test.rb CHANGED
@@ -1,9 +1,9 @@
1
- require './lib/wx_api'
1
+ require './lib/wxapi'
2
2
  require 'redis'
3
3
  require 'rest-client'
4
4
  require 'json'
5
5
  $redis = Redis.new(url: "redis://localhost:6379/0")
6
- $we_api = WxApi.new app_id: 'wx3b8fe6d36cc00e3e',
6
+ $we_api = Wxapi.new app_id: 'wx3b8fe6d36cc00e3e',
7
7
  app_secret: 'e6755d03d7f58b71aac8c22f6271c265',
8
8
  access_token_cache: false,
9
9
  api_prefix: 'https://proxy.biying88.cn/proxywx'
data/wxapi.gemspec CHANGED
@@ -5,7 +5,7 @@ require "wxapi/version"
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "wxapi"
8
- spec.version = WxApi::VERSION
8
+ spec.version = Wxapi::VERSION
9
9
  spec.authors = ["黄滚 twitter: @hg_nohair"]
10
10
  spec.email = ["xurenlu@gmail.com"]
11
11
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wxapi
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
  - '黄滚 twitter: @hg_nohair'
@@ -109,7 +109,7 @@ files:
109
109
  - Rakefile
110
110
  - bin/console
111
111
  - bin/setup
112
- - lib/wx_api.rb
112
+ - lib/wxapi.rb
113
113
  - lib/wxapi/access_token.rb
114
114
  - lib/wxapi/account.rb
115
115
  - lib/wxapi/aes.rb