3c00ed8dc3
Set a custom user agent for the faraday http client
2024-07-09 18:18:09 +01:00
c38e3d6144
Enforce changeset size limit for API calls which make changes
2024-06-19 00:46:34 +01:00
d3d0da0328
Fix new rubocop warnings
2024-05-28 17:39:33 +01:00
0c2e471708
Fix new rubocop warnings
2023-12-05 18:13:13 +00:00
12b4d11d44
Use SecureRandom to generate user tokens
2023-12-04 17:25:57 +00:00
ef4c9a3306
Make change set comment rate limit errors display properly
...
Fixes #4320
2023-11-02 10:08:19 +00:00
a274726f46
Add rate limiting for changeset comments
...
Fixes #4196
2023-08-25 19:53:04 +01:00
eea25bd154
Set a timeout on HTTP requests made by the server
2022-05-29 10:55:06 +01:00
561ee71129
Rubocop autofix: ambiguous operator precedence
...
This simply adds braces to clarify which mathematical operator comes
first.
2022-04-06 14:55:29 +01:00
5d67fa3908
Fix some Naming/AccessorMethodName rubocop warnings
2022-03-08 19:10:05 +00:00
2efd73c672
Introduce relation member limit
...
Adds a new parameter `max_number_of_relation_members` in settings.yml
2022-02-02 13:15:40 +01:00
907587e745
spelling: abcdefghijklmnopqrstuvwxyz
...
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com >
2021-07-21 10:45:38 -04:00
f4885874f0
Merge remote-tracking branch 'upstream/pull/3016'
2020-12-23 15:24:10 +00:00
2519841efe
Return the centre of the image if the bbox has no extent
...
Fixes #3007 . If all the provided points in the gpx file have the same
lat/lon, then an image where they are all at the centre seems plausible.
2020-12-23 15:01:01 +00:00
4f304e2301
Remove SystemTimer and use stdlib Timeout directly
...
SystemTimer was only needed on ruby 1.8, and we dropped support for
that a long time ago.
2020-12-23 14:25:58 +00:00
52c688f55a
Prefer string interpolation to concatenation
2020-10-28 17:15:14 +01:00
b7432e9432
Handle new rubocop warnings
2020-09-02 07:18:21 +01:00
2651db7254
Fix Lint/MissingSuper warnings
2020-08-09 19:06:04 +01:00
c4abe8eb28
Fix the CrossSiteScripting warnings from Brakeman
2020-07-22 20:57:16 +01:00
473da378b7
Remove fallback to hostip.info
...
We haven't used hostip.info in production for years, except
for when we did so by accident, leading to a two hour partial
outage when it went down.
2020-01-06 19:14:12 +00:00
438496c657
Fix hostip.info fallback
2020-01-01 22:28:08 +00:00
e0df631848
Switch GeoIP code to use GeoIPv2 databases
2020-01-01 18:50:48 +00:00
d102c9aaf4
Move all settings to settings.yml
...
We leave the STATUS setting alone, since it's required before rails
boots. The test-specific settings now live in config/settings/test.yml
2019-03-13 18:06:23 +01:00
686fee43bf
Use full list of osm xml root attributes in builder templates
2019-01-09 14:15:39 +01:00
1a0ed716f7
Convert some URLs to https
2018-06-29 11:46:54 +01:00
1f2ac59d1d
Fix new rubocop warnings
2018-03-26 19:00:03 +01:00
9f170663fc
Make OSM::GreatCircle#bounds return a BoundingBox object
2018-03-04 09:59:23 +00:00
162ffd9acc
Make OSM::GreatCircle clamp results to the globe
2018-02-04 17:42:40 +00:00
8dae890a76
Fix rubocop warnings
2017-10-05 19:18:38 +01:00
c8671c137a
Update rubocop
2017-02-05 11:12:37 +00:00
5e86393f72
Use webmock to power the with_http_stubs helper
...
This involves a small amount of changing the fixtures since we're
using the regexp and not the full url matching powers of webmock.
2016-10-30 10:29:16 +01:00
9d106676b8
Replace quova with support for local Maxmind GeoIP lookups
2016-10-20 21:40:03 +01:00
c9d35839be
Fix new rubocopy warnings
2015-08-18 20:57:14 +01:00
957d75295b
Fix warnings from rubocop update
2015-06-08 15:59:17 +01:00
33790824d6
Use Faraday in place of Net::HTTP so we can mock responses
2015-03-01 19:22:46 +00:00
dc2a2c8ebd
Standardise on double quoted strings
2015-02-20 19:47:26 +00:00
5cbd4038ed
Fix rubocop style issues
2015-02-20 08:56:16 +00:00
baf10cd392
Fix rubocop lint issues
2015-02-20 08:56:16 +00:00
ef7f3d800c
Fix most auto-correctable rubocop issues
2015-02-20 08:56:16 +00:00
14ac1babc2
Changeset discussions
...
Add support for commenting on changesets with RSS feeds and email
notification of comments to other commenters and people that have
chosen to subscribe to a changeset.
2014-10-23 21:24:51 +01:00
098c2675ba
Add support for ACL blocks on note commenting
2014-06-03 20:59:25 +01:00
a949f98ced
Apparently asin now throws Math::DomainError instead of Errno::EDOM
2014-02-20 09:12:41 +00:00
40b452ac74
Use a view to build the trace RSS feed and get rid of OSM::GeoRSS
2013-09-18 18:23:03 +01:00
15d29c646b
Strengthen password hashing algorithm
2013-08-14 00:23:03 +01:00
f03c8637f7
Extract common code for parsing floats
2013-06-24 22:44:17 +01:00
d74d4f8d19
Add a reopen API call for notes
2013-06-10 18:52:50 +01:00
c809f79912
Tidy up user preferences controller
2013-05-10 16:03:37 +01:00
ae27f7adbe
Make the API reject changes to closed notes
2013-02-05 18:08:42 +00:00
2805118a60
Add CC BY-SA 2.0 copyright/attribution/license attributes to <osm>
2012-09-11 18:46:37 +01:00
67dd9e4c9d
Adding first cut of Redactions support
...
Redactions support hiding historical versions of elements and
collecting meta-data about that action together.
2012-04-05 13:46:36 +01:00