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.
@@ -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)
@@ -1,5 +1,5 @@
1
1
  module MotionWechat
2
- module Interface
2
+ class Interface
3
3
 
4
4
  def send_image_content(image_path = '', image_data = nil, opts = {})
5
5
  sendImageContent(image_path, image_data, opts = {})
@@ -1,3 +1,3 @@
1
1
  module MotionWechat
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
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.5
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: