trusty-cms 5.2.3 → 5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/app/controllers/admin/assets_controller.rb +3 -2
- data/lib/trusty_cms.rb +1 -1
- metadata +39 -39
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38fabf49ce5ba5526134087066b03104bffd2068b1cae9fff879905e67ce1185
|
4
|
+
data.tar.gz: 8272cba43aef447d20d5e7320998c7f61a081cd2194f59d12419a8047f33f87d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c907cb268f754852fa624b73be17dfb7d428b00aa9259b5557a3050ca7809ff618f37375b6876c085bc44b4ae6df981d84ae2943ba0d2b9e8a7f1fe33fb13620
|
7
|
+
data.tar.gz: 9986b6a5c0873b5f6b51581be2028146e3c98a5f0994de24d90a607377bb68d99ff554e9b7dbbbc3e891baf5ddbe88e1aeda5e7aa8c33317e3c1b65f3c4b6d1d
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
trusty-cms (5.
|
4
|
+
trusty-cms (5.3)
|
5
5
|
RedCloth (= 4.3.2)
|
6
6
|
activestorage-validator
|
7
7
|
acts_as_list (>= 0.9.5, < 1.1.0)
|
@@ -198,7 +198,6 @@ GEM
|
|
198
198
|
mime-types-data (3.2021.0225)
|
199
199
|
mini_magick (4.11.0)
|
200
200
|
mini_mime (1.1.2)
|
201
|
-
mini_portile2 (2.6.1)
|
202
201
|
mini_racer (0.6.2)
|
203
202
|
libv8-node (~> 16.10.0.0)
|
204
203
|
minitest (5.15.0)
|
@@ -206,8 +205,9 @@ GEM
|
|
206
205
|
multipart-post (2.1.1)
|
207
206
|
mysql2 (0.5.3)
|
208
207
|
nio4r (2.5.8)
|
209
|
-
nokogiri (1.12.5)
|
210
|
-
|
208
|
+
nokogiri (1.12.5-x86_64-darwin)
|
209
|
+
racc (~> 1.4)
|
210
|
+
nokogiri (1.12.5-x86_64-linux)
|
211
211
|
racc (~> 1.4)
|
212
212
|
orm_adapter (0.5.0)
|
213
213
|
poltergeist (1.18.1)
|
@@ -364,4 +364,4 @@ DEPENDENCIES
|
|
364
364
|
trustygems (~> 0.2.0)
|
365
365
|
|
366
366
|
BUNDLED WITH
|
367
|
-
2.
|
367
|
+
2.3.4
|
@@ -34,7 +34,7 @@ class Admin::AssetsController < Admin::ResourceController
|
|
34
34
|
def create
|
35
35
|
@assets = []
|
36
36
|
@page_attachments = []
|
37
|
-
compress = current_site.try(:compress) ? current_site.compress
|
37
|
+
compress = current_site.try(:compress).nil? ? true : current_site.compress
|
38
38
|
asset_params[:asset][:asset].to_a.each do |uploaded_asset|
|
39
39
|
if uploaded_asset.content_type == 'application/octet-stream'
|
40
40
|
flash[:notice] = 'Please only upload assets that have a valid extension in the name.'
|
@@ -72,7 +72,8 @@ class Admin::AssetsController < Admin::ResourceController
|
|
72
72
|
def compress(uploaded_asset)
|
73
73
|
require 'open-uri'
|
74
74
|
data = $kraken.upload(uploaded_asset.tempfile.path, 'lossy' => true)
|
75
|
-
|
75
|
+
new_asset = data.success ? data.kraked_url : uploaded_asset.tempfile.path
|
76
|
+
File.write(uploaded_asset.tempfile, URI.open(new_asset).read, mode: 'wb')
|
76
77
|
uploaded_asset
|
77
78
|
end
|
78
79
|
|
data/lib/trusty_cms.rb
CHANGED
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.
|
4
|
+
version: '5.3'
|
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-
|
11
|
+
date: 2022-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activestorage-validator
|
@@ -1168,52 +1168,52 @@ signing_key:
|
|
1168
1168
|
specification_version: 4
|
1169
1169
|
summary: A no-fluff content management system designed for small teams.
|
1170
1170
|
test_files:
|
1171
|
-
- spec/
|
1172
|
-
- spec/support/custom_actions.rb
|
1173
|
-
- spec/fixtures/users.yml
|
1174
|
-
- spec/dummy/package.json
|
1171
|
+
- spec/dummy/db/schema.rb
|
1175
1172
|
- spec/dummy/yarn.lock
|
1176
|
-
- spec/dummy/
|
1177
|
-
- spec/dummy/
|
1178
|
-
- spec/dummy/
|
1179
|
-
- spec/dummy/
|
1180
|
-
- spec/dummy/
|
1181
|
-
- spec/dummy/
|
1182
|
-
- spec/dummy/config
|
1183
|
-
- spec/dummy/config/application.rb
|
1184
|
-
- spec/dummy/config/routes.rb
|
1185
|
-
- spec/dummy/config/environments/development.rb
|
1186
|
-
- spec/dummy/config/environments/test.rb
|
1173
|
+
- spec/dummy/public/422.html
|
1174
|
+
- spec/dummy/public/500.html
|
1175
|
+
- spec/dummy/public/404.html
|
1176
|
+
- spec/dummy/public/favicon.ico
|
1177
|
+
- spec/dummy/app/assets/config/manifest.js
|
1178
|
+
- spec/dummy/package.json
|
1179
|
+
- spec/dummy/config.ru
|
1187
1180
|
- spec/dummy/config/environments/production.rb
|
1188
|
-
- spec/dummy/config/
|
1181
|
+
- spec/dummy/config/environments/test.rb
|
1182
|
+
- spec/dummy/config/environments/development.rb
|
1189
1183
|
- spec/dummy/config/environment.rb
|
1190
|
-
- spec/dummy/config/
|
1191
|
-
- spec/dummy/config/
|
1192
|
-
- spec/dummy/config/
|
1184
|
+
- spec/dummy/config/secrets.yml
|
1185
|
+
- spec/dummy/config/routes.rb
|
1186
|
+
- spec/dummy/config/application.rb
|
1187
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
1193
1188
|
- spec/dummy/config/initializers/mime_types.rb
|
1194
1189
|
- spec/dummy/config/initializers/inflections.rb
|
1190
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
1195
1191
|
- spec/dummy/config/initializers/cookies_serializer.rb
|
1196
|
-
- spec/dummy/config/initializers/trusty_cms_config.rb
|
1197
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
1198
1192
|
- spec/dummy/config/initializers/session_store.rb
|
1199
|
-
- spec/dummy/config/initializers/
|
1193
|
+
- spec/dummy/config/initializers/trusty_cms_config.rb
|
1194
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
1195
|
+
- spec/dummy/config/initializers/assets.rb
|
1196
|
+
- spec/dummy/config/locales/en.yml
|
1197
|
+
- spec/dummy/config/database.yml
|
1198
|
+
- spec/dummy/config/boot.rb
|
1199
|
+
- spec/dummy/Rakefile
|
1200
|
+
- spec/dummy/bin/bundle
|
1201
|
+
- spec/dummy/bin/rake
|
1202
|
+
- spec/dummy/bin/rails
|
1203
|
+
- spec/dummy/bin/setup
|
1200
1204
|
- spec/dummy/README.rdoc
|
1201
|
-
- spec/dummy/app/assets/config/manifest.js
|
1202
|
-
- spec/dummy/db/schema.rb
|
1203
|
-
- spec/dummy/public/422.html
|
1204
|
-
- spec/dummy/public/500.html
|
1205
|
-
- spec/dummy/public/favicon.ico
|
1206
|
-
- spec/dummy/public/404.html
|
1207
|
-
- spec/dummy/config.ru
|
1208
|
-
- spec/factories/layout.rb
|
1209
|
-
- spec/factories/page.rb
|
1210
|
-
- spec/factories/page_part.rb
|
1211
|
-
- spec/factories/user.rb
|
1212
|
-
- spec/controllers/application_controller_spec.rb
|
1213
|
-
- spec/controllers/users_controller_spec.rb
|
1214
|
-
- spec/rails_helper.rb
|
1215
|
-
- spec/features/layouts_spec.rb
|
1216
1205
|
- spec/features/pages_spec.rb
|
1217
1206
|
- spec/features/config_spec.rb
|
1207
|
+
- spec/features/layouts_spec.rb
|
1208
|
+
- spec/rails_helper.rb
|
1209
|
+
- spec/controllers/users_controller_spec.rb
|
1210
|
+
- spec/controllers/application_controller_spec.rb
|
1211
|
+
- spec/fixtures/users.yml
|
1218
1212
|
- spec/models/layout_spec.rb
|
1213
|
+
- spec/factories/layout.rb
|
1214
|
+
- spec/factories/user.rb
|
1215
|
+
- spec/factories/page.rb
|
1216
|
+
- spec/factories/page_part.rb
|
1217
|
+
- spec/support/custom_actions.rb
|
1219
1218
|
- spec/ci/database.mysql.yml
|
1219
|
+
- spec/spec_helper.rb
|