Commit 99d96910 by Victor Wang

修改 gemfile 的引入方式

parent 4d1a2565
module IGeTui
VERSION = "1.0.0"
VERSION = "1.0.2"
end
......@@ -6,25 +6,24 @@ require 'digest/md5'
require 'base64'
module IGeTui
class << self
extend Forwardable
extend self
extend Forwardable
API_URL = "http://sdk.open.api.igexin.com/apiex.htm"
API_URL = "http://sdk.open.api.igexin.com/apiex.htm"
attr_reader :pusher
attr_reader :pusher
def_delegators :pusher, :push_message_to_single
def_delegators :pusher, :push_message_to_list
def_delegators :pusher, :push_message_to_app
def_delegators :pusher, :stop
def_delegators :pusher, :get_client_id_status
def_delegators :pusher, :get_content_id, :cancel_content_id
def pusher(app_id, api_key, master_secret)
@pusher ||= IGeTui::Pusher.new(API_URL, app_id, api_key, master_secret)
end
def_delegators :pusher, :push_message_to_single
def_delegators :pusher, :push_message_to_list
def_delegators :pusher, :push_message_to_app
def_delegators :pusher, :stop
def_delegators :pusher, :get_client_id_status
def_delegators :pusher, :get_content_id, :cancel_content_id
def pusher(app_id, api_key, master_secret)
@pusher ||= IGeTui::Pusher.new(API_URL, app_id, api_key, master_secret)
end
end
require "igetui/version"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment