vendor/assets/javascripts/faye-browser.js in faye-rails-1.0.3 vs vendor/assets/javascripts/faye-browser.js in faye-rails-1.0.4
- old
+ new
@@ -11,11 +11,11 @@
}
return dest;
};
Faye.extend(Faye, {
- VERSION: '0.8.6',
+ VERSION: '0.8.8',
BAYEUX_VERSION: '1.0',
ID_LENGTH: 160,
JSONP_CALLBACK: 'jsonpcallback',
CONNECTION_TYPES: ['long-polling', 'cross-origin-long-polling', 'callback-polling', 'websocket', 'eventsource', 'in-process'],
@@ -235,61 +235,48 @@
message = parts[2];
return new this(code, params, message);
};
-
Faye.Error.versionMismatch = function() {
return new this(300, arguments, "Version mismatch").toString();
};
-
Faye.Error.conntypeMismatch = function() {
return new this(301, arguments, "Connection types not supported").toString();
};
-
Faye.Error.extMismatch = function() {
return new this(302, arguments, "Extension mismatch").toString();
};
-
Faye.Error.badRequest = function() {
return new this(400, arguments, "Bad request").toString();
};
-
Faye.Error.clientUnknown = function() {
return new this(401, arguments, "Unknown client").toString();
};
-
Faye.Error.parameterMissing = function() {
return new this(402, arguments, "Missing required parameter").toString();
};
-
Faye.Error.channelForbidden = function() {
return new this(403, arguments, "Forbidden channel").toString();
};
-
Faye.Error.channelUnknown = function() {
return new this(404, arguments, "Unknown channel").toString();
};
-
Faye.Error.channelInvalid = function() {
return new this(405, arguments, "Invalid channel").toString();
};
-
Faye.Error.extUnknown = function() {
return new this(406, arguments, "Unknown extension").toString();
};
-
Faye.Error.publishFailed = function() {
return new this(407, arguments, "Failed to publish").toString();
};
-
Faye.Error.serverError = function() {
return new this(500, arguments, "Internal server error").toString();
};
-
Faye.Deferrable = {
callback: function(callback, context) {
if (!callback) return;
if (this._deferredStatus === 'succeeded')
@@ -458,54 +445,31 @@
})(key, Faye.Logging.LOG_LEVELS[key]);
})();
Faye.Grammar = {
-
LOWALPHA: /^[a-z]$/,
-
UPALPHA: /^[A-Z]$/,
-
ALPHA: /^([a-z]|[A-Z])$/,
-
DIGIT: /^[0-9]$/,
-
ALPHANUM: /^(([a-z]|[A-Z])|[0-9])$/,
-
MARK: /^(\-|\_|\!|\~|\(|\)|\$|\@)$/,
-
STRING: /^(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)| |\/|\*|\.))*$/,
-
TOKEN: /^(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)))+$/,
-
INTEGER: /^([0-9])+$/,
-
CHANNEL_SEGMENT: /^(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)))+$/,
-
CHANNEL_SEGMENTS: /^(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)))+(\/(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)))+)*$/,
-
CHANNEL_NAME: /^\/(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)))+(\/(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)))+)*$/,
-
WILD_CARD: /^\*{1,2}$/,
-
CHANNEL_PATTERN: /^(\/(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)))+)*\/\*{1,2}$/,
-
VERSION_ELEMENT: /^(([a-z]|[A-Z])|[0-9])(((([a-z]|[A-Z])|[0-9])|\-|\_))*$/,
-
VERSION: /^([0-9])+(\.(([a-z]|[A-Z])|[0-9])(((([a-z]|[A-Z])|[0-9])|\-|\_))*)*$/,
-
CLIENT_ID: /^((([a-z]|[A-Z])|[0-9]))+$/,
-
ID: /^((([a-z]|[A-Z])|[0-9]))+$/,
-
ERROR_MESSAGE: /^(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)| |\/|\*|\.))*$/,
-
ERROR_ARGS: /^(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)| |\/|\*|\.))*(,(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)| |\/|\*|\.))*)*$/,
-
ERROR_CODE: /^[0-9][0-9][0-9]$/,
-
ERROR: /^([0-9][0-9][0-9]:(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)| |\/|\*|\.))*(,(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)| |\/|\*|\.))*)*:(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)| |\/|\*|\.))*|[0-9][0-9][0-9]::(((([a-z]|[A-Z])|[0-9])|(\-|\_|\!|\~|\(|\)|\$|\@)| |\/|\*|\.))*)$/
-
};
Faye.Extensible = {
addExtension: function(extension) {