trusty-cms 5.1.0 → 5.2.2

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trusty-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - TrustyCms CMS dev team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-20 00:00:00.000000000 Z
11
+ date: 2022-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activestorage-validator
@@ -601,10 +601,6 @@ files:
601
601
  - app/assets/javascripts/admin/custom_file_upload.js
602
602
  - app/assets/javascripts/admin/datecheck.js
603
603
  - app/assets/javascripts/admin/dropdown.js
604
- - app/assets/javascripts/admin/jquery.cookie.js
605
- - app/assets/javascripts/admin/jquery.fileupload.js
606
- - app/assets/javascripts/admin/jquery.iframe-transport.js
607
- - app/assets/javascripts/admin/jquery.treetable.js
608
604
  - app/assets/javascripts/admin/jquery.validate.min.js
609
605
  - app/assets/javascripts/admin/modernizr.js
610
606
  - app/assets/javascripts/admin/more-or-less.js
@@ -783,7 +779,6 @@ files:
783
779
  - app/views/admin/snippets/index.html.haml
784
780
  - app/views/admin/snippets/new.html.haml
785
781
  - app/views/admin/snippets/remove.html.haml
786
- - app/views/admin/users/_avatar.html.haml
787
782
  - app/views/admin/users/_choose_site.html.haml
788
783
  - app/views/admin/users/_form.html.haml
789
784
  - app/views/admin/users/_password_fields.html.haml
@@ -1174,51 +1169,51 @@ specification_version: 4
1174
1169
  summary: A no-fluff content management system designed for small teams.
1175
1170
  test_files:
1176
1171
  - spec/spec_helper.rb
1177
- - spec/controllers/application_controller_spec.rb
1178
- - spec/controllers/users_controller_spec.rb
1179
- - spec/models/layout_spec.rb
1180
- - spec/ci/database.mysql.yml
1172
+ - spec/support/custom_actions.rb
1181
1173
  - spec/fixtures/users.yml
1182
- - spec/features/config_spec.rb
1183
- - spec/features/layouts_spec.rb
1184
- - spec/features/pages_spec.rb
1185
- - spec/dummy/db/schema.rb
1186
- - spec/dummy/config/application.rb
1187
- - spec/dummy/config/secrets.yml
1188
- - spec/dummy/config/environment.rb
1174
+ - spec/dummy/package.json
1175
+ - spec/dummy/yarn.lock
1176
+ - spec/dummy/bin/rake
1177
+ - spec/dummy/bin/bundle
1178
+ - spec/dummy/bin/rails
1179
+ - spec/dummy/bin/setup
1180
+ - spec/dummy/Rakefile
1189
1181
  - spec/dummy/config/boot.rb
1190
- - spec/dummy/config/database.yml
1191
- - spec/dummy/config/locales/en.yml
1182
+ - spec/dummy/config/secrets.yml
1183
+ - spec/dummy/config/application.rb
1184
+ - spec/dummy/config/routes.rb
1192
1185
  - spec/dummy/config/environments/development.rb
1193
- - spec/dummy/config/environments/production.rb
1194
1186
  - spec/dummy/config/environments/test.rb
1195
- - spec/dummy/config/initializers/backtrace_silencers.rb
1187
+ - spec/dummy/config/environments/production.rb
1188
+ - spec/dummy/config/database.yml
1189
+ - spec/dummy/config/environment.rb
1190
+ - spec/dummy/config/locales/en.yml
1196
1191
  - spec/dummy/config/initializers/assets.rb
1197
- - spec/dummy/config/initializers/wrap_parameters.rb
1198
- - spec/dummy/config/initializers/inflections.rb
1192
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
1199
1193
  - spec/dummy/config/initializers/mime_types.rb
1200
- - spec/dummy/config/initializers/session_store.rb
1194
+ - spec/dummy/config/initializers/inflections.rb
1201
1195
  - spec/dummy/config/initializers/cookies_serializer.rb
1202
- - spec/dummy/config/initializers/filter_parameter_logging.rb
1203
1196
  - spec/dummy/config/initializers/trusty_cms_config.rb
1204
- - spec/dummy/config/routes.rb
1197
+ - spec/dummy/config/initializers/backtrace_silencers.rb
1198
+ - spec/dummy/config/initializers/session_store.rb
1199
+ - spec/dummy/config/initializers/wrap_parameters.rb
1205
1200
  - spec/dummy/README.rdoc
1206
- - spec/dummy/yarn.lock
1207
- - spec/dummy/public/404.html
1208
- - spec/dummy/public/500.html
1201
+ - spec/dummy/app/assets/config/manifest.js
1202
+ - spec/dummy/db/schema.rb
1209
1203
  - spec/dummy/public/422.html
1204
+ - spec/dummy/public/500.html
1210
1205
  - spec/dummy/public/favicon.ico
1211
- - spec/dummy/Rakefile
1212
- - spec/dummy/package.json
1206
+ - spec/dummy/public/404.html
1213
1207
  - spec/dummy/config.ru
