motion_wechat 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/motion_wechat/client.rb +5 -0
- data/lib/motion_wechat/interface.rb +1 -1
- data/lib/motion_wechat/version.rb +1 -1
- metadata +2 -7
data/lib/motion_wechat/client.rb
CHANGED
@@ -1,9 +1,14 @@
|
|
1
1
|
module MotionWechat
|
2
2
|
class Client
|
3
|
+
extend Forwardable
|
4
|
+
|
5
|
+
def_delegators :interface, :send_text_content, :getWXAppInstallUrl, :isWXAppInstalled, :isWXAppSupportApi, :openWXApp
|
3
6
|
|
4
7
|
def initialize(app_id = '')
|
5
8
|
@app_id = MotionWechat::Config.app_id if app_id.empty?
|
6
9
|
WXApi.registerApp @app_id
|
10
|
+
|
11
|
+
@interface = MotionWechat::Interface.new
|
7
12
|
end
|
8
13
|
|
9
14
|
def handle_openURL(url, delegate)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion_wechat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -45,18 +45,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
45
45
|
- - ! '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
|
-
segments:
|
49
|
-
- 0
|
50
|
-
hash: -739150016723450478
|
51
48
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
49
|
none: false
|
53
50
|
requirements:
|
54
51
|
- - ! '>='
|
55
52
|
- !ruby/object:Gem::Version
|
56
53
|
version: '0'
|
57
|
-
segments:
|
58
|
-
- 0
|
59
|
-
hash: -739150016723450478
|
60
54
|
requirements: []
|
61
55
|
rubyforge_project:
|
62
56
|
rubygems_version: 1.8.24
|
@@ -64,3 +58,4 @@ signing_key:
|
|
64
58
|
specification_version: 3
|
65
59
|
summary: A rubymotion wrapper for wechat SDK
|
66
60
|
test_files: []
|
61
|
+
has_rdoc:
|