trusty-cms 5.0.4 → 5.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +68 -68
- data/app/models/asset.rb +8 -2
- data/app/views/admin/assets/_asset_table.html.haml +1 -1
- data/app/views/admin/assets/_search.html.haml +1 -1
- data/app/views/admin/assets/_search_results.html.haml +2 -2
- data/app/views/admin/assets/edit.html.haml +5 -5
- data/app/views/admin/assets/index.html.haml +1 -1
- data/app/views/admin/configuration/_clipped_show.html.haml +1 -1
- data/app/views/admin/pages/_asset_popups.html.haml +5 -5
- data/app/views/admin/removed/_assets_bucket.html.haml +2 -2
- data/app/views/admin/removed/_assets_container.html.haml +6 -6
- data/app/views/admin/removed/_bucket.html.haml +1 -1
- data/app/views/admin/removed/_upload_to_page.html.haml +1 -1
- data/app/views/admin/sites/_form.haml +2 -2
- data/app/views/admin/snippets/edit.html.haml +1 -1
- data/app/views/admin/snippets/new.html.haml +1 -1
- data/lib/generators/extension_controller/templates/view_spec.rb +1 -1
- data/lib/generators/generator_base_extension.rb +0 -1
- data/lib/generators/instance/instance_generator.rb +1 -1
- data/lib/generators/language_extension/language_extension_generator.rb +0 -1
- data/lib/generators/language_extension/templates/test_helper.rb +0 -1
- data/lib/generators/trusty_cms/trusty_cms_generator.rb +0 -2
- data/lib/trusty_cms.rb +1 -1
- data/node_modules/ajv/README.md +158 -72
- data/node_modules/ajv/dist/ajv.bundle.js +136 -112
- data/node_modules/ajv/dist/ajv.min.js +2 -2
- data/node_modules/ajv/dist/ajv.min.js.map +1 -1
- data/node_modules/ajv/lib/ajv.d.ts +3 -1
- data/node_modules/ajv/lib/compile/equal.js +1 -1
- data/node_modules/ajv/lib/compile/formats.js +4 -4
- data/node_modules/ajv/lib/compile/index.js +1 -1
- data/node_modules/ajv/lib/compile/util.js +9 -44
- data/node_modules/ajv/lib/data.js +1 -1
- data/node_modules/ajv/lib/definition_schema.js +1 -1
- data/node_modules/ajv/lib/dot/_limit.jst +9 -0
- data/node_modules/ajv/lib/dot/_limitItems.jst +2 -0
- data/node_modules/ajv/lib/dot/_limitLength.jst +2 -0
- data/node_modules/ajv/lib/dot/_limitProperties.jst +2 -0
- data/node_modules/ajv/lib/dot/allOf.jst +0 -2
- data/node_modules/ajv/lib/dot/anyOf.jst +0 -2
- data/node_modules/ajv/lib/dot/coerce.def +18 -28
- data/node_modules/ajv/lib/dot/contains.jst +0 -2
- data/node_modules/ajv/lib/dot/definitions.def +9 -7
- data/node_modules/ajv/lib/dot/dependencies.jst +1 -2
- data/node_modules/ajv/lib/dot/if.jst +0 -2
- data/node_modules/ajv/lib/dot/items.jst +0 -2
- data/node_modules/ajv/lib/dot/multipleOf.jst +2 -0
- data/node_modules/ajv/lib/dot/properties.jst +6 -5
- data/node_modules/ajv/lib/dot/propertyNames.jst +0 -2
- data/node_modules/ajv/lib/dot/uniqueItems.jst +1 -1
- data/node_modules/ajv/lib/dot/validate.jst +3 -9
- data/node_modules/ajv/lib/dotjs/_limit.js +6 -0
- data/node_modules/ajv/lib/dotjs/_limitItems.js +3 -0
- data/node_modules/ajv/lib/dotjs/_limitLength.js +3 -0
- data/node_modules/ajv/lib/dotjs/_limitProperties.js +3 -0
- data/node_modules/ajv/lib/dotjs/allOf.js +1 -2
- data/node_modules/ajv/lib/dotjs/anyOf.js +1 -2
- data/node_modules/ajv/lib/dotjs/contains.js +1 -2
- data/node_modules/ajv/lib/dotjs/dependencies.js +2 -2
- data/node_modules/ajv/lib/dotjs/if.js +2 -3
- data/node_modules/ajv/lib/dotjs/items.js +3 -4
- data/node_modules/ajv/lib/dotjs/multipleOf.js +3 -0
- data/node_modules/ajv/lib/dotjs/not.js +1 -1
- data/node_modules/ajv/lib/dotjs/oneOf.js +1 -1
- data/node_modules/ajv/lib/dotjs/properties.js +11 -6
- data/node_modules/ajv/lib/dotjs/propertyNames.js +1 -2
- data/node_modules/ajv/lib/dotjs/required.js +1 -1
- data/node_modules/ajv/lib/dotjs/uniqueItems.js +1 -1
- data/node_modules/ajv/lib/dotjs/validate.js +13 -25
- data/node_modules/ajv/lib/keyword.js +1 -1
- data/node_modules/ajv/lib/refs/data.json +1 -1
- data/node_modules/ajv/lib/refs/json-schema-secure.json +1 -1
- data/node_modules/ajv/package.json +18 -10
- data/node_modules/ajv/scripts/info +0 -0
- data/node_modules/ajv/scripts/prepare-tests +0 -0
- data/node_modules/ajv/scripts/publish-built-version +1 -1
- data/node_modules/ajv/scripts/travis-gh-pages +1 -1
- data/node_modules/fast-deep-equal/es6/index.d.ts +1 -1
- data/node_modules/fast-deep-equal/es6/react.d.ts +1 -1
- data/node_modules/fast-deep-equal/package.json +7 -7
- data/node_modules/fast-deep-equal/react.d.ts +1 -1
- data/node_modules/uri-js/LICENSE +11 -0
- data/node_modules/uri-js/README.md +22 -18
- data/node_modules/uri-js/dist/es5/uri.all.d.ts +59 -59
- data/node_modules/uri-js/dist/es5/uri.all.js +61 -7
- data/node_modules/uri-js/dist/es5/uri.all.js.map +1 -1
- data/node_modules/uri-js/dist/es5/uri.all.min.d.ts +59 -59
- data/node_modules/uri-js/dist/es5/uri.all.min.js +2 -2
- data/node_modules/uri-js/dist/es5/uri.all.min.js.map +1 -1
- data/node_modules/uri-js/dist/esnext/index.d.ts +1 -1
- data/node_modules/uri-js/dist/esnext/index.js +16 -12
- data/node_modules/uri-js/dist/esnext/index.js.map +1 -1
- data/node_modules/uri-js/dist/esnext/regexps-iri.d.ts +3 -3
- data/node_modules/uri-js/dist/esnext/regexps-iri.js +2 -2
- data/node_modules/uri-js/dist/esnext/regexps-iri.js.map +0 -0
- data/node_modules/uri-js/dist/esnext/regexps-uri.d.ts +4 -4
- data/node_modules/uri-js/dist/esnext/regexps-uri.js +41 -41
- data/node_modules/uri-js/dist/esnext/regexps-uri.js.map +0 -0
- data/node_modules/uri-js/dist/esnext/schemes/http.d.ts +3 -3
- data/node_modules/uri-js/dist/esnext/schemes/http.js +27 -26
- data/node_modules/uri-js/dist/esnext/schemes/http.js.map +1 -1
- data/node_modules/uri-js/dist/esnext/schemes/https.d.ts +3 -3
- data/node_modules/uri-js/dist/esnext/schemes/https.js +8 -8
- data/node_modules/uri-js/dist/esnext/schemes/https.js.map +0 -0
- data/node_modules/uri-js/dist/esnext/schemes/mailto.d.ts +12 -12
- data/node_modules/uri-js/dist/esnext/schemes/mailto.js +0 -0
- data/node_modules/uri-js/dist/esnext/schemes/mailto.js.map +0 -0
- data/node_modules/uri-js/dist/esnext/schemes/urn-uuid.d.ts +7 -7
- data/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js +22 -22
- data/node_modules/uri-js/dist/esnext/schemes/urn-uuid.js.map +0 -0
- data/node_modules/uri-js/dist/esnext/schemes/urn.d.ts +10 -10
- data/node_modules/uri-js/dist/esnext/schemes/urn.js +48 -48
- data/node_modules/uri-js/dist/esnext/schemes/urn.js.map +0 -0
- data/node_modules/uri-js/dist/esnext/schemes/ws.d.ts +7 -0
- data/node_modules/uri-js/dist/esnext/schemes/ws.js +41 -0
- data/node_modules/uri-js/dist/esnext/schemes/ws.js.map +1 -0
- data/node_modules/uri-js/dist/esnext/schemes/wss.d.ts +3 -0
- data/node_modules/uri-js/dist/esnext/schemes/wss.js +9 -0
- data/node_modules/uri-js/dist/esnext/schemes/wss.js.map +1 -0
- data/node_modules/uri-js/dist/esnext/uri.d.ts +59 -59
- data/node_modules/uri-js/dist/esnext/uri.js +2 -2
- data/node_modules/uri-js/dist/esnext/uri.js.map +1 -1
- data/node_modules/uri-js/dist/esnext/util.d.ts +6 -6
- data/node_modules/uri-js/dist/esnext/util.js +35 -35
- data/node_modules/uri-js/dist/esnext/util.js.map +0 -0
- data/node_modules/uri-js/package.json +19 -7
- data/node_modules/uri-js/yarn.lock +1271 -615
- data/trusty_cms.gemspec +2 -1
- data/yarn.lock +9 -9
- metadata +9 -21
- data/node_modules/uri-js/bower.json +0 -47
- data/node_modules/uri-js/rollup.config.js +0 -32
- data/node_modules/uri-js/src/index.ts +0 -18
- data/node_modules/uri-js/src/punycode.d.ts +0 -24
- data/node_modules/uri-js/src/regexps-iri.ts +0 -4
- data/node_modules/uri-js/src/regexps-uri.ts +0 -89
- data/node_modules/uri-js/src/schemes/http.ts +0 -36
- data/node_modules/uri-js/src/schemes/https.ts +0 -11
- data/node_modules/uri-js/src/schemes/mailto.ts +0 -182
- data/node_modules/uri-js/src/schemes/urn-uuid.ts +0 -36
- data/node_modules/uri-js/src/schemes/urn.ts +0 -69
- data/node_modules/uri-js/src/uri.ts +0 -556
- data/node_modules/uri-js/src/util.ts +0 -40
- data/node_modules/uri-js/tests/qunit.css +0 -118
- data/node_modules/uri-js/tests/qunit.js +0 -1042
- data/node_modules/uri-js/tests/test-es5-min.html +0 -17
- data/node_modules/uri-js/tests/test-es5.html +0 -17
- data/node_modules/uri-js/tests/tests.js +0 -774
- data/node_modules/uri-js/tsconfig.json +0 -20
@@ -1,4 +1,4 @@
|
|
1
|
-
/** @license URI.js v4.
|
1
|
+
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
|
2
2
|
(function (global, factory) {
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
@@ -961,9 +961,9 @@ function _recomposeAuthority(components, options) {
|
|
961
961
|
return "[" + $1 + ($2 ? "%25" + $2 : "") + "]";
|
962
962
|
}));
|
963
963
|
}
|
964
|
-
if (typeof components.port === "number") {
|
964
|
+
if (typeof components.port === "number" || typeof components.port === "string") {
|
965
965
|
uriTokens.push(":");
|
966
|
-
uriTokens.push(components.port
|
966
|
+
uriTokens.push(String(components.port));
|
967
967
|
}
|
968
968
|
return uriTokens.length ? uriTokens.join("") : undefined;
|
969
969
|
}
|
@@ -1166,8 +1166,9 @@ var handler = {
|
|
1166
1166
|
return components;
|
1167
1167
|
},
|
1168
1168
|
serialize: function serialize(components, options) {
|
1169
|
+
var secure = String(components.scheme).toLowerCase() === "https";
|
1169
1170
|
//normalize the default port
|
1170
|
-
if (components.port === (
|
1171
|
+
if (components.port === (secure ? 443 : 80) || components.port === "") {
|
1171
1172
|
components.port = undefined;
|
1172
1173
|
}
|
1173
1174
|
//normalize the empty path
|
@@ -1188,6 +1189,57 @@ var handler$1 = {
|
|
1188
1189
|
serialize: handler.serialize
|
1189
1190
|
};
|
1190
1191
|
|
1192
|
+
function isSecure(wsComponents) {
|
1193
|
+
return typeof wsComponents.secure === 'boolean' ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === "wss";
|
1194
|
+
}
|
1195
|
+
//RFC 6455
|
1196
|
+
var handler$2 = {
|
1197
|
+
scheme: "ws",
|
1198
|
+
domainHost: true,
|
1199
|
+
parse: function parse(components, options) {
|
1200
|
+
var wsComponents = components;
|
1201
|
+
//indicate if the secure flag is set
|
1202
|
+
wsComponents.secure = isSecure(wsComponents);
|
1203
|
+
//construct resouce name
|
1204
|
+
wsComponents.resourceName = (wsComponents.path || '/') + (wsComponents.query ? '?' + wsComponents.query : '');
|
1205
|
+
wsComponents.path = undefined;
|
1206
|
+
wsComponents.query = undefined;
|
1207
|
+
return wsComponents;
|
1208
|
+
},
|
1209
|
+
serialize: function serialize(wsComponents, options) {
|
1210
|
+
//normalize the default port
|
1211
|
+
if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === "") {
|
1212
|
+
wsComponents.port = undefined;
|
1213
|
+
}
|
1214
|
+
//ensure scheme matches secure flag
|
1215
|
+
if (typeof wsComponents.secure === 'boolean') {
|
1216
|
+
wsComponents.scheme = wsComponents.secure ? 'wss' : 'ws';
|
1217
|
+
wsComponents.secure = undefined;
|
1218
|
+
}
|
1219
|
+
//reconstruct path from resource name
|
1220
|
+
if (wsComponents.resourceName) {
|
1221
|
+
var _wsComponents$resourc = wsComponents.resourceName.split('?'),
|
1222
|
+
_wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2),
|
1223
|
+
path = _wsComponents$resourc2[0],
|
1224
|
+
query = _wsComponents$resourc2[1];
|
1225
|
+
|
1226
|
+
wsComponents.path = path && path !== '/' ? path : undefined;
|
1227
|
+
wsComponents.query = query;
|
1228
|
+
wsComponents.resourceName = undefined;
|
1229
|
+
}
|
1230
|
+
//forbid fragment component
|
1231
|
+
wsComponents.fragment = undefined;
|
1232
|
+
return wsComponents;
|
1233
|
+
}
|
1234
|
+
};
|
1235
|
+
|
1236
|
+
var handler$3 = {
|
1237
|
+
scheme: "wss",
|
1238
|
+
domainHost: handler$2.domainHost,
|
1239
|
+
parse: handler$2.parse,
|
1240
|
+
serialize: handler$2.serialize
|
1241
|
+
};
|
1242
|
+
|
1191
1243
|
var O = {};
|
1192
1244
|
var isIRI = true;
|
1193
1245
|
//RFC 3986
|
@@ -1218,7 +1270,7 @@ function decodeUnreserved(str) {
|
|
1218
1270
|
var decStr = pctDecChars(str);
|
1219
1271
|
return !decStr.match(UNRESERVED) ? str : decStr;
|
1220
1272
|
}
|
1221
|
-
var handler$
|
1273
|
+
var handler$4 = {
|
1222
1274
|
scheme: "mailto",
|
1223
1275
|
parse: function parse$$1(components, options) {
|
1224
1276
|
var mailtoComponents = components;
|
@@ -1306,7 +1358,7 @@ var handler$2 = {
|
|
1306
1358
|
|
1307
1359
|
var URN_PARSE = /^([^\:]+)\:(.*)/;
|
1308
1360
|
//RFC 2141
|
1309
|
-
var handler$
|
1361
|
+
var handler$5 = {
|
1310
1362
|
scheme: "urn",
|
1311
1363
|
parse: function parse$$1(components, options) {
|
1312
1364
|
var matches = components.path && components.path.match(URN_PARSE);
|
@@ -1345,7 +1397,7 @@ var handler$3 = {
|
|
1345
1397
|
|
1346
1398
|
var UUID = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;
|
1347
1399
|
//RFC 4122
|
1348
|
-
var handler$
|
1400
|
+
var handler$6 = {
|
1349
1401
|
scheme: "urn:uuid",
|
1350
1402
|
parse: function parse(urnComponents, options) {
|
1351
1403
|
var uuidComponents = urnComponents;
|
@@ -1369,6 +1421,8 @@ SCHEMES[handler$1.scheme] = handler$1;
|
|
1369
1421
|
SCHEMES[handler$2.scheme] = handler$2;
|
1370
1422
|
SCHEMES[handler$3.scheme] = handler$3;
|
1371
1423
|
SCHEMES[handler$4.scheme] = handler$4;
|
1424
|
+
SCHEMES[handler$5.scheme] = handler$5;
|
1425
|
+
SCHEMES[handler$6.scheme] = handler$6;
|
1372
1426
|
|
1373
1427
|
exports.SCHEMES = SCHEMES;
|
1374
1428
|
exports.pctEncChar = pctEncChar;
|