Matt Amos
64030a40ac
Replace @ with ~ in the shortlink
...
This should help Twitter's horribly broken URL detection algorithm
not screw up shortlinks from OSM.
2011-11-24 22:27:16 +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
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
58432bd8b1
Require iconv directly as rails no longer loads it
2011-11-14 09:42:45 +00:00
Tom Hughes
226c41be69
Update ActiveRecord queries to use arel
2011-11-14 09:42:44 +00:00
Tom Hughes
0dba53c023
Declare callbacks explicitly
2011-11-14 09:42:43 +00:00
Tom Hughes
2e2c95133b
Use new ActionMail API to send emails
2011-11-14 09:42:41 +00:00
Tom Hughes
e1213a4651
Use Rails.xxx instead of RAILS_XXX
2011-11-14 09:42:40 +00:00
Tom Hughes
c98328a8f8
Coerce the API version to a string
2011-09-24 17:02:27 +01:00
Matt Amos
9105a7e66d
Updated to libxml-ruby 2.0.5 and fixed code accordingly.
...
I've tested this through the unit tests and by hitting it with
bulk_upload.py and neither fail or cause the server to crash or
go into an infinite loop. Both of these things happened randomly
with 1.1.3/4 due to an apparent early deregistration of the
expanded nodes.
2011-05-21 17:36:58 +01:00
Tom Hughes
254fc8ebbc
Add a C implementation of QuadTile.iterate_tiles_for_area
2011-05-18 00:39:04 +01:00
Tom Hughes
b42a28067d
Make sure the ruby quadtile code give the same result as the C version
2011-05-08 15:18:03 +01:00
Tom Hughes
fcb6ce416f
Don't use the en_US locale for Potlatch 2 as it doesn't work
2011-04-07 11:16:23 +01:00
Tom Hughes
5f7855fa4d
Tell Potlatch 2 which locale to use
2011-04-06 21:22:47 +01:00
Tom Hughes
2d937f94d5
Add support for conditional deletes in changeset uploads
...
A delete element in an osmChange upload can now have an if-unused
attribute to indicate that the delete should not be done if the
object is still in use.
2010-12-15 23:59:06 +00:00
Tom Hughes
aa4a8fdc81
Replace JOSM editing option with generic Remote Control option
2010-12-01 09:25:27 +00:00
Tom Hughes
b90219f1d3
Add Potlatch 2 as an editor option
2010-11-29 12:20:21 +00:00
Matt Amos
cd66a5db99
Initial work on support for multiple editors
2010-11-29 12:20:21 +00:00
Tom Hughes
59e86dc07a
The read flag is a boolean
2010-10-08 15:25:10 +01:00
Tom Hughes
b658f5d148
Fix for postgres boolean support
2010-10-08 12:27:37 +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
Tom Hughes
140455c0f8
Correct some exception names
2010-07-19 12:24:05 +01:00
Tom Hughes
6ca26591df
Ignore unknown countries when doing geolocation
2010-05-13 15:32:46 +01:00
Tom Hughes
303e5d3eb9
Merge branch 'master' into terms
...
Conflicts:
config/application.yml
lib/osm.rb
public/stylesheets/common.css
2010-05-07 22:23:20 +01:00
Tom Hughes
d80f260b8b
Implement OSM.spam_score to return a spam score for a piece of text
2010-05-06 17:18:33 +01:00
Matt Amos
972278a223
Some styling changes. Changed drop-down into radio buttons. Tried, and failed, to get the 'decline' link to look like a button.
2010-04-27 00:36:44 +01:00
Tom Hughes
4b2ac2ea2b
Merge branch 'master' into terms
2010-04-19 21:05:54 +01:00
Tom Hughes
8c95ba7838
Ignore some more files.
2010-04-19 16:48:10 +01:00
Matt Amos
9a9e13af90
Bit more work on the contributor terms page - still very much a work-in-progress.
2010-04-12 23:55:05 +00:00
Tom Hughes
1844a19f48
Add support for GeoIP lookups using Quova.
2009-11-25 00:52:44 +00:00
Tom Hughes
436daaff15
Catch domain exceptions as we approach the poles and handle them by
...
setting the longitude bounds to select a stripe right around the world
which is what they are tending to as we approach the poles.
Closes #2488 .
2009-11-22 13:35:51 +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
Æ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
Tom Hughes
63f61b5f04
Replace hard coded nwr enumeration support with a more generic
...
system for defining enumerations.
2009-08-04 13:23:36 +00:00
Matt Amos
4826032d18
Added methods to strip those non-XML control characters from tags in AMF controller and give an error if there's invalid UTF-8.
2009-07-27 16:54:00 +00:00
Tom Hughes
291350850d
Say which way is too long.
2009-07-15 13:34:14 +00:00
Ævar Arnfjörð Bjarmason
212d56ce88
Delete the old localised.yaml file Potlatch used before it was split into per-language files
2009-07-14 21:40:50 +00:00
Tom Hughes
942ca1ff23
Merge 16355:16480 from trunk.
2009-07-13 23:28:02 +00:00
Richard Fairhurst
1ef85668de
and the accompanying SWF
2009-07-09 20:00:29 +00:00
Tom Hughes
9a32033209
Merge 16216:16355 from trunk.
2009-07-05 23:47:40 +00:00
Matt Amos
57e571d241
Changed shortlink zoom level correction char to '-', as this seems to fare better with twitter et al.'s URL highlighting. Decoder is backwards-compatible with the old system.
2009-07-02 16:40:29 +00:00
Tom Hughes
6baccfaddd
Merge 16110:16216 from trunk.
2009-06-29 16:50:34 +00:00
Matt Amos
1d8e66016c
Adding 'shortlink' functions which will allow URLs like http://osm.org/go/XXXX suitable for use in twitter, etc...
2009-06-25 23:31:53 +00:00
Tom Hughes
9cd29b4721
Make creating a bbox object from a string work.
2009-06-07 16:32:24 +00:00
Tom Hughes
5de81dc4b0
More work on optimisation the location of nearby users - it turns out
...
that getting the database to do the filtering is much better as it
avoids us constructing thousands of user objects only to then throw
most of them away again.
2009-06-05 09:30:31 +00:00
Tom Hughes
098e757cf2
Add a remove_foreign_key method and make migration 34 reversible.
2009-05-31 13:53:16 +00:00
Tom Hughes
3d906fe8c6
Merge 15165:15373 from trunk.
2009-05-31 11:32:32 +00:00
Matt Amos
2006c416d2
Fixed typo.
2009-05-21 21:24:29 +00:00
Tom Hughes
4a4d89138c
Rationalise API error classes by getting of the render_opts method which
...
was never used except to extract the data it contained. Instead each class
now has a status method that returns the HTTP status code to use and a
to_s method to return a textual description of the error.
2009-05-21 19:28:39 +00:00