sinatra-websocketio 0.3.0 → 0.3.1

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: b83dc719bf8ed37455c090ba2287913f329aced2
4
- data.tar.gz: 47d6068f5cc0d471615b4f722592e47e9a977d4b
3
+ metadata.gz: 2fa540eb66cc926e8a9cd4311d3efec37fd986e3
4
+ data.tar.gz: 251e986c12d0f05af5fb4ec5a9639b534190039c
5
5
  SHA512:
6
- metadata.gz: 49abc41bf2af0cbb67b8e324c36c2f70fb1adc7fb9a4f56db05537ae124a03643936488c66197af4514a4b99274875184dc64fe178b0726b5a8b5d983d1e8563
7
- data.tar.gz: 1af7b11d20f46cd4acb4c1aca348d6184c15df88095dad24e811802b40c0e903310413d424c957330bae95dce32571e7aeeabdf6117b007e632da1d18602c7f3
6
+ metadata.gz: 5f44d916b86b331e811ead4d28cef616a669e7ad6863b8df0a9e03b32703d5072a9c9ae0d64fe54924d91b7a84bdd96fbeb7d0955b9dbcac8ca09b7986c125e1
7
+ data.tar.gz: 90b5f162b7f974f57122a4c998528b5918734a40698d47cf84df3fc878bd2eaf7de240403da206be560715c340d7f76fe3c14e5535a07c733f7700850d4c9567
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.3.1 2013-05-27
2
+
3
+ * add constructor args in JS lib
4
+
1
5
  === 0.3.0 2013-05-24
2
6
 
3
7
  * bugfix Ruby Client
@@ -1,7 +1,8 @@
1
- var WebSocketIO = function(){
1
+ var WebSocketIO = function(url, opts){
2
2
  new EventEmitter().apply(this);
3
- this.url = "<%= websocketio_url %>";
4
- this.session = null;
3
+ if(typeof opts === "undefined" || opts === null) opts = {};
4
+ this.url = url || "<%= websocketio_url %>";
5
+ this.session = opts.session || null;
5
6
  this.websocket = null;
6
7
  this.connecting = false;
7
8
  var reconnect_timer_id = null;
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module WebSocketIO
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
@@ -1,6 +1,6 @@
1
1
  require File.expand_path 'test_helper', File.dirname(__FILE__)
2
2
 
3
- class TestWebSocketIO < MiniTest::Unit::TestCase
3
+ class TestWebSocketIO < MiniTest::Test
4
4
 
5
5
  def setup
6
6
  App.start
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.3.0
4
+ version: 0.3.1
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-05-24 00:00:00.000000000 Z
11
+ date: 2013-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest