socket.io-rails 1.3.5 → 1.3.6

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: 9f282748e08389059fb8076ce7eb2e2273b31520
4
- data.tar.gz: 12296683cc59f74a70e6b41e8f1e7ab13939e0a7
3
+ metadata.gz: 3f22957093aa6bf4ba2da2b2c78c49e05a57747b
4
+ data.tar.gz: a4e5f60b340825b517b75d6b9c63bd271c992f39
5
5
  SHA512:
6
- metadata.gz: e105d132deaf4c041022a3705be30cf3768e7c6c2926b09bdfacca5a41d1d728f5fa9aef881f1b38f18446e9ae13def3757820f72c430ef266b147ffd1e58d9a
7
- data.tar.gz: 27847c77e0de444e0ae6c6ecc71b4b38bbb68de64caadb26692cbcfff7c5bdf94f25a2fa7faf08a487c70f03ca4d44a5d11b8bf0d5aca825557b08cbf09b4e95
6
+ metadata.gz: ed67cfe4990fbe27559dc12393a954088948e92bcadeebd3492b5a7f2127e86b4895e85bd9f9adcbef49eea16812afd292f5c6fd9da16954d17137971b888441
7
+ data.tar.gz: fc5c58d5fee3a176203924957e990077a4da0707df768c88f255bca7b3a3a59e87bfd65f54028a38e6aa2015c8b492b3c959bedb89bb9384c5085c66adb0c957
@@ -1,5 +1,5 @@
1
1
  module Socketio
2
2
  module Rails
3
- VERSION = "1.3.5"
3
+ VERSION = "1.3.6"
4
4
  end
5
5
  end
@@ -2586,7 +2586,7 @@ JSONPPolling.prototype.doPoll = function () {
2586
2586
  this.script = script;
2587
2587
 
2588
2588
  var isUAgecko = 'undefined' != typeof navigator && /gecko/i.test(navigator.userAgent);
2589
-
2589
+
2590
2590
  if (isUAgecko) {
2591
2591
  setTimeout(function () {
2592
2592
  var iframe = document.createElement('iframe');
@@ -4931,240 +4931,240 @@ module.exports = Array.isArray || function (arr) {
4931
4931
  /*! http://mths.be/utf8js v2.0.0 by @mathias */
4932
4932
  ;(function(root) {
4933
4933
 
4934
- // Detect free variables `exports`
4935
- var freeExports = typeof exports == 'object' && exports;
4936
-
4937
- // Detect free variable `module`
4938
- var freeModule = typeof module == 'object' && module &&
4939
- module.exports == freeExports && module;
4940
-
4941
- // Detect free variable `global`, from Node.js or Browserified code,
4942
- // and use it as `root`
4943
- var freeGlobal = typeof global == 'object' && global;
4944
- if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) {
4945
- root = freeGlobal;
4946
- }
4947
-
4948
- /*--------------------------------------------------------------------------*/
4949
-
4950
- var stringFromCharCode = String.fromCharCode;
4951
-
4952
- // Taken from http://mths.be/punycode
4953
- function ucs2decode(string) {
4954
- var output = [];
4955
- var counter = 0;
4956
- var length = string.length;
4957
- var value;
4958
- var extra;
4959
- while (counter < length) {
4960
- value = string.charCodeAt(counter++);
4961
- if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
4962
- // high surrogate, and there is a next character
4963
- extra = string.charCodeAt(counter++);
4964
- if ((extra & 0xFC00) == 0xDC00) { // low surrogate
4965
- output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
4966
- } else {
4967
- // unmatched surrogate; only append this code unit, in case the next
4968
- // code unit is the high surrogate of a surrogate pair
4969
- output.push(value);
4970
- counter--;
4971
- }
4972
- } else {
4973
- output.push(value);
4974
- }
4975
- }
4976
- return output;
4977
- }
4978
-
4979
- // Taken from http://mths.be/punycode
4980
- function ucs2encode(array) {
4981
- var length = array.length;
4982
- var index = -1;
4983
- var value;
4984
- var output = '';
4985
- while (++index < length) {
4986
- value = array[index];
4987
- if (value > 0xFFFF) {
4988
- value -= 0x10000;
4989
- output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);
4990
- value = 0xDC00 | value & 0x3FF;
4991
- }
4992
- output += stringFromCharCode(value);
4993
- }
4994
- return output;
4995
- }
4996
-
4997
- /*--------------------------------------------------------------------------*/
4998
-
4999
- function createByte(codePoint, shift) {
5000
- return stringFromCharCode(((codePoint >> shift) & 0x3F) | 0x80);
5001
- }
5002
-
5003
- function encodeCodePoint(codePoint) {
5004
- if ((codePoint & 0xFFFFFF80) == 0) { // 1-byte sequence
5005
- return stringFromCharCode(codePoint);
5006
- }
5007
- var symbol = '';
5008
- if ((codePoint & 0xFFFFF800) == 0) { // 2-byte sequence
5009
- symbol = stringFromCharCode(((codePoint >> 6) & 0x1F) | 0xC0);
5010
- }
5011
- else if ((codePoint & 0xFFFF0000) == 0) { // 3-byte sequence
5012
- symbol = stringFromCharCode(((codePoint >> 12) & 0x0F) | 0xE0);
5013
- symbol += createByte(codePoint, 6);
5014
- }
5015
- else if ((codePoint & 0xFFE00000) == 0) { // 4-byte sequence
5016
- symbol = stringFromCharCode(((codePoint >> 18) & 0x07) | 0xF0);
5017
- symbol += createByte(codePoint, 12);
5018
- symbol += createByte(codePoint, 6);
5019
- }
5020
- symbol += stringFromCharCode((codePoint & 0x3F) | 0x80);
5021
- return symbol;
5022
- }
5023
-
5024
- function utf8encode(string) {
5025
- var codePoints = ucs2decode(string);
5026
-
5027
- // console.log(JSON.stringify(codePoints.map(function(x) {
5028
- // return 'U+' + x.toString(16).toUpperCase();
5029
- // })));
5030
-
5031
- var length = codePoints.length;
5032
- var index = -1;
5033
- var codePoint;
5034
- var byteString = '';
5035
- while (++index < length) {
5036
- codePoint = codePoints[index];
5037
- byteString += encodeCodePoint(codePoint);
5038
- }
5039
- return byteString;
5040
- }
5041
-
5042
- /*--------------------------------------------------------------------------*/
5043
-
5044
- function readContinuationByte() {
5045
- if (byteIndex >= byteCount) {
5046
- throw Error('Invalid byte index');
5047
- }
5048
-
5049
- var continuationByte = byteArray[byteIndex] & 0xFF;
5050
- byteIndex++;
5051
-
5052
- if ((continuationByte & 0xC0) == 0x80) {
5053
- return continuationByte & 0x3F;
5054
- }
5055
-
5056
- // If we end up here, it’s not a continuation byte
5057
- throw Error('Invalid continuation byte');
5058
- }
5059
-
5060
- function decodeSymbol() {
5061
- var byte1;
5062
- var byte2;
5063
- var byte3;
5064
- var byte4;
5065
- var codePoint;
5066
-
5067
- if (byteIndex > byteCount) {
5068
- throw Error('Invalid byte index');
5069
- }
5070
-
5071
- if (byteIndex == byteCount) {
5072
- return false;
5073
- }
5074
-
5075
- // Read first byte
5076
- byte1 = byteArray[byteIndex] & 0xFF;
5077
- byteIndex++;
5078
-
5079
- // 1-byte sequence (no continuation bytes)
5080
- if ((byte1 & 0x80) == 0) {
5081
- return byte1;
5082
- }
5083
-
5084
- // 2-byte sequence
5085
- if ((byte1 & 0xE0) == 0xC0) {
5086
- var byte2 = readContinuationByte();
5087
- codePoint = ((byte1 & 0x1F) << 6) | byte2;
5088
- if (codePoint >= 0x80) {
5089
- return codePoint;
5090
- } else {
5091
- throw Error('Invalid continuation byte');
5092
- }
5093
- }
5094
-
5095
- // 3-byte sequence (may include unpaired surrogates)
5096
- if ((byte1 & 0xF0) == 0xE0) {
5097
- byte2 = readContinuationByte();
5098
- byte3 = readContinuationByte();
5099
- codePoint = ((byte1 & 0x0F) << 12) | (byte2 << 6) | byte3;
5100
- if (codePoint >= 0x0800) {
5101
- return codePoint;
5102
- } else {
5103
- throw Error('Invalid continuation byte');
5104
- }
5105
- }
5106
-
5107
- // 4-byte sequence
5108
- if ((byte1 & 0xF8) == 0xF0) {
5109
- byte2 = readContinuationByte();
5110
- byte3 = readContinuationByte();
5111
- byte4 = readContinuationByte();
5112
- codePoint = ((byte1 & 0x0F) << 0x12) | (byte2 << 0x0C) |
5113
- (byte3 << 0x06) | byte4;
5114
- if (codePoint >= 0x010000 && codePoint <= 0x10FFFF) {
5115
- return codePoint;
5116
- }
5117
- }
5118
-
5119
- throw Error('Invalid UTF-8 detected');
5120
- }
5121
-
5122
- var byteArray;
5123
- var byteCount;
5124
- var byteIndex;
5125
- function utf8decode(byteString) {
5126
- byteArray = ucs2decode(byteString);
5127
- byteCount = byteArray.length;
5128
- byteIndex = 0;
5129
- var codePoints = [];
5130
- var tmp;
5131
- while ((tmp = decodeSymbol()) !== false) {
5132
- codePoints.push(tmp);
5133
- }
5134
- return ucs2encode(codePoints);
5135
- }
5136
-
5137
- /*--------------------------------------------------------------------------*/
5138
-
5139
- var utf8 = {
5140
- 'version': '2.0.0',
5141
- 'encode': utf8encode,
5142
- 'decode': utf8decode
5143
- };
5144
-
5145
- // Some AMD build optimizers, like r.js, check for specific condition patterns
5146
- // like the following:
5147
- if (
5148
- typeof define == 'function' &&
5149
- typeof define.amd == 'object' &&
5150
- define.amd
5151
- ) {
5152
- define(function() {
5153
- return utf8;
5154
- });
5155
- } else if (freeExports && !freeExports.nodeType) {
5156
- if (freeModule) { // in Node.js or RingoJS v0.8.0+
5157
- freeModule.exports = utf8;
5158
- } else { // in Narwhal or RingoJS v0.7.0-
5159
- var object = {};
5160
- var hasOwnProperty = object.hasOwnProperty;
5161
- for (var key in utf8) {
5162
- hasOwnProperty.call(utf8, key) && (freeExports[key] = utf8[key]);
5163
- }
5164
- }
5165
- } else { // in Rhino or a web browser
5166
- root.utf8 = utf8;
5167
- }
4934
+ // Detect free variables `exports`
4935
+ var freeExports = typeof exports == 'object' && exports;
4936
+
4937
+ // Detect free variable `module`
4938
+ var freeModule = typeof module == 'object' && module &&
4939
+ module.exports == freeExports && module;
4940
+
4941
+ // Detect free variable `global`, from Node.js or Browserified code,
4942
+ // and use it as `root`
4943
+ var freeGlobal = typeof global == 'object' && global;
4944
+ if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) {
4945
+ root = freeGlobal;
4946
+ }
4947
+
4948
+ /*--------------------------------------------------------------------------*/
4949
+
4950
+ var stringFromCharCode = String.fromCharCode;
4951
+
4952
+ // Taken from http://mths.be/punycode
4953
+ function ucs2decode(string) {
4954
+ var output = [];
4955
+ var counter = 0;
4956
+ var length = string.length;
4957
+ var value;
4958
+ var extra;
4959
+ while (counter < length) {
4960
+ value = string.charCodeAt(counter++);
4961
+ if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
4962
+ // high surrogate, and there is a next character
4963
+ extra = string.charCodeAt(counter++);
4964
+ if ((extra & 0xFC00) == 0xDC00) { // low surrogate
4965
+ output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
4966
+ } else {
4967
+ // unmatched surrogate; only append this code unit, in case the next
4968
+ // code unit is the high surrogate of a surrogate pair
4969
+ output.push(value);
4970
+ counter--;
4971
+ }
4972
+ } else {
4973
+ output.push(value);
4974
+ }
4975
+ }
4976
+ return output;
4977
+ }
4978
+
4979
+ // Taken from http://mths.be/punycode
4980
+ function ucs2encode(array) {
4981
+ var length = array.length;
4982
+ var index = -1;
4983
+ var value;
4984
+ var output = '';
4985
+ while (++index < length) {
4986
+ value = array[index];
4987
+ if (value > 0xFFFF) {
4988
+ value -= 0x10000;
4989
+ output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);
4990
+ value = 0xDC00 | value & 0x3FF;
4991
+ }
4992
+ output += stringFromCharCode(value);
4993
+ }
4994
+ return output;
4995
+ }
4996
+
4997
+ /*--------------------------------------------------------------------------*/
4998
+
4999
+ function createByte(codePoint, shift) {
5000
+ return stringFromCharCode(((codePoint >> shift) & 0x3F) | 0x80);
5001
+ }
5002
+
5003
+ function encodeCodePoint(codePoint) {
5004
+ if ((codePoint & 0xFFFFFF80) == 0) { // 1-byte sequence
5005
+ return stringFromCharCode(codePoint);
5006
+ }
5007
+ var symbol = '';
5008
+ if ((codePoint & 0xFFFFF800) == 0) { // 2-byte sequence
5009
+ symbol = stringFromCharCode(((codePoint >> 6) & 0x1F) | 0xC0);
5010
+ }
5011
+ else if ((codePoint & 0xFFFF0000) == 0) { // 3-byte sequence
5012
+ symbol = stringFromCharCode(((codePoint >> 12) & 0x0F) | 0xE0);
5013
+ symbol += createByte(codePoint, 6);
5014
+ }
5015
+ else if ((codePoint & 0xFFE00000) == 0) { // 4-byte sequence
5016
+ symbol = stringFromCharCode(((codePoint >> 18) & 0x07) | 0xF0);
5017
+ symbol += createByte(codePoint, 12);
5018
+ symbol += createByte(codePoint, 6);
5019
+ }
5020
+ symbol += stringFromCharCode((codePoint & 0x3F) | 0x80);
5021
+ return symbol;
5022
+ }
5023
+
5024
+ function utf8encode(string) {
5025
+ var codePoints = ucs2decode(string);
5026
+
5027
+ // console.log(JSON.stringify(codePoints.map(function(x) {
5028
+ // return 'U+' + x.toString(16).toUpperCase();
5029
+ // })));
5030
+
5031
+ var length = codePoints.length;
5032
+ var index = -1;
5033
+ var codePoint;
5034
+ var byteString = '';
5035
+ while (++index < length) {
5036
+ codePoint = codePoints[index];
5037
+ byteString += encodeCodePoint(codePoint);
5038
+ }
5039
+ return byteString;
5040
+ }
5041
+
5042
+ /*--------------------------------------------------------------------------*/
5043
+
5044
+ function readContinuationByte() {
5045
+ if (byteIndex >= byteCount) {
5046
+ throw Error('Invalid byte index');
5047
+ }
5048
+
5049
+ var continuationByte = byteArray[byteIndex] & 0xFF;
5050
+ byteIndex++;
5051
+
5052
+ if ((continuationByte & 0xC0) == 0x80) {
5053
+ return continuationByte & 0x3F;
5054
+ }
5055
+
5056
+ // If we end up here, it’s not a continuation byte
5057
+ throw Error('Invalid continuation byte');
5058
+ }
5059
+
5060
+ function decodeSymbol() {
5061
+ var byte1;
5062
+ var byte2;
5063
+ var byte3;
5064
+ var byte4;
5065
+ var codePoint;
5066
+
5067
+ if (byteIndex > byteCount) {
5068
+ throw Error('Invalid byte index');
5069
+ }
5070
+
5071
+ if (byteIndex == byteCount) {
5072
+ return false;
5073
+ }
5074
+
5075
+ // Read first byte
5076
+ byte1 = byteArray[byteIndex] & 0xFF;
5077
+ byteIndex++;
5078
+
5079
+ // 1-byte sequence (no continuation bytes)
5080
+ if ((byte1 & 0x80) == 0) {
5081
+ return byte1;
5082
+ }
5083
+
5084
+ // 2-byte sequence
5085
+ if ((byte1 & 0xE0) == 0xC0) {
5086
+ var byte2 = readContinuationByte();
5087
+ codePoint = ((byte1 & 0x1F) << 6) | byte2;
5088
+ if (codePoint >= 0x80) {
5089
+ return codePoint;
5090
+ } else {
5091
+ throw Error('Invalid continuation byte');
5092
+ }
5093
+ }
5094
+
5095
+ // 3-byte sequence (may include unpaired surrogates)
5096
+ if ((byte1 & 0xF0) == 0xE0) {
5097
+ byte2 = readContinuationByte();
5098
+ byte3 = readContinuationByte();
5099
+ codePoint = ((byte1 & 0x0F) << 12) | (byte2 << 6) | byte3;
5100
+ if (codePoint >= 0x0800) {
5101
+ return codePoint;
5102
+ } else {
5103
+ throw Error('Invalid continuation byte');
5104
+ }
5105
+ }
5106
+
5107
+ // 4-byte sequence
5108
+ if ((byte1 & 0xF8) == 0xF0) {
5109
+ byte2 = readContinuationByte();
5110
+ byte3 = readContinuationByte();
5111
+ byte4 = readContinuationByte();
5112
+ codePoint = ((byte1 & 0x0F) << 0x12) | (byte2 << 0x0C) |
5113
+ (byte3 << 0x06) | byte4;
5114
+ if (codePoint >= 0x010000 && codePoint <= 0x10FFFF) {
5115
+ return codePoint;
5116
+ }
5117
+ }
5118
+
5119
+ throw Error('Invalid UTF-8 detected');
5120
+ }
5121
+
5122
+ var byteArray;
5123
+ var byteCount;
5124
+ var byteIndex;
5125
+ function utf8decode(byteString) {
5126
+ byteArray = ucs2decode(byteString);
5127
+ byteCount = byteArray.length;
5128
+ byteIndex = 0;
5129
+ var codePoints = [];
5130
+ var tmp;
5131
+ while ((tmp = decodeSymbol()) !== false) {
5132
+ codePoints.push(tmp);
5133
+ }
5134
+ return ucs2encode(codePoints);
5135
+ }
5136
+
5137
+ /*--------------------------------------------------------------------------*/
5138
+
5139
+ var utf8 = {
5140
+ 'version': '2.0.0',
5141
+ 'encode': utf8encode,
5142
+ 'decode': utf8decode
5143
+ };
5144
+
5145
+ // Some AMD build optimizers, like r.js, check for specific condition patterns
5146
+ // like the following:
5147
+ if (
5148
+ typeof define == 'function' &&
5149
+ typeof define.amd == 'object' &&
5150
+ define.amd
5151
+ ) {
5152
+ define(function() {
5153
+ return utf8;
5154
+ });
5155
+ } else if (freeExports && !freeExports.nodeType) {
5156
+ if (freeModule) { // in Node.js or RingoJS v0.8.0+
5157
+ freeModule.exports = utf8;
5158
+ } else { // in Narwhal or RingoJS v0.7.0-
5159
+ var object = {};
5160
+ var hasOwnProperty = object.hasOwnProperty;
5161
+ for (var key in utf8) {
5162
+ hasOwnProperty.call(utf8, key) && (freeExports[key] = utf8[key]);
5163
+ }
5164
+ }
5165
+ } else { // in Rhino or a web browser
5166
+ root.utf8 = utf8;
5167
+ }
5168
5168
 
5169
5169
  }(this));
5170
5170
 
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.3.5
4
+ version: 1.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Chen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-14 00:00:00.000000000 Z
11
+ date: 2015-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties