socket.io-rails 1.4.0 → 1.4.2

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: dbbe4c01fa6a9c840714adab525e89b4c166ee88
4
- data.tar.gz: 59d45abf112e040814f2e920d09af59edbf7091c
3
+ metadata.gz: 82a190eb207db3be9c4b9ac305303ef3a5a4e954
4
+ data.tar.gz: 509dcdf4e02812cdbeaf30e66379e3e6dee76712
5
5
  SHA512:
6
- metadata.gz: 5fe5baf5d7477b8de5b12b21b45bd4b44a33fa4dc6e820cdf5cff9f550f99c195d1ed84bc29ca8c8072095a92a7e00cc2dac2befc5b7f5643435e8acf14878cd
7
- data.tar.gz: b16b754488e8a8db0a658187bbbde63dfee16ffd4275a260256ae74217ca1e1ff403d353e2bf53a9bf5f6e6601a8fa6291fcdc438ad494a0324cec6fc1575869
6
+ metadata.gz: b0280a7384c0d84efc947af0883d6f59fc7c9974cbe478b47220a768c5f2735b0af8e910935f1c2e6d194afc6c56ad52a3d0182079e2cda9bafabd3fc8ee099e
7
+ data.tar.gz: 7a07ec7d93f3135ad5ad0f4b6ae716c7a8d58edbf370d155af92447fab7be54761a4d287836b5013b934b2aec3b9cc9037f71a11ffb37f0ebb923b6e849de4e0
@@ -1,5 +1,5 @@
1
1
  module Socketio
2
2
  module Rails
3
- VERSION = "1.4.0"
3
+ VERSION = "1.4.2"
4
4
  end
5
5
  end
@@ -1,4 +1,4 @@
1
- !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.io=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
1
+ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.io = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
2
2
 
3
3
  /**
4
4
  * Module dependencies.
@@ -1170,7 +1170,7 @@ function url(uri, loc){
1170
1170
  return obj;
1171
1171
  }
1172
1172
 
1173
- }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
1173
+ }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {})
1174
1174
  },{"debug":14,"parseuri":39}],6:[function(_dereq_,module,exports){
1175
1175
  module.exports = after
1176
1176
 
@@ -1478,7 +1478,7 @@ module.exports = (function() {
1478
1478
  }
1479
1479
  })();
1480
1480
 
1481
- }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
1481
+ }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {})
1482
1482
  },{}],11:[function(_dereq_,module,exports){
1483
1483
  /**
1484
1484
  * Slice reference.
@@ -2791,7 +2791,7 @@ Socket.prototype.filterUpgrades = function (upgrades) {
2791
2791
  return filteredUpgrades;
2792
2792
  };
2793
2793
 
2794
- }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
2794
+ }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {})
2795
2795
  },{"./transport":19,"./transports":20,"component-emitter":26,"debug":14,"engine.io-parser":27,"indexof":33,"parsejson":37,"parseqs":38,"parseuri":39}],19:[function(_dereq_,module,exports){
2796
2796
  /**
2797
2797
  * Module dependencies.
@@ -3005,7 +3005,7 @@ function polling(opts){
3005
3005
  }
3006
3006
  }
3007
3007
 
3008
- }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
3008
+ }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {})
3009
3009
  },{"./polling-jsonp":21,"./polling-xhr":22,"./websocket":24,"xmlhttprequest-ssl":25}],21:[function(_dereq_,module,exports){
3010
3010
  (function (global){
3011
3011
 
@@ -3242,7 +3242,7 @@ JSONPPolling.prototype.doWrite = function (data, fn) {
3242
3242
  }
3243
3243
  };
3244
3244
 
3245
- }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
3245
+ }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {})
3246
3246
  },{"./polling":23,"component-inherit":13}],22:[function(_dereq_,module,exports){
3247
3247
  (function (global){
3248
3248
  /**
@@ -3658,7 +3658,7 @@ function unloadHandler() {
3658
3658
  }
3659
3659
  }
3660
3660
 
3661
- }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
3661
+ }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {})
3662
3662
  },{"./polling":23,"component-emitter":26,"component-inherit":13,"debug":14,"xmlhttprequest-ssl":25}],23:[function(_dereq_,module,exports){
3663
3663
  /**
3664
3664
  * Module dependencies.
@@ -3908,7 +3908,7 @@ Polling.prototype.uri = function(){
3908
3908
  return schema + '://' + (ipv6 ? '[' + this.hostname + ']' : this.hostname) + port + this.path + query;
3909
3909
  };
3910
3910
 
3911
- },{"../transport":19,"component-inherit":13,"debug":14,"engine.io-parser":27,"parseqs":38,"xmlhttprequest-ssl":25,"yeast":47}],24:[function(_dereq_,module,exports){
3911
+ },{"../transport":19,"component-inherit":13,"debug":14,"engine.io-parser":27,"parseqs":38,"xmlhttprequest-ssl":25,"yeast":46}],24:[function(_dereq_,module,exports){
3912
3912
  (function (global){
3913
3913
  /**
3914
3914
  * Module dependencies.
@@ -3920,14 +3920,15 @@ var parseqs = _dereq_('parseqs');
3920
3920
  var inherit = _dereq_('component-inherit');
3921
3921
  var yeast = _dereq_('yeast');
3922
3922
  var debug = _dereq_('debug')('engine.io-client:websocket');
3923
+ var BrowserWebSocket = global.WebSocket || global.MozWebSocket;
3923
3924
 
3924
3925
  /**
3925
- * `ws` exposes a WebSocket-compatible interface in
3926
- * Node, or the `WebSocket` or `MozWebSocket` globals
3927
- * in the browser.
3926
+ * Get either the `WebSocket` or `MozWebSocket` globals
3927
+ * in the browser or the WebSocket-compatible interface
3928
+ * exposed by `ws` for Node environment.
3928
3929
  */
3929
3930
 
3930
- var WebSocket = _dereq_('ws');
3931
+ var WebSocket = BrowserWebSocket || (typeof window !== 'undefined' ? null : _dereq_('ws'));
3931
3932
 
3932
3933
  /**
3933
3934
  * Module exports.
@@ -4003,7 +4004,7 @@ WS.prototype.doOpen = function(){
4003
4004
  opts.headers = this.extraHeaders;
4004
4005
  }
4005
4006
 
4006
- this.ws = new WebSocket(uri, protocols, opts);
4007
+ this.ws = BrowserWebSocket ? new WebSocket(uri) : new WebSocket(uri, protocols, opts);
4007
4008
 
4008
4009
  if (this.ws.binaryType === undefined) {
4009
4010
  this.supportsBinary = false;
@@ -4070,15 +4071,13 @@ WS.prototype.write = function(packets){
4070
4071
  var self = this;
4071
4072
  this.writable = false;
4072
4073
 
4073
- var isBrowserWebSocket = global.WebSocket && this.ws instanceof global.WebSocket;
4074
-
4075
4074
  // encodePacket efficient as it uses WS framing
4076
4075
  // no need for encodePayload
4077
4076
  var total = packets.length;
4078
4077
  for (var i = 0, l = total; i < l; i++) {
4079
4078
  (function(packet) {
4080
4079
  parser.encodePacket(packet, self.supportsBinary, function(data) {
4081
- if (!isBrowserWebSocket) {
4080
+ if (!BrowserWebSocket) {
4082
4081
  // always create a new object (GH-437)
4083
4082
  var opts = {};
4084
4083
  if (packet.options) {
@@ -4097,7 +4096,7 @@ WS.prototype.write = function(packets){
4097
4096
  //have a chance of informing us about it yet, in that case send will
4098
4097
  //throw an error
4099
4098
  try {
4100
- if (isBrowserWebSocket) {
4099
+ if (BrowserWebSocket) {
4101
4100
  // TypeError is thrown when passing the second argument on Safari
4102
4101
  self.ws.send(data);
4103
4102
  } else {
@@ -4195,8 +4194,8 @@ WS.prototype.check = function(){
4195
4194
  return !!WebSocket && !('__initialize' in WebSocket && this.name === WS.prototype.name);
4196
4195
  };
4197
4196
 
4198
- }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
4199
- },{"../transport":19,"component-inherit":13,"debug":14,"engine.io-parser":27,"parseqs":38,"ws":46,"yeast":47}],25:[function(_dereq_,module,exports){
4197
+ }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {})
4198
+ },{"../transport":19,"component-inherit":13,"debug":14,"engine.io-parser":27,"parseqs":38,"ws":undefined,"yeast":46}],25:[function(_dereq_,module,exports){
4200
4199
  // browser shim for xmlhttprequest module
4201
4200
  var hasCORS = _dereq_('has-cors');
4202
4201
 
@@ -4997,7 +4996,7 @@ exports.decodePayloadAsBinary = function (data, binaryType, callback) {
4997
4996
  });
4998
4997
  };
4999
4998
 
5000
- }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
4999
+ }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {})
5001
5000
  },{"./keys":28,"after":6,"arraybuffer.slice":7,"base64-arraybuffer":9,"blob":10,"has-binary":29,"utf8":45}],28:[function(_dereq_,module,exports){
5002
5001
 
5003
5002
  /**
@@ -5080,7 +5079,7 @@ function hasBinary(data) {
5080
5079
  return _hasBinary(data);
5081
5080
  }
5082
5081
 
5083
- }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
5082
+ }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {})
5084
5083
  },{"isarray":34}],30:[function(_dereq_,module,exports){
5085
5084
 
5086
5085
  /**
@@ -5153,7 +5152,7 @@ function hasBinary(data) {
5153
5152
  return _hasBinary(data);
5154
5153
  }
5155
5154
 
5156
- }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
5155
+ }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {})
5157
5156
  },{"isarray":34}],32:[function(_dereq_,module,exports){
5158
5157
 
5159
5158
  /**
@@ -6100,7 +6099,7 @@ module.exports = Array.isArray || function (arr) {
6100
6099
  }
6101
6100
  }).call(this);
6102
6101
 
6103
- }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
6102
+ }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {})
6104
6103
  },{}],36:[function(_dereq_,module,exports){
6105
6104
  /**
6106
6105
  * Helpers.
@@ -6262,7 +6261,7 @@ module.exports = function parsejson(data) {
6262
6261
  return (new Function('return ' + data))();
6263
6262
  }
6264
6263
  };
6265
- }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
6264
+ }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {})
6266
6265
  },{}],38:[function(_dereq_,module,exports){
6267
6266
  /**
6268
6267
  * Compiles a querystring
@@ -6487,7 +6486,7 @@ exports.removeBlobs = function(data, callback) {
6487
6486
  }
6488
6487
  };
6489
6488
 
6490
- }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
6489
+ }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {})
6491
6490
  },{"./is-buffer":42,"isarray":34}],41:[function(_dereq_,module,exports){
6492
6491
 
6493
6492
  /**
@@ -6906,10 +6905,10 @@ function isBuf(obj) {
6906
6905
  (global.ArrayBuffer && obj instanceof ArrayBuffer);
6907
6906
  }
6908
6907
 
6909
- }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
6908
+ }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {})
6910
6909
  },{}],43:[function(_dereq_,module,exports){
6911
- module.exports=_dereq_(26)
6912
- },{}],44:[function(_dereq_,module,exports){
6910
+ arguments[4][26][0].apply(exports,arguments)
6911
+ },{"dup":26}],44:[function(_dereq_,module,exports){
6913
6912
  module.exports = toArray
6914
6913
 
6915
6914
  function toArray(list, index) {
@@ -7171,53 +7170,8 @@ function toArray(list, index) {
7171
7170
 
7172
7171
  }(this));
7173
7172
 
7174
- }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
7173
+ }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {})
7175
7174
  },{}],46:[function(_dereq_,module,exports){
7176
-
7177
- /**
7178
- * Module dependencies.
7179
- */
7180
-
7181
- var global = (function() { return this; })();
7182
-
7183
- /**
7184
- * WebSocket constructor.
7185
- */
7186
-
7187
- var WebSocket = global.WebSocket || global.MozWebSocket;
7188
-
7189
- /**
7190
- * Module exports.
7191
- */
7192
-
7193
- module.exports = WebSocket ? ws : null;
7194
-
7195
- /**
7196
- * WebSocket constructor.
7197
- *
7198
- * The third `opts` options object gets ignored in web browsers, since it's
7199
- * non-standard, and throws a TypeError if passed to the constructor.
7200
- * See: https://github.com/einaros/ws/issues/227
7201
- *
7202
- * @param {String} uri
7203
- * @param {Array} protocols (optional)
7204
- * @param {Object) opts (optional)
7205
- * @api public
7206
- */
7207
-
7208
- function ws(uri, protocols, opts) {
7209
- var instance;
7210
- if (protocols) {
7211
- instance = new WebSocket(uri, protocols);
7212
- } else {
7213
- instance = new WebSocket(uri);
7214
- }
7215
- return instance;
7216
- }
7217
-
7218
- if (WebSocket) ws.prototype = WebSocket.prototype;
7219
-
7220
- },{}],47:[function(_dereq_,module,exports){
7221
7175
  'use strict';
7222
7176
 
7223
7177
  var alphabet = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_'.split('')
@@ -7287,6 +7241,5 @@ yeast.encode = encode;
7287
7241
  yeast.decode = decode;
7288
7242
  module.exports = yeast;
7289
7243
 
7290
- },{}]},{},[1])
7291
- (1)
7244
+ },{}]},{},[1])(1)
7292
7245
  });
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: socket.io-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Chen