trusty-cms 4.3.4 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -1
- data/Gemfile.lock +22 -12
- data/app/assets/stylesheets/admin/partials/_content.scss +1 -0
- data/app/controllers/admin/assets_controller.rb +5 -1
- data/app/models/asset.rb +39 -48
- data/app/models/asset_type.rb +6 -2
- data/app/views/admin/assets/edit.html.haml +5 -3
- data/config/database.yml +2 -2
- data/config/locales/en.yml +1 -0
- data/coverage/index.html +1 -1
- data/lib/trusty_cms/deprecation.rb +13 -0
- data/lib/trusty_cms.rb +1 -1
- data/node_modules/path-parse/index.js +17 -35
- data/node_modules/path-parse/package.json +1 -1
- data/node_modules/postcss/CHANGELOG.md +27 -0
- data/node_modules/postcss/README.md +21 -0
- data/node_modules/postcss/lib/at-rule.js +2 -4
- data/node_modules/postcss/lib/comment.js +2 -4
- data/node_modules/postcss/lib/container.js +27 -122
- data/node_modules/postcss/lib/css-syntax-error.js +5 -7
- data/node_modules/postcss/lib/declaration.js +2 -4
- data/node_modules/postcss/lib/input.js +3 -5
- data/node_modules/postcss/lib/lazy-result.js +10 -17
- data/node_modules/postcss/lib/map-generator.js +10 -17
- data/node_modules/postcss/lib/node.js +2 -4
- data/node_modules/postcss/lib/parser.js +2 -4
- data/node_modules/postcss/lib/postcss.d.ts +25 -19
- data/node_modules/postcss/lib/previous-map.js +17 -6
- data/node_modules/postcss/lib/processor.js +16 -15
- data/node_modules/postcss/lib/result.js +2 -4
- data/node_modules/postcss/lib/root.js +10 -17
- data/node_modules/postcss/lib/rule.js +2 -4
- data/node_modules/postcss/lib/stringifier.js +2 -4
- data/node_modules/postcss/lib/warning.js +2 -4
- data/node_modules/postcss/package.json +16 -12
- data/spec/dummy/log/test.log +542 -443
- data/spec/dummy/tmp/cache/747/A70/TrustyCms%3A%3AConfig +0 -0
- data/spec/dummy/tmp/cache/85C/FA0/TrustyCms.cache_mtime +1 -1
- data/trusty_cms.gemspec +2 -1
- data/vendor/extensions/clipped-extension/lib/clipped/engine.rb +1 -1
- metadata +31 -307
- data/config/initializers/interpolation.rb +0 -6
- data/node_modules/path-parse/test.js +0 -77
- data/node_modules/postcss/docs/api/assets/scripts.min.js +0 -8
- data/node_modules/postcss/docs/api/assets/styles.min.css +0 -1
- data/node_modules/postcss/docs/api/index.html +0 -22716
- data/spec/dummy/log/development.log +0 -158
- data/spec/dummy/node_modules/jquery/AUTHORS.txt +0 -327
- data/spec/dummy/node_modules/jquery/LICENSE.txt +0 -20
- data/spec/dummy/node_modules/jquery/README.md +0 -62
- data/spec/dummy/node_modules/jquery/bower.json +0 -14
- data/spec/dummy/node_modules/jquery/dist/jquery.js +0 -10872
- data/spec/dummy/node_modules/jquery/dist/jquery.min.js +0 -2
- data/spec/dummy/node_modules/jquery/dist/jquery.min.map +0 -1
- data/spec/dummy/node_modules/jquery/dist/jquery.slim.js +0 -8777
- data/spec/dummy/node_modules/jquery/dist/jquery.slim.min.js +0 -2
- data/spec/dummy/node_modules/jquery/dist/jquery.slim.min.map +0 -1
- data/spec/dummy/node_modules/jquery/external/sizzle/LICENSE.txt +0 -36
- data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.js +0 -2478
- data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.min.js +0 -3
- data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.min.map +0 -1
- data/spec/dummy/node_modules/jquery/package.json +0 -117
- data/spec/dummy/node_modules/jquery/src/ajax/jsonp.js +0 -103
- data/spec/dummy/node_modules/jquery/src/ajax/load.js +0 -77
- data/spec/dummy/node_modules/jquery/src/ajax/script.js +0 -74
- data/spec/dummy/node_modules/jquery/src/ajax/var/location.js +0 -5
- data/spec/dummy/node_modules/jquery/src/ajax/var/nonce.js +0 -5
- data/spec/dummy/node_modules/jquery/src/ajax/var/rquery.js +0 -5
- data/spec/dummy/node_modules/jquery/src/ajax/xhr.js +0 -170
- data/spec/dummy/node_modules/jquery/src/ajax.js +0 -873
- data/spec/dummy/node_modules/jquery/src/attributes/attr.js +0 -141
- data/spec/dummy/node_modules/jquery/src/attributes/classes.js +0 -186
- data/spec/dummy/node_modules/jquery/src/attributes/prop.js +0 -143
- data/spec/dummy/node_modules/jquery/src/attributes/support.js +0 -33
- data/spec/dummy/node_modules/jquery/src/attributes/val.js +0 -191
- data/spec/dummy/node_modules/jquery/src/attributes.js +0 -13
- data/spec/dummy/node_modules/jquery/src/callbacks.js +0 -236
- data/spec/dummy/node_modules/jquery/src/core/DOMEval.js +0 -43
- data/spec/dummy/node_modules/jquery/src/core/access.js +0 -72
- data/spec/dummy/node_modules/jquery/src/core/camelCase.js +0 -23
- data/spec/dummy/node_modules/jquery/src/core/init.js +0 -129
- data/spec/dummy/node_modules/jquery/src/core/isAttached.js +0 -26
- data/spec/dummy/node_modules/jquery/src/core/nodeName.js +0 -13
- data/spec/dummy/node_modules/jquery/src/core/parseHTML.js +0 -65
- data/spec/dummy/node_modules/jquery/src/core/parseXML.js +0 -30
- data/spec/dummy/node_modules/jquery/src/core/ready-no-deferred.js +0 -97
- data/spec/dummy/node_modules/jquery/src/core/ready.js +0 -86
- data/spec/dummy/node_modules/jquery/src/core/readyException.js +0 -13
- data/spec/dummy/node_modules/jquery/src/core/stripAndCollapse.js +0 -14
- data/spec/dummy/node_modules/jquery/src/core/support.js +0 -20
- data/spec/dummy/node_modules/jquery/src/core/toType.js +0 -20
- data/spec/dummy/node_modules/jquery/src/core/var/rsingleTag.js +0 -7
- data/spec/dummy/node_modules/jquery/src/core.js +0 -400
- data/spec/dummy/node_modules/jquery/src/css/addGetHookIf.js +0 -26
- data/spec/dummy/node_modules/jquery/src/css/adjustCSS.js +0 -74
- data/spec/dummy/node_modules/jquery/src/css/curCSS.js +0 -65
- data/spec/dummy/node_modules/jquery/src/css/finalPropName.js +0 -42
- data/spec/dummy/node_modules/jquery/src/css/hiddenVisibleSelectors.js +0 -15
- data/spec/dummy/node_modules/jquery/src/css/showHide.js +0 -105
- data/spec/dummy/node_modules/jquery/src/css/support.js +0 -133
- data/spec/dummy/node_modules/jquery/src/css/var/cssExpand.js +0 -5
- data/spec/dummy/node_modules/jquery/src/css/var/getStyles.js +0 -17
- data/spec/dummy/node_modules/jquery/src/css/var/isHiddenWithinTree.js +0 -34
- data/spec/dummy/node_modules/jquery/src/css/var/rboxStyle.js +0 -7
- data/spec/dummy/node_modules/jquery/src/css/var/rnumnonpx.js +0 -7
- data/spec/dummy/node_modules/jquery/src/css/var/swap.js +0 -26
- data/spec/dummy/node_modules/jquery/src/css.js +0 -494
- data/spec/dummy/node_modules/jquery/src/data/Data.js +0 -162
- data/spec/dummy/node_modules/jquery/src/data/var/acceptData.js +0 -19
- data/spec/dummy/node_modules/jquery/src/data/var/dataPriv.js +0 -7
- data/spec/dummy/node_modules/jquery/src/data/var/dataUser.js +0 -7
- data/spec/dummy/node_modules/jquery/src/data.js +0 -180
- data/spec/dummy/node_modules/jquery/src/deferred/exceptionHook.js +0 -21
- data/spec/dummy/node_modules/jquery/src/deferred.js +0 -399
- data/spec/dummy/node_modules/jquery/src/deprecated/ajax-event-alias.js +0 -22
- data/spec/dummy/node_modules/jquery/src/deprecated/event.js +0 -48
- data/spec/dummy/node_modules/jquery/src/deprecated.js +0 -87
- data/spec/dummy/node_modules/jquery/src/dimensions.js +0 -57
- data/spec/dummy/node_modules/jquery/src/effects/Tween.js +0 -125
- data/spec/dummy/node_modules/jquery/src/effects/animatedSelector.js +0 -15
- data/spec/dummy/node_modules/jquery/src/effects.js +0 -701
- data/spec/dummy/node_modules/jquery/src/event/focusin.js +0 -58
- data/spec/dummy/node_modules/jquery/src/event/support.js +0 -11
- data/spec/dummy/node_modules/jquery/src/event/trigger.js +0 -201
- data/spec/dummy/node_modules/jquery/src/event.js +0 -892
- data/spec/dummy/node_modules/jquery/src/exports/amd.js +0 -26
- data/spec/dummy/node_modules/jquery/src/exports/global.js +0 -34
- data/spec/dummy/node_modules/jquery/src/jquery.js +0 -41
- data/spec/dummy/node_modules/jquery/src/manipulation/_evalUrl.js +0 -32
- data/spec/dummy/node_modules/jquery/src/manipulation/buildFragment.js +0 -106
- data/spec/dummy/node_modules/jquery/src/manipulation/getAll.js +0 -32
- data/spec/dummy/node_modules/jquery/src/manipulation/setGlobalEval.js +0 -22
- data/spec/dummy/node_modules/jquery/src/manipulation/support.js +0 -41
- data/spec/dummy/node_modules/jquery/src/manipulation/var/rscriptType.js +0 -5
- data/spec/dummy/node_modules/jquery/src/manipulation/var/rtagName.js +0 -8
- data/spec/dummy/node_modules/jquery/src/manipulation/wrapMap.js +0 -30
- data/spec/dummy/node_modules/jquery/src/manipulation.js +0 -480
- data/spec/dummy/node_modules/jquery/src/offset.js +0 -238
- data/spec/dummy/node_modules/jquery/src/queue/delay.js +0 -24
- data/spec/dummy/node_modules/jquery/src/queue.js +0 -145
- data/spec/dummy/node_modules/jquery/src/selector-native.js +0 -241
- data/spec/dummy/node_modules/jquery/src/selector-sizzle.js +0 -19
- data/spec/dummy/node_modules/jquery/src/selector.js +0 -3
- data/spec/dummy/node_modules/jquery/src/serialize.js +0 -136
- data/spec/dummy/node_modules/jquery/src/traversing/findFilter.js +0 -97
- data/spec/dummy/node_modules/jquery/src/traversing/var/dir.js +0 -22
- data/spec/dummy/node_modules/jquery/src/traversing/var/rneedsContext.js +0 -8
- data/spec/dummy/node_modules/jquery/src/traversing/var/siblings.js +0 -17
- data/spec/dummy/node_modules/jquery/src/traversing.js +0 -198
- data/spec/dummy/node_modules/jquery/src/var/ObjectFunctionString.js +0 -7
- data/spec/dummy/node_modules/jquery/src/var/arr.js +0 -5
- data/spec/dummy/node_modules/jquery/src/var/class2type.js +0 -6
- data/spec/dummy/node_modules/jquery/src/var/document.js +0 -5
- data/spec/dummy/node_modules/jquery/src/var/documentElement.js +0 -7
- data/spec/dummy/node_modules/jquery/src/var/flat.js +0 -16
- data/spec/dummy/node_modules/jquery/src/var/fnToString.js +0 -7
- data/spec/dummy/node_modules/jquery/src/var/getProto.js +0 -5
- data/spec/dummy/node_modules/jquery/src/var/hasOwn.js +0 -7
- data/spec/dummy/node_modules/jquery/src/var/indexOf.js +0 -7
- data/spec/dummy/node_modules/jquery/src/var/isFunction.js +0 -13
- data/spec/dummy/node_modules/jquery/src/var/isWindow.js +0 -8
- data/spec/dummy/node_modules/jquery/src/var/pnum.js +0 -5
- data/spec/dummy/node_modules/jquery/src/var/push.js +0 -7
- data/spec/dummy/node_modules/jquery/src/var/rcheckableType.js +0 -5
- data/spec/dummy/node_modules/jquery/src/var/rcssNum.js +0 -9
- data/spec/dummy/node_modules/jquery/src/var/rnothtmlwhite.js +0 -8
- data/spec/dummy/node_modules/jquery/src/var/slice.js +0 -7
- data/spec/dummy/node_modules/jquery/src/var/support.js +0 -6
- data/spec/dummy/node_modules/jquery/src/var/toString.js +0 -7
- data/spec/dummy/node_modules/jquery/src/wrap.js +0 -78
- data/spec/dummy/node_modules/jquery-ui-bundle/AUTHORS.txt +0 -333
- data/spec/dummy/node_modules/jquery-ui-bundle/LICENSE.txt +0 -43
- data/spec/dummy/node_modules/jquery-ui-bundle/external/jquery/jquery.js +0 -11008
- data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_444444_256x240.png +0 -0
- data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_555555_256x240.png +0 -0
- data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_777620_256x240.png +0 -0
- data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_777777_256x240.png +0 -0
- data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_cc0000_256x240.png +0 -0
- data/spec/dummy/node_modules/jquery-ui-bundle/images/ui-icons_ffffff_256x240.png +0 -0
- data/spec/dummy/node_modules/jquery-ui-bundle/index.html +0 -559
- data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.css +0 -1312
- data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.js +0 -18706
- data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.min.css +0 -7
- data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.min.js +0 -13
- data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.structure.css +0 -886
- data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.structure.min.css +0 -5
- data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.theme.css +0 -443
- data/spec/dummy/node_modules/jquery-ui-bundle/jquery-ui.theme.min.css +0 -5
- data/spec/dummy/node_modules/jquery-ui-bundle/package.json +0 -33
- data/spec/dummy/node_modules/jquery-ujs/CONTRIBUTING.md +0 -109
- data/spec/dummy/node_modules/jquery-ujs/MIT-LICENSE +0 -20
- data/spec/dummy/node_modules/jquery-ujs/README.md +0 -86
- data/spec/dummy/node_modules/jquery-ujs/RELEASE.md +0 -23
- data/spec/dummy/node_modules/jquery-ujs/bower.json +0 -19
- data/spec/dummy/node_modules/jquery-ujs/package.json +0 -26
- data/spec/dummy/node_modules/jquery-ujs/src/rails.js +0 -555
@@ -1,170 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"../core",
|
3
|
-
"../var/support",
|
4
|
-
"../ajax"
|
5
|
-
], function( jQuery, support ) {
|
6
|
-
|
7
|
-
"use strict";
|
8
|
-
|
9
|
-
jQuery.ajaxSettings.xhr = function() {
|
10
|
-
try {
|
11
|
-
return new window.XMLHttpRequest();
|
12
|
-
} catch ( e ) {}
|
13
|
-
};
|
14
|
-
|
15
|
-
var xhrSuccessStatus = {
|
16
|
-
|
17
|
-
// File protocol always yields status code 0, assume 200
|
18
|
-
0: 200,
|
19
|
-
|
20
|
-
// Support: IE <=9 only
|
21
|
-
// #1450: sometimes IE returns 1223 when it should be 204
|
22
|
-
1223: 204
|
23
|
-
},
|
24
|
-
xhrSupported = jQuery.ajaxSettings.xhr();
|
25
|
-
|
26
|
-
support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
|
27
|
-
support.ajax = xhrSupported = !!xhrSupported;
|
28
|
-
|
29
|
-
jQuery.ajaxTransport( function( options ) {
|
30
|
-
var callback, errorCallback;
|
31
|
-
|
32
|
-
// Cross domain only allowed if supported through XMLHttpRequest
|
33
|
-
if ( support.cors || xhrSupported && !options.crossDomain ) {
|
34
|
-
return {
|
35
|
-
send: function( headers, complete ) {
|
36
|
-
var i,
|
37
|
-
xhr = options.xhr();
|
38
|
-
|
39
|
-
xhr.open(
|
40
|
-
options.type,
|
41
|
-
options.url,
|
42
|
-
options.async,
|
43
|
-
options.username,
|
44
|
-
options.password
|
45
|
-
);
|
46
|
-
|
47
|
-
// Apply custom fields if provided
|
48
|
-
if ( options.xhrFields ) {
|
49
|
-
for ( i in options.xhrFields ) {
|
50
|
-
xhr[ i ] = options.xhrFields[ i ];
|
51
|
-
}
|
52
|
-
}
|
53
|
-
|
54
|
-
// Override mime type if needed
|
55
|
-
if ( options.mimeType && xhr.overrideMimeType ) {
|
56
|
-
xhr.overrideMimeType( options.mimeType );
|
57
|
-
}
|
58
|
-
|
59
|
-
// X-Requested-With header
|
60
|
-
// For cross-domain requests, seeing as conditions for a preflight are
|
61
|
-
// akin to a jigsaw puzzle, we simply never set it to be sure.
|
62
|
-
// (it can always be set on a per-request basis or even using ajaxSetup)
|
63
|
-
// For same-domain requests, won't change header if already provided.
|
64
|
-
if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) {
|
65
|
-
headers[ "X-Requested-With" ] = "XMLHttpRequest";
|
66
|
-
}
|
67
|
-
|
68
|
-
// Set headers
|
69
|
-
for ( i in headers ) {
|
70
|
-
xhr.setRequestHeader( i, headers[ i ] );
|
71
|
-
}
|
72
|
-
|
73
|
-
// Callback
|
74
|
-
callback = function( type ) {
|
75
|
-
return function() {
|
76
|
-
if ( callback ) {
|
77
|
-
callback = errorCallback = xhr.onload =
|
78
|
-
xhr.onerror = xhr.onabort = xhr.ontimeout =
|
79
|
-
xhr.onreadystatechange = null;
|
80
|
-
|
81
|
-
if ( type === "abort" ) {
|
82
|
-
xhr.abort();
|
83
|
-
} else if ( type === "error" ) {
|
84
|
-
|
85
|
-
// Support: IE <=9 only
|
86
|
-
// On a manual native abort, IE9 throws
|
87
|
-
// errors on any property access that is not readyState
|
88
|
-
if ( typeof xhr.status !== "number" ) {
|
89
|
-
complete( 0, "error" );
|
90
|
-
} else {
|
91
|
-
complete(
|
92
|
-
|
93
|
-
// File: protocol always yields status 0; see #8605, #14207
|
94
|
-
xhr.status,
|
95
|
-
xhr.statusText
|
96
|
-
);
|
97
|
-
}
|
98
|
-
} else {
|
99
|
-
complete(
|
100
|
-
xhrSuccessStatus[ xhr.status ] || xhr.status,
|
101
|
-
xhr.statusText,
|
102
|
-
|
103
|
-
// Support: IE <=9 only
|
104
|
-
// IE9 has no XHR2 but throws on binary (trac-11426)
|
105
|
-
// For XHR2 non-text, let the caller handle it (gh-2498)
|
106
|
-
( xhr.responseType || "text" ) !== "text" ||
|
107
|
-
typeof xhr.responseText !== "string" ?
|
108
|
-
{ binary: xhr.response } :
|
109
|
-
{ text: xhr.responseText },
|
110
|
-
xhr.getAllResponseHeaders()
|
111
|
-
);
|
112
|
-
}
|
113
|
-
}
|
114
|
-
};
|
115
|
-
};
|
116
|
-
|
117
|
-
// Listen to events
|
118
|
-
xhr.onload = callback();
|
119
|
-
errorCallback = xhr.onerror = xhr.ontimeout = callback( "error" );
|
120
|
-
|
121
|
-
// Support: IE 9 only
|
122
|
-
// Use onreadystatechange to replace onabort
|
123
|
-
// to handle uncaught aborts
|
124
|
-
if ( xhr.onabort !== undefined ) {
|
125
|
-
xhr.onabort = errorCallback;
|
126
|
-
} else {
|
127
|
-
xhr.onreadystatechange = function() {
|
128
|
-
|
129
|
-
// Check readyState before timeout as it changes
|
130
|
-
if ( xhr.readyState === 4 ) {
|
131
|
-
|
132
|
-
// Allow onerror to be called first,
|
133
|
-
// but that will not handle a native abort
|
134
|
-
// Also, save errorCallback to a variable
|
135
|
-
// as xhr.onerror cannot be accessed
|
136
|
-
window.setTimeout( function() {
|
137
|
-
if ( callback ) {
|
138
|
-
errorCallback();
|
139
|
-
}
|
140
|
-
} );
|
141
|
-
}
|
142
|
-
};
|
143
|
-
}
|
144
|
-
|
145
|
-
// Create the abort callback
|
146
|
-
callback = callback( "abort" );
|
147
|
-
|
148
|
-
try {
|
149
|
-
|
150
|
-
// Do send the request (this may raise an exception)
|
151
|
-
xhr.send( options.hasContent && options.data || null );
|
152
|
-
} catch ( e ) {
|
153
|
-
|
154
|
-
// #14683: Only rethrow if this hasn't been notified as an error yet
|
155
|
-
if ( callback ) {
|
156
|
-
throw e;
|
157
|
-
}
|
158
|
-
}
|
159
|
-
},
|
160
|
-
|
161
|
-
abort: function() {
|
162
|
-
if ( callback ) {
|
163
|
-
callback();
|
164
|
-
}
|
165
|
-
}
|
166
|
-
};
|
167
|
-
}
|
168
|
-
} );
|
169
|
-
|
170
|
-
} );
|