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 +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +74 -74
- data/app/assets/stylesheets/admin/partials/_forms.scss +2 -0
- data/app/controllers/admin/resource_controller.rb +4 -2
- data/app/views/devise/passwords/new.html.haml +1 -1
- data/lib/trusty_cms.rb +1 -1
- data/trusty_cms.gemspec +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df7407acd1c4fbec623b0db122f04a560cacaa2d6997fc8c16bc95a76994bbef
|
4
|
+
data.tar.gz: c8d47d1c903e107608fe0da4d94f2254c678cbb2ad5195cb836bf619c4fb29da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 479e73974a02270bb4d666bb19dce9b354757551dbf6a2846a7fffaad8a482124bb85d81c1997ef22ff35772ceb093c90bfa75ba1ffbee7d12ae058345de60cc
|
7
|
+
data.tar.gz: b1e40b2f698f9e414fc83c39e54ad3eeb9c18ca0f5902c430946169ec7b6e632e7c56944598e7451944e2df103e2fb36f122ca74f54ac4c3f84d3dd36f16987b
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
trusty-cms (4.0.
|
4
|
+
trusty-cms (4.0.2)
|
5
5
|
RedCloth (= 4.3.2)
|
6
|
-
acts_as_list (
|
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.
|
38
|
-
actionpack (= 6.0.2.
|
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.
|
42
|
-
actionpack (= 6.0.2.
|
43
|
-
activejob (= 6.0.2.
|
44
|
-
activerecord (= 6.0.2.
|
45
|
-
activestorage (= 6.0.2.
|
46
|
-
activesupport (= 6.0.2.
|
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.
|
49
|
-
actionpack (= 6.0.2.
|
50
|
-
actionview (= 6.0.2.
|
51
|
-
activejob (= 6.0.2.
|
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.
|
55
|
-
actionview (= 6.0.2.
|
56
|
-
activesupport (= 6.0.2.
|
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.
|
62
|
-
actionpack (= 6.0.2.
|
63
|
-
activerecord (= 6.0.2.
|
64
|
-
activestorage (= 6.0.2.
|
65
|
-
activesupport (= 6.0.2.
|
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.
|
68
|
-
activesupport (= 6.0.2.
|
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.
|
74
|
-
activesupport (= 6.0.2.
|
73
|
+
activejob (6.0.2.2)
|
74
|
+
activesupport (= 6.0.2.2)
|
75
75
|
globalid (>= 0.3.6)
|
76
|
-
activemodel (6.0.2.
|
77
|
-
activesupport (= 6.0.2.
|
78
|
-
activerecord (6.0.2.
|
79
|
-
activemodel (= 6.0.2.
|
80
|
-
activesupport (= 6.0.2.
|
81
|
-
activestorage (6.0.2.
|
82
|
-
actionpack (= 6.0.2.
|
83
|
-
activejob (= 6.0.2.
|
84
|
-
activerecord (= 6.0.2.
|
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.
|
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.
|
93
|
-
activerecord (>=
|
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.
|
170
|
-
addressable (~> 2.
|
171
|
-
libv8 (7.3.492.27.1
|
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.
|
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.
|
207
|
-
coderay (~> 1.1
|
208
|
-
method_source (~>
|
209
|
-
pry-byebug (3.
|
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.
|
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.
|
220
|
-
actioncable (= 6.0.2.
|
221
|
-
actionmailbox (= 6.0.2.
|
222
|
-
actionmailer (= 6.0.2.
|
223
|
-
actionpack (= 6.0.2.
|
224
|
-
actiontext (= 6.0.2.
|
225
|
-
actionview (= 6.0.2.
|
226
|
-
activejob (= 6.0.2.
|
227
|
-
activemodel (= 6.0.2.
|
228
|
-
activerecord (= 6.0.2.
|
229
|
-
activestorage (= 6.0.2.
|
230
|
-
activesupport (= 6.0.2.
|
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.
|
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.
|
242
|
-
actionpack (= 6.0.2.
|
243
|
-
activesupport (= 6.0.2.
|
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.
|
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 (
|
268
|
-
actionpack (>=
|
269
|
-
activesupport (>=
|
270
|
-
railties (>=
|
271
|
-
rspec-core (~> 3.9
|
272
|
-
rspec-expectations (~> 3.9
|
273
|
-
rspec-mocks (~> 3.9
|
274
|
-
rspec-support (~> 3.9
|
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.
|
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.
|
329
|
+
launchy (~> 2.5.0)
|
330
330
|
mysql2
|
331
331
|
poltergeist (~> 1.18.1)
|
332
332
|
pry-byebug
|
@@ -136,8 +136,10 @@ class Admin::ResourceController < ApplicationController
|
|
136
136
|
end
|
137
137
|
|
138
138
|
def set_owner_or_editor
|
139
|
-
|
140
|
-
|
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"
|
data/lib/trusty_cms.rb
CHANGED
data/trusty_cms.gemspec
CHANGED
@@ -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', '
|
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.
|
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-
|
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
|