sinatra-cometio 0.5.3 → 0.5.4

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: 7366b752f203aee57fe8059be07f8076c6aff669
4
- data.tar.gz: 367d862a10f6a3b1dff45f4a7fb7bca4bc3f7e95
3
+ metadata.gz: c4f1dc641e7df6ebe49c7a99f041e1de6d293438
4
+ data.tar.gz: a39552b2bb11e74004cfb78871fccfbb17d683b1
5
5
  SHA512:
6
- metadata.gz: 7313b5cb9872a6a2adb3ad4be09fa9b91b0edde6866ad8c22092514df03879ca377a9e64e68f9f1420322a7d69d2d0f850325ef87146de389bdcd384fb2ca523
7
- data.tar.gz: 44f51a10701c8b444054b613d59861ecec2841e0fa672f58b3d87ca2144e80be1079425a288f9806c8f7a2fc90fd6e244f23cd2236a250029bd516ed3c0dd6b3
6
+ metadata.gz: a3cedac7a912b90b559dbde3586ef9519597960854607014d7b09596a23f99e36f71e66d9890cb1b2874b1302af6981a3564317545fd823e6de4e059f1b65112
7
+ data.tar.gz: c81fdfb4e1128cba7881ba80dafe430f1fbb2ef46f7690e8f5a55ec4b8989a4680659bf8aca3aab9d53c4182104eb23d22084fe8f3fa2e1019f3f040b2209f2a
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.5.4 2013-04-05
2
+
3
+ * bugfix javascript
4
+
1
5
  === 0.5.3 2013-04-03
2
6
 
3
7
  * bugfix setting
data/lib/js/cometio.js CHANGED
@@ -63,7 +63,7 @@ var CometIO = function(){
63
63
  url : self.url,
64
64
  data : {session : self.session},
65
65
  success : function(data_arr){
66
- if(data_arr !== null || typeof data_arr !== "undefined" || !!data_arr.length){
66
+ if(data_arr !== null && typeof data_arr == "object" && !!data_arr.length){
67
67
  for(var i = 0; i < data_arr.length; i++){
68
68
  var data = data_arr[i];
69
69
  if(data) self.emit(data.type, data.data);
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module CometIO
3
- VERSION = '0.5.3'
3
+ VERSION = '0.5.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-cometio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
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-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler