socket.io-rails 1.2.0 → 1.2.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: acd50b944e9b106826449319a56e8abb42babc3b
4
- data.tar.gz: 26707ba9d3f949a928d364cb149e1a6346132e59
3
+ metadata.gz: 352e18d1a794e56daaeaffb74c1fb26bc0a9bd03
4
+ data.tar.gz: 6c0561b03538061d6a2cbf273c63adb3c7952aef
5
5
  SHA512:
6
- metadata.gz: 86a259d2f72aab4a4f0b885edb4f55f5dc958e72610b67bd8371ea8f972ae23137b3b59a450464474b49dab34fd816072d36b9a2a421e8d9d75a7b39d67bf2d7
7
- data.tar.gz: fb502bf4aeb5475bafa3e8ded80caf736c77a1a2731227a8150ffc162e728f6b376cd0951361f79bed58ba308aaf075f1367576c9c09f5772a1406914121907e
6
+ metadata.gz: 5490288f6391c76817b5a9a13b10992de347fed3b098b24acc8e64fefcffec9bdb812624f88f1dfb39dbeb79fd7aa2ed7dd98811cbf2ef1822de55683f9fddce
7
+ data.tar.gz: 53876e2d3f641ffff1591883bd4b762a6e75a17ec16637442d90f14c2e6bf351bf207de383e6d09f73fdd1f8452e6ccd1a6dcacdaf52f61ad620e5261c520714
@@ -1,5 +1,5 @@
1
1
  module Socketio
2
2
  module Rails
3
- VERSION = "1.2.0"
3
+ VERSION = "1.2.1"
4
4
  end
5
5
  end
@@ -91,7 +91,7 @@ exports.connect = lookup;
91
91
  exports.Manager = _dereq_('./manager');
92
92
  exports.Socket = _dereq_('./socket');
93
93
 
94
- },{"./manager":3,"./socket":5,"./url":6,"debug":9,"socket.io-parser":40}],3:[function(_dereq_,module,exports){
94
+ },{"./manager":3,"./socket":5,"./url":6,"debug":9,"socket.io-parser":43}],3:[function(_dereq_,module,exports){
95
95
 
96
96
  /**
97
97
  * Module dependencies.
@@ -566,7 +566,7 @@ Manager.prototype.onreconnect = function(){
566
566
  this.emitAll('reconnect', attempt);
567
567
  };
568
568
 
569
- },{"./on":4,"./socket":5,"./url":6,"component-bind":7,"component-emitter":8,"debug":9,"engine.io-client":10,"indexof":36,"object-component":37,"socket.io-parser":40}],4:[function(_dereq_,module,exports){
569
+ },{"./on":4,"./socket":5,"./url":6,"component-bind":7,"component-emitter":8,"debug":9,"engine.io-client":10,"indexof":39,"object-component":40,"socket.io-parser":43}],4:[function(_dereq_,module,exports){
570
570
 
571
571
  /**
572
572
  * Module exports.
@@ -978,7 +978,7 @@ Socket.prototype.disconnect = function(){
978
978
  return this;
979
979
  };
980
980
 
981
- },{"./on":4,"component-bind":7,"component-emitter":8,"debug":9,"has-binary":32,"socket.io-parser":40,"to-array":44}],6:[function(_dereq_,module,exports){
981
+ },{"./on":4,"component-bind":7,"component-emitter":8,"debug":9,"has-binary":35,"socket.io-parser":43,"to-array":47}],6:[function(_dereq_,module,exports){
982
982
  (function (global){
983
983
 
984
984
  /**
@@ -1055,7 +1055,7 @@ function url(uri, loc){
1055
1055
  }
1056
1056
 
1057
1057
  }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
1058
- },{"debug":9,"parseuri":38}],7:[function(_dereq_,module,exports){
1058
+ },{"debug":9,"parseuri":41}],7:[function(_dereq_,module,exports){
1059
1059
  /**
1060
1060
  * Slice reference.
1061
1061
  */
@@ -1401,7 +1401,7 @@ module.exports = _dereq_('./socket');
1401
1401
  */
1402
1402
  module.exports.parser = _dereq_('engine.io-parser');
1403
1403
 
1404
- },{"./socket":12,"engine.io-parser":21}],12:[function(_dereq_,module,exports){
1404
+ },{"./socket":12,"engine.io-parser":24}],12:[function(_dereq_,module,exports){
1405
1405
  (function (global){
1406
1406
  /**
1407
1407
  * Module dependencies.
@@ -2088,7 +2088,7 @@ Socket.prototype.filterUpgrades = function (upgrades) {
2088
2088
  };
2089
2089
 
2090
2090
  }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
2091
- },{"./transport":13,"./transports":14,"component-emitter":8,"debug":9,"engine.io-parser":21,"indexof":36,"parsejson":28,"parseqs":29,"parseuri":30}],13:[function(_dereq_,module,exports){
2091
+ },{"./transport":13,"./transports":14,"component-emitter":8,"debug":21,"engine.io-parser":24,"indexof":39,"parsejson":31,"parseqs":32,"parseuri":33}],13:[function(_dereq_,module,exports){
2092
2092
  /**
2093
2093
  * Module dependencies.
2094
2094
  */
@@ -2240,7 +2240,7 @@ Transport.prototype.onClose = function () {
2240
2240
  this.emit('close');
2241
2241
  };
2242
2242
 
2243
- },{"component-emitter":8,"engine.io-parser":21}],14:[function(_dereq_,module,exports){
2243
+ },{"component-emitter":8,"engine.io-parser":24}],14:[function(_dereq_,module,exports){
2244
2244
  (function (global){
2245
2245
  /**
2246
2246
  * Module dependencies
@@ -2374,7 +2374,7 @@ function JSONPPolling (opts) {
2374
2374
  if (global.document && global.addEventListener) {
2375
2375
  global.addEventListener('beforeunload', function () {
2376
2376
  if (self.script) self.script.onerror = empty;
2377
- });
2377
+ }, false);
2378
2378
  }
2379
2379
  }
2380
2380
 
@@ -2876,7 +2876,7 @@ if (global.document) {
2876
2876
  if (global.attachEvent) {
2877
2877
  global.attachEvent('onunload', unloadHandler);
2878
2878
  } else if (global.addEventListener) {
2879
- global.addEventListener('beforeunload', unloadHandler);
2879
+ global.addEventListener('beforeunload', unloadHandler, false);
2880
2880
  }
2881
2881
  }
2882
2882
 
@@ -2889,7 +2889,7 @@ function unloadHandler() {
2889
2889
  }
2890
2890
 
2891
2891
  }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
2892
- },{"./polling":17,"component-emitter":8,"component-inherit":20,"debug":9,"xmlhttprequest":19}],17:[function(_dereq_,module,exports){
2892
+ },{"./polling":17,"component-emitter":8,"component-inherit":20,"debug":21,"xmlhttprequest":19}],17:[function(_dereq_,module,exports){
2893
2893
  /**
2894
2894
  * Module dependencies.
2895
2895
  */
@@ -3136,7 +3136,7 @@ Polling.prototype.uri = function(){
3136
3136
  return schema + '://' + this.hostname + port + this.path + query;
3137
3137
  };
3138
3138
 
3139
- },{"../transport":13,"component-inherit":20,"debug":9,"engine.io-parser":21,"parseqs":29,"xmlhttprequest":19}],18:[function(_dereq_,module,exports){
3139
+ },{"../transport":13,"component-inherit":20,"debug":21,"engine.io-parser":24,"parseqs":32,"xmlhttprequest":19}],18:[function(_dereq_,module,exports){
3140
3140
  /**
3141
3141
  * Module dependencies.
3142
3142
  */
@@ -3367,7 +3367,7 @@ WS.prototype.check = function(){
3367
3367
  return !!WebSocket && !('__initialize' in WebSocket && this.name === WS.prototype.name);
3368
3368
  };
3369
3369
 
3370
- },{"../transport":13,"component-inherit":20,"debug":9,"engine.io-parser":21,"parseqs":29,"ws":31}],19:[function(_dereq_,module,exports){
3370
+ },{"../transport":13,"component-inherit":20,"debug":21,"engine.io-parser":24,"parseqs":32,"ws":34}],19:[function(_dereq_,module,exports){
3371
3371
  // browser shim for xmlhttprequest module
3372
3372
  var hasCORS = _dereq_('has-cors');
3373
3373
 
@@ -3405,7 +3405,7 @@ module.exports = function(opts) {
3405
3405
  }
3406
3406
  }
3407
3407
 
3408
- },{"has-cors":34}],20:[function(_dereq_,module,exports){
3408
+ },{"has-cors":37}],20:[function(_dereq_,module,exports){
3409
3409
 
3410
3410
  module.exports = function(a, b){
3411
3411
  var fn = function(){};
@@ -3414,6 +3414,467 @@ module.exports = function(a, b){
3414
3414
  a.prototype.constructor = a;
3415
3415
  };
3416
3416
  },{}],21:[function(_dereq_,module,exports){
3417
+
3418
+ /**
3419
+ * This is the web browser implementation of `debug()`.
3420
+ *
3421
+ * Expose `debug()` as the module.
3422
+ */
3423
+
3424
+ exports = module.exports = _dereq_('./debug');
3425
+ exports.log = log;
3426
+ exports.formatArgs = formatArgs;
3427
+ exports.save = save;
3428
+ exports.load = load;
3429
+ exports.useColors = useColors;
3430
+
3431
+ /**
3432
+ * Colors.
3433
+ */
3434
+
3435
+ exports.colors = [
3436
+ 'lightseagreen',
3437
+ 'forestgreen',
3438
+ 'goldenrod',
3439
+ 'dodgerblue',
3440
+ 'darkorchid',
3441
+ 'crimson'
3442
+ ];
3443
+
3444
+ /**
3445
+ * Currently only WebKit-based Web Inspectors, Firefox >= v31,
3446
+ * and the Firebug extension (any Firefox version) are known
3447
+ * to support "%c" CSS customizations.
3448
+ *
3449
+ * TODO: add a `localStorage` variable to explicitly enable/disable colors
3450
+ */
3451
+
3452
+ function useColors() {
3453
+ // is webkit? http://stackoverflow.com/a/16459606/376773
3454
+ return ('WebkitAppearance' in document.documentElement.style) ||
3455
+ // is firebug? http://stackoverflow.com/a/398120/376773
3456
+ (window.console && (console.firebug || (console.exception && console.table))) ||
3457
+ // is firefox >= v31?
3458
+ // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
3459
+ (navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31);
3460
+ }
3461
+
3462
+ /**
3463
+ * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
3464
+ */
3465
+
3466
+ exports.formatters.j = function(v) {
3467
+ return JSON.stringify(v);
3468
+ };
3469
+
3470
+
3471
+ /**
3472
+ * Colorize log arguments if enabled.
3473
+ *
3474
+ * @api public
3475
+ */
3476
+
3477
+ function formatArgs() {
3478
+ var args = arguments;
3479
+ var useColors = this.useColors;
3480
+
3481
+ args[0] = (useColors ? '%c' : '')
3482
+ + this.namespace
3483
+ + (useColors ? ' %c' : ' ')
3484
+ + args[0]
3485
+ + (useColors ? '%c ' : ' ')
3486
+ + '+' + exports.humanize(this.diff);
3487
+
3488
+ if (!useColors) return args;
3489
+
3490
+ var c = 'color: ' + this.color;
3491
+ args = [args[0], c, 'color: inherit'].concat(Array.prototype.slice.call(args, 1));
3492
+
3493
+ // the final "%c" is somewhat tricky, because there could be other
3494
+ // arguments passed either before or after the %c, so we need to
3495
+ // figure out the correct index to insert the CSS into
3496
+ var index = 0;
3497
+ var lastC = 0;
3498
+ args[0].replace(/%[a-z%]/g, function(match) {
3499
+ if ('%' === match) return;
3500
+ index++;
3501
+ if ('%c' === match) {
3502
+ // we only are interested in the *last* %c
3503
+ // (the user may have provided their own)
3504
+ lastC = index;
3505
+ }
3506
+ });
3507
+
3508
+ args.splice(lastC, 0, c);
3509
+ return args;
3510
+ }
3511
+
3512
+ /**
3513
+ * Invokes `console.log()` when available.
3514
+ * No-op when `console.log` is not a "function".
3515
+ *
3516
+ * @api public
3517
+ */
3518
+
3519
+ function log() {
3520
+ // This hackery is required for IE8,
3521
+ // where the `console.log` function doesn't have 'apply'
3522
+ return 'object' == typeof console
3523
+ && 'function' == typeof console.log
3524
+ && Function.prototype.apply.call(console.log, console, arguments);
3525
+ }
3526
+
3527
+ /**
3528
+ * Save `namespaces`.
3529
+ *
3530
+ * @param {String} namespaces
3531
+ * @api private
3532
+ */
3533
+
3534
+ function save(namespaces) {
3535
+ try {
3536
+ if (null == namespaces) {
3537
+ localStorage.removeItem('debug');
3538
+ } else {
3539
+ localStorage.debug = namespaces;
3540
+ }
3541
+ } catch(e) {}
3542
+ }
3543
+
3544
+ /**
3545
+ * Load `namespaces`.
3546
+ *
3547
+ * @return {String} returns the previously persisted debug modes
3548
+ * @api private
3549
+ */
3550
+
3551
+ function load() {
3552
+ var r;
3553
+ try {
3554
+ r = localStorage.debug;
3555
+ } catch(e) {}
3556
+ return r;
3557
+ }
3558
+
3559
+ /**
3560
+ * Enable namespaces listed in `localStorage.debug` initially.
3561
+ */
3562
+
3563
+ exports.enable(load());
3564
+
3565
+ },{"./debug":22}],22:[function(_dereq_,module,exports){
3566
+
3567
+ /**
3568
+ * This is the common logic for both the Node.js and web browser
3569
+ * implementations of `debug()`.
3570
+ *
3571
+ * Expose `debug()` as the module.
3572
+ */
3573
+
3574
+ exports = module.exports = debug;
3575
+ exports.coerce = coerce;
3576
+ exports.disable = disable;
3577
+ exports.enable = enable;
3578
+ exports.enabled = enabled;
3579
+ exports.humanize = _dereq_('ms');
3580
+
3581
+ /**
3582
+ * The currently active debug mode names, and names to skip.
3583
+ */
3584
+
3585
+ exports.names = [];
3586
+ exports.skips = [];
3587
+
3588
+ /**
3589
+ * Map of special "%n" handling functions, for the debug "format" argument.
3590
+ *
3591
+ * Valid key names are a single, lowercased letter, i.e. "n".
3592
+ */
3593
+
3594
+ exports.formatters = {};
3595
+
3596
+ /**
3597
+ * Previously assigned color.
3598
+ */
3599
+
3600
+ var prevColor = 0;
3601
+
3602
+ /**
3603
+ * Previous log timestamp.
3604
+ */
3605
+
3606
+ var prevTime;
3607
+
3608
+ /**
3609
+ * Select a color.
3610
+ *
3611
+ * @return {Number}
3612
+ * @api private
3613
+ */
3614
+
3615
+ function selectColor() {
3616
+ return exports.colors[prevColor++ % exports.colors.length];
3617
+ }
3618
+
3619
+ /**
3620
+ * Create a debugger with the given `namespace`.
3621
+ *
3622
+ * @param {String} namespace
3623
+ * @return {Function}
3624
+ * @api public
3625
+ */
3626
+
3627
+ function debug(namespace) {
3628
+
3629
+ // define the `disabled` version
3630
+ function disabled() {
3631
+ }
3632
+ disabled.enabled = false;
3633
+
3634
+ // define the `enabled` version
3635
+ function enabled() {
3636
+
3637
+ var self = enabled;
3638
+
3639
+ // set `diff` timestamp
3640
+ var curr = +new Date();
3641
+ var ms = curr - (prevTime || curr);
3642
+ self.diff = ms;
3643
+ self.prev = prevTime;
3644
+ self.curr = curr;
3645
+ prevTime = curr;
3646
+
3647
+ // add the `color` if not set
3648
+ if (null == self.useColors) self.useColors = exports.useColors();
3649
+ if (null == self.color && self.useColors) self.color = selectColor();
3650
+
3651
+ var args = Array.prototype.slice.call(arguments);
3652
+
3653
+ args[0] = exports.coerce(args[0]);
3654
+
3655
+ if ('string' !== typeof args[0]) {
3656
+ // anything else let's inspect with %o
3657
+ args = ['%o'].concat(args);
3658
+ }
3659
+
3660
+ // apply any `formatters` transformations
3661
+ var index = 0;
3662
+ args[0] = args[0].replace(/%([a-z%])/g, function(match, format) {
3663
+ // if we encounter an escaped % then don't increase the array index
3664
+ if (match === '%') return match;
3665
+ index++;
3666
+ var formatter = exports.formatters[format];
3667
+ if ('function' === typeof formatter) {
3668
+ var val = args[index];
3669
+ match = formatter.call(self, val);
3670
+
3671
+ // now we need to remove `args[index]` since it's inlined in the `format`
3672
+ args.splice(index, 1);
3673
+ index--;
3674
+ }
3675
+ return match;
3676
+ });
3677
+
3678
+ if ('function' === typeof exports.formatArgs) {
3679
+ args = exports.formatArgs.apply(self, args);
3680
+ }
3681
+ var logFn = enabled.log || exports.log || console.log.bind(console);
3682
+ logFn.apply(self, args);
3683
+ }
3684
+ enabled.enabled = true;
3685
+
3686
+ var fn = exports.enabled(namespace) ? enabled : disabled;
3687
+
3688
+ fn.namespace = namespace;
3689
+
3690
+ return fn;
3691
+ }
3692
+
3693
+ /**
3694
+ * Enables a debug mode by namespaces. This can include modes
3695
+ * separated by a colon and wildcards.
3696
+ *
3697
+ * @param {String} namespaces
3698
+ * @api public
3699
+ */
3700
+
3701
+ function enable(namespaces) {
3702
+ exports.save(namespaces);
3703
+
3704
+ var split = (namespaces || '').split(/[\s,]+/);
3705
+ var len = split.length;
3706
+
3707
+ for (var i = 0; i < len; i++) {
3708
+ if (!split[i]) continue; // ignore empty strings
3709
+ namespaces = split[i].replace(/\*/g, '.*?');
3710
+ if (namespaces[0] === '-') {
3711
+ exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
3712
+ } else {
3713
+ exports.names.push(new RegExp('^' + namespaces + '$'));
3714
+ }
3715
+ }
3716
+ }
3717
+
3718
+ /**
3719
+ * Disable debug output.
3720
+ *
3721
+ * @api public
3722
+ */
3723
+
3724
+ function disable() {
3725
+ exports.enable('');
3726
+ }
3727
+
3728
+ /**
3729
+ * Returns true if the given mode name is enabled, false otherwise.
3730
+ *
3731
+ * @param {String} name
3732
+ * @return {Boolean}
3733
+ * @api public
3734
+ */
3735
+
3736
+ function enabled(name) {
3737
+ var i, len;
3738
+ for (i = 0, len = exports.skips.length; i < len; i++) {
3739
+ if (exports.skips[i].test(name)) {
3740
+ return false;
3741
+ }
3742
+ }
3743
+ for (i = 0, len = exports.names.length; i < len; i++) {
3744
+ if (exports.names[i].test(name)) {
3745
+ return true;
3746
+ }
3747
+ }
3748
+ return false;
3749
+ }
3750
+
3751
+ /**
3752
+ * Coerce `val`.
3753
+ *
3754
+ * @param {Mixed} val
3755
+ * @return {Mixed}
3756
+ * @api private
3757
+ */
3758
+
3759
+ function coerce(val) {
3760
+ if (val instanceof Error) return val.stack || val.message;
3761
+ return val;
3762
+ }
3763
+
3764
+ },{"ms":23}],23:[function(_dereq_,module,exports){
3765
+ /**
3766
+ * Helpers.
3767
+ */
3768
+
3769
+ var s = 1000;
3770
+ var m = s * 60;
3771
+ var h = m * 60;
3772
+ var d = h * 24;
3773
+ var y = d * 365.25;
3774
+
3775
+ /**
3776
+ * Parse or format the given `val`.
3777
+ *
3778
+ * Options:
3779
+ *
3780
+ * - `long` verbose formatting [false]
3781
+ *
3782
+ * @param {String|Number} val
3783
+ * @param {Object} options
3784
+ * @return {String|Number}
3785
+ * @api public
3786
+ */
3787
+
3788
+ module.exports = function(val, options){
3789
+ options = options || {};
3790
+ if ('string' == typeof val) return parse(val);
3791
+ return options.long
3792
+ ? long(val)
3793
+ : short(val);
3794
+ };
3795
+
3796
+ /**
3797
+ * Parse the given `str` and return milliseconds.
3798
+ *
3799
+ * @param {String} str
3800
+ * @return {Number}
3801
+ * @api private
3802
+ */
3803
+
3804
+ function parse(str) {
3805
+ var match = /^((?:\d+)?\.?\d+) *(ms|seconds?|s|minutes?|m|hours?|h|days?|d|years?|y)?$/i.exec(str);
3806
+ if (!match) return;
3807
+ var n = parseFloat(match[1]);
3808
+ var type = (match[2] || 'ms').toLowerCase();
3809
+ switch (type) {
3810
+ case 'years':
3811
+ case 'year':
3812
+ case 'y':
3813
+ return n * y;
3814
+ case 'days':
3815
+ case 'day':
3816
+ case 'd':
3817
+ return n * d;
3818
+ case 'hours':
3819
+ case 'hour':
3820
+ case 'h':
3821
+ return n * h;
3822
+ case 'minutes':
3823
+ case 'minute':
3824
+ case 'm':
3825
+ return n * m;
3826
+ case 'seconds':
3827
+ case 'second':
3828
+ case 's':
3829
+ return n * s;
3830
+ case 'ms':
3831
+ return n;
3832
+ }
3833
+ }
3834
+
3835
+ /**
3836
+ * Short format for `ms`.
3837
+ *
3838
+ * @param {Number} ms
3839
+ * @return {String}
3840
+ * @api private
3841
+ */
3842
+
3843
+ function short(ms) {
3844
+ if (ms >= d) return Math.round(ms / d) + 'd';
3845
+ if (ms >= h) return Math.round(ms / h) + 'h';
3846
+ if (ms >= m) return Math.round(ms / m) + 'm';
3847
+ if (ms >= s) return Math.round(ms / s) + 's';
3848
+ return ms + 'ms';
3849
+ }
3850
+
3851
+ /**
3852
+ * Long format for `ms`.
3853
+ *
3854
+ * @param {Number} ms
3855
+ * @return {String}
3856
+ * @api private
3857
+ */
3858
+
3859
+ function long(ms) {
3860
+ return plural(ms, d, 'day')
3861
+ || plural(ms, h, 'hour')
3862
+ || plural(ms, m, 'minute')
3863
+ || plural(ms, s, 'second')
3864
+ || ms + ' ms';
3865
+ }
3866
+
3867
+ /**
3868
+ * Pluralization helper.
3869
+ */
3870
+
3871
+ function plural(ms, n, name) {
3872
+ if (ms < n) return;
3873
+ if (ms < n * 1.5) return Math.floor(ms / n) + ' ' + name;
3874
+ return Math.ceil(ms / n) + ' ' + name + 's';
3875
+ }
3876
+
3877
+ },{}],24:[function(_dereq_,module,exports){
3417
3878
  (function (global){
3418
3879
  /**
3419
3880
  * Module dependencies.
@@ -3983,7 +4444,7 @@ exports.decodePayloadAsBinary = function (data, binaryType, callback) {
3983
4444
  };
3984
4445
 
3985
4446
  }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
3986
- },{"./keys":22,"after":23,"arraybuffer.slice":24,"base64-arraybuffer":25,"blob":26,"utf8":27}],22:[function(_dereq_,module,exports){
4447
+ },{"./keys":25,"after":26,"arraybuffer.slice":27,"base64-arraybuffer":28,"blob":29,"utf8":30}],25:[function(_dereq_,module,exports){
3987
4448
 
3988
4449
  /**
3989
4450
  * Gets the keys for an object.
@@ -4004,7 +4465,7 @@ module.exports = Object.keys || function keys (obj){
4004
4465
  return arr;
4005
4466
  };
4006
4467
 
4007
- },{}],23:[function(_dereq_,module,exports){
4468
+ },{}],26:[function(_dereq_,module,exports){
4008
4469
  module.exports = after
4009
4470
 
4010
4471
  function after(count, callback, err_cb) {
@@ -4034,7 +4495,7 @@ function after(count, callback, err_cb) {
4034
4495
 
4035
4496
  function noop() {}
4036
4497
 
4037
- },{}],24:[function(_dereq_,module,exports){
4498
+ },{}],27:[function(_dereq_,module,exports){
4038
4499
  /**
4039
4500
  * An abstraction for slicing an arraybuffer even when
4040
4501
  * ArrayBuffer.prototype.slice is not supported
@@ -4065,7 +4526,7 @@ module.exports = function(arraybuffer, start, end) {
4065
4526
  return result.buffer;
4066
4527
  };
4067
4528
 
4068
- },{}],25:[function(_dereq_,module,exports){
4529
+ },{}],28:[function(_dereq_,module,exports){
4069
4530
  /*
4070
4531
  * base64-arraybuffer
4071
4532
  * https://github.com/niklasvh/base64-arraybuffer
@@ -4126,7 +4587,7 @@ module.exports = function(arraybuffer, start, end) {
4126
4587
  };
4127
4588
  })("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/");
4128
4589
 
4129
- },{}],26:[function(_dereq_,module,exports){
4590
+ },{}],29:[function(_dereq_,module,exports){
4130
4591
  (function (global){
4131
4592
  /**
4132
4593
  * Create a blob builder even when vendor prefixes exist
@@ -4179,7 +4640,7 @@ module.exports = (function() {
4179
4640
  })();
4180
4641
 
4181
4642
  }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
4182
- },{}],27:[function(_dereq_,module,exports){
4643
+ },{}],30:[function(_dereq_,module,exports){
4183
4644
  (function (global){
4184
4645
  /*! http://mths.be/utf8js v2.0.0 by @mathias */
4185
4646
  ;(function(root) {
@@ -4422,7 +4883,7 @@ module.exports = (function() {
4422
4883
  }(this));
4423
4884
 
4424
4885
  }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
4425
- },{}],28:[function(_dereq_,module,exports){
4886
+ },{}],31:[function(_dereq_,module,exports){
4426
4887
  (function (global){
4427
4888
  /**
4428
4889
  * JSON parse.
@@ -4457,7 +4918,7 @@ module.exports = function parsejson(data) {
4457
4918
  }
4458
4919
  };
4459
4920
  }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
4460
- },{}],29:[function(_dereq_,module,exports){
4921
+ },{}],32:[function(_dereq_,module,exports){
4461
4922
  /**
4462
4923
  * Compiles a querystring
4463
4924
  * Returns string representation of the object
@@ -4496,7 +4957,7 @@ exports.decode = function(qs){
4496
4957
  return qry;
4497
4958
  };
4498
4959
 
4499
- },{}],30:[function(_dereq_,module,exports){
4960
+ },{}],33:[function(_dereq_,module,exports){
4500
4961
  /**
4501
4962
  * Parses an URI
4502
4963
  *
@@ -4537,7 +4998,7 @@ module.exports = function parseuri(str) {
4537
4998
  return uri;
4538
4999
  };
4539
5000
 
4540
- },{}],31:[function(_dereq_,module,exports){
5001
+ },{}],34:[function(_dereq_,module,exports){
4541
5002
 
4542
5003
  /**
4543
5004
  * Module dependencies.
@@ -4582,7 +5043,7 @@ function ws(uri, protocols, opts) {
4582
5043
 
4583
5044
  if (WebSocket) ws.prototype = WebSocket.prototype;
4584
5045
 
4585
- },{}],32:[function(_dereq_,module,exports){
5046
+ },{}],35:[function(_dereq_,module,exports){
4586
5047
  (function (global){
4587
5048
 
4588
5049
  /*
@@ -4644,12 +5105,12 @@ function hasBinary(data) {
4644
5105
  }
4645
5106
 
4646
5107
  }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
4647
- },{"isarray":33}],33:[function(_dereq_,module,exports){
5108
+ },{"isarray":36}],36:[function(_dereq_,module,exports){
4648
5109
  module.exports = Array.isArray || function (arr) {
4649
5110
  return Object.prototype.toString.call(arr) == '[object Array]';
4650
5111
  };
4651
5112
 
4652
- },{}],34:[function(_dereq_,module,exports){
5113
+ },{}],37:[function(_dereq_,module,exports){
4653
5114
 
4654
5115
  /**
4655
5116
  * Module dependencies.
@@ -4674,7 +5135,7 @@ try {
4674
5135
  module.exports = false;
4675
5136
  }
4676
5137
 
4677
- },{"global":35}],35:[function(_dereq_,module,exports){
5138
+ },{"global":38}],38:[function(_dereq_,module,exports){
4678
5139
 
4679
5140
  /**
4680
5141
  * Returns `this`. Execute this without a "context" (i.e. without it being
@@ -4684,7 +5145,7 @@ try {
4684
5145
 
4685
5146
  module.exports = (function () { return this; })();
4686
5147
 
4687
- },{}],36:[function(_dereq_,module,exports){
5148
+ },{}],39:[function(_dereq_,module,exports){
4688
5149
 
4689
5150
  var indexOf = [].indexOf;
4690
5151
 
@@ -4695,7 +5156,7 @@ module.exports = function(arr, obj){
4695
5156
  }
4696
5157
  return -1;
4697
5158
  };
4698
- },{}],37:[function(_dereq_,module,exports){
5159
+ },{}],40:[function(_dereq_,module,exports){
4699
5160
 
4700
5161
  /**
4701
5162
  * HOP ref.
@@ -4780,7 +5241,7 @@ exports.length = function(obj){
4780
5241
  exports.isEmpty = function(obj){
4781
5242
  return 0 == exports.length(obj);
4782
5243
  };
4783
- },{}],38:[function(_dereq_,module,exports){
5244
+ },{}],41:[function(_dereq_,module,exports){
4784
5245
  /**
4785
5246
  * Parses an URI
4786
5247
  *
@@ -4807,7 +5268,7 @@ module.exports = function parseuri(str) {
4807
5268
  return uri;
4808
5269
  };
4809
5270
 
4810
- },{}],39:[function(_dereq_,module,exports){
5271
+ },{}],42:[function(_dereq_,module,exports){
4811
5272
  (function (global){
4812
5273
  /*global Blob,File*/
4813
5274
 
@@ -4952,7 +5413,7 @@ exports.removeBlobs = function(data, callback) {
4952
5413
  };
4953
5414
 
4954
5415
  }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
4955
- },{"./is-buffer":41,"isarray":42}],40:[function(_dereq_,module,exports){
5416
+ },{"./is-buffer":44,"isarray":45}],43:[function(_dereq_,module,exports){
4956
5417
 
4957
5418
  /**
4958
5419
  * Module dependencies.
@@ -5350,7 +5811,7 @@ function error(data){
5350
5811
  };
5351
5812
  }
5352
5813
 
5353
- },{"./binary":39,"./is-buffer":41,"component-emitter":8,"debug":9,"isarray":42,"json3":43}],41:[function(_dereq_,module,exports){
5814
+ },{"./binary":42,"./is-buffer":44,"component-emitter":8,"debug":9,"isarray":45,"json3":46}],44:[function(_dereq_,module,exports){
5354
5815
  (function (global){
5355
5816
 
5356
5817
  module.exports = isBuf;
@@ -5367,9 +5828,9 @@ function isBuf(obj) {
5367
5828
  }
5368
5829
 
5369
5830
  }).call(this,typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
5370
- },{}],42:[function(_dereq_,module,exports){
5371
- module.exports=_dereq_(33)
5372
- },{}],43:[function(_dereq_,module,exports){
5831
+ },{}],45:[function(_dereq_,module,exports){
5832
+ module.exports=_dereq_(36)
5833
+ },{}],46:[function(_dereq_,module,exports){
5373
5834
  /*! JSON v3.2.6 | http://bestiejs.github.io/json3 | Copyright 2012-2013, Kit Cambridge | http://kit.mit-license.org */
5374
5835
  ;(function (window) {
5375
5836
  // Convenience aliases.
@@ -6232,7 +6693,7 @@ module.exports=_dereq_(33)
6232
6693
  }
6233
6694
  }(this));
6234
6695
 
6235
- },{}],44:[function(_dereq_,module,exports){
6696
+ },{}],47:[function(_dereq_,module,exports){
6236
6697
  module.exports = toArray
6237
6698
 
6238
6699
  function toArray(list, index) {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: socket.io-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Chen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-28 00:00:00.000000000 Z
11
+ date: 2014-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties