Tom Hughes
b6b9d543ac
Fix rubocop warnings
2017-10-29 19:43:02 +00:00
Tom Hughes
8dae890a76
Fix rubocop warnings
2017-10-05 19:18:38 +01:00
Tom Hughes
8412ed0bed
Replace deprecated Mime::XXX with Mime[:xxx]
2017-06-03 17:33:13 +01:00
Tom Hughes
c8671c137a
Update rubocop
2017-02-05 11:12:37 +00:00
Tom Hughes
5f4dcd34ff
Fix some rubocop warnings
2016-09-15 22:41:07 +01:00
Tom Hughes
d82f9d12ce
Fix new rubocop warnings
2016-09-15 19:21:00 +01:00
Tom Hughes
5d3ecffa28
Fix new rubocop warnings
2016-02-05 13:35:26 +00:00
Tom Hughes
8fe1899596
Fix rubocop warnings
2016-01-19 09:51:24 +00:00
Tom Hughes
4028f4cdb9
Rework locale selection
...
Implement our own matching algorithm rather than trying to
patch the http_accept_language one and make sure everything is
using it in a consistent way.
Fixes #1125
2016-01-06 18:43:25 +00:00
Tom Hughes
c9d35839be
Fix new rubocopy warnings
2015-08-18 20:57:14 +01:00
Tom Hughes
23f568cf3a
A few more edge cases
2015-03-08 23:02:04 +00:00
Tom Hughes
bc056a5e98
More test coverage improvements
2015-03-01 00:44:32 +00:00
Tom Hughes
857f0f460b
More work on test coverage
2015-02-28 00:45:56 +00:00
Tom Hughes
dbe165bbb3
Fix some rubocop rails style issues
2015-02-26 00:12:54 +00:00
Tom Hughes
8e404f3a46
Fix some more rubocop style issues
2015-02-20 20:39:52 +00:00
Tom Hughes
dc2a2c8ebd
Standardise on double quoted strings
2015-02-20 19:47:26 +00:00
Tom Hughes
5cbd4038ed
Fix rubocop style issues
2015-02-20 08:56:16 +00:00
Tom Hughes
baf10cd392
Fix rubocop lint issues
2015-02-20 08:56:16 +00:00
Tom Hughes
ef7f3d800c
Fix most auto-correctable rubocop issues
2015-02-20 08:56:16 +00:00
Tom Hughes
34e3e51456
Cleanup trailing whitespace
2015-02-20 08:56:16 +00:00
Tom Hughes
042ecee695
Don't preload the nodes as it seems to break the ordering
...
Fixes #795
2014-07-29 10:14:08 +01:00
Tom Hughes
0cc579b287
Improve blocking of characters not allowed in XML
2014-06-19 00:25:18 +01:00
Tom Hughes
6fe824bd0b
Strip illegal characters from member roles in AMF uploads, part 2
...
Fixes #758
2014-06-15 15:55:30 +01:00
Tom Hughes
4cd7f5ad0d
Strip illegal characters from member roles in AMF uploads
...
Fixes #758
2014-06-15 15:50:31 +01:00
Tom Hughes
0e9e6e6f8f
Upgrade to http_accept_language 2.x
2013-09-24 20:22:44 +01:00
Tom Hughes
fbabed694b
Improve blocks on/by links on user pages
...
All block related links are now only shown if the user has given
or received any blocks, and include a count of active blocks.
2012-08-10 08:27:37 +01:00
Tom Hughes
9813d9f1e4
Get all the tests passing under ruby 1.9
2012-05-27 13:51:25 +01:00
Matt Amos
eca8f6e849
Used unredacted
scope rather than explicit SQL
2012-04-05 13:52:04 +01:00
Matt Amos
9519f26241
Fixed AMF controller methods to hide redacted ways
2012-04-05 13:50:13 +01:00
Matt Amos
7c2ca3efb1
Fixed AMF controller methods to hide redacted nodes
2012-04-05 13:50:11 +01:00
Tom Hughes
6391ea5a7a
Remove method tests that are now enforced by the routes
2012-03-09 20:19:55 +00:00
Tom Hughes
3aa1c46aef
Use OSM::Timer (and hence SystemTimer) consistently
2012-01-06 09:13:52 +00:00
Peter Gray
95d899786a
Refactor bounding box code
...
Moved duplicated code into the BoundingBox class, and pass around
BoundingBox objects instead of lists of bounds.
2011-11-14 09:42:57 +00:00
Tom Hughes
071c3581e9
Disable CSRF token verification for API methods
2011-11-14 09:42:55 +00:00
Tom Hughes
d6c3fe5759
Refactor AMF respone streaming
...
Using a Proc object for the response body is deprecated, so switch
to using an object with an each method that yields each response.
2011-11-14 09:42:53 +00:00
Tom Hughes
fc25c3d412
Rename all ID columns that aren't unique
...
Having a table with a column called ID that is only part of the
primary key really doesn't work as rails likes to treat ID as a
special name so it becomes impossible to assign to it or read it.
2011-11-14 09:42:52 +00:00
Tom Hughes
8ae5d94b2f
Update some more queries to use AREL in place of deprecated methods
2011-11-14 09:42:51 +00:00
Tom Hughes
b89486eab0
Rework AMF controller's streaming output for rails 3
2011-11-14 09:42:46 +00:00
Tom Hughes
226c41be69
Update ActiveRecord queries to use arel
2011-11-14 09:42:44 +00:00
Tom Hughes
e1213a4651
Use Rails.xxx instead of RAILS_XXX
2011-11-14 09:42:40 +00:00
Tom Hughes
0a81411e68
Make the AMF API check that the CTs have been agreed
2011-06-20 09:20:30 +01:00
Matt Amos
838b1ee7e9
Fixed AMF controller to validate changeset comments
...
Fixed AMF controller so that it doesn't accept non-UTF8 comments, and
throws away non-XML characters.
2010-08-08 16:23:11 +01:00
Tom Hughes
f07819d81a
Rework application configuration
...
Use a preinitializer to load the settings from application.yml so
that they are available as early as possible. All settings can also
be overridden using environment variables.
The ad-hoc settins in environment.rb are then moved to this new
system so we have one consistent location for settings.
2010-08-04 22:06:05 +01:00
Richard Fairhurst
4de68be303
join/unjoin fixes, plus better amf_controller error handling for deleted items
2010-02-11 00:48:15 +00:00
Richard Fairhurst
ce85092f57
force changeset id to be an int so we don't have a table scan
2010-02-03 16:50:39 +00:00
Richard Fairhurst
dd9999dc43
Move render :text to write out each result as it's received, rather than assembling them into a big array and writing this at the end. Theoretically this should permit streaming, but Rails appears not to be that clever. Nonetheless it reduces memory usage when assembling a big bunch of getways and that has to be worthwhile
2009-10-20 22:14:32 +00:00
Ævar Arnfjörð Bjarmason
e0eb2b79b7
[18163] commited by me yesterday (and reverted in [18165]) was
...
broken. I didn't restart rails when testing it because I thought lib/
was auto-refreshed as well and that:
ruby -e 'x = []; x[0]["foo"] = "bar"'
Would work and autovify like it does in Perl. But no, you have to do:
ruby -e 'x = [{}]; x[0]["foo"] = "bar"'
This commit is equivalent to [18163] aside from that fix to lib/potlatch.rb
2009-10-15 08:21:57 +00:00
Tom Hughes
d0c63b6d5d
Revert r18163 as it is completely broken.
2009-10-15 07:46:54 +00:00
Tom Hughes
a35b194330
Attempt to unbreak Potlatch.
2009-10-15 07:40:47 +00:00
Ævar Arnfjörð Bjarmason
cc9a9ee399
Make the preset list at the bottom of the screen (Airport, Bus stop,
...
...) translatable
2009-10-14 23:42:09 +00:00