Skip to content

Commit 5100ef2

Browse files
committed
Added Comment and remove sitemap: posts, categories and pages. Wrote tests for comment controller and system.
1 parent d57debf commit 5100ef2

38 files changed

+328
-228
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,6 @@
3232
/public/assets
3333

3434
# Ignore master key for decrypting credentials and more.
35-
/config/master.key
35+
/config/master.key
36+
37+
.vscode

.vscode/launch.json

-17
This file was deleted.

Gemfile.lock

+91-91
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actioncable (7.0.4.1)
5-
actionpack (= 7.0.4.1)
6-
activesupport (= 7.0.4.1)
4+
actioncable (7.0.4.3)
5+
actionpack (= 7.0.4.3)
6+
activesupport (= 7.0.4.3)
77
nio4r (~> 2.0)
88
websocket-driver (>= 0.6.1)
9-
actionmailbox (7.0.4.1)
10-
actionpack (= 7.0.4.1)
11-
activejob (= 7.0.4.1)
12-
activerecord (= 7.0.4.1)
13-
activestorage (= 7.0.4.1)
14-
activesupport (= 7.0.4.1)
9+
actionmailbox (7.0.4.3)
10+
actionpack (= 7.0.4.3)
11+
activejob (= 7.0.4.3)
12+
activerecord (= 7.0.4.3)
13+
activestorage (= 7.0.4.3)
14+
activesupport (= 7.0.4.3)
1515
mail (>= 2.7.1)
1616
net-imap
1717
net-pop
1818
net-smtp
19-
actionmailer (7.0.4.1)
20-
actionpack (= 7.0.4.1)
21-
actionview (= 7.0.4.1)
22-
activejob (= 7.0.4.1)
23-
activesupport (= 7.0.4.1)
19+
actionmailer (7.0.4.3)
20+
actionpack (= 7.0.4.3)
21+
actionview (= 7.0.4.3)
22+
activejob (= 7.0.4.3)
23+
activesupport (= 7.0.4.3)
2424
mail (~> 2.5, >= 2.5.4)
2525
net-imap
2626
net-pop
2727
net-smtp
2828
rails-dom-testing (~> 2.0)
29-
actionpack (7.0.4.1)
30-
actionview (= 7.0.4.1)
31-
activesupport (= 7.0.4.1)
29+
actionpack (7.0.4.3)
30+
actionview (= 7.0.4.3)
31+
activesupport (= 7.0.4.3)
3232
rack (~> 2.0, >= 2.2.0)
3333
rack-test (>= 0.6.3)
3434
rails-dom-testing (~> 2.0)
3535
rails-html-sanitizer (~> 1.0, >= 1.2.0)
36-
actiontext (7.0.4.1)
37-
actionpack (= 7.0.4.1)
38-
activerecord (= 7.0.4.1)
39-
activestorage (= 7.0.4.1)
40-
activesupport (= 7.0.4.1)
36+
actiontext (7.0.4.3)
37+
actionpack (= 7.0.4.3)
38+
activerecord (= 7.0.4.3)
39+
activestorage (= 7.0.4.3)
40+
activesupport (= 7.0.4.3)
4141
globalid (>= 0.6.0)
4242
nokogiri (>= 1.8.5)
43-
actionview (7.0.4.1)
44-
activesupport (= 7.0.4.1)
43+
actionview (7.0.4.3)
44+
activesupport (= 7.0.4.3)
4545
builder (~> 3.1)
4646
erubi (~> 1.4)
4747
rails-dom-testing (~> 2.0)
@@ -55,38 +55,38 @@ GEM
5555
kaminari (~> 1.0, >= 1.2.1)
5656
railties (>= 6.1, < 7.1)
5757
ransack (>= 2.1.1, < 4)
58-
activejob (7.0.4.1)
59-
activesupport (= 7.0.4.1)
58+
activejob (7.0.4.3)
59+
activesupport (= 7.0.4.3)
6060
globalid (>= 0.3.6)
61-
activemodel (7.0.4.1)
62-
activesupport (= 7.0.4.1)
63-
activerecord (7.0.4.1)
64-
activemodel (= 7.0.4.1)
65-
activesupport (= 7.0.4.1)
66-
activestorage (7.0.4.1)
67-
actionpack (= 7.0.4.1)
68-
activejob (= 7.0.4.1)
69-
activerecord (= 7.0.4.1)
70-
activesupport (= 7.0.4.1)
61+
activemodel (7.0.4.3)
62+
activesupport (= 7.0.4.3)
63+
activerecord (7.0.4.3)
64+
activemodel (= 7.0.4.3)
65+
activesupport (= 7.0.4.3)
66+
activestorage (7.0.4.3)
67+
actionpack (= 7.0.4.3)
68+
activejob (= 7.0.4.3)
69+
activerecord (= 7.0.4.3)
70+
activesupport (= 7.0.4.3)
7171
marcel (~> 1.0)
7272
mini_mime (>= 1.1.0)
73-
activesupport (7.0.4.1)
73+
activesupport (7.0.4.3)
7474
concurrent-ruby (~> 1.0, >= 1.0.2)
7575
i18n (>= 1.6, < 2)
7676
minitest (>= 5.1)
7777
tzinfo (~> 2.0)
78-
addressable (2.8.1)
78+
addressable (2.8.4)
7979
public_suffix (>= 2.0.2, < 6.0)
8080
arbre (1.5.0)
8181
activesupport (>= 3.0.0, < 7.1)
8282
ruby2_keywords (>= 0.0.2, < 1.0)
8383
ast (2.4.2)
8484
bcrypt (3.1.18)
8585
bindex (0.8.1)
86-
bootsnap (1.15.0)
86+
bootsnap (1.16.0)
8787
msgpack (~> 1.2)
8888
builder (3.2.4)
89-
capybara (3.38.0)
89+
capybara (3.39.0)
9090
addressable
9191
matrix
9292
mini_mime (>= 0.1.3)
@@ -95,13 +95,13 @@ GEM
9595
rack-test (>= 0.6.3)
9696
regexp_parser (>= 1.5, < 3.0)
9797
xpath (~> 3.2)
98-
concurrent-ruby (1.1.10)
98+
concurrent-ruby (1.2.2)
9999
crass (1.0.6)
100100
date (3.3.3)
101-
debug (1.7.1)
101+
debug (1.7.2)
102102
irb (>= 1.5.0)
103103
reline (>= 0.3.1)
104-
devise (4.8.1)
104+
devise (4.9.2)
105105
bcrypt (~> 3.0)
106106
orm_adapter (~> 0.1)
107107
railties (>= 4.1.0)
@@ -113,20 +113,20 @@ GEM
113113
actionpack (>= 5.2.0)
114114
formtastic_i18n (0.7.0)
115115
geocoder (1.8.1)
116-
globalid (1.0.1)
116+
globalid (1.1.0)
117117
activesupport (>= 5.0)
118-
has_scope (0.8.0)
118+
has_scope (0.8.1)
119119
actionpack (>= 5.2)
120120
activesupport (>= 5.2)
121-
i18n (1.12.0)
121+
i18n (1.13.0)
122122
concurrent-ruby (~> 1.0)
123123
inherited_resources (1.13.1)
124124
actionpack (>= 5.2, < 7.1)
125125
has_scope (~> 0.6)
126126
railties (>= 5.2, < 7.1)
127127
responders (>= 2, < 4)
128128
io-console (0.6.0)
129-
irb (1.6.3)
129+
irb (1.6.4)
130130
reline (>= 0.3.0)
131131
jbuilder (2.11.5)
132132
actionview (>= 5.0.0)
@@ -148,10 +148,10 @@ GEM
148148
activerecord
149149
kaminari-core (= 1.2.2)
150150
kaminari-core (1.2.2)
151-
loofah (2.19.1)
151+
loofah (2.20.0)
152152
crass (~> 1.0.2)
153153
nokogiri (>= 1.5.9)
154-
mail (2.8.0.1)
154+
mail (2.8.1)
155155
mini_mime (>= 0.1.1)
156156
net-imap
157157
net-pop
@@ -162,8 +162,8 @@ GEM
162162
actionpack (>= 3.2.0, < 7.1)
163163
method_source (1.0.0)
164164
mini_mime (1.1.2)
165-
minitest (5.17.0)
166-
msgpack (1.6.0)
165+
minitest (5.18.0)
166+
msgpack (1.7.0)
167167
net-imap (0.3.4)
168168
date
169169
net-protocol
@@ -173,43 +173,43 @@ GEM
173173
timeout
174174
net-smtp (0.3.3)
175175
net-protocol
176-
nio4r (2.5.8)
177-
nokogiri (1.14.0-x86_64-linux)
176+
nio4r (2.5.9)
177+
nokogiri (1.14.3-x86_64-linux)
178178
racc (~> 1.4)
179179
orm_adapter (0.5.0)
180-
parallel (1.22.1)
181-
parser (3.2.0.0)
180+
parallel (1.23.0)
181+
parser (3.2.2.1)
182182
ast (~> 2.4.1)
183-
pg (1.4.6)
183+
pg (1.5.2)
184184
public_suffix (5.0.1)
185185
puma (5.6.5)
186186
nio4r (~> 2.0)
187187
racc (1.6.2)
188-
rack (2.2.6.2)
189-
rack-test (2.0.2)
188+
rack (2.2.7)
189+
rack-test (2.1.0)
190190
rack (>= 1.3)
191-
rails (7.0.4.1)
192-
actioncable (= 7.0.4.1)
193-
actionmailbox (= 7.0.4.1)
194-
actionmailer (= 7.0.4.1)
195-
actionpack (= 7.0.4.1)
196-
actiontext (= 7.0.4.1)
197-
actionview (= 7.0.4.1)
198-
activejob (= 7.0.4.1)
199-
activemodel (= 7.0.4.1)
200-
activerecord (= 7.0.4.1)
201-
activestorage (= 7.0.4.1)
202-
activesupport (= 7.0.4.1)
191+
rails (7.0.4.3)
192+
actioncable (= 7.0.4.3)
193+
actionmailbox (= 7.0.4.3)
194+
actionmailer (= 7.0.4.3)
195+
actionpack (= 7.0.4.3)
196+
actiontext (= 7.0.4.3)
197+
actionview (= 7.0.4.3)
198+
activejob (= 7.0.4.3)
199+
activemodel (= 7.0.4.3)
200+
activerecord (= 7.0.4.3)
201+
activestorage (= 7.0.4.3)
202+
activesupport (= 7.0.4.3)
203203
bundler (>= 1.15.0)
204-
railties (= 7.0.4.1)
204+
railties (= 7.0.4.3)
205205
rails-dom-testing (2.0.3)
206206
activesupport (>= 4.2.0)
207207
nokogiri (>= 1.6)
208-
rails-html-sanitizer (1.4.4)
208+
rails-html-sanitizer (1.5.0)
209209
loofah (~> 2.19, >= 2.19.1)
210-
railties (7.0.4.1)
211-
actionpack (= 7.0.4.1)
212-
activesupport (= 7.0.4.1)
210+
railties (7.0.4.3)
211+
actionpack (= 7.0.4.3)
212+
activesupport (= 7.0.4.3)
213213
method_source
214214
rake (>= 12.2)
215215
thor (~> 1.0)
@@ -220,26 +220,26 @@ GEM
220220
activerecord (>= 6.1.5)
221221
activesupport (>= 6.1.5)
222222
i18n
223-
regexp_parser (2.6.1)
224-
reline (0.3.2)
223+
regexp_parser (2.8.0)
224+
reline (0.3.3)
225225
io-console (~> 0.5)
226-
responders (3.0.1)
227-
actionpack (>= 5.0)
228-
railties (>= 5.0)
226+
responders (3.1.0)
227+
actionpack (>= 5.2)
228+
railties (>= 5.2)
229229
rexml (3.2.5)
230-
rubocop (1.44.1)
230+
rubocop (1.50.2)
231231
json (~> 2.3)
232232
parallel (~> 1.10)
233233
parser (>= 3.2.0.0)
234234
rainbow (>= 2.2.2, < 4.0)
235235
regexp_parser (>= 1.8, < 3.0)
236236
rexml (>= 3.2.5, < 4.0)
237-
rubocop-ast (>= 1.24.1, < 2.0)
237+
rubocop-ast (>= 1.28.0, < 2.0)
238238
ruby-progressbar (~> 1.7)
239239
unicode-display_width (>= 2.4.0, < 3.0)
240-
rubocop-ast (1.24.1)
241-
parser (>= 3.1.1.0)
242-
ruby-progressbar (1.11.0)
240+
rubocop-ast (1.28.0)
241+
parser (>= 3.2.1.0)
242+
ruby-progressbar (1.13.0)
243243
ruby2_keywords (0.0.5)
244244
rubyzip (2.3.2)
245245
sass-rails (6.0.0)
@@ -252,7 +252,7 @@ GEM
252252
sprockets (> 3.0)
253253
sprockets-rails
254254
tilt
255-
selenium-webdriver (4.7.1)
255+
selenium-webdriver (4.9.0)
256256
rexml (~> 3.2, >= 3.2.5)
257257
rubyzip (>= 1.2.2, < 3.0)
258258
websocket (~> 1.0)
@@ -264,9 +264,9 @@ GEM
264264
activesupport (>= 5.2)
265265
sprockets (>= 3.0.0)
266266
thor (1.2.1)
267-
tilt (2.0.11)
268-
timeout (0.3.1)
269-
tzinfo (2.0.5)
267+
tilt (2.1.0)
268+
timeout (0.3.2)
269+
tzinfo (2.0.6)
270270
concurrent-ruby (~> 1.0)
271271
unicode-display_width (2.4.2)
272272
warden (1.2.9)
@@ -286,7 +286,7 @@ GEM
286286
websocket-extensions (0.1.5)
287287
xpath (3.2.0)
288288
nokogiri (~> 1.8)
289-
zeitwerk (2.6.6)
289+
zeitwerk (2.6.7)
290290

291291
PLATFORMS
292292
x86_64-linux
@@ -318,4 +318,4 @@ RUBY VERSION
318318
ruby 3.2.2p53
319319

320320
BUNDLED WITH
321-
2.4.1
321+
2.4.12

app/admin/post_comments.rb

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ActiveAdmin.register Comment, as: 'PostComments' do
2+
permit_params :name, :email, :body, :published, :post_id
3+
end

0 commit comments

Comments
 (0)