sinatra-rocketio 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.0.3 2013-03-18
2
+
3
+ * delete routes of cometio.js and websocketio.js
4
+
1
5
  === 0.0.2 2013-03-18
2
6
 
3
7
  * sinatra config - set :rocketio, :cometio => true, :websocket => true
@@ -19,6 +19,9 @@ module Sinatra
19
19
  content_type 'application/javascript'
20
20
  @js ||= ERB.new(Sinatra::RocketIO.javascript).result(binding)
21
21
  end
22
+ app.routes["GET"].delete_if{|route|
23
+ "/cometio/cometio.js" =~ route[0] or "/websocketio/websocketio.js" =~ route[0]
24
+ }
22
25
  Sinatra::RocketIO.emit :regist_events
23
26
  end
24
27
  end
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module RocketIO
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-rocketio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: