Commit graph

374 commits

Author SHA1 Message Date
Tom Hughes
17bc0853a0 Drop support for OAuth 1 2024-09-01 03:43:02 +03:00
Tom Hughes
bb2eccf658 Add overcommit to manage git hooks 2024-08-21 08:20:10 +01:00
Andy Allan
2a2d1d50d3 Add debug gem
This is included in new rails 7+ apps, so let's include it too.

This also means it's available on ruby 3.0, and is automatically
updated on newer versions of ruby too.
2024-08-14 15:36:09 +01:00
Tom Hughes
fffaacb49e Keep to strong_migrations 1.8 for ruby 3.0 compatibility 2024-07-02 21:06:33 +01:00
Anton Khorev
c03649355a Join and normalize og:image url using Addressable
Avoids failing on urls that are not strictly rfc2396 URIs.
2024-06-15 15:06:07 +03:00
Tom Hughes
20bdbb05c3 Switch to using rails builtin content security policy support 2024-05-22 16:38:59 +01:00
Andy Allan
ffda8d7ac5
Merge pull request #4680 from tomhughes/validate-page-numbers
Add parameter validation to pagination
2024-05-15 17:43:04 +01:00
Tom Hughes
bfaa61c993 Lock multi_xml to 0.6 for ruby 3.0 compatibility 2024-05-14 19:24:23 +01:00
Andy Allan
97fa344af6 Pin browser to versions that support ruby 3.0 2024-05-08 10:40:48 +01:00
Tom Hughes
3c2780f2c3 Fix rubocop warning 2024-04-23 18:59:09 +01:00
Tom Hughes
847d43518b Stick to mini_racer 0.9.0 for now
https://github.com/rubyjs/mini_racer/issues/300
2024-04-23 17:17:02 +01:00
Tom Hughes
feff501b25 Add framework for parameter validation using rails_param gem 2024-04-11 10:08:20 +01:00
Gregory Igelmund
f0af7d3cff Gemfile: Add turbo-rails 2024-03-21 14:55:15 +01:00
Tom Hughes
bd36ef242e Update bundle 2024-03-05 19:15:43 +00:00
Tom Hughes
3360f91733 Require display names to have a minimum unicode width of 3 columns
Fixes #4538
2024-02-25 13:21:03 +00:00
Andy Allan
bd1f568c0a Add minitest-focus gem 2024-02-07 18:08:25 +00:00
Tom Hughes
1f0105c953 Use file_exists to provide File.exists? for ruby 3.2
This is needed for the oauth gem which uses it.
2023-12-11 17:17:28 +00:00
Tom Hughes
a328ec84a2 Use rtlcss instead of r2 for RTL support
This ensures that the RTL directives in bootstrap are processed
correctly as it is designed around RTLCSS for RTL support.

Fixes #4347
2023-11-16 22:53:09 +00:00
Andy Allan
aad93b9978 Switch back to bootstrap releases
Bootstrap-rubygem 5.3.2 onwards allows us to use dartsass-sprockets.

Refs #4262
2023-10-26 11:38:10 +01:00
Tom Hughes
dd905b5aa8 Merge remote-tracking branch 'upstream/pull/4262' 2023-10-24 17:37:48 +01:00
Andy Allan
14c20e9835 Upgrade to bootstrap 5.3 2023-10-24 17:37:04 +01:00
Tom Hughes
0de0317425 Update bundle 2023-10-24 17:09:39 +01:00
Tom Hughes
46cd08b1c8 Replace composite_primary_keys with rails builtin support 2023-10-18 18:26:14 +01:00
Tom Hughes
f37ea2fae3 Update to rails 7.1.1 2023-10-18 18:26:13 +01:00
Gregory Igelmund
aa573ce1bb
.github/workflows/lint.yml: Add task verifying annotations are up2date 2023-10-14 11:28:44 +08:00
Tom Hughes
c8fc2218e5 Merge remote-tracking branch 'upstream/pull/4226' 2023-10-03 19:39:41 +01:00
Milan Cvetkovic
1f62a2b342 Add a test for openid connect support 2023-10-03 18:55:10 +01:00
Milan Cvetkovic
8a22bfb222 Add unconfigured doorkeeper-openid_connect
After executing:
rails generate doorkeeper:openid_connect:install
rails generate doorkeeper:openid_connect:install

Split migration script to 2 to avoid deadlock.
2023-10-03 18:53:09 +01:00
Andy Allan
520cffabea Upgrade to bootstrap 5.2 2023-09-29 09:41:35 +01:00
Andy Allan
41f13ac73a Switch from sassc-rails to dartsass-sprockets
sassc-rails, and its underlying libsass, is deprecated. dartsass-sprockets
allows us to use the currently maintained dartsass implementation,
without having to change any of our toolchain.

The version of sass-embedded is pinned to avoid warnings in bootstrap. When
we upgrade bootstrap versions, we can upgrade sass-embedded to match.
2023-09-27 09:35:30 +01:00
Milan Cvetkovic
7428da74c2 Use omniauth-microsoft_graph instead of omniauth-windowslive
Omniauth-microsoft_graph correctly populates 'email' and 'name' fields used by OpenStreetMap.
It also  uses updated endpoints for Microsoft identity provider.

Use email address returned by microsoft_graph provider as a verified address.

Upgrading exisiting users from windowslive to microsoft_graph:
 - upon next login existing `windowslive` users will have to authorizei
   OpenStreetMap application to "Read Your Profile," required for proper reading
   of display name field.

The name of the identity provider in OSM is kept to 'windowslive':
 - the entries in users table with `provider == 'windowslive'`
   can be reused for microsoft_graph provider, since
   the uid field is preserved. Users will not need to repeat the sign up process.
 - OAuth2 callback is still `/auth/windowslive`, no updates to Microsoft Identity Provider portal
   App registration are necessary.
2023-08-17 13:01:15 +00:00
Tom Hughes
52296d1cad Add rubocop-factory_bot and fix warnings 2023-05-16 18:44:14 +01:00
Andy Allan
85dbe7c29a Add the i18n-tasks gem
This can be used for checking our translations, for example to see
if there are unused translations in en.yml
2023-03-08 15:34:54 +00:00
Tom Hughes
2e5e2bc263 Add rubocop-capybara 2023-03-07 17:09:29 +00:00
Tom Hughes
2ee8fcda40 Drop version constraint on mail and update bundle 2023-01-13 09:29:04 +00:00
Tom Hughes
02ed416e12 Update bundle 2022-12-13 20:26:25 +00:00
Tom Hughes
8cef62cd2c Merge remote-tracking branch 'upstream/pull/3301' 2022-11-22 18:47:24 +00:00
Andy Allan
9b0767b80f Relax strict version constraint on rails gem
This lets us receive 7.0.x patch releases without having to edit the Gemfile.
2022-11-16 14:26:05 +00:00
Tom Hughes
20f08f2543 Update bundle 2022-11-01 18:25:36 +00:00
Tom Hughes
460ed0c844 Fix new rubocop warnings 2022-10-25 19:19:57 +01:00
Tom Hughes
00112700d7 Update doorkeeper to 5.6.0 2022-09-12 19:27:33 +01:00
Adam Hoyle
7e5cbe87ed Merge branch 'master' into feature/add-communities-page
# Conflicts:
#	Gemfile.lock
#	package.json
#	yarn.lock
2022-09-10 16:13:17 +01:00
Tom Hughes
f7e168b8e1 Update to rails 7.0.4 2022-09-09 22:45:58 +01:00
Tom Hughes
fb362ef0d8 Enable brotli compression for assets 2022-08-03 19:01:24 +01:00
Tom Hughes
0371cdcfd9 Update bundle 2022-08-02 18:15:49 +01:00
Andy Allan
bb7f5ac2c8 Switch to using FrozenRecord for loading communities
This allows us to query the records to get the local chapters, which
is more flexible and allows us to use other resources too.
2022-07-27 16:19:08 +01:00
Andy Allan
a481915a37 Upgrade to bootstrap 5 2022-07-20 11:13:33 +01:00
Tom Hughes
262b6a9adf Update to rails 7.0.3.1 2022-07-13 16:55:26 +01:00
Tom Hughes
fdd16b28dc Update to rails 7.0.3 2022-05-09 18:11:44 +01:00
Tom Hughes
10200605ee Update to rails 7.0.2.4 2022-04-26 22:59:54 +01:00