Skip to content

Commit 5a59942

Browse files
authored
Merge branch 'main' into f3wlvl-codex/prepare-app-for-rails-7.2-and-8-upgrade
Signed-off-by: Robert Smith <[email protected]>
2 parents 6c894e5 + 24f1382 commit 5a59942

File tree

119 files changed

+944
-251
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+944
-251
lines changed

.github/workflows/rubyonrails.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
DATABASE_URL: "postgis://rails:password@localhost:5432/rails_test"
2525
ES_HOST: "http://localhost"
2626
RAILS_VERSION: ${{ matrix.rails }}
27+
environment: test
2728
services:
2829
postgres:
2930
image: postgis/postgis:latest
@@ -64,6 +65,8 @@ jobs:
6465
run: rm -f spec/dummy/tmp/pids/server.pid && cd ./spec/dummy && bundle exec rails db:schema:load
6566
# Add or replace test runners here
6667
- name: Run tests
68+
env:
69+
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
6770
run: rm -f spec/dummy/tmp/pids/server.pid && bundle exec rspec
6871

6972
rubocop:

Gemfile.lock

Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -167,19 +167,20 @@ GEM
167167
unf
168168
ast (2.4.3)
169169
aws-eventstream (1.4.0)
170-
aws-partitions (1.1133.0)
171-
aws-sdk-core (3.227.0)
170+
aws-partitions (1.1139.0)
171+
aws-sdk-core (3.228.0)
172172
aws-eventstream (~> 1, >= 1.3.0)
173173
aws-partitions (~> 1, >= 1.992.0)
174174
aws-sigv4 (~> 1.9)
175175
base64
176+
bigdecimal
176177
jmespath (~> 1, >= 1.6.1)
177178
logger
178-
aws-sdk-kms (1.107.0)
179-
aws-sdk-core (~> 3, >= 3.227.0)
179+
aws-sdk-kms (1.109.0)
180+
aws-sdk-core (~> 3, >= 3.228.0)
180181
aws-sigv4 (~> 1.5)
181-
aws-sdk-s3 (1.194.0)
182-
aws-sdk-core (~> 3, >= 3.227.0)
182+
aws-sdk-s3 (1.195.0)
183+
aws-sdk-core (~> 3, >= 3.228.0)
183184
aws-sdk-kms (~> 1)
184185
aws-sigv4 (~> 1.5)
185186
aws-sigv4 (1.12.1)
@@ -246,9 +247,9 @@ GEM
246247
tilt
247248
database_cleaner (2.1.0)
248249
database_cleaner-active_record (>= 2, < 3)
249-
database_cleaner-active_record (2.2.1)
250+
database_cleaner-active_record (2.2.2)
250251
activerecord (>= 5.a)
251-
database_cleaner-core (~> 2.0.0)
252+
database_cleaner-core (~> 2.0)
252253
database_cleaner-core (2.0.1)
253254
date (3.4.1)
254255
debug_inspector (1.2.0)
@@ -321,6 +322,8 @@ GEM
321322
multipart-post (~> 2.0)
322323
faraday-net_http (3.4.0)
323324
net-http (>= 0.5.0)
325+
ffi (1.17.2-aarch64-linux-gnu)
326+
ffi (1.17.2-arm64-darwin)
324327
ffi (1.17.2-x86_64-linux-gnu)
325328
fog-aws (3.32.0)
326329
base64 (~> 0.2.0)
@@ -354,6 +357,12 @@ GEM
354357
csv (>= 3.0.0)
355358
globalid (1.2.1)
356359
activesupport (>= 6.1)
360+
google-protobuf (4.30.2-aarch64-linux)
361+
bigdecimal
362+
rake (>= 13)
363+
google-protobuf (4.30.2-arm64-darwin)
364+
bigdecimal
365+
rake (>= 13)
357366
google-protobuf (4.30.2-x86_64-linux)
358367
bigdecimal
359368
rake (>= 13)
@@ -388,7 +397,7 @@ GEM
388397
image_processing (1.14.0)
389398
mini_magick (>= 4.9.5, < 6)
390399
ruby-vips (>= 2.0.17, < 3)
391-
importmap-rails (2.2.0)
400+
importmap-rails (2.2.2)
392401
actionpack (>= 6.0.0)
393402
activesupport (>= 6.0.0)
394403
railties (>= 6.0.0)
@@ -473,6 +482,10 @@ GEM
473482
net-smtp (0.5.1)
474483
net-protocol
475484
nio4r (2.7.4)
485+
nokogiri (1.18.9-aarch64-linux-gnu)
486+
racc (~> 1.4)
487+
nokogiri (1.18.9-arm64-darwin)
488+
racc (~> 1.4)
476489
nokogiri (1.18.9-x86_64-linux-gnu)
477490
racc (~> 1.4)
478491
noticed (2.8.0)
@@ -483,7 +496,9 @@ GEM
483496
parser (3.3.8.0)
484497
ast (~> 2.4.1)
485498
racc
486-
pg (1.6.0-x86_64-linux)
499+
pg (1.6.1-aarch64-linux)
500+
pg (1.6.1-arm64-darwin)
501+
pg (1.6.1-x86_64-linux)
487502
popper_js (2.11.8)
488503
pp (0.6.2)
489504
prettyprint
@@ -509,18 +524,18 @@ GEM
509524
i18n (>= 0.5.0)
510525
railties (>= 6.1.0)
511526
public_suffix (6.0.1)
512-
puma (6.6.0)
527+
puma (6.6.1)
513528
nio4r (~> 2.0)
514529
pundit (2.5.0)
515530
activesupport (>= 3.0.0)
516531
racc (1.8.1)
517-
rack (3.1.16)
532+
rack (3.2.0)
518533
rack-attack (6.7.0)
519534
rack (>= 1.0, < 4)
520535
rack-cors (3.0.0)
521536
logger
522537
rack (>= 3.0.14)
523-
rack-mini-profiler (4.0.0)
538+
rack-mini-profiler (4.0.1)
524539
rack (>= 1.2.0)
525540
rack-protection (4.1.1)
526541
base64 (>= 0.1.0)
@@ -685,6 +700,10 @@ GEM
685700
ffi (~> 1.12)
686701
logger
687702
rubyzip (2.4.1)
703+
sass-embedded (1.86.3-aarch64-linux-gnu)
704+
google-protobuf (~> 4.30)
705+
sass-embedded (1.86.3-arm64-darwin)
706+
google-protobuf (~> 4.30)
688707
sass-embedded (1.86.3-x86_64-linux-gnu)
689708
google-protobuf (~> 4.30)
690709
sassc (2.4.0)
@@ -792,6 +811,8 @@ GEM
792811
zeitwerk (2.7.3)
793812

794813
PLATFORMS
814+
aarch64-linux
815+
arm64-darwin-24
795816
x86_64-linux
796817

797818
DEPENDENCIES

app/assets/config/better_together_manifest.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
//= link_tree ../stylesheets .css
55
//= link_tree ../../../vendor/stylesheets .css
66
//= link_tree ../stylesheets .scss
7+
//= link better_together/mailer.css
78
//= link_tree ../images
89

910
//= link actioncable.js

app/assets/stylesheets/better_together/application.scss

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,29 @@
1414
*= require_self
1515
*/
1616

17-
@import 'theme';
17+
@use 'theme' as *;
1818

1919
// Import Bootstrap and Font Awesome
2020

21-
@import 'bootstrap';
22-
@import 'cards';
23-
@import 'devise';
24-
@import 'font-awesome';
25-
@import 'actiontext';
26-
@import 'contact_details';
27-
@import 'content_blocks';
28-
@import 'conversations';
29-
@import 'forms';
30-
@import 'image-galleries';
31-
@import 'maps';
32-
@import 'metrics';
33-
@import 'navigation';
34-
@import 'notifications';
35-
@import 'profiles';
36-
@import 'simple_calendar';
37-
@import 'share';
38-
@import 'sidebar_nav';
39-
@import 'trix-extensions/richtext';
21+
@use 'bootstrap' as *;
22+
@use 'cards';
23+
@use 'devise';
24+
@use 'font-awesome';
25+
@use 'actiontext';
26+
@use 'contact_details';
27+
@use 'content_blocks';
28+
@use 'conversations';
29+
@use 'forms';
30+
@use 'image-galleries';
31+
@use 'maps';
32+
@use 'metrics';
33+
@use 'navigation';
34+
@use 'notifications';
35+
@use 'profiles';
36+
@use 'simple_calendar';
37+
@use 'share';
38+
@use 'sidebar_nav';
39+
@use 'trix-extensions/richtext';
4040

4141
// Styles that use the variables
4242
.text-opposite-theme {
@@ -74,7 +74,7 @@
7474
#flash_messages {
7575
position: absolute;
7676
width: 100vw;
77-
top: 7.5vh;
77+
top: 6vh;
7878
z-index: 1001;
7979
}
8080

app/assets/stylesheets/better_together/contact_details.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'theme';
1+
@use 'theme' as *;
22

33
.contact-detail-item {
44
margin-bottom: 15px;

app/assets/stylesheets/better_together/forms.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import "theme";
1+
@use "theme" as *;
22

33
.required-indicator {
44
color: $danger;

app/assets/stylesheets/better_together/share.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
@import 'theme';
1+
@use 'theme' as *;
32

43
.social-share-buttons {
54
margin-top: 40px;

app/assets/stylesheets/better_together/sidebar_nav.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import 'theme';
1+
@use 'theme' as *;
22

33
#sidebar_nav {
44
// Sidebar heading styles

app/controllers/better_together/application_controller.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,5 +242,17 @@ def after_sign_out_path_for(_resource_or_scope)
242242
def platform_invitation_expiry_time
243243
30.minutes
244244
end
245+
246+
helper_method :metric_viewable_type, :metric_viewable_id
247+
248+
attr_accessor :metric_viewable
249+
250+
def metric_viewable_type
251+
metric_viewable&.class&.name
252+
end
253+
254+
def metric_viewable_id
255+
metric_viewable&.id
256+
end
245257
end
246258
end

app/controllers/better_together/communities_controller.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ def index
1313
end
1414

1515
# GET /communities/1
16-
def show
17-
# Dispatch the background job for tracking the page view
18-
BetterTogether::Metrics::TrackPageViewJob.perform_later(@resource, I18n.locale.to_s) unless bot_request?
19-
end
16+
def show; end
2017

2118
# GET /communities/new
2219
def new

0 commit comments

Comments
 (0)