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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 640476432b7e2a75e572667cb9771e6ea6846dee
4
- data.tar.gz: 8b9777fed70129c6da93cb5ef0e1c9749e84345b
3
+ metadata.gz: b1998610d60fbb5076aaf09e0bf09de9b7f59b32
4
+ data.tar.gz: f0ba1cb7900d14a5616db79a800c8b48f8d0db13
5
5
  SHA512:
6
- metadata.gz: 41de87fe5f3862e6a4ac0d9d7f29a6772f8ed581579037de5f49ce1abfebd52c82761a53083ca82968ca9eefc33ca16fc908370cda20c041f35040cdecd95640
7
- data.tar.gz: 189cef51335950ad724ad77ecff0e149be02a72aa183296ebd0f28e4ee4f5c6675f398eff5c651c07748a4f4bd6d9bdd4344b01cd09bdfdf0542dca44c0a7f2e
6
+ metadata.gz: 264e7eab0585b0165e9ff57f62aac8c592098ef083519d102b713a8868e30ad2d6e6e6b0b3dac7e71aea1a397ceb3c60100af6ff0dc83efe87850dcce17dcea5
7
+ data.tar.gz: 6d4892b2d722e1f0eeeac26a5f9a57327aef30b0ec8c607ba2a49a3acf8d8d43846c71227827ce3ed5c75c2e578cf8d228c322feeff44fbec4fa585a824f0c75
@@ -1,5 +1,5 @@
1
1
  module Socketio
2
2
  module Rails
3
- VERSION = "1.3.0"
3
+ VERSION = "1.3.1"
4
4
  end
5
5
  end
@@ -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
- // 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
- }
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.0
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-01-20 00:00:00.000000000 Z
11
+ date: 2015-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties