Skip to content

Commit 9215f51

Browse files
committed
Merge branch 'master' into dietary-restrictions
2 parents de1cfa9 + c1deed3 commit 9215f51

File tree

18 files changed

+194
-188
lines changed

18 files changed

+194
-188
lines changed

.github/ISSUE_TEMPLATE/ISSUE_TEMPLATE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
---
2+
name: New issue
3+
about: Use this template for tracking new issues
4+
---
5+
16
## Description of the issue 📄
27

38
## Screenshots 📷

.haml-lint.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
linters:
2+
# We don't need to enforce line length in HAML files
3+
LineLength:
4+
enabled: false
5+
# We don't need to enforce length of HAML files
6+
ViewLength:
7+
enabled: false

.rubocop.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@ AllCops:
99
- bin/**/*
1010
- vendor/bundle/**/*
1111

12-
require:
13-
- rubocop
12+
plugins:
13+
- rubocop-performance
1414
- rubocop-rails
1515
- rubocop-rspec
16-
- rubocop-performance
1716

1817
Layout/LineLength:
1918
Max: 120
2019
Exclude:
2120
- "spec/**/*"
21+
- "app/views/pages/*.haml"
22+
- "app/views/**/*.erb"
2223

2324
Layout/EndOfLine:
2425
EnforcedStyle: lf

Gemfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ gem 'rails', '~> 7.1.5.1' # LOCKED: It is Rails.
55
# The original asset pipeline for Rails [https://github.com/rails/sprockets-rails]
66
gem 'sprockets-rails'
77

8+
gem "amazing_print" # colourful output (suggested by rails_semantic_logger)
9+
gem "rails_semantic_logger" # condense log lines: https://github.com/codebar/planner/issues/2339
10+
811
gem 'acts-as-taggable-on'
912
gem 'benchmark' # LOCKED: Added because of activesupport 7.0
1013
gem 'bigdecimal' # LOCKED: Added because of activesupport 7.0
@@ -73,6 +76,7 @@ gem 'public_activity'
7376
group :development do
7477
gem 'better_errors'
7578
gem 'binding_of_caller'
79+
gem 'haml_lint', require: false
7680
gem 'letter_opener'
7781
gem 'web-console', '>= 4.1.0'
7882
# Display performance information such as SQL time and flame graphs for each request in your browser.
@@ -113,10 +117,10 @@ end
113117

114118
group :production do
115119
gem 'foreman'
116-
gem 'rails_12factor'
117120
end
118121

119122
gem 'rollbar'
120123
gem 'scout_apm'
121124

122125
gem 'carrierwave-aws', '~> 1.6'
126+
gem "sitemap_generator", github: "kjvarga/sitemap_generator", branch: "master" # LOCKED: When a version higher than 6.3.0 is released, drop this LOCKED.

Gemfile.lock

Lines changed: 88 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,79 @@
1+
GIT
2+
remote: https://github.com/kjvarga/sitemap_generator.git
3+
revision: 84fb1fef9f32ae9ea6226445b35b89a509291677
4+
branch: master
5+
specs:
6+
sitemap_generator (6.3.0)
7+
builder (~> 3.0)
8+
19
GEM
210
remote: https://rubygems.org/
311
specs:
4-
actioncable (7.1.5.1)
5-
actionpack (= 7.1.5.1)
6-
activesupport (= 7.1.5.1)
12+
actioncable (7.1.5.2)
13+
actionpack (= 7.1.5.2)
14+
activesupport (= 7.1.5.2)
715
nio4r (~> 2.0)
816
websocket-driver (>= 0.6.1)
917
zeitwerk (~> 2.6)
10-
actionmailbox (7.1.5.1)
11-
actionpack (= 7.1.5.1)
12-
activejob (= 7.1.5.1)
13-
activerecord (= 7.1.5.1)
14-
activestorage (= 7.1.5.1)
15-
activesupport (= 7.1.5.1)
18+
actionmailbox (7.1.5.2)
19+
actionpack (= 7.1.5.2)
20+
activejob (= 7.1.5.2)
21+
activerecord (= 7.1.5.2)
22+
activestorage (= 7.1.5.2)
23+
activesupport (= 7.1.5.2)
1624
mail (>= 2.7.1)
1725
net-imap
1826
net-pop
1927
net-smtp
20-
actionmailer (7.1.5.1)
21-
actionpack (= 7.1.5.1)
22-
actionview (= 7.1.5.1)
23-
activejob (= 7.1.5.1)
24-
activesupport (= 7.1.5.1)
28+
actionmailer (7.1.5.2)
29+
actionpack (= 7.1.5.2)
30+
actionview (= 7.1.5.2)
31+
activejob (= 7.1.5.2)
32+
activesupport (= 7.1.5.2)
2533
mail (~> 2.5, >= 2.5.4)
2634
net-imap
2735
net-pop
2836
net-smtp
2937
rails-dom-testing (~> 2.2)
30-
actionpack (7.1.5.1)
31-
actionview (= 7.1.5.1)
32-
activesupport (= 7.1.5.1)
38+
actionpack (7.1.5.2)
39+
actionview (= 7.1.5.2)
40+
activesupport (= 7.1.5.2)
3341
nokogiri (>= 1.8.5)
3442
racc
3543
rack (>= 2.2.4)
3644
rack-session (>= 1.0.1)
3745
rack-test (>= 0.6.3)
3846
rails-dom-testing (~> 2.2)
3947
rails-html-sanitizer (~> 1.6)
40-
actiontext (7.1.5.1)
41-
actionpack (= 7.1.5.1)
42-
activerecord (= 7.1.5.1)
43-
activestorage (= 7.1.5.1)
44-
activesupport (= 7.1.5.1)
48+
actiontext (7.1.5.2)
49+
actionpack (= 7.1.5.2)
50+
activerecord (= 7.1.5.2)
51+
activestorage (= 7.1.5.2)
52+
activesupport (= 7.1.5.2)
4553
globalid (>= 0.6.0)
4654
nokogiri (>= 1.8.5)
47-
actionview (7.1.5.1)
48-
activesupport (= 7.1.5.1)
55+
actionview (7.1.5.2)
56+
activesupport (= 7.1.5.2)
4957
builder (~> 3.1)
5058
erubi (~> 1.11)
5159
rails-dom-testing (~> 2.2)
5260
rails-html-sanitizer (~> 1.6)
53-
activejob (7.1.5.1)
54-
activesupport (= 7.1.5.1)
61+
activejob (7.1.5.2)
62+
activesupport (= 7.1.5.2)
5563
globalid (>= 0.3.6)
56-
activemodel (7.1.5.1)
57-
activesupport (= 7.1.5.1)
58-
activerecord (7.1.5.1)
59-
activemodel (= 7.1.5.1)
60-
activesupport (= 7.1.5.1)
64+
activemodel (7.1.5.2)
65+
activesupport (= 7.1.5.2)
66+
activerecord (7.1.5.2)
67+
activemodel (= 7.1.5.2)
68+
activesupport (= 7.1.5.2)
6169
timeout (>= 0.4.0)
62-
activestorage (7.1.5.1)
63-
actionpack (= 7.1.5.1)
64-
activejob (= 7.1.5.1)
65-
activerecord (= 7.1.5.1)
66-
activesupport (= 7.1.5.1)
70+
activestorage (7.1.5.2)
71+
actionpack (= 7.1.5.2)
72+
activejob (= 7.1.5.2)
73+
activerecord (= 7.1.5.2)
74+
activesupport (= 7.1.5.2)
6775
marcel (~> 1.0)
68-
activesupport (7.1.5.1)
76+
activesupport (7.1.5.2)
6977
base64
7078
benchmark (>= 0.3)
7179
bigdecimal
@@ -83,6 +91,7 @@ GEM
8391
zeitwerk (>= 2.4, < 3.0)
8492
addressable (2.8.7)
8593
public_suffix (>= 2.0.2, < 7.0)
94+
amazing_print (1.8.1)
8695
ast (2.4.3)
8796
aws-eventstream (1.4.0)
8897
aws-partitions (1.1137.0)
@@ -108,7 +117,7 @@ GEM
108117
erubi (>= 1.0.0)
109118
rack (>= 0.9.0)
110119
rouge (>= 1.0.0)
111-
bigdecimal (3.2.2)
120+
bigdecimal (3.2.3)
112121
bindex (0.8.1)
113122
binding_of_caller (1.0.1)
114123
debug_inspector (>= 1.2.0)
@@ -156,7 +165,7 @@ GEM
156165
commonmarker (2.3.2)
157166
rb_sys (~> 0.9)
158167
concurrent-ruby (1.3.5)
159-
connection_pool (2.5.3)
168+
connection_pool (2.5.4)
160169
crass (1.0.6)
161170
css_parser (1.14.0)
162171
addressable
@@ -207,6 +216,12 @@ GEM
207216
temple (>= 0.8.2)
208217
thor
209218
tilt
219+
haml_lint (0.66.0)
220+
haml (>= 5.0)
221+
parallel (~> 1.10)
222+
rainbow
223+
rubocop (>= 1.0)
224+
sysexits (~> 1.1)
210225
hashie (5.0.0)
211226
high_voltage (4.0.0)
212227
htmlentities (4.3.4)
@@ -284,7 +299,7 @@ GEM
284299
net-smtp (0.5.1)
285300
net-protocol
286301
nio4r (2.7.4)
287-
nokogiri (1.18.9)
302+
nokogiri (1.18.10)
288303
mini_portile2 (~> 2.8.2)
289304
racc (~> 1.4)
290305
oauth2 (2.0.9)
@@ -313,7 +328,7 @@ GEM
313328
parser (3.3.9.0)
314329
ast (~> 2.4.1)
315330
racc
316-
pg (1.6.1)
331+
pg (1.6.2)
317332
pickadate-rails (3.5.6.1)
318333
railties (>= 3.1.0)
319334
popper_js (2.11.8)
@@ -351,7 +366,7 @@ GEM
351366
public_suffix (6.0.2)
352367
puma (6.6.1)
353368
nio4r (~> 2.0)
354-
pundit (2.5.0)
369+
pundit (2.5.1)
355370
activesupport (>= 3.0.0)
356371
racc (1.8.1)
357372
rack (3.2.0)
@@ -368,20 +383,20 @@ GEM
368383
rack (>= 1.3)
369384
rackup (2.2.1)
370385
rack (>= 3)
371-
rails (7.1.5.1)
372-
actioncable (= 7.1.5.1)
373-
actionmailbox (= 7.1.5.1)
374-
actionmailer (= 7.1.5.1)
375-
actionpack (= 7.1.5.1)
376-
actiontext (= 7.1.5.1)
377-
actionview (= 7.1.5.1)
378-
activejob (= 7.1.5.1)
379-
activemodel (= 7.1.5.1)
380-
activerecord (= 7.1.5.1)
381-
activestorage (= 7.1.5.1)
382-
activesupport (= 7.1.5.1)
386+
rails (7.1.5.2)
387+
actioncable (= 7.1.5.2)
388+
actionmailbox (= 7.1.5.2)
389+
actionmailer (= 7.1.5.2)
390+
actionpack (= 7.1.5.2)
391+
actiontext (= 7.1.5.2)
392+
actionview (= 7.1.5.2)
393+
activejob (= 7.1.5.2)
394+
activemodel (= 7.1.5.2)
395+
activerecord (= 7.1.5.2)
396+
activestorage (= 7.1.5.2)
397+
activesupport (= 7.1.5.2)
383398
bundler (>= 1.15.0)
384-
railties (= 7.1.5.1)
399+
railties (= 7.1.5.2)
385400
rails-dom-testing (2.3.0)
386401
activesupport (>= 5.0.0)
387402
minitest
@@ -391,14 +406,13 @@ GEM
391406
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)
392407
rails4-autocomplete (1.1.1)
393408
rails (>= 3.0)
394-
rails_12factor (0.0.3)
395-
rails_serve_static_assets
396-
rails_stdout_logging
397-
rails_serve_static_assets (0.0.5)
398-
rails_stdout_logging (0.0.5)
399-
railties (7.1.5.1)
400-
actionpack (= 7.1.5.1)
401-
activesupport (= 7.1.5.1)
409+
rails_semantic_logger (4.18.0)
410+
rack
411+
railties (>= 5.1)
412+
semantic_logger (~> 4.16)
413+
railties (7.1.5.2)
414+
actionpack (= 7.1.5.2)
415+
activesupport (= 7.1.5.2)
402416
irb
403417
rackup (>= 1.0.0)
404418
rake (>= 12.2)
@@ -441,7 +455,7 @@ GEM
441455
rspec-mocks (~> 3.13)
442456
rspec-support (~> 3.13)
443457
rspec-support (3.13.2)
444-
rubocop (1.80.1)
458+
rubocop (1.80.2)
445459
json (~> 2.3)
446460
language_server-protocol (~> 3.17.0.2)
447461
lint_roller (~> 1.1.0)
@@ -455,17 +469,17 @@ GEM
455469
rubocop-ast (1.46.0)
456470
parser (>= 3.3.7.2)
457471
prism (~> 1.4)
458-
rubocop-performance (1.25.0)
472+
rubocop-performance (1.26.0)
459473
lint_roller (~> 1.1)
460474
rubocop (>= 1.75.0, < 2.0)
461-
rubocop-ast (>= 1.38.0, < 2.0)
475+
rubocop-ast (>= 1.44.0, < 2.0)
462476
rubocop-rails (2.33.3)
463477
activesupport (>= 4.2.0)
464478
lint_roller (~> 1.1)
465479
rack (>= 1.1)
466480
rubocop (>= 1.75.0, < 2.0)
467481
rubocop-ast (>= 1.44.0, < 2.0)
468-
rubocop-rspec (3.6.0)
482+
rubocop-rspec (3.7.0)
469483
lint_roller (~> 1.1)
470484
rubocop (~> 1.72, >= 1.72.1)
471485
ruby-progressbar (1.13.0)
@@ -490,6 +504,8 @@ GEM
490504
rexml (~> 3.2, >= 3.2.5)
491505
rubyzip (>= 1.2.2, < 4.0)
492506
websocket (~> 1.0)
507+
semantic_logger (4.17.0)
508+
concurrent-ruby (~> 1.0)
493509
shoulda-matchers (6.5.0)
494510
activesupport (>= 5.2.0)
495511
simple_form (5.3.1)
@@ -519,6 +535,7 @@ GEM
519535
railties (>= 6.0.0)
520536
stringio (3.1.7)
521537
stripe (9.0.0)
538+
sysexits (1.2.0)
522539
temple (0.10.3)
523540
terser (1.2.6)
524541
execjs (>= 0.3.0, < 3)
@@ -558,6 +575,7 @@ PLATFORMS
558575

559576
DEPENDENCIES
560577
acts-as-taggable-on
578+
amazing_print
561579
benchmark
562580
better_errors
563581
bigdecimal
@@ -583,6 +601,7 @@ DEPENDENCIES
583601
foreman
584602
friendly_id
585603
haml
604+
haml_lint
586605
high_voltage
587606
icalendar
588607
image_processing
@@ -613,7 +632,7 @@ DEPENDENCIES
613632
rails (~> 7.1.5.1)
614633
rails-html-sanitizer (~> 1.6.2)
615634
rails4-autocomplete
616-
rails_12factor
635+
rails_semantic_logger
617636
reline
618637
rolify
619638
rollbar
@@ -630,6 +649,7 @@ DEPENDENCIES
630649
simple_form
631650
simplecov
632651
simplecov-lcov
652+
sitemap_generator!
633653
sprockets-rails
634654
stimulus-rails
635655
stripe

app/presenters/member_presenter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class MemberPresenter < BasePresenter
22
def organiser?
3-
has_role? :organiser, :any
3+
@organiser ||= has_role? :organiser, :any
44
end
55

66
def event_organiser?(event)

0 commit comments

Comments
 (0)