puggernaut 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +6 -6
- data/config/gemspec.yml +1 -1
- data/lib/puggernaut/server.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -30,7 +30,7 @@ Run the <code>puggernaut</code> binary with optional port numbers:
|
|
30
30
|
puggernaut <http port> <tcp port>
|
31
31
|
</pre>
|
32
32
|
|
33
|
-
The default HTTP and TCP ports are
|
33
|
+
The default HTTP and TCP ports are 8100 and 8101, respectively.
|
34
34
|
|
35
35
|
Set up proxy pass
|
36
36
|
-----------------
|
@@ -44,8 +44,8 @@ If you do not see your web server below, [Google](http://google.com) is your fri
|
|
44
44
|
*http.conf*
|
45
45
|
|
46
46
|
<pre>
|
47
|
-
ProxyPass /long_poll http://localhost:
|
48
|
-
ProxyPassReverse /long_poll http://localhost:
|
47
|
+
ProxyPass /long_poll http://localhost:8100/
|
48
|
+
ProxyPassReverse /long_poll http://localhost:8100/
|
49
49
|
</pre>
|
50
50
|
|
51
51
|
### Nginx
|
@@ -54,7 +54,7 @@ ProxyPassReverse /long_poll http://localhost:8000/
|
|
54
54
|
|
55
55
|
<pre>
|
56
56
|
location /long_poll {
|
57
|
-
proxy_pass http://localhost:
|
57
|
+
proxy_pass http://localhost:8100/;
|
58
58
|
}
|
59
59
|
</pre>
|
60
60
|
|
@@ -64,7 +64,7 @@ Send push messages
|
|
64
64
|
<pre>
|
65
65
|
require 'puggernaut'
|
66
66
|
|
67
|
-
client = Puggernaut::Client.new("localhost:
|
67
|
+
client = Puggernaut::Client.new("localhost:8101", "localhost:9101")
|
68
68
|
client.push :channel => "message"
|
69
69
|
client.push :channel => [ "message 1", "message 2" ], :channel_2 => "message"
|
70
70
|
</pre>
|
@@ -109,7 +109,7 @@ server {
|
|
109
109
|
passenger_enabled on;
|
110
110
|
|
111
111
|
location /long_poll {
|
112
|
-
proxy_pass http://localhost:
|
112
|
+
proxy_pass http://localhost:8100/;
|
113
113
|
}
|
114
114
|
}
|
115
115
|
</pre>
|
data/config/gemspec.yml
CHANGED
data/lib/puggernaut/server.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 4
|
9
|
+
version: 0.1.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Winton Welsh
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-01-
|
17
|
+
date: 2011-01-24 00:00:00 -08:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|