yx_sdk 0.1.2 → 0.1.4

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: 0c8d822aaf81fe02add8d88f6733dba99c440e1a
4
- data.tar.gz: 52050cc0c5b7889521ecbe674f4688d9ac861d2a
3
+ metadata.gz: 1c7a5863c64e247ada042bd5b099f0662a08069c
4
+ data.tar.gz: e47f589c09c6e1c8bc0f7c9341eaa32630ad718e
5
5
  SHA512:
6
- metadata.gz: d2e65e24abacd74ce3546ed71f6737bd1ce91288f6cd7f5812129adf550a36e3a7223ace6efb4c25e15d958cc57d43e825a43611416eb0ed431ac6f48d2870e1
7
- data.tar.gz: d4d6e327114e6b2f5aff0cd997c4804875b49184c5301271b98c25af8b455126e4251067982466e8284ad3e37cd2ee248a4de73979af06599b16cfe051183757
6
+ metadata.gz: 7c62303c2764561de786413057246ae0138660372af5e9ada4274bdd0fd906e97625dc5d143b177838fc5a6adb80b43ab828208f8d329430c59f82060df27c03
7
+ data.tar.gz: 7b10c3fb3e74e09f0f9f572af45fa230d66fb01a46e1199cb6bb3e537932ac00eb2365ee1d10cd898898eed3b96cbce828499221c6a5b8dbc6e3bef5991d3715
@@ -1,5 +1,9 @@
1
- require "yx_sdk/version"
2
1
  require "rest-client"
2
+ require "yx_sdk/version"
3
+ require "yx_sdk/handler/result_handler"
4
+ require "yx_sdk/api"
5
+ require "yx_sdk/client"
6
+
3
7
 
4
8
  module YxSdk
5
9
 
@@ -0,0 +1,3 @@
1
+ Dir["#{File.dirname(__FILE__)}/api/*.rb"].each do |path|
2
+ require path
3
+ end
@@ -1,15 +1,15 @@
1
1
  require 'digest/md5'
2
2
  module YxSdk
3
+
3
4
  class Client
4
5
 
5
6
  include Api::User
6
7
 
7
- attr_accessor app_key, app_secret
8
+ attr_accessor :app_key, :app_secret
8
9
 
9
- def initialize(app_key, app_secret, options={})
10
+ def initialize(app_key, app_secret)
10
11
  @app_key = app_key
11
12
  @app_secret = app_secret
12
- super()
13
13
  end
14
14
 
15
15
  # 暴露出:http_get,http_post两个方法,方便第三方开发者扩展未开发的微信API。
@@ -1,3 +1,3 @@
1
1
  module YxSdk
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yx_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - karidyang
@@ -69,6 +69,7 @@ files:
69
69
  - bin/console
70
70
  - bin/setup
71
71
  - lib/yx_sdk.rb
72
+ - lib/yx_sdk/api.rb
72
73
  - lib/yx_sdk/api/user.rb
73
74
  - lib/yx_sdk/client.rb
74
75
  - lib/yx_sdk/config.rb