sinatra-websocketio 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2cdd6f308a48895f1dbec7498473e31b0c8795bb
4
- data.tar.gz: bb85fd2d09a4600348e090d0f544f31525f003df
3
+ metadata.gz: e1431271690f6dd9504387a8fc2a3223bc436dfb
4
+ data.tar.gz: ce200c4b857e04f6e165f7a32a590f980743d43b
5
5
  SHA512:
6
- metadata.gz: 2527e1a1a58d1ff67d2a77a0153e635b99c6d12f0116268d45dbc49a139df205ec238b748ba4ffbead85737b7c4a2e683e748211b584ded64aef7815e7e0e338
7
- data.tar.gz: 6c8d42ef327bb620566aa2ea934325d908b5763bf23574c6f38d7b11273e97525a453b7e8a5bce64ef1ed88e9b573360522b8da43dedf9e20a9281d38b75a691
6
+ metadata.gz: cb22db56e54fe09e60cb75477c28e1f382f54ee1944cd326954cfef3bff20aedb50fce8850cc2f53890a571816f8dcada3bc2041c573d32183028839f7e09638
7
+ data.tar.gz: 331c5221182e9ed6e9e28a90a86eaa20865d412e88b8c9af5f3424bc66973fda9bab792338158e61120450147b0485e3ba1a237228c864e109371a84e62074a9
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.2.7 2013-04-18
2
+
3
+ * set wetsocket port ENV["WS_PORT"]
4
+
1
5
  === 0.2.6 2013-04-03
2
6
 
3
7
  * bugfix setting
data/README.md CHANGED
@@ -158,6 +158,17 @@ io.removeListener("error"); // remove all "error" listener
158
158
  ```
159
159
 
160
160
 
161
+ ### Config
162
+
163
+ ```ruby
164
+ set :websocketio, :port => 8080
165
+ ```
166
+ or
167
+
168
+ % WS_PORT=8080 rackup config.ru
169
+
170
+
171
+
161
172
  Sample App
162
173
  ----------
163
174
  chat app
@@ -11,7 +11,7 @@ module Sinatra
11
11
 
12
12
  def self.default_options
13
13
  {
14
- :port => [8080, lambda{|v| v.kind_of? Fixnum and v > 0 }]
14
+ :port => [(ENV['WS_PORT']||8080).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.6"
3
+ VERSION = "0.2.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-websocketio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sho Hashimoto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-03 00:00:00.000000000 Z
11
+ date: 2013-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest