sinatra-websocketio 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1431271690f6dd9504387a8fc2a3223bc436dfb
4
- data.tar.gz: ce200c4b857e04f6e165f7a32a590f980743d43b
3
+ metadata.gz: 105841f611ba1b177e4fdbc27523e9ede7e5f9a8
4
+ data.tar.gz: 333f97849781148127d4d473c04910c8c58b92ba
5
5
  SHA512:
6
- metadata.gz: cb22db56e54fe09e60cb75477c28e1f382f54ee1944cd326954cfef3bff20aedb50fce8850cc2f53890a571816f8dcada3bc2041c573d32183028839f7e09638
7
- data.tar.gz: 331c5221182e9ed6e9e28a90a86eaa20865d412e88b8c9af5f3424bc66973fda9bab792338158e61120450147b0485e3ba1a237228c864e109371a84e62074a9
6
+ metadata.gz: cbd2fcd973e3574635a596eaef49559cf507e05d1ea57e23dce2e60fbf957efc90449115120a3879172ef07c8dc697fba8b9226cdb19652d721e2010647fc36b
7
+ data.tar.gz: 7f790256313ad4ff10130e8658afeb9b0c722a1574c5530e083093195535ca6c95bda06b1601f4e7a39a03e68045868088105a581c96dcc5e69aa08381bca479
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.2.8 2013-04-18
2
+
3
+ * set default websocket port 9000
4
+
1
5
  === 0.2.7 2013-04-18
2
6
 
3
7
  * set wetsocket port ENV["WS_PORT"]
data/README.md CHANGED
@@ -33,7 +33,7 @@ Server Side
33
33
  ```ruby
34
34
  require 'sinatra'
35
35
  require 'sinatra/websocketio'
36
- set :websocketio, :port => 8080
36
+ set :websocketio, :port => 9000
37
37
 
38
38
  run Sinatra::Application
39
39
  ```
@@ -161,11 +161,11 @@ io.removeListener("error"); // remove all "error" listener
161
161
  ### Config
162
162
 
163
163
  ```ruby
164
- set :websocketio, :port => 8080
164
+ set :websocketio, :port => 9000
165
165
  ```
166
166
  or
167
167
 
168
- % WS_PORT=8080 rackup config.ru
168
+ % WS_PORT=9000 rackup config.ru
169
169
 
170
170
 
171
171
 
@@ -182,7 +182,7 @@ Test
182
182
  % gem install bundler
183
183
  % bundle install
184
184
  % export PORT=5000
185
- % export WS_PORT=8080
185
+ % export WS_PORT=9000
186
186
  % export PID_FILE=/tmp/sinatra-websocketio-test.pid
187
187
  % rake test
188
188
 
@@ -11,7 +11,7 @@ module Sinatra
11
11
 
12
12
  def self.default_options
13
13
  {
14
- :port => [(ENV['WS_PORT']||8080).to_i, lambda{|v| v.kind_of? Fixnum and v > 0 }]
14
+ :port => [(ENV['WS_PORT']||9000).to_i, lambda{|v| v.kind_of? Fixnum and v > 0 }]
15
15
  }
16
16
  end
17
17
 
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module WebSocketIO
3
- VERSION = "0.2.7"
3
+ VERSION = "0.2.8"
4
4
  end
5
5
  end
@@ -7,7 +7,7 @@ require 'sinatra/websocketio/client'
7
7
 
8
8
  name = `whoami`.strip || 'shokai'
9
9
 
10
- client = Sinatra::WebSocketIO::Client.new('ws://localhost:8080').connect
10
+ client = Sinatra::WebSocketIO::Client.new('ws://localhost:9000').connect
11
11
 
12
12
  client.on :connect do |session|
13
13
  puts "connect!! (session_id:#{session})"
data/sample/config.ru CHANGED
@@ -12,7 +12,7 @@ require 'sinatra/websocketio'
12
12
  require File.dirname(__FILE__)+'/main'
13
13
 
14
14
  set :haml, :escape_html => true
15
- set :websocketio, :port => 8080
15
+ set :websocketio, :port => 9000
16
16
 
17
17
  case RUBY_PLATFORM
18
18
  when /linux/i then EM.epoll
data/test/app.rb CHANGED
@@ -9,7 +9,7 @@ class App
9
9
  end
10
10
 
11
11
  def self.ws_port
12
- ENV['WS_PORT'] || 8080
12
+ ENV['WS_PORT'] || 9000
13
13
  end
14
14
 
15
15
  def self.websocketio_url
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-websocketio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sho Hashimoto