trusty-cms 5.2.3 → 5.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47f1958b702fa213e0ed7be3725d9e846c619a966bdc614c3e30cac3e4cd190e
4
- data.tar.gz: 9ae273f919dd49d71b3288de4d797578c74684b071648b1ee9ad70abdf89b2a5
3
+ metadata.gz: be4e9c02223ff0d0f060b7ea9b941c3e031df71f942c31898e4cc936e7575e1d
4
+ data.tar.gz: 0c7d82d1e442acb98d4d69814d11539f27d28fe8282129b2fc3358f6893de43a
5
5
  SHA512:
6
- metadata.gz: 0acfc01a195112e57d8297268c86c4da2773e781b7bb76f16b07606a78f631fe6213906ed4288aa7a17e1bd09b73d4f2cc77cbd34db1853b096078d22e283e97
7
- data.tar.gz: 452fea2947b5fddc0e1c4522d30f67d4bb8ec30c4770e9d5c09aa7837799e91ac9959fe6ff95fd7ae783c418d2b2898ab8afb620046e40c7c7ca221e0fd14f60
6
+ metadata.gz: b4d5bb952c13cbab60c3985a395ddc1d71b263e55504898ead1f69b17279cb5c430c55f013b246c9d60c2c9fa99adddb1de48df259e2d1b2e340c6e19ae50156
7
+ data.tar.gz: 384d7c0727f28d4c68396e95d8c0ea8a418964f6551f858ac7aeaf1abe4539db4f8385260b7537b3f7c0ed492fd951131d562fd748ac4e866af21232651a616d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trusty-cms (5.2.3)
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
- mini_portile2 (~> 2.6.1)
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.2.31
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 : true
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
- File.write(uploaded_asset.tempfile, URI.open(data.kraked_url).read, mode: 'wb')
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
@@ -2,6 +2,6 @@ TRUSTY_CMS_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..')) unle
2
2
 
3
3
  unless defined? TrustyCms::VERSION
4
4
  module TrustyCms
5
- VERSION = '5.2.3'.freeze
5
+ VERSION = '5.3.2'.freeze
6
6
  end
7
7
  end
data/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "trusty-cms",
3
- "version": "3.1.6",
4
- "description": "TrustyCMS is a branch of Radiant CMS. Its goal is to pull the Radiant framework into Rails 5 with minimal changes to its infrastructure.",
3
+ "version": "5.3.1",
4
+ "description": "TrustyCMS is a branch of Radiant CMS. Its goal is to pull the Radiant framework into Rails 6 with minimal changes to its infrastructure.",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/pgharts/trusty-cms.git",
7
7
  "author": "Danielle Greaves <danigreaves@gmail.com>",
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.2.3
4
+ version: 5.3.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-05-18 00:00:00.000000000 Z
11
+ date: 2022-06-08 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/spec_helper.rb
1172
- - spec/support/custom_actions.rb
1173
1171
  - spec/fixtures/users.yml
1172
+ - spec/dummy/public/500.html
1173
+ - spec/dummy/public/422.html
1174
+ - spec/dummy/public/404.html
1175
+ - spec/dummy/public/favicon.ico
1176
+ - spec/dummy/app/assets/config/manifest.js
1177
+ - spec/dummy/db/schema.rb
1178
+ - spec/dummy/config.ru
1174
1179
  - spec/dummy/package.json
1175
- - spec/dummy/yarn.lock
1176
1180
  - spec/dummy/bin/rake
1177
- - spec/dummy/bin/bundle
1178
1181
  - spec/dummy/bin/rails
1179
1182
  - spec/dummy/bin/setup
1183
+ - spec/dummy/bin/bundle
1184
+ - spec/dummy/README.rdoc
1180
1185
  - spec/dummy/Rakefile
1181
- - spec/dummy/config/boot.rb
1182
- - spec/dummy/config/secrets.yml
1183
1186
  - spec/dummy/config/application.rb
1184
1187
  - spec/dummy/config/routes.rb
1185
- - spec/dummy/config/environments/development.rb
1186
1188
  - spec/dummy/config/environments/test.rb
1189
+ - spec/dummy/config/environments/development.rb
1187
1190
  - 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
1191
1191
  - spec/dummy/config/initializers/assets.rb
1192
- - spec/dummy/config/initializers/filter_parameter_logging.rb
1193
1192
  - spec/dummy/config/initializers/mime_types.rb
1194
- - spec/dummy/config/initializers/inflections.rb
1195
1193
  - spec/dummy/config/initializers/cookies_serializer.rb
1196
- - spec/dummy/config/initializers/trusty_cms_config.rb
1197
- - spec/dummy/config/initializers/backtrace_silencers.rb
1194
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
1198
1195
  - spec/dummy/config/initializers/session_store.rb
1199
1196
  - spec/dummy/config/initializers/wrap_parameters.rb
1200
- - 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
1197
+ - spec/dummy/config/initializers/backtrace_silencers.rb
1198
+ - spec/dummy/config/initializers/inflections.rb
1199
+ - spec/dummy/config/initializers/trusty_cms_config.rb
1200
+ - spec/dummy/config/locales/en.yml
1201
+ - spec/dummy/config/secrets.yml
1202
+ - spec/dummy/config/database.yml
1203
+ - spec/dummy/config/environment.rb
1204
+ - spec/dummy/config/boot.rb
1205
+ - spec/dummy/yarn.lock
1206
+ - spec/ci/database.mysql.yml
1207
+ - spec/support/custom_actions.rb
1208
+ - spec/rails_helper.rb
1209
+ - spec/factories/user.rb
1210
+ - spec/factories/page_part.rb
1208
1211
  - spec/factories/layout.rb
1209
1212
  - spec/factories/page.rb
1210
- - spec/factories/page_part.rb
1211
- - spec/factories/user.rb
1212
- - spec/controllers/application_controller_spec.rb
1213
1213
  - spec/controllers/users_controller_spec.rb
1214
- - spec/rails_helper.rb
1214
+ - spec/controllers/application_controller_spec.rb
1215
+ - spec/spec_helper.rb
1215
1216
  - spec/features/layouts_spec.rb
1216
1217
  - spec/features/pages_spec.rb
1217
1218
  - spec/features/config_spec.rb
1218
1219
  - spec/models/layout_spec.rb
1219
- - spec/ci/database.mysql.yml