pubnub-ruby 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/LICENSE.PUBNUB +27 -0
  2. data/README +2 -59
  3. data/README.ROOT +39 -0
  4. data/lib/pubnub-ruby.rb +1 -1
  5. metadata +6 -2
data/LICENSE.PUBNUB ADDED
@@ -0,0 +1,27 @@
1
+ PubNub Real-time Cloud-Hosted Push API and Push Notification Client Frameworks
2
+ Copyright (c) 2011 TopMambo Inc.
3
+ http://www.pubnub.com/
4
+ http://www.pubnub.com/terms
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in
14
+ all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ THE SOFTWARE.
23
+
24
+ PubNub Real-time Cloud-Hosted Push API and Push Notification Client Frameworks
25
+ Copyright (c) 2011 TopMambo Inc.
26
+ http://www.pubnub.com/
27
+ http://www.pubnub.com/terms
data/README CHANGED
@@ -1,59 +1,2 @@
1
- ## ---------------------------------------------------
2
- ##
3
- ## YOU MUST HAVE A PUBNUB ACCOUNT TO USE THE API.
4
- ## http://www.pubnub.com/account
5
- ##
6
- ## ----------------------------------------------------
7
-
8
- ## ------------------------------------------
9
- ## PubNub 3.0 Real-time Cloud Push API - RUBY
10
- ## ------------------------------------------
11
- ##
12
- ## www.pubnub.com - PubNub Real-time Push Service in the Cloud.
13
- ## http://www.pubnub.com/blog/ruby-push-api
14
- ##
15
- ## PubNub is a Massively Scalable Real-time Service for Web and Mobile Games.
16
- ## This is a cloud-based service for broadcasting Real-time messages
17
- ## to thousands of web and mobile clients simultaneously.
18
-
19
- ## -------------
20
- ## Ruby Push API
21
- ## -------------
22
- pubnub = Pubnub.new(
23
- "demo", ## PUBLISH_KEY
24
- "demo", ## SUBSCRIBE_KEY
25
- "", ## SECRET_KEY
26
- false ## SSL_ON?
27
- )
28
-
29
- # -------
30
- # PUBLISH
31
- # -------
32
- # Send Message
33
- info = pubnub.publish({
34
- 'channel' => 'hello_world',
35
- 'message' => { 'text' => 'some text data' }
36
- })
37
- puts(info)
38
-
39
- # ---------
40
- # SUBSCRIBE
41
- # ---------
42
- # Listen for Messages *BLOCKING*
43
- pubnub.subscribe({
44
- 'channel' => 'hello_world',
45
- 'callback' => lambda do |message|
46
- puts(message) ## print message
47
- return true ## keep listening?
48
- end
49
- })
50
-
51
- # -------
52
- # HISTORY
53
- # -------
54
- # Load Previously Published Messages
55
- messages = pubnub.history({
56
- 'channel' => 'hello_world',
57
- 'limit' => 10
58
- })
59
- puts(messages)
1
+ Pubnub - http://github/pubnub/pubnub-api
2
+ @rubynerd on Twitter
data/README.ROOT ADDED
@@ -0,0 +1,39 @@
1
+ ## ---------------------------------------------------
2
+ ##
3
+ ## YOU MUST HAVE A PUBNUB ACCOUNT TO USE THE API.
4
+ ## http://www.pubnub.com/account
5
+ ##
6
+ ## ----------------------------------------------------
7
+
8
+ ## -----------------------------------
9
+ ## PubNub 3.0 Real-time Cloud Push API
10
+ ## -----------------------------------
11
+ ##
12
+ ## www.pubnub.com - PubNub Real-time Push Service in the Cloud.
13
+ ## http://www.pubnub.com/tutorial/javascript-push-api
14
+ ##
15
+ ## PubNub is a Massively Scalable Real-time Service for Web and Mobile Games.
16
+ ## This is a cloud-based service for broadcasting Real-time messages
17
+ ## to thousands of web and mobile clients simultaneously.
18
+
19
+ JavaScript Tutorial: http://www.pubnub.com/tutorial/javascript-push-api
20
+
21
+ Website: http://www.pubnub.com
22
+ Videos: http://www.pubnub.com/#videos
23
+ Docs: http://www.pubnub.com/tutorial
24
+ Blog: http://www.pubnub.com/blog
25
+ Podcast Interview: http://techzinglive.com/?p=227
26
+
27
+
28
+ ===============================================================================
29
+ PubNub Client APIs!
30
+ ===============================================================================
31
+ Visit the PubNub website for more details at http://www.pubnub.com/
32
+ PubNub is a client-to-client push service in the cloud.
33
+
34
+ This public repository hosts client APIs for PubNub.
35
+ PHP, Ruby, JavaScript and more.
36
+
37
+ The API is SO FAST that iPhone, Android and Blackberry phones zip!
38
+ The JavaScript Payload is less than 3KB.
39
+ It's a breeze for mobile phones.
data/lib/pubnub-ruby.rb CHANGED
@@ -1 +1 @@
1
- require "./pubnub.rb"
1
+ require "pubnub"
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: pubnub-ruby
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Luke Carpenter
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-28 00:00:00 Z
13
+ date: 2011-06-05 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
@@ -30,7 +30,9 @@ executables: []
30
30
  extensions: []
31
31
 
32
32
  extra_rdoc_files:
33
+ - LICENSE.PUBNUB
33
34
  - README
35
+ - README.ROOT
34
36
  files:
35
37
  - examples/history-example.rb
36
38
  - examples/publish-example.rb
@@ -38,7 +40,9 @@ files:
38
40
  - lib/pubnub-ruby.rb
39
41
  - lib/pubnub.rb
40
42
  - tests/unit-test.rb
43
+ - LICENSE.PUBNUB
41
44
  - README
45
+ - README.ROOT
42
46
  homepage: http://github.com/rubynerd/pubnub
43
47
  licenses:
44
48
  - MIT