trusty-cms 4.0.1 → 4.0.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: cda63c816a2fcbf3b9ae3dbfc8c0a2be2ce50b9bc0b103780aaf85d8ad553840
4
- data.tar.gz: abb18785e54c1ee6caf17e1f60e5d8521c494654da04d4fc4cacc10d56c39287
3
+ metadata.gz: df7407acd1c4fbec623b0db122f04a560cacaa2d6997fc8c16bc95a76994bbef
4
+ data.tar.gz: c8d47d1c903e107608fe0da4d94f2254c678cbb2ad5195cb836bf619c4fb29da
5
5
  SHA512:
6
- metadata.gz: 524fde7bdf413457452853b723302f0d055d6a207934f92b028a8a782b1ab8cb69780033128f9cd2a1b6e37e76455bf507a794bd5b56828e84e8ffc5ec8d6002
7
- data.tar.gz: 92c35147763fdaaa09ee58636f3dd0d1d4a8f0a60d46cfc0e2d81c83de524e9112fd82218b5cd993b9f4c99ef5b0b8a9ea83457e139a9ee3a86337f3d18a3418
6
+ metadata.gz: 479e73974a02270bb4d666bb19dce9b354757551dbf6a2846a7fffaad8a482124bb85d81c1997ef22ff35772ceb093c90bfa75ba1ffbee7d12ae058345de60cc
7
+ data.tar.gz: b1e40b2f698f9e414fc83c39e54ad3eeb9c18ca0f5902c430946169ec7b6e632e7c56944598e7451944e2df103e2fb36f122ca74f54ac4c3f84d3dd36f16987b
data/Gemfile CHANGED
@@ -15,7 +15,7 @@ group :development, :test do
15
15
  gem 'acts_as_list'
16
16
  gem 'database_cleaner'
17
17
  gem 'factory_bot_rails', '5.0.2'
18
- gem 'launchy', '~> 2.4.2'
18
+ gem 'launchy', '~> 2.5.0'
19
19
  gem 'mysql2'
20
20
  gem 'poltergeist', '~> 1.18.1'
21
21
  gem 'pry-byebug'
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trusty-cms (4.0.1)
4
+ trusty-cms (4.0.2)
5
5
  RedCloth (= 4.3.2)
6
- acts_as_list (~> 0.9.5)
6
+ acts_as_list (>= 0.9.5, < 1.1.0)
7
7
  acts_as_tree (>= 2.6.1, < 2.9.0)
8
8
  ckeditor (>= 4.2.2, < 4.3.0)
9
9
  delocalize (>= 0.2, < 2.0)
@@ -34,63 +34,63 @@ GEM
34
34
  remote: https://rubygems.org/
35
35
  specs:
36
36
  RedCloth (4.3.2)
37
- actioncable (6.0.2.1)
38
- actionpack (= 6.0.2.1)
37
+ actioncable (6.0.2.2)
38
+ actionpack (= 6.0.2.2)
39
39
  nio4r (~> 2.0)
40
40
  websocket-driver (>= 0.6.1)
41
- actionmailbox (6.0.2.1)
42
- actionpack (= 6.0.2.1)
43
- activejob (= 6.0.2.1)
44
- activerecord (= 6.0.2.1)
45
- activestorage (= 6.0.2.1)
46
- activesupport (= 6.0.2.1)
41
+ actionmailbox (6.0.2.2)
42
+ actionpack (= 6.0.2.2)
43
+ activejob (= 6.0.2.2)
44
+ activerecord (= 6.0.2.2)
45
+ activestorage (= 6.0.2.2)
46
+ activesupport (= 6.0.2.2)
47
47
  mail (>= 2.7.1)
48
- actionmailer (6.0.2.1)
49
- actionpack (= 6.0.2.1)
50
- actionview (= 6.0.2.1)
51
- activejob (= 6.0.2.1)
48
+ actionmailer (6.0.2.2)
49
+ actionpack (= 6.0.2.2)
50
+ actionview (= 6.0.2.2)
51
+ activejob (= 6.0.2.2)
52
52
  mail (~> 2.5, >= 2.5.4)
53
53
  rails-dom-testing (~> 2.0)
54
- actionpack (6.0.2.1)
55
- actionview (= 6.0.2.1)
56
- activesupport (= 6.0.2.1)
54
+ actionpack (6.0.2.2)
55
+ actionview (= 6.0.2.2)
56
+ activesupport (= 6.0.2.2)
57
57
  rack (~> 2.0, >= 2.0.8)
58
58
  rack-test (>= 0.6.3)
59
59
  rails-dom-testing (~> 2.0)
60
60
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
61
- actiontext (6.0.2.1)
62
- actionpack (= 6.0.2.1)
63
- activerecord (= 6.0.2.1)
64
- activestorage (= 6.0.2.1)
65
- activesupport (= 6.0.2.1)
61
+ actiontext (6.0.2.2)
62
+ actionpack (= 6.0.2.2)
63
+ activerecord (= 6.0.2.2)
64
+ activestorage (= 6.0.2.2)
65
+ activesupport (= 6.0.2.2)
66
66
  nokogiri (>= 1.8.5)
67
- actionview (6.0.2.1)
68
- activesupport (= 6.0.2.1)
67
+ actionview (6.0.2.2)
68
+ activesupport (= 6.0.2.2)
69
69
  builder (~> 3.1)
70
70
  erubi (~> 1.4)
71
71
  rails-dom-testing (~> 2.0)
72
72
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
73
- activejob (6.0.2.1)
74
- activesupport (= 6.0.2.1)
73
+ activejob (6.0.2.2)
74
+ activesupport (= 6.0.2.2)
75
75
  globalid (>= 0.3.6)
76
- activemodel (6.0.2.1)
77
- activesupport (= 6.0.2.1)
78
- activerecord (6.0.2.1)
79
- activemodel (= 6.0.2.1)
80
- activesupport (= 6.0.2.1)
81
- activestorage (6.0.2.1)
82
- actionpack (= 6.0.2.1)
83
- activejob (= 6.0.2.1)
84
- activerecord (= 6.0.2.1)
76
+ activemodel (6.0.2.2)
77
+ activesupport (= 6.0.2.2)
78
+ activerecord (6.0.2.2)
79
+ activemodel (= 6.0.2.2)
80
+ activesupport (= 6.0.2.2)
81
+ activestorage (6.0.2.2)
82
+ actionpack (= 6.0.2.2)
83
+ activejob (= 6.0.2.2)
84
+ activerecord (= 6.0.2.2)
85
85
  marcel (~> 0.3.1)
86
- activesupport (6.0.2.1)
86
+ activesupport (6.0.2.2)
87
87
  concurrent-ruby (~> 1.0, >= 1.0.2)
88
88
  i18n (>= 0.7, < 2)
89
89
  minitest (~> 5.1)
90
90
  tzinfo (~> 1.1)
91
91
  zeitwerk (~> 2.2)
92
- acts_as_list (0.9.19)
93
- activerecord (>= 3.0)
92
+ acts_as_list (1.0.1)
93
+ activerecord (>= 4.2)
94
94
  acts_as_tree (2.8.0)
95
95
  activerecord (>= 3.0.0)
96
96
  addressable (2.7.0)
@@ -166,9 +166,9 @@ GEM
166
166
  httparty
167
167
  json
168
168
  multipart-post
169
- launchy (2.4.3)
170
- addressable (~> 2.3)
171
- libv8 (7.3.492.27.1-x86_64-linux)
169
+ launchy (2.5.0)
170
+ addressable (~> 2.7)
171
+ libv8 (7.3.492.27.1)
172
172
  loofah (2.4.0)
173
173
  crass (~> 1.0.2)
174
174
  nokogiri (>= 1.5.9)
@@ -176,7 +176,7 @@ GEM
176
176
  mini_mime (>= 0.1.1)
177
177
  marcel (0.3.3)
178
178
  mimemagic (~> 0.3.2)
179
- method_source (0.9.2)
179
+ method_source (1.0.0)
180
180
  mime-types (3.3.1)
181
181
  mime-types-data (~> 3.2015)
182
182
  mime-types-data (3.2019.1009)
@@ -203,12 +203,12 @@ GEM
203
203
  capybara (>= 2.1, < 4)
204
204
  cliver (~> 0.3.1)
205
205
  websocket-driver (>= 0.2.0)
206
- pry (0.12.2)
207
- coderay (~> 1.1.0)
208
- method_source (~> 0.9.0)
209
- pry-byebug (3.8.0)
206
+ pry (0.13.0)
207
+ coderay (~> 1.1)
208
+ method_source (~> 1.0)
209
+ pry-byebug (3.9.0)
210
210
  byebug (~> 11.0)
211
- pry (~> 0.10)
211
+ pry (~> 0.13.0)
212
212
  public_suffix (4.0.3)
213
213
  rack (2.0.9)
214
214
  rack-cache (1.11.0)
@@ -216,20 +216,20 @@ GEM
216
216
  rack-test (1.1.0)
217
217
  rack (>= 1.0, < 3)
218
218
  radius (0.7.5)
219
- rails (6.0.2.1)
220
- actioncable (= 6.0.2.1)
221
- actionmailbox (= 6.0.2.1)
222
- actionmailer (= 6.0.2.1)
223
- actionpack (= 6.0.2.1)
224
- actiontext (= 6.0.2.1)
225
- actionview (= 6.0.2.1)
226
- activejob (= 6.0.2.1)
227
- activemodel (= 6.0.2.1)
228
- activerecord (= 6.0.2.1)
229
- activestorage (= 6.0.2.1)
230
- activesupport (= 6.0.2.1)
219
+ rails (6.0.2.2)
220
+ actioncable (= 6.0.2.2)
221
+ actionmailbox (= 6.0.2.2)
222
+ actionmailer (= 6.0.2.2)
223
+ actionpack (= 6.0.2.2)
224
+ actiontext (= 6.0.2.2)
225
+ actionview (= 6.0.2.2)
226
+ activejob (= 6.0.2.2)
227
+ activemodel (= 6.0.2.2)
228
+ activerecord (= 6.0.2.2)
229
+ activestorage (= 6.0.2.2)
230
+ activesupport (= 6.0.2.2)
231
231
  bundler (>= 1.3.0)
232
- railties (= 6.0.2.1)
232
+ railties (= 6.0.2.2)
233
233
  sprockets-rails (>= 2.0.0)
234
234
  rails-dom-testing (2.0.3)
235
235
  activesupport (>= 4.2.0)
@@ -238,9 +238,9 @@ GEM
238
238
  loofah (~> 2.3)
239
239
  rails-observers (0.1.5)
240
240
  activemodel (>= 4.0)
241
- railties (6.0.2.1)
242
- actionpack (= 6.0.2.1)
243
- activesupport (= 6.0.2.1)
241
+ railties (6.0.2.2)
242
+ actionpack (= 6.0.2.2)
243
+ activesupport (= 6.0.2.2)
244
244
  method_source
245
245
  rake (>= 0.8.7)
246
246
  thor (>= 0.20.3, < 2.0)
@@ -258,20 +258,20 @@ GEM
258
258
  roadie (>= 3.1, < 5.0)
259
259
  rspec-core (3.9.1)
260
260
  rspec-support (~> 3.9.1)
261
- rspec-expectations (3.9.0)
261
+ rspec-expectations (3.9.1)
262
262
  diff-lcs (>= 1.2.0, < 2.0)
263
263
  rspec-support (~> 3.9.0)
264
264
  rspec-mocks (3.9.1)
265
265
  diff-lcs (>= 1.2.0, < 2.0)
266
266
  rspec-support (~> 3.9.0)
267
- rspec-rails (3.9.0)
268
- actionpack (>= 3.0)
269
- activesupport (>= 3.0)
270
- railties (>= 3.0)
271
- rspec-core (~> 3.9.0)
272
- rspec-expectations (~> 3.9.0)
273
- rspec-mocks (~> 3.9.0)
274
- rspec-support (~> 3.9.0)
267
+ rspec-rails (4.0.0)
268
+ actionpack (>= 4.2)
269
+ activesupport (>= 4.2)
270
+ railties (>= 4.2)
271
+ rspec-core (~> 3.9)
272
+ rspec-expectations (~> 3.9)
273
+ rspec-mocks (~> 3.9)
274
+ rspec-support (~> 3.9)
275
275
  rspec-support (3.9.2)
276
276
  ruby_parser (3.14.2)
277
277
  sexp_processor (~> 4.9)
@@ -317,7 +317,7 @@ GEM
317
317
  will_paginate (3.3.0)
318
318
  xpath (3.2.0)
319
319
  nokogiri (~> 1.8)
320
- zeitwerk (2.2.2)
320
+ zeitwerk (2.3.0)
321
321
 
322
322
  PLATFORMS
323
323
  ruby
@@ -326,7 +326,7 @@ DEPENDENCIES
326
326
  acts_as_list
327
327
  database_cleaner
328
328
  factory_bot_rails (= 5.0.2)
329
- launchy (~> 2.4.2)
329
+ launchy (~> 2.5.0)
330
330
  mysql2
331
331
  poltergeist (~> 1.18.1)
332
332
  pry-byebug
@@ -48,6 +48,8 @@
48
48
  background-color: #f8d7da;
49
49
  color: #721c24;
50
50
  padding: 1em;
51
+ margin: 1em;
52
+ display: block;
51
53
  }
52
54
 
53
55
  #content {
@@ -136,8 +136,10 @@ class Admin::ResourceController < ApplicationController
136
136
  end
137
137
 
138
138
  def set_owner_or_editor
139
- self.model.created_by_id = current_user.id if self.model.id == nil
140
- self.model.updated_by_id = current_user.id
139
+ if self.model.has_attribute? :created_by_id
140
+ self.model.created_by_id = current_user.id if self.model.id == nil
141
+ self.model.updated_by_id = current_user.id
142
+ end
141
143
  end
142
144
 
143
145
  def model
@@ -8,7 +8,7 @@
8
8
  .field
9
9
  = f.label :email
10
10
  %br/
11
- = f.email_field :email, autofocus: true, autocomplete: "email"
11
+ = f.email_field :email, autofocus: true, autocomplete: "email", required: true
12
12
  .actions
13
13
  = f.submit "Send me reset password instructions"
14
14
  = render "devise/shared/links"
@@ -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.0.1'
5
+ VERSION = '4.0.2'
6
6
  end
7
7
  end
@@ -22,7 +22,7 @@ a general purpose content managment system--not merely a blogging engine.}
22
22
  s.license = %q{MIT}
23
23
  s.test_files = Dir["spec/**/*"]
24
24
 
25
- s.add_dependency 'acts_as_list', '~> 0.9.5'
25
+ s.add_dependency 'acts_as_list', '>= 0.9.5', '< 1.1.0'
26
26
  s.add_dependency 'acts_as_tree', '>= 2.6.1', '< 2.9.0'
27
27
  s.add_dependency 'ckeditor', '>= 4.2.2', '< 4.3.0'
28
28
  s.add_dependency 'delocalize', '>= 0.2', '< 2.0'
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trusty-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.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: 2020-03-03 00:00:00.000000000 Z
11
+ date: 2020-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: acts_as_list
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 0.9.5
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: 1.1.0
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
25
28
  - !ruby/object:Gem::Version
26
29
  version: 0.9.5
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: 1.1.0
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: acts_as_tree
29
35
  requirement: !ruby/object:Gem::Requirement