socket.io-rails 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/socket.io-rails/version.rb +1 -1
- data/vendor/assets/javascripts/socket.io.js +236 -236
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1998610d60fbb5076aaf09e0bf09de9b7f59b32
|
4
|
+
data.tar.gz: f0ba1cb7900d14a5616db79a800c8b48f8d0db13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 264e7eab0585b0165e9ff57f62aac8c592098ef083519d102b713a8868e30ad2d6e6e6b0b3dac7e71aea1a397ceb3c60100af6ff0dc83efe87850dcce17dcea5
|
7
|
+
data.tar.gz: 6d4892b2d722e1f0eeeac26a5f9a57327aef30b0ec8c607ba2a49a3acf8d8d43846c71227827ce3ed5c75c2e578cf8d228c322feeff44fbec4fa585a824f0c75
|
@@ -2555,7 +2555,7 @@ JSONPPolling.prototype.doPoll = function () {
|
|
2555
2555
|
this.script = script;
|
2556
2556
|
|
2557
2557
|
var isUAgecko = 'undefined' != typeof navigator && /gecko/i.test(navigator.userAgent);
|
2558
|
-
|
2558
|
+
|
2559
2559
|
if (isUAgecko) {
|
2560
2560
|
setTimeout(function () {
|
2561
2561
|
var iframe = document.createElement('iframe');
|
@@ -4763,240 +4763,240 @@ module.exports = (function() {
|
|
4763
4763
|
/*! http://mths.be/utf8js v2.0.0 by @mathias */
|
4764
4764
|
;(function(root) {
|
4765
4765
|
|
4766
|
-
|
4767
|
-
|
4768
|
-
|
4769
|
-
|
4770
|
-
|
4771
|
-
|
4772
|
-
|
4773
|
-
|
4774
|
-
|
4775
|
-
|
4776
|
-
|
4777
|
-
|
4778
|
-
|
4779
|
-
|
4780
|
-
|
4781
|
-
|
4782
|
-
|
4783
|
-
|
4784
|
-
|
4785
|
-
|
4786
|
-
|
4787
|
-
|
4788
|
-
|
4789
|
-
|
4790
|
-
|
4791
|
-
|
4792
|
-
|
4793
|
-
|
4794
|
-
|
4795
|
-
|
4796
|
-
|
4797
|
-
|
4798
|
-
|
4799
|
-
|
4800
|
-
|
4801
|
-
|
4802
|
-
|
4803
|
-
|
4804
|
-
|
4805
|
-
|
4806
|
-
|
4807
|
-
|
4808
|
-
|
4809
|
-
|
4810
|
-
|
4811
|
-
|
4812
|
-
|
4813
|
-
|
4814
|
-
|
4815
|
-
|
4816
|
-
|
4817
|
-
|
4818
|
-
|
4819
|
-
|
4820
|
-
|
4821
|
-
|
4822
|
-
|
4823
|
-
|
4824
|
-
|
4825
|
-
|
4826
|
-
|
4827
|
-
|
4828
|
-
|
4829
|
-
|
4830
|
-
|
4831
|
-
|
4832
|
-
|
4833
|
-
|
4834
|
-
|
4835
|
-
|
4836
|
-
|
4837
|
-
|
4838
|
-
|
4839
|
-
|
4840
|
-
|
4841
|
-
|
4842
|
-
|
4843
|
-
|
4844
|
-
|
4845
|
-
|
4846
|
-
|
4847
|
-
|
4848
|
-
|
4849
|
-
|
4850
|
-
|
4851
|
-
|
4852
|
-
|
4853
|
-
|
4854
|
-
|
4855
|
-
|
4856
|
-
|
4857
|
-
|
4858
|
-
|
4859
|
-
|
4860
|
-
|
4861
|
-
|
4862
|
-
|
4863
|
-
|
4864
|
-
|
4865
|
-
|
4866
|
-
|
4867
|
-
|
4868
|
-
|
4869
|
-
|
4870
|
-
|
4871
|
-
|
4872
|
-
|
4873
|
-
|
4874
|
-
|
4875
|
-
|
4876
|
-
|
4877
|
-
|
4878
|
-
|
4879
|
-
|
4880
|
-
|
4881
|
-
|
4882
|
-
|
4883
|
-
|
4884
|
-
|
4885
|
-
|
4886
|
-
|
4887
|
-
|
4888
|
-
|
4889
|
-
|
4890
|
-
|
4891
|
-
|
4892
|
-
|
4893
|
-
|
4894
|
-
|
4895
|
-
|
4896
|
-
|
4897
|
-
|
4898
|
-
|
4899
|
-
|
4900
|
-
|
4901
|
-
|
4902
|
-
|
4903
|
-
|
4904
|
-
|
4905
|
-
|
4906
|
-
|
4907
|
-
|
4908
|
-
|
4909
|
-
|
4910
|
-
|
4911
|
-
|
4912
|
-
|
4913
|
-
|
4914
|
-
|
4915
|
-
|
4916
|
-
|
4917
|
-
|
4918
|
-
|
4919
|
-
|
4920
|
-
|
4921
|
-
|
4922
|
-
|
4923
|
-
|
4924
|
-
|
4925
|
-
|
4926
|
-
|
4927
|
-
|
4928
|
-
|
4929
|
-
|
4930
|
-
|
4931
|
-
|
4932
|
-
|
4933
|
-
|
4934
|
-
|
4935
|
-
|
4936
|
-
|
4937
|
-
|
4938
|
-
|
4939
|
-
|
4940
|
-
|
4941
|
-
|
4942
|
-
|
4943
|
-
|
4944
|
-
|
4945
|
-
|
4946
|
-
|
4947
|
-
|
4948
|
-
|
4949
|
-
|
4950
|
-
|
4951
|
-
|
4952
|
-
|
4953
|
-
|
4954
|
-
|
4955
|
-
|
4956
|
-
|
4957
|
-
|
4958
|
-
|
4959
|
-
|
4960
|
-
|
4961
|
-
|
4962
|
-
|
4963
|
-
|
4964
|
-
|
4965
|
-
|
4966
|
-
|
4967
|
-
|
4968
|
-
|
4969
|
-
|
4970
|
-
|
4971
|
-
|
4972
|
-
|
4973
|
-
|
4974
|
-
|
4975
|
-
|
4976
|
-
|
4977
|
-
|
4978
|
-
|
4979
|
-
|
4980
|
-
|
4981
|
-
|
4982
|
-
|
4983
|
-
|
4984
|
-
|
4985
|
-
|
4986
|
-
|
4987
|
-
|
4988
|
-
|
4989
|
-
|
4990
|
-
|
4991
|
-
|
4992
|
-
|
4993
|
-
|
4994
|
-
|
4995
|
-
|
4996
|
-
|
4997
|
-
|
4998
|
-
|
4999
|
-
|
4766
|
+
// Detect free variables `exports`
|
4767
|
+
var freeExports = typeof exports == 'object' && exports;
|
4768
|
+
|
4769
|
+
// Detect free variable `module`
|
4770
|
+
var freeModule = typeof module == 'object' && module &&
|
4771
|
+
module.exports == freeExports && module;
|
4772
|
+
|
4773
|
+
// Detect free variable `global`, from Node.js or Browserified code,
|
4774
|
+
// and use it as `root`
|
4775
|
+
var freeGlobal = typeof global == 'object' && global;
|
4776
|
+
if (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal) {
|
4777
|
+
root = freeGlobal;
|
4778
|
+
}
|
4779
|
+
|
4780
|
+
/*--------------------------------------------------------------------------*/
|
4781
|
+
|
4782
|
+
var stringFromCharCode = String.fromCharCode;
|
4783
|
+
|
4784
|
+
// Taken from http://mths.be/punycode
|
4785
|
+
function ucs2decode(string) {
|
4786
|
+
var output = [];
|
4787
|
+
var counter = 0;
|
4788
|
+
var length = string.length;
|
4789
|
+
var value;
|
4790
|
+
var extra;
|
4791
|
+
while (counter < length) {
|
4792
|
+
value = string.charCodeAt(counter++);
|
4793
|
+
if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
|
4794
|
+
// high surrogate, and there is a next character
|
4795
|
+
extra = string.charCodeAt(counter++);
|
4796
|
+
if ((extra & 0xFC00) == 0xDC00) { // low surrogate
|
4797
|
+
output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
|
4798
|
+
} else {
|
4799
|
+
// unmatched surrogate; only append this code unit, in case the next
|
4800
|
+
// code unit is the high surrogate of a surrogate pair
|
4801
|
+
output.push(value);
|
4802
|
+
counter--;
|
4803
|
+
}
|
4804
|
+
} else {
|
4805
|
+
output.push(value);
|
4806
|
+
}
|
4807
|
+
}
|
4808
|
+
return output;
|
4809
|
+
}
|
4810
|
+
|
4811
|
+
// Taken from http://mths.be/punycode
|
4812
|
+
function ucs2encode(array) {
|
4813
|
+
var length = array.length;
|
4814
|
+
var index = -1;
|
4815
|
+
var value;
|
4816
|
+
var output = '';
|
4817
|
+
while (++index < length) {
|
4818
|
+
value = array[index];
|
4819
|
+
if (value > 0xFFFF) {
|
4820
|
+
value -= 0x10000;
|
4821
|
+
output += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);
|
4822
|
+
value = 0xDC00 | value & 0x3FF;
|
4823
|
+
}
|
4824
|
+
output += stringFromCharCode(value);
|
4825
|
+
}
|
4826
|
+
return output;
|
4827
|
+
}
|
4828
|
+
|
4829
|
+
/*--------------------------------------------------------------------------*/
|
4830
|
+
|
4831
|
+
function createByte(codePoint, shift) {
|
4832
|
+
return stringFromCharCode(((codePoint >> shift) & 0x3F) | 0x80);
|
4833
|
+
}
|
4834
|
+
|
4835
|
+
function encodeCodePoint(codePoint) {
|
4836
|
+
if ((codePoint & 0xFFFFFF80) == 0) { // 1-byte sequence
|
4837
|
+
return stringFromCharCode(codePoint);
|
4838
|
+
}
|
4839
|
+
var symbol = '';
|
4840
|
+
if ((codePoint & 0xFFFFF800) == 0) { // 2-byte sequence
|
4841
|
+
symbol = stringFromCharCode(((codePoint >> 6) & 0x1F) | 0xC0);
|
4842
|
+
}
|
4843
|
+
else if ((codePoint & 0xFFFF0000) == 0) { // 3-byte sequence
|
4844
|
+
symbol = stringFromCharCode(((codePoint >> 12) & 0x0F) | 0xE0);
|
4845
|
+
symbol += createByte(codePoint, 6);
|
4846
|
+
}
|
4847
|
+
else if ((codePoint & 0xFFE00000) == 0) { // 4-byte sequence
|
4848
|
+
symbol = stringFromCharCode(((codePoint >> 18) & 0x07) | 0xF0);
|
4849
|
+
symbol += createByte(codePoint, 12);
|
4850
|
+
symbol += createByte(codePoint, 6);
|
4851
|
+
}
|
4852
|
+
symbol += stringFromCharCode((codePoint & 0x3F) | 0x80);
|
4853
|
+
return symbol;
|
4854
|
+
}
|
4855
|
+
|
4856
|
+
function utf8encode(string) {
|
4857
|
+
var codePoints = ucs2decode(string);
|
4858
|
+
|
4859
|
+
// console.log(JSON.stringify(codePoints.map(function(x) {
|
4860
|
+
// return 'U+' + x.toString(16).toUpperCase();
|
4861
|
+
// })));
|
4862
|
+
|
4863
|
+
var length = codePoints.length;
|
4864
|
+
var index = -1;
|
4865
|
+
var codePoint;
|
4866
|
+
var byteString = '';
|
4867
|
+
while (++index < length) {
|
4868
|
+
codePoint = codePoints[index];
|
4869
|
+
byteString += encodeCodePoint(codePoint);
|
4870
|
+
}
|
4871
|
+
return byteString;
|
4872
|
+
}
|
4873
|
+
|
4874
|
+
/*--------------------------------------------------------------------------*/
|
4875
|
+
|
4876
|
+
function readContinuationByte() {
|
4877
|
+
if (byteIndex >= byteCount) {
|
4878
|
+
throw Error('Invalid byte index');
|
4879
|
+
}
|
4880
|
+
|
4881
|
+
var continuationByte = byteArray[byteIndex] & 0xFF;
|
4882
|
+
byteIndex++;
|
4883
|
+
|
4884
|
+
if ((continuationByte & 0xC0) == 0x80) {
|
4885
|
+
return continuationByte & 0x3F;
|
4886
|
+
}
|
4887
|
+
|
4888
|
+
// If we end up here, it’s not a continuation byte
|
4889
|
+
throw Error('Invalid continuation byte');
|
4890
|
+
}
|
4891
|
+
|
4892
|
+
function decodeSymbol() {
|
4893
|
+
var byte1;
|
4894
|
+
var byte2;
|
4895
|
+
var byte3;
|
4896
|
+
var byte4;
|
4897
|
+
var codePoint;
|
4898
|
+
|
4899
|
+
if (byteIndex > byteCount) {
|
4900
|
+
throw Error('Invalid byte index');
|
4901
|
+
}
|
4902
|
+
|
4903
|
+
if (byteIndex == byteCount) {
|
4904
|
+
return false;
|
4905
|
+
}
|
4906
|
+
|
4907
|
+
// Read first byte
|
4908
|
+
byte1 = byteArray[byteIndex] & 0xFF;
|
4909
|
+
byteIndex++;
|
4910
|
+
|
4911
|
+
// 1-byte sequence (no continuation bytes)
|
4912
|
+
if ((byte1 & 0x80) == 0) {
|
4913
|
+
return byte1;
|
4914
|
+
}
|
4915
|
+
|
4916
|
+
// 2-byte sequence
|
4917
|
+
if ((byte1 & 0xE0) == 0xC0) {
|
4918
|
+
var byte2 = readContinuationByte();
|
4919
|
+
codePoint = ((byte1 & 0x1F) << 6) | byte2;
|
4920
|
+
if (codePoint >= 0x80) {
|
4921
|
+
return codePoint;
|
4922
|
+
} else {
|
4923
|
+
throw Error('Invalid continuation byte');
|
4924
|
+
}
|
4925
|
+
}
|
4926
|
+
|
4927
|
+
// 3-byte sequence (may include unpaired surrogates)
|
4928
|
+
if ((byte1 & 0xF0) == 0xE0) {
|
4929
|
+
byte2 = readContinuationByte();
|
4930
|
+
byte3 = readContinuationByte();
|
4931
|
+
codePoint = ((byte1 & 0x0F) << 12) | (byte2 << 6) | byte3;
|
4932
|
+
if (codePoint >= 0x0800) {
|
4933
|
+
return codePoint;
|
4934
|
+
} else {
|
4935
|
+
throw Error('Invalid continuation byte');
|
4936
|
+
}
|
4937
|
+
}
|
4938
|
+
|
4939
|
+
// 4-byte sequence
|
4940
|
+
if ((byte1 & 0xF8) == 0xF0) {
|
4941
|
+
byte2 = readContinuationByte();
|
4942
|
+
byte3 = readContinuationByte();
|
4943
|
+
byte4 = readContinuationByte();
|
4944
|
+
codePoint = ((byte1 & 0x0F) << 0x12) | (byte2 << 0x0C) |
|
4945
|
+
(byte3 << 0x06) | byte4;
|
4946
|
+
if (codePoint >= 0x010000 && codePoint <= 0x10FFFF) {
|
4947
|
+
return codePoint;
|
4948
|
+
}
|
4949
|
+
}
|
4950
|
+
|
4951
|
+
throw Error('Invalid UTF-8 detected');
|
4952
|
+
}
|
4953
|
+
|
4954
|
+
var byteArray;
|
4955
|
+
var byteCount;
|
4956
|
+
var byteIndex;
|
4957
|
+
function utf8decode(byteString) {
|
4958
|
+
byteArray = ucs2decode(byteString);
|
4959
|
+
byteCount = byteArray.length;
|
4960
|
+
byteIndex = 0;
|
4961
|
+
var codePoints = [];
|
4962
|
+
var tmp;
|
4963
|
+
while ((tmp = decodeSymbol()) !== false) {
|
4964
|
+
codePoints.push(tmp);
|
4965
|
+
}
|
4966
|
+
return ucs2encode(codePoints);
|
4967
|
+
}
|
4968
|
+
|
4969
|
+
/*--------------------------------------------------------------------------*/
|
4970
|
+
|
4971
|
+
var utf8 = {
|
4972
|
+
'version': '2.0.0',
|
4973
|
+
'encode': utf8encode,
|
4974
|
+
'decode': utf8decode
|
4975
|
+
};
|
4976
|
+
|
4977
|
+
// Some AMD build optimizers, like r.js, check for specific condition patterns
|
4978
|
+
// like the following:
|
4979
|
+
if (
|
4980
|
+
typeof define == 'function' &&
|
4981
|
+
typeof define.amd == 'object' &&
|
4982
|
+
define.amd
|
4983
|
+
) {
|
4984
|
+
define(function() {
|
4985
|
+
return utf8;
|
4986
|
+
});
|
4987
|
+
} else if (freeExports && !freeExports.nodeType) {
|
4988
|
+
if (freeModule) { // in Node.js or RingoJS v0.8.0+
|
4989
|
+
freeModule.exports = utf8;
|
4990
|
+
} else { // in Narwhal or RingoJS v0.7.0-
|
4991
|
+
var object = {};
|
4992
|
+
var hasOwnProperty = object.hasOwnProperty;
|
4993
|
+
for (var key in utf8) {
|
4994
|
+
hasOwnProperty.call(utf8, key) && (freeExports[key] = utf8[key]);
|
4995
|
+
}
|
4996
|
+
}
|
4997
|
+
} else { // in Rhino or a web browser
|
4998
|
+
root.utf8 = utf8;
|
4999
|
+
}
|
5000
5000
|
|
5001
5001
|
}(this));
|
5002
5002
|
|
@@ -6828,4 +6828,4 @@ function toArray(list, index) {
|
|
6828
6828
|
|
6829
6829
|
},{}]},{},[1])
|
6830
6830
|
(1)
|
6831
|
-
});
|
6831
|
+
});
|
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.
|
4
|
+
version: 1.3.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: 2015-
|
11
|
+
date: 2015-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|