sinatra-cometio 0.3.4 → 0.3.5

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.3.5 2013-03-18
2
+
3
+ * check javascript error on ajax get
4
+
1
5
  === 0.3.4 2013-03-18
2
6
 
3
7
  * fix gem dependencies
data/README.md CHANGED
@@ -3,6 +3,7 @@ sinatra-cometio
3
3
 
4
4
  * Node.js like Comet I/O plugin for Sinatra.
5
5
  * http://shokai.github.com/sinatra-cometio
6
+ * This is a component of the [RocketIO](https://github.com/shokai/sinatra-rocketio)
6
7
 
7
8
 
8
9
  Installation
data/lib/js/cometio.js CHANGED
@@ -47,6 +47,7 @@ var CometIO = function(){
47
47
  url : self.url,
48
48
  data : {session : self.session},
49
49
  success : function(data_arr){
50
+ if(typeof data_arr === "undefined" || !data_arr.length) return;
50
51
  for(var i = 0; i < data_arr.length; i++){
51
52
  var data = data_arr[i];
52
53
  if(data) self.emit(data.type, data.data);
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module CometIO
3
- VERSION = '0.3.4'
3
+ VERSION = '0.3.5'
4
4
  end
5
5
  end
data/sample/README.md CHANGED
@@ -24,17 +24,3 @@ CUI Client
24
24
  ----------
25
25
 
26
26
  % ruby bin/cui_chat_client.rb
27
-
28
-
29
- Deploy Heroku
30
- -------------
31
-
32
- % mkdir ~/cometio-sample
33
- % cp -R ./ ~/cometio-sample/
34
- % cd ~/cometio-sample
35
- % git init
36
- % git add ./
37
- % git commit -m "first sample chat"
38
- % heroku create --stack cedar
39
- % git push heroku master
40
- % heroku open
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-cometio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: