Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
igetui-ruby
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
igetui-ruby
Commits
99d96910
Commit
99d96910
authored
Aug 12, 2014
by
Victor Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 gemfile 的引入方式
parent
4d1a2565
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
15 deletions
+14
-15
lib/igetui/version.rb
+1
-1
lib/igetui_ruby.rb
+13
-14
No files found.
lib/igetui/version.rb
View file @
99d96910
module
IGeTui
VERSION
=
"1.0.
0
"
VERSION
=
"1.0.
2
"
end
lib/igetui.rb
→
lib/igetui
_ruby
.rb
View file @
99d96910
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment