Commit graph

15 commits

Author SHA1 Message Date
Andy Allan
af6fec502a Validate URLs against supply-chain attacks
Unfortunately validates_url gem doesn't support mailto or xmpp urls,
so we need to write our own validation.
2022-11-02 18:21:00 +00:00
Andy Allan
83a0ea14f1 Refactor i18n so that all community information is available
This makes it easier to use non-chapter communities on the site in future.
2022-08-03 10:11:30 +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
d17d13c806 Use map rather than foo = [] ... each ... foo.push(bar) 2022-03-30 18:03:11 +01:00
Andy Allan
44286b46b1 Use String#tr instead of String.split(foo).join(bar) 2022-03-30 17:41:30 +01:00
Andy Allan
1bcde09125 Unnest OsmCommunityIndex
No need for OsmCommunityIndex::OsmCommunityIndex.foo
2022-03-02 16:23:07 +00:00
Andy Allan
30b3a971bc Rubocop autofixes 2022-03-02 15:52:04 +00:00
Adam Hoyle
b4ec1c9f3d Fix: add osm-community-index localisation data to I18n 2022-02-10 22:28:40 +00:00
Adam Hoyle
a1db3f9ae4 Fix: only call store_translations once per locale 2021-12-14 10:39:25 +00:00
Adam Hoyle
e412ac319c Fix: local chapter filtering is duplicating the logic elsewhere in the file. 2021-12-14 10:37:35 +00:00
Adam Hoyle
6b8c58d2eb Skip path rebuilding 2021-12-14 10:17:02 +00:00
Adam Hoyle
764f808d5a Remove hand rolled i18n support 2021-11-24 22:47:19 +00:00
Adam Hoyle
ad900553cb Add relevant osm-community-index data into I18n 2021-11-24 22:22:32 +00:00
Adam Hoyle
f234bf3a46 Pay heed to rubocop 2021-10-17 23:34:26 +01:00
Adam Hoyle
a57bc158fd Improve encapsulation / location of osm-community-index files 2021-09-08 20:44:35 +01:00