1214
- - spec/dummy/bin/setup
1215
- - spec/dummy/bin/rails
1216
- - spec/dummy/bin/rake
1217
- - spec/dummy/bin/bundle
1218
- - spec/dummy/app/assets/config/manifest.js
1219
- - spec/factories/page_part.rb
1208
+ - spec/factories/layout.rb
1220
1209
  - spec/factories/page.rb
1210
+ - spec/factories/page_part.rb
1221
1211
  - spec/factories/user.rb
1222
- - spec/factories/layout.rb
1212
+ - spec/controllers/application_controller_spec.rb
1213
+ - spec/controllers/users_controller_spec.rb
1223
1214
  - spec/rails_helper.rb
1224
- - spec/support/custom_actions.rb
1215
+ - spec/features/layouts_spec.rb
1216
+ - spec/features/pages_spec.rb
1217
+ - spec/features/config_spec.rb
1218
+ - spec/models/layout_spec.rb
1219
+ - spec/ci/database.mysql.yml
@@ -1,117 +0,0 @@
1
- /*!
2
- * jQuery Cookie Plugin v1.4.1
3
- * https://github.com/carhartl/jquery-cookie
4
- *
5
- * Copyright 2006, 2014 Klaus Hartl
6
- * Released under the MIT license
7
- */
8
- (function (factory) {
9
- if (typeof define === 'function' && define.amd) {
10
- // AMD
11
- define(['jquery'], factory);
12
- } else if (typeof exports === 'object') {
13
- // CommonJS
14
- factory(require('jquery'));
15
- } else {
16
- // Browser globals
17
- factory(jQuery);
18
- }
19
- }(function ($) {
20
-
21
- var pluses = /\+/g;
22
-
23
- function encode(s) {
24
- return config.raw ? s : encodeURIComponent(s);
25
- }
26
-
27
- function decode(s) {
28
- return config.raw ? s : decodeURIComponent(s);
29
- }
30
-
31
- function stringifyCookieValue(value) {
32
- return encode(config.json ? JSON.stringify(value) : String(value));
33
- }
34
-
35
- function parseCookieValue(s) {
36
- if (s.indexOf('"') === 0) {
37
- // This is a quoted cookie as according to RFC2068, unescape...
38
- s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
39
- }
40
-
41
- try {
42
- // Replace server-side written pluses with spaces.
43
- // If we can't decode the cookie, ignore it, it's unusable.
44
- // If we can't parse the cookie, ignore it, it's unusable.
45
- s = decodeURIComponent(s.replace(pluses, ' '));
46
- return config.json ? JSON.parse(s) : s;
47
- } catch(e) {}
48
- }
49
-
50
- function read(s, converter) {
51
- var value = config.raw ? s : parseCookieValue(s);
52
- return $.isFunction(converter) ? converter(value) : value;
53
- }
54
-
55
- var config = $.cookie = function (key, value, options) {
56
-
57
- // Write
58
-
59
- if (arguments.length > 1 && !$.isFunction(value)) {
60
- options = $.extend({}, config.defaults, options);
61
-
62
- if (typeof options.expires === 'number') {
63
- var days = options.expires, t = options.expires = new Date();
64
- t.setTime(+t + days * 864e+5);
65
- }
66
-
67
- return (document.cookie = [
68
- encode(key), '=', stringifyCookieValue(value),
69
- options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
70
- options.path ? '; path=' + options.path : '',
71
- options.domain ? '; domain=' + options.domain : '',
72
- options.secure ? '; secure' : ''
73
- ].join(''));
74
- }
75
-
76
- // Read
77
-
78
- var result = key ? undefined : {};
79
-
80
- // To prevent the for loop in the first place assign an empty array
81
- // in case there are no cookies at all. Also prevents odd result when
82
- // calling $.cookie().
83
- var cookies = document.cookie ? document.cookie.split('; ') : [];
84
-
85
- for (var i = 0, l = cookies.length; i < l; i++) {
86
- var parts = cookies[i].split('=');
87
- var name = decode(parts.shift());
88
- var cookie = parts.join('=');
89
-
90
- if (key && key === name) {
91
- // If second argument (value) is a function it's a converter...
92
- result = read(cookie, value);
93
- break;
94
- }
95
-
96
- // Prevent storing a cookie that we couldn't decode.
97
- if (!key && (cookie = read(cookie)) !== undefined) {
98
- result[name] = cookie;
99
- }
100
- }
101
-
102
- return result;
103
- };
104
-
105
- config.defaults = {};
106
-
107
- $.removeCookie = function (key, options) {
108
- if ($.cookie(key) === undefined) {
109
- return false;
110
- }
111
-
112
- // Must not alter options, thus extending a fresh object...
113
- $.cookie(key, '', $.extend({}, options, { expires: -1 }));
114
- return !$.cookie(key);
115
- };
116
-
117
- }));