trusty-cms 4.2.3 → 4.3.3

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: 52cf02d801b74acdecb1e9e86ed217a1670ffad05bb213a32c7c2bd591a83987
4
- data.tar.gz: 7b896f7719317c52daad8aea07b08c984016ca0d02a156db0ccbff8d536c3f08
3
+ metadata.gz: fe654730f50bc3d6dcf534e6b6ae0fcd06bd8e759135a163de32feb11ec0ab23
4
+ data.tar.gz: c20b4f267e75c28277d1dc8bcef25747bc83968db299db619627be31f900be01
5
5
  SHA512:
6
- metadata.gz: f6c35dab44ba4baf6a68b5bbdd6fd8981e07131e77f5841458187f44b3dab5721442787e7681a0abc19bde3151e07605997ca1e9c09883aa8c35234f542c8a91
7
- data.tar.gz: c24a677077c96834ab38baf5b5441e97be4f678b21aa3c24244141328941ece257fd279a5fc8a6d155aa609e9c9e973d620eb1b3ac1ef7b61dcdb1ab2d74e66a
6
+ metadata.gz: d5aa38a6368417f11189653dc11449cf715720ee664f841ad0532b5112e4603a34d72a3b03b3ba5093b02b86d0229395aa268d8bd61755779d42c63a8dba87f3
7
+ data.tar.gz: 526aabb67a9b33ef5897e48c21aa88d29313f9733c77f0efc21bc1075563e1fd21d4f04b2547621ee158307a0ed85806eb7677a558447c9c1acac36797ed5f98
data/Gemfile CHANGED
@@ -15,6 +15,7 @@ group :development, :test do
15
15
  gem 'acts_as_list'
16
16
  gem 'database_cleaner'
17
17
  gem 'factory_bot_rails', '6.2.0'
18
+ gem 'kt-paperclip', '~> 7.0.0'
18
19
  gem 'launchy', '~> 2.5.0'
19
20
  gem 'mysql2'
20
21
  gem 'poltergeist', '~> 1.18.1'
data/Gemfile.lock CHANGED
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trusty-cms (4.2.3)
4
+ trusty-cms (4.3.3)
5
5
  RedCloth (= 4.3.2)
6
6
  acts_as_list (>= 0.9.5, < 1.1.0)
7
- acts_as_tree (>= 2.6.1, < 2.10.0)
7
+ acts_as_tree (~> 2.9.1)
8
8
  ckeditor (>= 4.2.2, < 4.4.0)
9
9
  delocalize (>= 0.2, < 2.0)
10
10
  devise
@@ -33,60 +33,60 @@ GEM
33
33
  remote: https://rubygems.org/
34
34
  specs:
35
35
  RedCloth (4.3.2)
36
- actioncable (6.1.3.2)
37
- actionpack (= 6.1.3.2)
38
- activesupport (= 6.1.3.2)
36
+ actioncable (6.1.4)
37
+ actionpack (= 6.1.4)
38
+ activesupport (= 6.1.4)
39
39
  nio4r (~> 2.0)
40
40
  websocket-driver (>= 0.6.1)
41
- actionmailbox (6.1.3.2)
42
- actionpack (= 6.1.3.2)
43
- activejob (= 6.1.3.2)
44
- activerecord (= 6.1.3.2)
45
- activestorage (= 6.1.3.2)
46
- activesupport (= 6.1.3.2)
41
+ actionmailbox (6.1.4)
42
+ actionpack (= 6.1.4)
43
+ activejob (= 6.1.4)
44
+ activerecord (= 6.1.4)
45
+ activestorage (= 6.1.4)
46
+ activesupport (= 6.1.4)
47
47
  mail (>= 2.7.1)
48
- actionmailer (6.1.3.2)
49
- actionpack (= 6.1.3.2)
50
- actionview (= 6.1.3.2)
51
- activejob (= 6.1.3.2)
52
- activesupport (= 6.1.3.2)
48
+ actionmailer (6.1.4)
49
+ actionpack (= 6.1.4)
50
+ actionview (= 6.1.4)
51
+ activejob (= 6.1.4)
52
+ activesupport (= 6.1.4)
53
53
  mail (~> 2.5, >= 2.5.4)
54
54
  rails-dom-testing (~> 2.0)
55
- actionpack (6.1.3.2)
56
- actionview (= 6.1.3.2)
57
- activesupport (= 6.1.3.2)
55
+ actionpack (6.1.4)
56
+ actionview (= 6.1.4)
57
+ activesupport (= 6.1.4)
58
58
  rack (~> 2.0, >= 2.0.9)
59
59
  rack-test (>= 0.6.3)
60
60
  rails-dom-testing (~> 2.0)
61
61
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
62
- actiontext (6.1.3.2)
63
- actionpack (= 6.1.3.2)
64
- activerecord (= 6.1.3.2)
65
- activestorage (= 6.1.3.2)
66
- activesupport (= 6.1.3.2)
62
+ actiontext (6.1.4)
63
+ actionpack (= 6.1.4)
64
+ activerecord (= 6.1.4)
65
+ activestorage (= 6.1.4)
66
+ activesupport (= 6.1.4)
67
67
  nokogiri (>= 1.8.5)
68
- actionview (6.1.3.2)
69
- activesupport (= 6.1.3.2)
68
+ actionview (6.1.4)
69
+ activesupport (= 6.1.4)
70
70
  builder (~> 3.1)
71
71
  erubi (~> 1.4)
72
72
  rails-dom-testing (~> 2.0)
73
73
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
74
- activejob (6.1.3.2)
75
- activesupport (= 6.1.3.2)
74
+ activejob (6.1.4)
75
+ activesupport (= 6.1.4)
76
76
  globalid (>= 0.3.6)
77
- activemodel (6.1.3.2)
78
- activesupport (= 6.1.3.2)
79
- activerecord (6.1.3.2)
80
- activemodel (= 6.1.3.2)
81
- activesupport (= 6.1.3.2)
82
- activestorage (6.1.3.2)
83
- actionpack (= 6.1.3.2)
84
- activejob (= 6.1.3.2)
85
- activerecord (= 6.1.3.2)
86
- activesupport (= 6.1.3.2)
77
+ activemodel (6.1.4)
78
+ activesupport (= 6.1.4)
79
+ activerecord (6.1.4)
80
+ activemodel (= 6.1.4)
81
+ activesupport (= 6.1.4)
82
+ activestorage (6.1.4)
83
+ actionpack (= 6.1.4)
84
+ activejob (= 6.1.4)
85
+ activerecord (= 6.1.4)
86
+ activesupport (= 6.1.4)
87
87
  marcel (~> 1.0.0)
88
- mini_mime (~> 1.0.2)
89
- activesupport (6.1.3.2)
88
+ mini_mime (>= 1.1.0)
89
+ activesupport (6.1.4)
90
90
  concurrent-ruby (~> 1.0, >= 1.0.2)
91
91
  i18n (>= 1.6, < 2)
92
92
  minitest (>= 5.1)
@@ -96,7 +96,7 @@ GEM
96
96
  activerecord (>= 4.2)
97
97
  acts_as_tree (2.9.1)
98
98
  activerecord (>= 3.0.0)
99
- addressable (2.7.0)
99
+ addressable (2.8.0)
100
100
  public_suffix (>= 2.0.2, < 5.0)
101
101
  bcrypt (3.1.16)
102
102
  builder (3.2.4)
@@ -115,13 +115,13 @@ GEM
115
115
  climate_control (0.2.0)
116
116
  cliver (0.3.2)
117
117
  coderay (1.1.3)
118
- concurrent-ruby (1.1.8)
118
+ concurrent-ruby (1.1.9)
119
119
  crass (1.0.6)
120
- css_parser (1.9.0)
120
+ css_parser (1.10.0)
121
121
  addressable
122
122
  database_cleaner (2.0.1)
123
123
  database_cleaner-active_record (~> 2.0.0)
124
- database_cleaner-active_record (2.0.0)
124
+ database_cleaner-active_record (2.0.1)
125
125
  activerecord (>= 5.a)
126
126
  database_cleaner-core (~> 2.0.0)
127
127
  database_cleaner-core (2.0.1)
@@ -134,7 +134,7 @@ GEM
134
134
  responders
135
135
  warden (~> 1.2.3)
136
136
  diff-lcs (1.4.4)
137
- docile (1.3.5)
137
+ docile (1.4.0)
138
138
  erubi (1.10.0)
139
139
  erubis (2.7.0)
