cmtool 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +2 -2
- data/Gemfile.lock +342 -199
- data/app/assets/javascripts/cmtool/application.js.coffee +1 -0
- data/app/assets/javascripts/cmtool/html_edit.js.coffee +4 -0
- data/app/helpers/cmtool/application_helper.rb +2 -2
- data/app/models/cmtool/image.rb +4 -0
- data/app/models/cmtool/news.rb +3 -0
- data/app/models/cmtool/quote.rb +3 -0
- data/app/views/cmtool/pages/_form.html.slim +6 -0
- data/lib/cmtool/engine.rb +22 -22
- data/lib/cmtool/includes/page.rb +8 -1
- data/lib/cmtool/includes/pages_controller.rb +1 -1
- data/lib/cmtool/version.rb +1 -1
- data/lib/cmtool.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2f72ef363574bd8878f860a59d29dc3830347ad1bc1a0becbcaaaad80bd875f6
|
|
4
|
+
data.tar.gz: 9ddba2aea2e96bf51ec92dddc3106909c8f9c8ea72488e83c9617c91b63a9556
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1af25b2239ed2c3a2d2c29ef13a0159822336a90b7e7db76decfd36322fb2636ded0183605e9d52f47dd64205e3a5d0db3ffe5473401ad2002d93af76925d87a
|
|
7
|
+
data.tar.gz: 5457746564eb79514e3865c3885ab8bf10b196f84f18fbe641acd8f1a7cdaf31e09a0d4c16c127ff2bf3bcbc4f339fe5219a28d5e26aad272df1de26ff124e1c
|
data/Gemfile
CHANGED
|
@@ -21,10 +21,10 @@ group :assets do
|
|
|
21
21
|
gem 'momentjs-rails'
|
|
22
22
|
end
|
|
23
23
|
|
|
24
|
-
gem 'simply_stored' , github: 'bterkuile/simply_stored'
|
|
24
|
+
gem 'simply_stored' , github: 'bterkuile/simply_stored', branch: 'master'
|
|
25
25
|
#gem 'orm_adapter', github: 'bterkuile/orm_adapter'
|
|
26
26
|
gem 'devise'
|
|
27
|
-
gem 'devise_simply_stored', github: 'bterkuile/devise_simply_stored'
|
|
27
|
+
gem 'devise_simply_stored', github: 'bterkuile/devise_simply_stored', branch: 'master'
|
|
28
28
|
gem 'slim-rails'
|
|
29
29
|
gem 'paperclip', ['>= 3.4', '!= 4.3.0']
|
|
30
30
|
gem 'email_validator'
|
data/Gemfile.lock
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
GIT
|
|
2
|
-
remote:
|
|
3
|
-
revision:
|
|
2
|
+
remote: https://github.com/bterkuile/devise_simply_stored.git
|
|
3
|
+
revision: d40020669b22bbb14fa40dc4521b2f072eb96e84
|
|
4
|
+
branch: master
|
|
4
5
|
specs:
|
|
5
6
|
devise_simply_stored (0.3.0)
|
|
6
7
|
devise
|
|
7
8
|
|
|
8
9
|
GIT
|
|
9
|
-
remote:
|
|
10
|
-
revision:
|
|
10
|
+
remote: https://github.com/bterkuile/simply_stored.git
|
|
11
|
+
revision: 284607e973802ef46d7b47409bcf4beed7c0984c
|
|
12
|
+
branch: master
|
|
11
13
|
specs:
|
|
12
14
|
simply_stored (1.0.0)
|
|
13
15
|
activesupport
|
|
@@ -16,256 +18,397 @@ GIT
|
|
|
16
18
|
PATH
|
|
17
19
|
remote: .
|
|
18
20
|
specs:
|
|
19
|
-
cmtool (
|
|
21
|
+
cmtool (3.0.0)
|
|
20
22
|
ace-rails-ap
|
|
21
|
-
bourbon
|
|
22
23
|
email_validator
|
|
23
24
|
font-awesome-rails
|
|
24
25
|
foundation-rails
|
|
25
26
|
jquery-rails
|
|
27
|
+
momentjs-rails
|
|
26
28
|
paperclip
|
|
27
29
|
pickadate-rails
|
|
28
30
|
slim-rails
|
|
29
|
-
tinymce-rails
|
|
30
31
|
|
|
31
32
|
GEM
|
|
32
33
|
remote: http://rubygems.org/
|
|
33
34
|
specs:
|
|
34
|
-
ace-rails-ap (4.
|
|
35
|
-
|
|
36
|
-
actionpack (=
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
35
|
+
ace-rails-ap (4.5)
|
|
36
|
+
actioncable (8.0.2.1)
|
|
37
|
+
actionpack (= 8.0.2.1)
|
|
38
|
+
activesupport (= 8.0.2.1)
|
|
39
|
+
nio4r (~> 2.0)
|
|
40
|
+
websocket-driver (>= 0.6.1)
|
|
41
|
+
zeitwerk (~> 2.6)
|
|
42
|
+
actionmailbox (8.0.2.1)
|
|
43
|
+
actionpack (= 8.0.2.1)
|
|
44
|
+
activejob (= 8.0.2.1)
|
|
45
|
+
activerecord (= 8.0.2.1)
|
|
46
|
+
activestorage (= 8.0.2.1)
|
|
47
|
+
activesupport (= 8.0.2.1)
|
|
48
|
+
mail (>= 2.8.0)
|
|
49
|
+
actionmailer (8.0.2.1)
|
|
50
|
+
actionpack (= 8.0.2.1)
|
|
51
|
+
actionview (= 8.0.2.1)
|
|
52
|
+
activejob (= 8.0.2.1)
|
|
53
|
+
activesupport (= 8.0.2.1)
|
|
54
|
+
mail (>= 2.8.0)
|
|
55
|
+
rails-dom-testing (~> 2.2)
|
|
56
|
+
actionpack (8.0.2.1)
|
|
57
|
+
actionview (= 8.0.2.1)
|
|
58
|
+
activesupport (= 8.0.2.1)
|
|
59
|
+
nokogiri (>= 1.8.5)
|
|
60
|
+
rack (>= 2.2.4)
|
|
61
|
+
rack-session (>= 1.0.1)
|
|
62
|
+
rack-test (>= 0.6.3)
|
|
63
|
+
rails-dom-testing (~> 2.2)
|
|
64
|
+
rails-html-sanitizer (~> 1.6)
|
|
65
|
+
useragent (~> 0.16)
|
|
66
|
+
actiontext (8.0.2.1)
|
|
67
|
+
actionpack (= 8.0.2.1)
|
|
68
|
+
activerecord (= 8.0.2.1)
|
|
69
|
+
activestorage (= 8.0.2.1)
|
|
70
|
+
activesupport (= 8.0.2.1)
|
|
71
|
+
globalid (>= 0.6.0)
|
|
72
|
+
nokogiri (>= 1.8.5)
|
|
73
|
+
actionview (8.0.2.1)
|
|
74
|
+
activesupport (= 8.0.2.1)
|
|
50
75
|
builder (~> 3.1)
|
|
51
|
-
|
|
52
|
-
rails-dom-testing (~>
|
|
53
|
-
rails-html-sanitizer (~> 1.
|
|
54
|
-
activejob (
|
|
55
|
-
activesupport (=
|
|
56
|
-
globalid (>= 0.3.
|
|
57
|
-
activemodel (
|
|
58
|
-
activesupport (=
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
erubi (~> 1.11)
|
|
77
|
+
rails-dom-testing (~> 2.2)
|
|
78
|
+
rails-html-sanitizer (~> 1.6)
|
|
79
|
+
activejob (8.0.2.1)
|
|
80
|
+
activesupport (= 8.0.2.1)
|
|
81
|
+
globalid (>= 0.3.6)
|
|
82
|
+
activemodel (8.0.2.1)
|
|
83
|
+
activesupport (= 8.0.2.1)
|
|
84
|
+
activerecord (8.0.2.1)
|
|
85
|
+
activemodel (= 8.0.2.1)
|
|
86
|
+
activesupport (= 8.0.2.1)
|
|
87
|
+
timeout (>= 0.4.0)
|
|
88
|
+
activestorage (8.0.2.1)
|
|
89
|
+
actionpack (= 8.0.2.1)
|
|
90
|
+
activejob (= 8.0.2.1)
|
|
91
|
+
activerecord (= 8.0.2.1)
|
|
92
|
+
activesupport (= 8.0.2.1)
|
|
93
|
+
marcel (~> 1.0)
|
|
94
|
+
activesupport (8.0.2.1)
|
|
95
|
+
base64
|
|
96
|
+
benchmark (>= 0.3)
|
|
97
|
+
bigdecimal
|
|
98
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
99
|
+
connection_pool (>= 2.2.5)
|
|
100
|
+
drb
|
|
101
|
+
i18n (>= 1.6, < 2)
|
|
102
|
+
logger (>= 1.4.2)
|
|
103
|
+
minitest (>= 5.1)
|
|
104
|
+
securerandom (>= 0.3)
|
|
105
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
|
106
|
+
uri (>= 0.13.1)
|
|
107
|
+
addressable (2.8.7)
|
|
108
|
+
public_suffix (>= 2.0.2, < 7.0)
|
|
109
|
+
base64 (0.3.0)
|
|
110
|
+
bcrypt (3.1.22)
|
|
111
|
+
benchmark (0.5.0)
|
|
112
|
+
bigdecimal (4.0.1)
|
|
113
|
+
builder (3.3.0)
|
|
114
|
+
capybara (3.40.0)
|
|
79
115
|
addressable
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
rack
|
|
84
|
-
|
|
85
|
-
|
|
116
|
+
matrix
|
|
117
|
+
mini_mime (>= 0.1.3)
|
|
118
|
+
nokogiri (~> 1.11)
|
|
119
|
+
rack (>= 1.6.0)
|
|
120
|
+
rack-test (>= 0.6.3)
|
|
121
|
+
regexp_parser (>= 1.5, < 3.0)
|
|
122
|
+
xpath (~> 3.2)
|
|
123
|
+
childprocess (5.1.0)
|
|
124
|
+
logger (~> 1.5)
|
|
125
|
+
climate_control (0.2.0)
|
|
86
126
|
cliver (0.3.2)
|
|
87
|
-
|
|
88
|
-
climate_control (>= 0.0.3, < 1.0)
|
|
89
|
-
coderay (1.1.1)
|
|
127
|
+
coderay (1.1.3)
|
|
90
128
|
coffee-script (2.4.1)
|
|
91
129
|
coffee-script-source
|
|
92
130
|
execjs
|
|
93
131
|
coffee-script-source (1.12.2)
|
|
94
|
-
concurrent-ruby (1.
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
132
|
+
concurrent-ruby (1.3.6)
|
|
133
|
+
connection_pool (3.0.2)
|
|
134
|
+
couch_potato (1.19.2)
|
|
135
|
+
activemodel (>= 7.2, < 8.1)
|
|
136
|
+
couchrest (~> 2.0.0)
|
|
137
|
+
json (~> 2.3)
|
|
99
138
|
couchrest (2.0.1)
|
|
100
139
|
httpclient (~> 2.8)
|
|
101
140
|
mime-types (>= 1.15)
|
|
102
141
|
multi_json (~> 1.7)
|
|
103
|
-
|
|
104
|
-
|
|
142
|
+
crass (1.0.6)
|
|
143
|
+
daemons (1.4.1)
|
|
144
|
+
date (3.5.1)
|
|
145
|
+
devise (5.0.3)
|
|
105
146
|
bcrypt (~> 3.0)
|
|
106
147
|
orm_adapter (~> 0.1)
|
|
107
|
-
railties (>=
|
|
148
|
+
railties (>= 7.0)
|
|
108
149
|
responders
|
|
109
150
|
warden (~> 1.2.3)
|
|
110
|
-
diff-lcs (1.
|
|
111
|
-
|
|
151
|
+
diff-lcs (1.6.2)
|
|
152
|
+
drb (2.2.3)
|
|
153
|
+
email_validator (2.2.4)
|
|
112
154
|
activemodel
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
155
|
+
erb (6.0.2)
|
|
156
|
+
erubi (1.13.1)
|
|
157
|
+
eventmachine (1.2.7)
|
|
158
|
+
execjs (2.10.0)
|
|
159
|
+
factory_girl (4.9.0)
|
|
117
160
|
activesupport (>= 3.0.0)
|
|
118
|
-
factory_girl_rails (4.
|
|
119
|
-
factory_girl (~> 4.
|
|
161
|
+
factory_girl_rails (4.9.0)
|
|
162
|
+
factory_girl (~> 4.9.0)
|
|
120
163
|
railties (>= 3.0.0)
|
|
121
|
-
|
|
122
|
-
|
|
164
|
+
ffi (1.17.2-aarch64-linux-gnu)
|
|
165
|
+
ffi (1.17.2-aarch64-linux-musl)
|
|
166
|
+
ffi (1.17.2-arm-linux-gnu)
|
|
167
|
+
ffi (1.17.2-arm-linux-musl)
|
|
168
|
+
ffi (1.17.2-arm64-darwin)
|
|
169
|
+
ffi (1.17.2-x86_64-darwin)
|
|
170
|
+
ffi (1.17.2-x86_64-linux-gnu)
|
|
171
|
+
ffi (1.17.2-x86_64-linux-musl)
|
|
172
|
+
font-awesome-rails (4.7.0.9)
|
|
173
|
+
railties (>= 3.2, < 9.0)
|
|
123
174
|
foundation-rails (5.5.3.2)
|
|
124
175
|
railties (>= 3.1.0)
|
|
125
176
|
sass (>= 3.3.0, < 3.5)
|
|
126
|
-
globalid (
|
|
127
|
-
activesupport (>=
|
|
128
|
-
httpclient (2.
|
|
129
|
-
|
|
130
|
-
|
|
177
|
+
globalid (1.2.1)
|
|
178
|
+
activesupport (>= 6.1)
|
|
179
|
+
httpclient (2.9.0)
|
|
180
|
+
mutex_m
|
|
181
|
+
i18n (1.14.8)
|
|
182
|
+
concurrent-ruby (~> 1.0)
|
|
183
|
+
io-console (0.8.2)
|
|
184
|
+
irb (1.17.0)
|
|
185
|
+
pp (>= 0.6.0)
|
|
186
|
+
prism (>= 1.3.0)
|
|
187
|
+
rdoc (>= 4.0.0)
|
|
188
|
+
reline (>= 0.4.2)
|
|
189
|
+
jquery-rails (4.6.0)
|
|
131
190
|
rails-dom-testing (>= 1, < 3)
|
|
132
191
|
railties (>= 4.2.0)
|
|
133
192
|
thor (>= 0.14, < 2.0)
|
|
134
|
-
json (
|
|
135
|
-
launchy (
|
|
136
|
-
addressable (~> 2.
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
193
|
+
json (2.13.2)
|
|
194
|
+
launchy (3.1.1)
|
|
195
|
+
addressable (~> 2.8)
|
|
196
|
+
childprocess (~> 5.0)
|
|
197
|
+
logger (~> 1.6)
|
|
198
|
+
logger (1.7.0)
|
|
199
|
+
loofah (2.25.1)
|
|
200
|
+
crass (~> 1.0.2)
|
|
201
|
+
nokogiri (>= 1.12.0)
|
|
202
|
+
mail (2.8.1)
|
|
203
|
+
mini_mime (>= 0.1.1)
|
|
204
|
+
net-imap
|
|
205
|
+
net-pop
|
|
206
|
+
net-smtp
|
|
207
|
+
marcel (1.0.4)
|
|
208
|
+
matrix (0.4.3)
|
|
209
|
+
method_source (1.1.0)
|
|
210
|
+
mime-types (3.7.0)
|
|
211
|
+
logger
|
|
212
|
+
mime-types-data (~> 3.2025, >= 3.2025.0507)
|
|
213
|
+
mime-types-data (3.2025.0826)
|
|
214
|
+
mimemagic (0.3.10)
|
|
215
|
+
nokogiri (~> 1)
|
|
216
|
+
rake
|
|
217
|
+
mini_mime (1.1.5)
|
|
218
|
+
minitest (6.0.2)
|
|
219
|
+
drb (~> 2.0)
|
|
220
|
+
prism (~> 1.5)
|
|
221
|
+
momentjs-rails (2.29.4.1)
|
|
222
|
+
railties (>= 3.1)
|
|
223
|
+
multi_json (1.17.0)
|
|
224
|
+
mutex_m (0.3.0)
|
|
225
|
+
net-imap (0.5.10)
|
|
226
|
+
date
|
|
227
|
+
net-protocol
|
|
228
|
+
net-pop (0.1.2)
|
|
229
|
+
net-protocol
|
|
230
|
+
net-protocol (0.2.2)
|
|
231
|
+
timeout
|
|
232
|
+
net-smtp (0.5.1)
|
|
233
|
+
net-protocol
|
|
234
|
+
nio4r (2.7.4)
|
|
235
|
+
nokogiri (1.19.2-aarch64-linux-gnu)
|
|
236
|
+
racc (~> 1.4)
|
|
237
|
+
nokogiri (1.19.2-aarch64-linux-musl)
|
|
238
|
+
racc (~> 1.4)
|
|
239
|
+
nokogiri (1.19.2-arm-linux-gnu)
|
|
240
|
+
racc (~> 1.4)
|
|
241
|
+
nokogiri (1.19.2-arm-linux-musl)
|
|
242
|
+
racc (~> 1.4)
|
|
243
|
+
nokogiri (1.19.2-arm64-darwin)
|
|
244
|
+
racc (~> 1.4)
|
|
245
|
+
nokogiri (1.19.2-x86_64-darwin)
|
|
246
|
+
racc (~> 1.4)
|
|
247
|
+
nokogiri (1.19.2-x86_64-linux-gnu)
|
|
248
|
+
racc (~> 1.4)
|
|
249
|
+
nokogiri (1.19.2-x86_64-linux-musl)
|
|
250
|
+
racc (~> 1.4)
|
|
151
251
|
orm_adapter (0.5.0)
|
|
152
|
-
paperclip (
|
|
252
|
+
paperclip (6.1.0)
|
|
153
253
|
activemodel (>= 4.2.0)
|
|
154
254
|
activesupport (>= 4.2.0)
|
|
155
|
-
cocaine (~> 0.5.5)
|
|
156
255
|
mime-types
|
|
157
256
|
mimemagic (~> 0.3.0)
|
|
158
|
-
|
|
257
|
+
terrapin (~> 0.6.0)
|
|
258
|
+
pickadate-rails (3.5.6.1)
|
|
159
259
|
railties (>= 3.1.0)
|
|
160
|
-
poltergeist (1.
|
|
161
|
-
capybara (
|
|
260
|
+
poltergeist (1.18.1)
|
|
261
|
+
capybara (>= 2.1, < 4)
|
|
162
262
|
cliver (~> 0.3.1)
|
|
163
263
|
websocket-driver (>= 0.2.0)
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
pry
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
264
|
+
pp (0.6.3)
|
|
265
|
+
prettyprint
|
|
266
|
+
prettyprint (0.2.0)
|
|
267
|
+
prism (1.9.0)
|
|
268
|
+
pry (0.15.2)
|
|
269
|
+
coderay (~> 1.1)
|
|
270
|
+
method_source (~> 1.0)
|
|
271
|
+
pry-rails (0.3.11)
|
|
272
|
+
pry (>= 0.13.0)
|
|
273
|
+
psych (5.3.1)
|
|
274
|
+
date
|
|
275
|
+
stringio
|
|
276
|
+
public_suffix (6.0.2)
|
|
277
|
+
racc (1.8.1)
|
|
278
|
+
rack (3.2.6)
|
|
279
|
+
rack-session (2.1.1)
|
|
280
|
+
base64 (>= 0.1.0)
|
|
281
|
+
rack (>= 3.0.0)
|
|
282
|
+
rack-test (2.2.0)
|
|
283
|
+
rack (>= 1.3)
|
|
284
|
+
rackup (2.3.1)
|
|
285
|
+
rack (>= 3)
|
|
286
|
+
rails (8.0.2.1)
|
|
287
|
+
actioncable (= 8.0.2.1)
|
|
288
|
+
actionmailbox (= 8.0.2.1)
|
|
289
|
+
actionmailer (= 8.0.2.1)
|
|
290
|
+
actionpack (= 8.0.2.1)
|
|
291
|
+
actiontext (= 8.0.2.1)
|
|
292
|
+
actionview (= 8.0.2.1)
|
|
293
|
+
activejob (= 8.0.2.1)
|
|
294
|
+
activemodel (= 8.0.2.1)
|
|
295
|
+
activerecord (= 8.0.2.1)
|
|
296
|
+
activestorage (= 8.0.2.1)
|
|
297
|
+
activesupport (= 8.0.2.1)
|
|
298
|
+
bundler (>= 1.15.0)
|
|
299
|
+
railties (= 8.0.2.1)
|
|
300
|
+
rails-dom-testing (2.3.0)
|
|
301
|
+
activesupport (>= 5.0.0)
|
|
302
|
+
minitest
|
|
303
|
+
nokogiri (>= 1.6)
|
|
304
|
+
rails-html-sanitizer (1.7.0)
|
|
305
|
+
loofah (~> 2.25)
|
|
306
|
+
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
|
307
|
+
railties (8.0.2.1)
|
|
308
|
+
actionpack (= 8.0.2.1)
|
|
309
|
+
activesupport (= 8.0.2.1)
|
|
310
|
+
irb (~> 1.13)
|
|
311
|
+
rackup (>= 1.0.0)
|
|
312
|
+
rake (>= 12.2)
|
|
313
|
+
thor (~> 1.0, >= 1.2.2)
|
|
314
|
+
zeitwerk (~> 2.6)
|
|
315
|
+
rake (13.3.1)
|
|
316
|
+
rdoc (7.2.0)
|
|
317
|
+
erb
|
|
318
|
+
psych (>= 4.0.0)
|
|
319
|
+
tsort
|
|
320
|
+
regexp_parser (2.11.2)
|
|
321
|
+
reline (0.6.3)
|
|
322
|
+
io-console (~> 0.5)
|
|
323
|
+
responders (3.2.0)
|
|
324
|
+
actionpack (>= 7.0)
|
|
325
|
+
railties (>= 7.0)
|
|
326
|
+
rspec-core (3.13.5)
|
|
327
|
+
rspec-support (~> 3.13.0)
|
|
328
|
+
rspec-expectations (3.13.5)
|
|
204
329
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
205
|
-
rspec-support (~> 3.
|
|
206
|
-
rspec-its (
|
|
207
|
-
rspec-core (>= 3.
|
|
208
|
-
rspec-expectations (>= 3.
|
|
209
|
-
rspec-mocks (3.5
|
|
330
|
+
rspec-support (~> 3.13.0)
|
|
331
|
+
rspec-its (2.0.0)
|
|
332
|
+
rspec-core (>= 3.13.0)
|
|
333
|
+
rspec-expectations (>= 3.13.0)
|
|
334
|
+
rspec-mocks (3.13.5)
|
|
210
335
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
211
|
-
rspec-support (~> 3.
|
|
212
|
-
rspec-rails (
|
|
213
|
-
actionpack (>=
|
|
214
|
-
activesupport (>=
|
|
215
|
-
railties (>=
|
|
216
|
-
rspec-core (~> 3.
|
|
217
|
-
rspec-expectations (~> 3.
|
|
218
|
-
rspec-mocks (~> 3.
|
|
219
|
-
rspec-support (~> 3.
|
|
220
|
-
rspec-support (3.5
|
|
221
|
-
sass (3.4.
|
|
222
|
-
sass-rails (
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
336
|
+
rspec-support (~> 3.13.0)
|
|
337
|
+
rspec-rails (8.0.2)
|
|
338
|
+
actionpack (>= 7.2)
|
|
339
|
+
activesupport (>= 7.2)
|
|
340
|
+
railties (>= 7.2)
|
|
341
|
+
rspec-core (~> 3.13)
|
|
342
|
+
rspec-expectations (~> 3.13)
|
|
343
|
+
rspec-mocks (~> 3.13)
|
|
344
|
+
rspec-support (~> 3.13)
|
|
345
|
+
rspec-support (3.13.5)
|
|
346
|
+
sass (3.4.25)
|
|
347
|
+
sass-rails (6.0.0)
|
|
348
|
+
sassc-rails (~> 2.1, >= 2.1.1)
|
|
349
|
+
sassc (2.4.0)
|
|
350
|
+
ffi (~> 1.9)
|
|
351
|
+
sassc-rails (2.1.2)
|
|
352
|
+
railties (>= 4.0.0)
|
|
353
|
+
sassc (>= 2.0)
|
|
354
|
+
sprockets (> 3.0)
|
|
355
|
+
sprockets-rails
|
|
356
|
+
tilt
|
|
357
|
+
securerandom (0.4.1)
|
|
358
|
+
slim (5.2.1)
|
|
359
|
+
temple (~> 0.10.0)
|
|
360
|
+
tilt (>= 2.1.0)
|
|
361
|
+
slim-rails (3.7.0)
|
|
232
362
|
actionpack (>= 3.1)
|
|
233
363
|
railties (>= 3.1)
|
|
234
|
-
slim (
|
|
235
|
-
|
|
236
|
-
sprockets (3.7.1)
|
|
364
|
+
slim (>= 3.0, < 6.0, != 5.0.0)
|
|
365
|
+
sprockets (4.2.2)
|
|
237
366
|
concurrent-ruby (~> 1.0)
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
367
|
+
logger
|
|
368
|
+
rack (>= 2.2.4, < 4)
|
|
369
|
+
sprockets-rails (3.5.2)
|
|
370
|
+
actionpack (>= 6.1)
|
|
371
|
+
activesupport (>= 6.1)
|
|
242
372
|
sprockets (>= 3.0.0)
|
|
243
|
-
|
|
244
|
-
|
|
373
|
+
stringio (3.2.0)
|
|
374
|
+
temple (0.10.4)
|
|
375
|
+
terrapin (0.6.0)
|
|
376
|
+
climate_control (>= 0.0.3, < 1.0)
|
|
377
|
+
thin (2.0.1)
|
|
245
378
|
daemons (~> 1.0, >= 1.0.9)
|
|
246
379
|
eventmachine (~> 1.0, >= 1.0.4)
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
tilt (2.
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
tzinfo (
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
380
|
+
logger
|
|
381
|
+
rack (>= 1, < 4)
|
|
382
|
+
thor (1.5.0)
|
|
383
|
+
tilt (2.6.1)
|
|
384
|
+
timeout (0.4.3)
|
|
385
|
+
tsort (0.2.0)
|
|
386
|
+
tzinfo (2.0.6)
|
|
387
|
+
concurrent-ruby (~> 1.0)
|
|
388
|
+
uri (1.1.1)
|
|
389
|
+
useragent (0.16.11)
|
|
390
|
+
warden (1.2.9)
|
|
391
|
+
rack (>= 2.0.9)
|
|
392
|
+
websocket-driver (0.8.0)
|
|
393
|
+
base64
|
|
258
394
|
websocket-extensions (>= 0.1.0)
|
|
259
|
-
websocket-extensions (0.1.
|
|
260
|
-
xpath (2.0
|
|
261
|
-
nokogiri (~> 1.
|
|
395
|
+
websocket-extensions (0.1.5)
|
|
396
|
+
xpath (3.2.0)
|
|
397
|
+
nokogiri (~> 1.8)
|
|
398
|
+
zeitwerk (2.7.5)
|
|
262
399
|
|
|
263
400
|
PLATFORMS
|
|
264
|
-
|
|
401
|
+
aarch64-linux-gnu
|
|
402
|
+
aarch64-linux-musl
|
|
403
|
+
arm-linux-gnu
|
|
404
|
+
arm-linux-musl
|
|
405
|
+
arm64-darwin
|
|
406
|
+
x86_64-darwin
|
|
407
|
+
x86_64-linux-gnu
|
|
408
|
+
x86_64-linux-musl
|
|
265
409
|
|
|
266
410
|
DEPENDENCIES
|
|
267
411
|
ace-rails-ap
|
|
268
|
-
bourbon
|
|
269
412
|
capybara
|
|
270
413
|
cmtool!
|
|
271
414
|
coffee-script
|
|
@@ -277,18 +420,18 @@ DEPENDENCIES
|
|
|
277
420
|
foundation-rails (~> 5.5)
|
|
278
421
|
jquery-rails
|
|
279
422
|
launchy
|
|
423
|
+
momentjs-rails
|
|
280
424
|
paperclip (>= 3.4, != 4.3.0)
|
|
281
425
|
pickadate-rails
|
|
282
426
|
poltergeist
|
|
283
427
|
pry-rails
|
|
284
|
-
rails (~>
|
|
428
|
+
rails (~> 8.0.1)
|
|
285
429
|
rspec-its
|
|
286
430
|
rspec-rails
|
|
287
431
|
sass-rails
|
|
288
432
|
simply_stored!
|
|
289
433
|
slim-rails
|
|
290
434
|
thin
|
|
291
|
-
tinymce-rails
|
|
292
435
|
|
|
293
436
|
BUNDLED WITH
|
|
294
|
-
|
|
437
|
+
2.7.1
|
|
@@ -17,6 +17,10 @@ class HtmlEdit
|
|
|
17
17
|
editor.setValue template_field.val(), -1
|
|
18
18
|
editor.getSession().setMode 'ace/mode/slim'
|
|
19
19
|
console.log "Editing Emblem using Slim mode for ACE editor"
|
|
20
|
+
else if data_mode = text_field.data('mode')
|
|
21
|
+
editor.setValue text_field.val(), -1
|
|
22
|
+
editor.getSession().setMode "ace/mode/#{data_mode}"
|
|
23
|
+
console.log "Editing #{data_mode} using ACE editor"
|
|
20
24
|
else
|
|
21
25
|
editor.setValue text_field.val(), -1
|
|
22
26
|
editor.getSession().setMode 'ace/mode/handlebars'
|
data/app/models/cmtool/image.rb
CHANGED
|
@@ -2,6 +2,10 @@ module Cmtool
|
|
|
2
2
|
class Image
|
|
3
3
|
include SimplyStored::Couch
|
|
4
4
|
include Paperclip::Glue
|
|
5
|
+
# TODO: Replace Paperclip with SimplyStored::HasAttachment
|
|
6
|
+
# 1. Change `include Paperclip::Glue` to `include SimplyStored::HasAttachment`
|
|
7
|
+
# 2. Replace `has_attached_file :file, styles: {...}` with `has_attachment :file, styles: {...}`
|
|
8
|
+
# 3. Replace `validates_attachment` with standard Rails validations
|
|
5
9
|
|
|
6
10
|
property :file_file_name
|
|
7
11
|
property :file_content_type
|
data/app/models/cmtool/news.rb
CHANGED
|
@@ -2,6 +2,9 @@ module Cmtool
|
|
|
2
2
|
class News
|
|
3
3
|
include SimplyStored::Couch
|
|
4
4
|
include Paperclip::Glue
|
|
5
|
+
# TODO: Replace Paperclip with SimplyStored::HasAttachment
|
|
6
|
+
# 1. Change `include Paperclip::Glue` to `include SimplyStored::HasAttachment`
|
|
7
|
+
# 2. Replace `has_attached_file :image, styles: {...}` with `has_attachment :image, styles: {...}`
|
|
5
8
|
|
|
6
9
|
property :title
|
|
7
10
|
property :active, type: :boolean, default: true
|
data/app/models/cmtool/quote.rb
CHANGED
|
@@ -2,6 +2,9 @@ module Cmtool
|
|
|
2
2
|
class Quote
|
|
3
3
|
include SimplyStored::Couch
|
|
4
4
|
include Paperclip::Glue
|
|
5
|
+
# TODO: Replace Paperclip with SimplyStored::HasAttachment
|
|
6
|
+
# 1. Change `include Paperclip::Glue` to `include SimplyStored::HasAttachment`
|
|
7
|
+
# 2. Replace `has_attached_file :image, styles: {...}` with `has_attachment :image, styles: {...}`
|
|
5
8
|
|
|
6
9
|
property :owner
|
|
7
10
|
property :function
|
|
@@ -37,6 +37,12 @@ javascript:
|
|
|
37
37
|
.field
|
|
38
38
|
= f.label :footer
|
|
39
39
|
= f.text_area :footer, rows: 15, cols: 80, class: 'html-content'
|
|
40
|
+
= collapsible_content 'Page Settings (JSON)' do
|
|
41
|
+
.field
|
|
42
|
+
= f.label :page_settings
|
|
43
|
+
p.help-text JSON configuration for this page. Use Ace editor in JSON mode.
|
|
44
|
+
= f.text_area :page_settings, rows: 12, cols: 80, class: 'html-content', data: { mode: 'json' },
|
|
45
|
+
value: (f.object.page_settings.presence || {}).to_json
|
|
40
46
|
.form-row
|
|
41
47
|
.form-label= f.label :parent_id
|
|
42
48
|
.form-field= f.select :parent_id, tree_options_for_select(Page.full_tree(@page.locale || Page.locales.first), exclude: @page.id, selected: @page.parent_id), include_blank: ' -- '
|
data/lib/cmtool/engine.rb
CHANGED
|
@@ -13,28 +13,28 @@ require 'bourbon'
|
|
|
13
13
|
module Cmtool
|
|
14
14
|
class Engine < ::Rails::Engine
|
|
15
15
|
isolate_namespace Cmtool
|
|
16
|
-
initializer 'cmtool.build_menu', after: 'load_config_initializers' do |app|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
end
|
|
16
|
+
# initializer 'cmtool.build_menu', after: 'load_config_initializers' do |app|
|
|
17
|
+
# require 'email_validator'
|
|
18
|
+
# #require 'bourbon'
|
|
19
|
+
# require 'slim-rails'
|
|
20
|
+
# require 'paperclip'
|
|
21
|
+
# require 'devise'
|
|
22
|
+
# require 'devise_simply_stored'
|
|
23
|
+
# require 'jquery-rails'
|
|
24
|
+
# # require 'tinymce-rails'
|
|
25
|
+
#
|
|
26
|
+
# require 'page' # app/models/page.rb
|
|
27
|
+
# require 'user' # app/models/user.rb
|
|
28
|
+
# require 'cmtool/yml_file'
|
|
29
|
+
# require 'cmtool/keyword'
|
|
30
|
+
# require 'cmtool/news'
|
|
31
|
+
# require 'cmtool/faq'
|
|
32
|
+
# require 'cmtool/quote'
|
|
33
|
+
# require 'cmtool/contact_form'
|
|
34
|
+
# require 'cmtool/newsletter_subscription'
|
|
35
|
+
# require 'cmtool/image'
|
|
36
|
+
# require 'cmtool/directory'
|
|
37
|
+
# end
|
|
38
38
|
|
|
39
39
|
config.after_initialize do
|
|
40
40
|
Cmtool::Menu.register do
|
data/lib/cmtool/includes/page.rb
CHANGED
|
@@ -21,6 +21,13 @@ module Cmtool
|
|
|
21
21
|
klass.property :active, type: :boolean, default: true
|
|
22
22
|
klass.property :layout
|
|
23
23
|
klass.property :in_menu, type: :boolean, default: true
|
|
24
|
+
klass.property :page_settings, type: Hash, default: {}
|
|
25
|
+
|
|
26
|
+
# JSON string parsing (safety net until couch_potato type: Hash handles this)
|
|
27
|
+
klass.send(:define_method, :page_settings=) do |val|
|
|
28
|
+
val = JSON.parse(val) if val.is_a?(String)
|
|
29
|
+
super(val)
|
|
30
|
+
end
|
|
24
31
|
|
|
25
32
|
klass.has_ancestry by_property: :locale
|
|
26
33
|
|
|
@@ -66,7 +73,7 @@ module Cmtool
|
|
|
66
73
|
end
|
|
67
74
|
|
|
68
75
|
def locales
|
|
69
|
-
Rails.configuration.i18n.available_locales.presence || []
|
|
76
|
+
Rails.configuration.i18n.available_locales.presence || [:en]
|
|
70
77
|
end
|
|
71
78
|
|
|
72
79
|
def default_locale
|
|
@@ -13,7 +13,7 @@ module Cmtool
|
|
|
13
13
|
# General catcher for pages
|
|
14
14
|
def show
|
|
15
15
|
@page = ::Page.find_by_name_and_locale(params[:name], I18n.locale.to_s)
|
|
16
|
-
|
|
16
|
+
return not_found unless @page
|
|
17
17
|
|
|
18
18
|
@sub_pages = [@page] + @page.children.select{|child| child.in_menu.present? }
|
|
19
19
|
template = "pages/#{@page.name}"
|
data/lib/cmtool/version.rb
CHANGED
data/lib/cmtool.rb
CHANGED
|
@@ -5,6 +5,13 @@ require 'cmtool/includes/user'
|
|
|
5
5
|
require 'cmtool/includes/page'
|
|
6
6
|
require 'cmtool/includes/pages_controller'
|
|
7
7
|
require 'cmtool/menu'
|
|
8
|
+
require 'email_validator'
|
|
9
|
+
|
|
10
|
+
# Paperclip replacement — stores file metadata as CouchDB properties,
|
|
11
|
+
# handles thumbnail generation via MiniMagick.
|
|
12
|
+
# Replace `include Paperclip::Glue` + `has_attached_file` with
|
|
13
|
+
# `include SimplyStored::HasAttachment` + `has_attachment`
|
|
14
|
+
# has_attachment now in simply_stored gem
|
|
8
15
|
|
|
9
16
|
module Cmtool
|
|
10
17
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cmtool
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Benjamin ter Kuile
|
|
@@ -1372,7 +1372,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1372
1372
|
- !ruby/object:Gem::Version
|
|
1373
1373
|
version: '0'
|
|
1374
1374
|
requirements: []
|
|
1375
|
-
rubygems_version: 3.
|
|
1375
|
+
rubygems_version: 3.7.2
|
|
1376
1376
|
specification_version: 4
|
|
1377
1377
|
summary: A rails 3.2+ CMS as engine for a CouchDB backend
|
|
1378
1378
|
test_files:
|