Commit graph

110 commits

Author SHA1 Message Date
Tom Hughes
f773f67958 Update to rails 5.1.4 2017-10-17 18:49:55 +01:00
Tom Hughes
dc2a2c8ebd Standardise on double quoted strings 2015-02-20 19:47:26 +00:00
Tom Hughes
bd402599f5 Update to rails 4.1.1 2014-07-04 19:24:25 +01:00
Tom Hughes
c9fa49c994 Update to rails 3 2011-11-14 09:42:40 +00:00
Tom Hughes
cd3501090e Update to rails 2.3.14 2011-08-22 22:24:16 +01:00
Tom Hughes
beeb77721f Update to Rails 2.3.11
Update the site to use Rails 2.3.11 which also required switching to
the new syntax for interpolated variables in translation strings.
2011-05-31 18:11:31 +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
d49e3b0f09 Use a pessimistic version constraint for libxml
It seems that rails doesn't handle gems wth multiple version
constraints right - it generates invalid install commands. So
we use a pessimistic constraint instead.
2011-05-17 21:35:59 +01:00
Tom Hughes
2c92bf895f Don't allow libxml 2.0.0 and later to be used 2011-05-11 23:06:19 +01:00
Tom Hughes
2fd52ddf60 Add memcache support 2011-04-17 18:56:50 +01:00
Tom Hughes
10033fded1 Switch to i18n version 0.5.0 but keep old style interpolation
It's impossible to stop rails 2 loading a newer i18n gem if it is
installed, so go with the flow and use the latest one but override
the interpolation pattern for now.
2011-04-06 20:39:20 +01:00
Tom Hughes
2204974420 Require i18n 0.4.1 specifically as some later versions don't work 2010-12-15 23:59:06 +00:00
Tom Hughes
eb050a1b7d Require a specific version of the oauth plugin
It looks likely that the API  will change in future versions of
the oauth plugin, so require a known working version for now.
2010-09-24 11:02:41 +01:00
Tom Hughes
c08f9a2f03 Remove oauth-plugin from vendor and require gem version instead 2010-09-21 16:20:30 +01:00
Tom Hughes
782ddc9c3e Require i18n version 0.4.1 and fix monkey patch to work with it
Rails 3 pulls in i18n version 0.4.1 as a separate gem which then
breaks our code if it is running on a machine with rails 3 installed
as it tries to monkey patch i18n and fails, so this fix allows us
to run on a machine with rails 3 installed.
2010-09-02 19:01:21 +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
8b9cacd3c2 Bring configuration files ino sync with current rails default ones 2010-08-04 19:47:10 +01:00
Tom Hughes
a00b472ac4 Disable SQL sessions in database readonly mode 2010-07-02 09:59:50 +01:00
Tom Hughes
f973bee52b Make database offline work in production 2010-06-15 10:40:47 +01:00
Tom Hughes
8af14faa49 Make database offline mode work 2010-06-15 10:07:39 +01:00
Tom Hughes
406b46e49b Revert "Switch to using oauth-plugin as a gem"
This reverts commit 41a123334b.
2010-06-07 16:01:04 +01:00
Tom Hughes
d516198bbe Update to rails 2.3.8
Update site to use rails 2.3.8 which also allows us to drop the
globalize2 plugin as the core rails i18n code can now do fallback
and pluralization.
2010-05-26 19:54:10 +01:00
Tom Hughes
41a123334b Switch to using oauth-plugin as a gem
Use the oauth-plugin as a gem instead of carrying a local copy.

This also required that commit eff06faf46 be
reverted as it changed the plugin. I don't think the cosmetic improvement
from that patch is worth the hassle of carrying local changes to the plugin.
2010-05-24 12:58:27 +01:00
Tom Hughes
c81b5ab1ac Switch to date stamped migrations to make branching easier to handle 2010-05-13 18:16:00 +01:00
Tom Hughes
66221ba9b8 Fix site name 2010-05-11 19:44:47 +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
980c2fa301 Suspend users if their spam score gets too high
Use an observer to watch all diary and user updates and, if the user
is not confirmed, chek their spam score and suspend then if it has got
too high.
2010-05-06 17:18:34 +01:00
Tom Hughes
ffd7b02b0c Merge branch 'master' into terms 2010-05-05 15:29:48 +01:00
Andy Allan
cd89a3c662 Move email configuration out of the model and into the config file 2010-05-01 12:36:22 +01:00
Tom Hughes
aab8b230ec Load timecop in the test environment only. 2010-04-19 14:27:51 +01:00
Shaun McDonald
a2c4462db2 Seems that the Rails.env doesn't consistently work. Removing condition in config/environment.rb 2010-04-03 21:31:35 +00:00
Shaun McDonald
9dabe69032 Adding timecop as a gem dependency when in development env. This allows for time based tests to be accurate/consistent. It will stop the random error on the api_controller_test#test_changes_simple, when you are on a slow machine/have bad timing. 2010-04-03 21:02:20 +00:00
Matt Amos
9cff6985ff Updated URI of dev server instance. 2010-03-22 23:48:20 +00:00
Tom Hughes
94f19ce3b3 Use a better HTML sanitizer that makes sure the HTML is well formed and
can add rel="nofollow" to links.
2010-03-06 15:38:13 +00:00
Tom Hughes
563769b126 There's no need to use an alternative repository for SystemTimer as it
is in the main one - just specify the right version instead.
2010-01-18 09:19:20 +00:00
Shaun McDonald
868210ece7 Use the latest version of SystemTimer. Also gets rid of the warning: 'cleanup_timer: Previous SIG_ALRM handler not initialized\!\:' when running the tests due to using the older version of this gem. 2010-01-18 00:20:45 +00:00
Tom Hughes
841ebe80d7 Use system_timer for timeouts to make them more reliable. 2010-01-11 09:28:31 +00:00
Tom Hughes
314b734aa5 Introduce some caching for diary views. 2010-01-09 16:43:38 +00:00
Tom Hughes
0f5646d7f0 Add ability to take GPX storage offline. 2009-12-12 13:06:56 +00:00
Tom Hughes
74e0acf0f5 Require oauth 0.3.6 and remove Matt's comment saying we need to
require it when it's available.
2009-12-02 09:10:38 +00:00
Tom Hughes
7b7c11f228 Update site to use rails 2.3.5. 2009-12-02 09:00:23 +00:00
Tom Hughes
1844a19f48 Add support for GeoIP lookups using Quova. 2009-11-25 00:52:44 +00:00
Tom Hughes
63b399c9b2 Update to rails 2.3.4 for security fixes. 2009-09-04 08:45:38 +00:00
Matt Amos
45a3acb4e2 Changed required version of OAuth gem, as that exact version wasn't necessary. 2009-08-03 13:59:47 +00:00
Matt Amos
b8f6dbd403 Adding initial version of the OAuth token authentication method. This adds basic OAuth support for registering apps, getting and revoking keys, etc... The tokens come with 6 separate permissions bits; read/write user preferences, write diaries, write API and read/write GPS traces. Needs more tests. 2009-06-22 16:54:37 +00:00
Tom Hughes
2f3e23f6eb Move to version 2.3.2 of rails. 2009-06-04 08:08:24 +00:00
Shaun McDonald
62f999cd83 Updating for rails 2.2.2 2009-05-08 18:04:08 +00:00
Tom Hughes
94a807d0d0 Remove explicit load of mysql and rails automatically loads the
right database driver already.
2009-04-21 07:52:47 +00:00
Tom Hughes
5449cf4adc Merge 14394:14533 from trunk. 2009-04-16 21:11:12 +00:00
Tom Hughes
09fdee5493 Add a "database readonly" state that allows all writes to the database
to be suppressed.
2009-04-14 14:27:30 +00:00