140
140
  execjs (2.8.1)
@@ -143,10 +143,10 @@ GEM
143
143
  factory_bot_rails (6.2.0)
144
144
  factory_bot (~> 6.2.0)
145
145
  railties (>= 5.0.0)
146
- ffi (1.15.1)
147
- globalid (0.4.2)
148
- activesupport (>= 4.2.0)
149
- haml (5.2.1)
146
+ ffi (1.15.3)
147
+ globalid (0.5.1)
148
+ activesupport (>= 5.0)
149
+ haml (5.2.2)
150
150
  temple (>= 0.8.0)
151
151
  tilt
152
152
  haml-rails (2.0.1)
@@ -172,12 +172,17 @@ GEM
172
172
  httparty
173
173
  json
174
174
  multipart-post
175
+ kt-paperclip (7.0.0)
176
+ activemodel (>= 4.2.0)
177
+ activesupport (>= 4.2.0)
178
+ marcel (~> 1.0.1)
179
+ mime-types
180
+ terrapin (~> 0.6.0)
175
181
  launchy (2.5.0)
176
182
  addressable (~> 2.7)
177
183
  libv8-node (15.14.0.1-x86_64-darwin-18)
178
- libv8-node (15.14.0.1-x86_64-darwin-20)
179
184
  libv8-node (15.14.0.1-x86_64-linux)
180
- loofah (2.9.1)
185
+ loofah (2.10.0)
181
186
  crass (~> 1.0.2)
182
187
  nokogiri (>= 1.5.9)
183
188
  mail (2.7.1)
@@ -187,7 +192,7 @@ GEM
187
192
  mime-types (3.3.1)
188
193
  mime-types-data (~> 3.2015)
189
194
  mime-types-data (3.2021.0225)
190
- mini_mime (1.0.3)
195
+ mini_mime (1.1.0)
191
196
  mini_racer (0.4.0)
192
197
  libv8-node (~> 15.14.0.0)
193
198
  minitest (5.14.4)
@@ -195,9 +200,9 @@ GEM
195
200
  multipart-post (2.1.1)
196
201
  mysql2 (0.5.3)
197
202
  nio4r (2.5.7)
198
- nokogiri (1.11.3-x86_64-darwin)
203
+ nokogiri (1.11.7-x86_64-darwin)
199
204
  racc (~> 1.4)
200
- nokogiri (1.11.3-x86_64-linux)
205
+ nokogiri (1.11.7-x86_64-linux)
201
206
  racc (~> 1.4)
202
207
  orm_adapter (0.5.0)
203
208
  poltergeist (1.18.1)
@@ -218,20 +223,20 @@ GEM
218
223
  rack-test (1.1.0)
219
224
  rack (>= 1.0, < 3)
220
225
  radius (0.7.5)
221
- rails (6.1.3.2)
222
- actioncable (= 6.1.3.2)
223
- actionmailbox (= 6.1.3.2)
224
- actionmailer (= 6.1.3.2)
225
- actionpack (= 6.1.3.2)
226
- actiontext (= 6.1.3.2)
227
- actionview (= 6.1.3.2)
228
- activejob (= 6.1.3.2)
229
- activemodel (= 6.1.3.2)
230
- activerecord (= 6.1.3.2)
231
- activestorage (= 6.1.3.2)
232
- activesupport (= 6.1.3.2)
226
+ rails (6.1.4)
227
+ actioncable (= 6.1.4)
228
+ actionmailbox (= 6.1.4)
229
+ actionmailer (= 6.1.4)
230
+ actionpack (= 6.1.4)
231
+ actiontext (= 6.1.4)
232
+ actionview (= 6.1.4)
233
+ activejob (= 6.1.4)
234
+ activemodel (= 6.1.4)
235
+ activerecord (= 6.1.4)
236
+ activestorage (= 6.1.4)
237
+ activesupport (= 6.1.4)
233
238
  bundler (>= 1.15.0)
234
- railties (= 6.1.3.2)
239
+ railties (= 6.1.4)
235
240
  sprockets-rails (>= 2.0.0)
236
241
  rails-dom-testing (2.0.3)
237
242
  activesupport (>= 4.2.0)
@@ -240,14 +245,14 @@ GEM
240
245
  loofah (~> 2.3)
241
246
  rails-observers (0.1.5)
242
247
  activemodel (>= 4.0)
243
- railties (6.1.3.2)
244
- actionpack (= 6.1.3.2)
245
- activesupport (= 6.1.3.2)
248
+ railties (6.1.4)
249
+ actionpack (= 6.1.4)
250
+ activesupport (= 6.1.4)
246
251
  method_source
247
- rake (>= 0.8.7)
252
+ rake (>= 0.13)
248
253
  thor (~> 1.0)
249
254
  rake (13.0.3)
250
- rdoc (6.3.1)
255
+ rdoc (6.3.2)
251
256
  regexp_parser (2.1.1)
252
257
  responders (3.0.1)
253
258
  actionpack (>= 5.0)
@@ -293,7 +298,7 @@ GEM
293
298
  simplecov-html (~> 0.11)
294
299
  simplecov_json_formatter (~> 0.1)
295
300
  simplecov-html (0.12.3)
296
- simplecov_json_formatter (0.1.2)
301
+ simplecov_json_formatter (0.1.3)
297
302
  sprockets (4.0.2)
298
303
  concurrent-ruby (~> 1.0)
299
304
  rack (> 1, < 3)
@@ -316,7 +321,7 @@ GEM
316
321
  uuidtools (2.2.0)
317
322
  warden (1.2.9)
318
323
  rack (>= 2.0.9)
319
- websocket-driver (0.7.3)
324
+ websocket-driver (0.7.5)
320
325
  websocket-extensions (>= 0.1.0)
321
326
  websocket-extensions (0.1.5)
322
327
  will_paginate (3.3.0)
@@ -326,13 +331,13 @@ GEM
326
331
 
327
332
  PLATFORMS
328
333
  x86_64-darwin-18
329
- x86_64-darwin-20
330
334
  x86_64-linux
331
335
 
332
336
  DEPENDENCIES
333
337
  acts_as_list
334
338
  database_cleaner
335
339
  factory_bot_rails (= 6.2.0)
340
+ kt-paperclip (~> 7.0.0)
336
341
  launchy (~> 2.5.0)
337
342
  mysql2
338
343
  poltergeist (~> 1.18.1)
@@ -344,4 +349,4 @@ DEPENDENCIES
344
349
  trustygems (~> 0.2.0)
345
350
 
346
351
  BUNDLED WITH
347
- 2.2.15
352
+ 2.2.19
@@ -0,0 +1,6 @@
1
+ //= link_tree ../images
2
+ //= link_directory ../javascripts .js
3
+ //= link_directory ../stylesheets .css
4
+ //= link admin/assets.css
5
+ //= link admin/assets_admin.js
6
+ //= link admin/custom_file_upload.js
@@ -68,7 +68,7 @@ class Admin::AssetsController < Admin::ResourceController
68
68
 
69
69
  def compress(uploaded_asset)
70
70
  data = $kraken.upload(uploaded_asset.tempfile.path, 'lossy' => true)
71
- File.write(uploaded_asset.tempfile, open(data.kraked_url).read, { mode: 'wb' })
71
+ File.write(uploaded_asset.tempfile, URI.open(data.kraked_url).read, mode: 'wb')
72
72
  uploaded_asset
73
73
  end
74
74
 
data/app/models/page.rb CHANGED
@@ -264,8 +264,8 @@ class Page < ActiveRecord::Base
264
264
  else
265
265
  @display_name ||= begin
266
266
  n = name.to_s
267
- n.sub!(/^(.+?)Page$/, '\1')
268
- n.gsub!(/([A-Z])/, ' \1')
267
+ n.sub(/^(.+?)Page$/, '\1')
268
+ n.gsub(/([A-Z])/, ' \1')
269
269
  n.strip
270
270
  end
271
271
  end
@@ -1,5 +1 @@
1
1
  Rails.application.config.assets.paths << Rails.root.join('node_modules')
2
- Rails.application.config.assets.precompile += ['*.png',
3
- '*.gif',
4
- '*.svg']
5
- Rails.application.config.assets.precompile += %w(admin/assets.css admin/assets_admin.js)
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 = '4.2.3'.freeze
5
+ VERSION = '4.3.3'.freeze
6
6
  end
7
7
  end
data/trusty_cms.gemspec CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  require File.expand_path(__FILE__ + '/../lib/trusty_cms.rb')
4
4
  Gem::Specification.new do |s|
5
+ s.required_ruby_version = '>=2.5.3'
5
6
  s.name = 'trusty-cms'
6
7
  s.version = TrustyCms::VERSION
7
8
  s.platform = Gem::Platform::RUBY
@@ -24,7 +25,7 @@ a general purpose content managment system--not merely a blogging engine.'
24
25
  s.test_files = Dir['spec/**/*']
25
26
 
26
27
  s.add_dependency 'acts_as_list', '>= 0.9.5', '< 1.1.0'
27
- s.add_dependency 'acts_as_tree', '>= 2.6.1', '< 2.10.0'
28
+ s.add_dependency 'acts_as_tree', '~> 2.9.1'
28
29
  s.add_dependency 'ckeditor', '>= 4.2.2', '< 4.4.0'
29
30
  s.add_dependency 'delocalize', '>= 0.2', '< 2.0'
30
31
  s.add_dependency 'devise'
data/yarn.lock CHANGED
@@ -1360,9 +1360,9 @@ postcss-value-parser@^4.0.2, postcss-value-parser@^4.0.3:
1360
1360
  integrity sha512-N7h4pG+Nnu5BEIzyeaaIYWs0LI5XC40OrRh5L60z0QjFsqGWcHcbkBvpe1WYpcIS9yQ8sOi/vIPt1ejQCrMVrg==
1361
1361
 
1362
1362
  postcss@^7.0.0, postcss@^7.0.14, postcss@^7.0.17, postcss@^7.0.2, postcss@^7.0.21, postcss@^7.0.26, postcss@^7.0.27, postcss@^7.0.7:
1363
- version "7.0.27"
1364
- resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.27.tgz#cc67cdc6b0daa375105b7c424a85567345fc54d9"
1365
- integrity sha512-WuQETPMcW9Uf1/22HWUWP9lgsIC+KEHg2kozMflKjbeUtw9ujvFX6QmIfozaErDkmLWS9WEnEdEe6Uo9/BNTdQ==
1363
+ version "7.0.36"
1364
+ resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.36.tgz#056f8cffa939662a8f5905950c07d5285644dfcb"
1365
+ integrity sha512-BebJSIUMwJHRH0HAQoxN4u1CN86glsrwsW0q7T+/m44eXOUAxSNdHRkNZPYz5vVUbg17hFgOQDE7fZk7li3pZw==
1366
1366
  dependencies:
1367
1367
  chalk "^2.4.2"
1368
1368
  source-map "^0.6.1"
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: 4.2.3
4
+ version: 4.3.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: 2021-05-26 00:00:00.000000000 Z
11
+ date: 2021-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: acts_as_list
@@ -34,22 +34,16 @@ dependencies:
34
34
  name: acts_as_tree
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- version: 2.6.1
40
- - - "<"
37
+ - - "~>"
41
38
  - !ruby/object:Gem::Version
42
- version: 2.10.0
39
+ version: 2.9.1
43
40
  type: :runtime
44
41
  prerelease: false
45
42
  version_requirements: !ruby/object:Gem::Requirement
46
43
  requirements:
47
- - - ">="
48
- - !ruby/object:Gem::Version
49
- version: 2.6.1
50
- - - "<"
44
+ - - "~>"
51
45
  - !ruby/object:Gem::Version
52
- version: 2.10.0
46
+ version: 2.9.1
53
47
  - !ruby/object:Gem::Dependency
54
48
  name: ckeditor
55
49
  requirement: !ruby/object:Gem::Requirement
@@ -461,6 +455,7 @@ files:
461
455
  - LICENSE.md
462
456
  - README.md
463
457
  - Rakefile
458
+ - app/assets/config/trusty-cms-manifest.js
464
459
  - app/assets/images/admin/add.png
465
460
  - app/assets/images/admin/add_tab.png
466
461
  - app/assets/images/admin/animated-overlay.gif
@@ -8787,7 +8782,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
8787
8782
  requirements:
8788
8783
  - - ">="
8789
8784
  - !ruby/object:Gem::Version
8790
- version: '0'
8785
+ version: 2.5.3
8791
8786
  required_rubygems_version: !ruby/object:Gem::Requirement
8792
8787
  requirements:
8793
8788
  - - ">"