]> git.openstreetmap.org Git - rails.git/log
rails.git
13 years agoUse asset_path to find the arrow icon
Tom Hughes [Tue, 15 Nov 2011 10:48:30 +0000 (10:48 +0000)]
Use asset_path to find the arrow icon

13 years agoRemove debugging code
Tom Hughes [Tue, 15 Nov 2011 09:58:30 +0000 (09:58 +0000)]
Remove debugging code

13 years agoMark sanitized text as HTML safe
Tom Hughes [Tue, 15 Nov 2011 09:58:10 +0000 (09:58 +0000)]
Mark sanitized text as HTML safe

13 years agoMake linkify preserve HTML safety
Tom Hughes [Tue, 15 Nov 2011 09:46:33 +0000 (09:46 +0000)]
Make linkify preserve HTML safety

13 years agoAdd a few missing raw markers
Tom Hughes [Tue, 15 Nov 2011 09:20:04 +0000 (09:20 +0000)]
Add a few missing raw markers

13 years agoOnly apply the hard memory limit when running under passenger
Tom Hughes [Tue, 15 Nov 2011 09:17:07 +0000 (09:17 +0000)]
Only apply the hard memory limit when running under passenger

13 years agoReinstate memory limits now we're not using rhino
Tom Hughes [Mon, 14 Nov 2011 19:06:11 +0000 (19:06 +0000)]
Reinstate memory limits now we're not using rhino

13 years agoRequire therubyracer during asset compilation
Tom Hughes [Mon, 14 Nov 2011 10:09:21 +0000 (10:09 +0000)]
Require therubyracer during asset compilation

13 years agoUpdate tests to set the username cookie as necessary
Tom Hughes [Mon, 7 Nov 2011 21:41:49 +0000 (21:41 +0000)]
Update tests to set the username cookie as necessary

13 years agoDon't reset the session when the token refers to an invalid user
Tom Hughes [Mon, 7 Nov 2011 21:40:42 +0000 (21:40 +0000)]
Don't reset the session when the token refers to an invalid user

During account creation it is quite normal for the token in the
session to refer to a user that is not active yet.

13 years agoStore the username in a cookie and use it to validate the session
Tom Hughes [Mon, 7 Nov 2011 17:46:15 +0000 (17:46 +0000)]
Store the username in a cookie and use it to validate the session

13 years agoMake /user/new handle already logged in users better
Tom Hughes [Mon, 7 Nov 2011 17:38:11 +0000 (17:38 +0000)]
Make /user/new handle already logged in users better

13 years agoDisable rack caching in production
Tom Hughes [Mon, 7 Nov 2011 10:57:38 +0000 (10:57 +0000)]
Disable rack caching in production

13 years agoFix object_id warning
Tom Hughes [Mon, 7 Nov 2011 10:56:05 +0000 (10:56 +0000)]
Fix object_id warning

13 years agoFix production log configuration
Tom Hughes [Sun, 6 Nov 2011 11:39:13 +0000 (11:39 +0000)]
Fix production log configuration

13 years agoDisable hard memory limits
Tom Hughes [Sun, 6 Nov 2011 11:17:42 +0000 (11:17 +0000)]
Disable hard memory limits

13 years agoAdd memcache-client for live site
Tom Hughes [Sun, 6 Nov 2011 11:14:38 +0000 (11:14 +0000)]
Add memcache-client for live site

13 years agoRequire composite_primary_keys 4.1.1 for rails 3.1.1 support
Tom Hughes [Fri, 4 Nov 2011 09:36:11 +0000 (09:36 +0000)]
Require composite_primary_keys 4.1.1 for rails 3.1.1 support

13 years agoStop the API changeset query accepting min_lon etc
Tom Hughes [Thu, 27 Oct 2011 20:36:16 +0000 (21:36 +0100)]
Stop the API changeset query accepting min_lon etc

13 years agoRefactor bounding box code
Peter Gray [Mon, 24 Oct 2011 09:45:56 +0000 (10:45 +0100)]
Refactor bounding box code

Moved duplicated code into the BoundingBox class, and pass around
BoundingBox objects instead of lists of bounds.

13 years agoUse HTML5 email and url field types where appropriate
Tom Hughes [Fri, 21 Oct 2011 10:53:53 +0000 (11:53 +0100)]
Use HTML5 email and url field types where appropriate

13 years agoMark terms as raw to avoid escaping HTML in them
Tom Hughes [Wed, 19 Oct 2011 23:10:08 +0000 (00:10 +0100)]
Mark terms as raw to avoid escaping HTML in them

13 years agoForce an I18n reload to work around ordering problem
Tom Hughes [Wed, 19 Oct 2011 20:59:03 +0000 (21:59 +0100)]
Force an I18n reload to work around ordering problem

Unfortunately the rails-i18n-updater plugin adds the rails translations
to the load path after rails has already loaded the translations, so we
have to force a reload to get the translated versions.

13 years agoForce openid callbacks to use GET to avoid CSRF validation issues
Tom Hughes [Wed, 19 Oct 2011 19:34:06 +0000 (20:34 +0100)]
Force openid callbacks to use GET to avoid CSRF validation issues

13 years agoPreserve field values if the signup form fails validation
Tom Hughes [Wed, 19 Oct 2011 17:24:25 +0000 (18:24 +0100)]
Preserve field values if the signup form fails validation

13 years agoMark openid prompt as raw so the image is not escaped
Tom Hughes [Wed, 19 Oct 2011 16:59:25 +0000 (17:59 +0100)]
Mark openid prompt as raw so the image is not escaped

13 years agoUpdate to rails 3.1.1
Tom Hughes [Fri, 7 Oct 2011 18:46:19 +0000 (19:46 +0100)]
Update to rails 3.1.1

13 years agoServe swfobject via the assets pipeline
Tom Hughes [Fri, 7 Oct 2011 18:31:30 +0000 (19:31 +0100)]
Serve swfobject via the assets pipeline

13 years agoLoad memcached in case we are using it
Tom Hughes [Sun, 2 Oct 2011 16:10:37 +0000 (17:10 +0100)]
Load memcached in case we are using it

13 years agoMake database offline mode work
Tom Hughes [Sun, 2 Oct 2011 16:08:23 +0000 (17:08 +0100)]
Make database offline mode work

13 years agoTidy up the Gemfile a bit and document things
Tom Hughes [Sun, 2 Oct 2011 15:33:43 +0000 (16:33 +0100)]
Tidy up the Gemfile a bit and document things

13 years agoFixup some string escaping issues in the data browser
Tom Hughes [Fri, 30 Sep 2011 13:30:59 +0000 (14:30 +0100)]
Fixup some string escaping issues in the data browser

13 years agoMark the generated list of page links as raw
Tom Hughes [Fri, 30 Sep 2011 13:09:58 +0000 (14:09 +0100)]
Mark the generated list of page links as raw

13 years agoRemoved unused link_to_page from the trace helpers
Tom Hughes [Fri, 30 Sep 2011 13:08:22 +0000 (14:08 +0100)]
Removed unused link_to_page from the trace helpers

It was unused, and clashed link_to_page in the browser helpers as
apparently all helpers are loaded into all views...

13 years agoGet OAuth working, including a hack for Potlatch
Tom Hughes [Fri, 30 Sep 2011 11:02:15 +0000 (12:02 +0100)]
Get OAuth working, including a hack for Potlatch

13 years agoDisable CSRF token verification for API methods
Tom Hughes [Fri, 30 Sep 2011 08:57:59 +0000 (09:57 +0100)]
Disable CSRF token verification for API methods

13 years agoDrop the sql_session_store plugin
Tom Hughes [Fri, 30 Sep 2011 00:02:09 +0000 (01:02 +0100)]
Drop the sql_session_store plugin

The sql_session_store plugin doesn't work with rails 3 and doesn't
seem to be supported anymore, so drop it in favour of the builtin
database backed session storage.

13 years agoUpdate bundle
Tom Hughes [Thu, 29 Sep 2011 23:20:57 +0000 (00:20 +0100)]
Update bundle

13 years agoIgnore the compiled asset directory
Tom Hughes [Thu, 29 Sep 2011 21:46:01 +0000 (22:46 +0100)]
Ignore the compiled asset directory

13 years agoEnable asset compilation in product so precompile works
Tom Hughes [Thu, 29 Sep 2011 21:44:21 +0000 (22:44 +0100)]
Enable asset compilation in product so precompile works

Rails 3.1.0 has a bug where the assets:precompile rake task doesn't
turn on demand compilation, so referenced assets are not handled.

13 years agoUse the dynamic_form plugin as a gem
Tom Hughes [Wed, 28 Sep 2011 23:45:46 +0000 (00:45 +0100)]
Use the dynamic_form plugin as a gem

13 years agoUpdate rails translations
Tom Hughes [Wed, 28 Sep 2011 23:15:51 +0000 (00:15 +0100)]
Update rails translations

13 years agoAvoid noise on console when running tests
Tom Hughes [Wed, 28 Sep 2011 21:43:54 +0000 (22:43 +0100)]
Avoid noise on console when running tests

13 years agoRefactor AMF respone streaming
Tom Hughes [Wed, 28 Sep 2011 20:35:58 +0000 (21:35 +0100)]
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.

13 years agoCreate new diary entry records instead of cloning the fixture
Tom Hughes [Wed, 28 Sep 2011 17:25:27 +0000 (18:25 +0100)]
Create new diary entry records instead of cloning the fixture

Cloning fixtures doesn't seem to do a deep copy in rails 3.1 so the
attribute changes persist into other future cloned copies of the same
fixture. The fix is to create completely new records for each test.

13 years agoUse SecureRandom instead of the deprecated ActiveSupport::SecureRandom
Tom Hughes [Wed, 28 Sep 2011 11:56:12 +0000 (12:56 +0100)]
Use SecureRandom instead of the deprecated ActiveSupport::SecureRandom

13 years agoRename all ID columns that aren't unique
Tom Hughes [Sun, 25 Sep 2011 13:42:33 +0000 (14:42 +0100)]
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.

13 years agoMark some locale lookups as raw
Tom Hughes [Mon, 26 Sep 2011 20:18:45 +0000 (21:18 +0100)]
Mark some locale lookups as raw

13 years agoFix form_for arguments
Tom Hughes [Sun, 25 Sep 2011 11:05:49 +0000 (12:05 +0100)]
Fix form_for arguments

13 years agoAdd rinku to get auto_link support back
Tom Hughes [Sun, 25 Sep 2011 10:51:17 +0000 (11:51 +0100)]
Add rinku to get auto_link support back

13 years agoRemoved some redundant files
Tom Hughes [Sun, 25 Sep 2011 10:41:18 +0000 (11:41 +0100)]
Removed some redundant files

13 years agoMake hack for file streaming work with rails 3.1.0
Tom Hughes [Sat, 24 Sep 2011 17:21:56 +0000 (18:21 +0100)]
Make hack for file streaming work with rails 3.1.0

13 years agoMake http_accept_language work with rails 3.1.0
Tom Hughes [Sat, 24 Sep 2011 17:06:23 +0000 (18:06 +0100)]
Make http_accept_language work with rails 3.1.0

13 years agoUpgrade to rails 3.1.0
Tom Hughes [Sat, 24 Sep 2011 17:06:10 +0000 (18:06 +0100)]
Upgrade to rails 3.1.0

13 years agoMake more use of named scopes
Tom Hughes [Thu, 22 Sep 2011 23:35:25 +0000 (00:35 +0100)]
Make more use of named scopes

13 years agoUpdate some more queries to use AREL in place of deprecated methods
Tom Hughes [Tue, 20 Sep 2011 22:22:11 +0000 (23:22 +0100)]
Update some more queries to use AREL in place of deprecated methods

13 years agoRequire version 1.1.0 or later of open_id_authentication
Tom Hughes [Sun, 18 Sep 2011 18:32:52 +0000 (19:32 +0100)]
Require version 1.1.0 or later of open_id_authentication

13 years agoRequire at least version 1.5.1 of validates_email_of as 1.5.0 is broken
Tom Hughes [Thu, 15 Sep 2011 22:04:03 +0000 (23:04 +0100)]
Require at least version 1.5.1 of validates_email_of as 1.5.0 is broken

13 years agoAdd generated bundle to repository
Tom Hughes [Thu, 15 Sep 2011 21:36:13 +0000 (22:36 +0100)]
Add generated bundle to repository

13 years agoFix escaping of unicode character in edit menu name
Tom Hughes [Thu, 15 Sep 2011 17:50:22 +0000 (18:50 +0100)]
Fix escaping of unicode character in edit menu name

13 years agoUpdate to rails 3.0.10 and composite_primary_key 3.1.10
Tom Hughes [Wed, 14 Sep 2011 10:02:05 +0000 (11:02 +0100)]
Update to rails 3.0.10 and composite_primary_key 3.1.10

13 years agoReplace deprecated response.redirected_to with response.redirect_url
Tom Hughes [Tue, 13 Sep 2011 23:29:11 +0000 (00:29 +0100)]
Replace deprecated response.redirected_to with response.redirect_url

13 years agoSwitch to using the gem version of open_id_authentication
Tom Hughes [Tue, 13 Sep 2011 23:25:13 +0000 (00:25 +0100)]
Switch to using the gem version of open_id_authentication

13 years agoRemove monkey patch added for rails 2
Tom Hughes [Tue, 13 Sep 2011 23:20:29 +0000 (00:20 +0100)]
Remove monkey patch added for rails 2

13 years agoUpdate to rails 3.0.9
Tom Hughes [Mon, 12 Sep 2011 21:17:41 +0000 (22:17 +0100)]
Update to rails 3.0.9

13 years agoUpdate rails to 3.0.7
Tom Hughes [Wed, 20 Apr 2011 18:00:16 +0000 (19:00 +0100)]
Update rails to 3.0.7

13 years agoUpdate rails to 3.0.6
Tom Hughes [Wed, 6 Apr 2011 07:44:18 +0000 (08:44 +0100)]
Update rails to 3.0.6

13 years agoRequire version 3.1.6 of composite_primary_keys
Tom Hughes [Sun, 3 Apr 2011 09:02:50 +0000 (10:02 +0100)]
Require version 3.1.6 of composite_primary_keys

13 years agoList all objects that are blocking a delete, in a well defined order
Tom Hughes [Sat, 2 Apr 2011 10:51:36 +0000 (11:51 +0100)]
List all objects that are blocking a delete, in a well defined order

13 years agoFixed tests to handle multi-part confirmation email
Tom Hughes [Sun, 27 Mar 2011 16:08:03 +0000 (17:08 +0100)]
Fixed tests to handle multi-part confirmation email

13 years agoUpdate to composite_primary_keys 3.1.5
Tom Hughes [Sun, 27 Mar 2011 14:16:24 +0000 (15:16 +0100)]
Update to composite_primary_keys 3.1.5

13 years agoRequire version 0.4.0 of the oauth plugin
Tom Hughes [Thu, 17 Mar 2011 00:58:34 +0000 (00:58 +0000)]
Require version 0.4.0 of the oauth plugin

13 years agoCope with MESSAGES_DOMAIN not being defined
Tom Hughes [Wed, 16 Mar 2011 22:19:35 +0000 (22:19 +0000)]
Cope with MESSAGES_DOMAIN not being defined

13 years agoSpecify the format when requesting an RSS feed
Tom Hughes [Wed, 16 Mar 2011 00:14:06 +0000 (00:14 +0000)]
Specify the format when requesting an RSS feed

13 years agoUpdate use of deprecated forms of form_for
Tom Hughes [Wed, 16 Mar 2011 00:11:34 +0000 (00:11 +0000)]
Update use of deprecated forms of form_for

13 years agoRework expansion of HTTP status code to work with rails 3
Tom Hughes [Wed, 16 Mar 2011 00:09:59 +0000 (00:09 +0000)]
Rework expansion of HTTP status code to work with rails 3

13 years agoAvoid using string interpolation in conditions
Tom Hughes [Tue, 15 Mar 2011 20:39:01 +0000 (20:39 +0000)]
Avoid using string interpolation in conditions

13 years agoUpdate to rails 3.0.5, arel 2.0.9 and composite_primary_keys 3.1.4
Tom Hughes [Tue, 15 Mar 2011 18:47:48 +0000 (18:47 +0000)]
Update to rails 3.0.5, arel 2.0.9 and composite_primary_keys 3.1.4

13 years agoUpdate versions of several gems to match what we are testing with
Tom Hughes [Thu, 10 Feb 2011 00:45:19 +0000 (00:45 +0000)]
Update versions of several gems to match what we are testing with

13 years agoRequire arel 2.0.8 or later to avoid problems with Postgres enums
Tom Hughes [Thu, 10 Feb 2011 00:34:59 +0000 (00:34 +0000)]
Require arel 2.0.8 or later to avoid problems with Postgres enums

13 years agoUpdate to rails 3.0.4 and composite_primary_keys 3.1.1
Tom Hughes [Wed, 9 Feb 2011 21:46:47 +0000 (21:46 +0000)]
Update to rails 3.0.4 and composite_primary_keys 3.1.1

13 years agoRemoved extension from assert_template calls
Tom Hughes [Tue, 7 Dec 2010 21:57:20 +0000 (21:57 +0000)]
Removed extension from assert_template calls

13 years agoFix tests to copy with new style mail objects
Tom Hughes [Tue, 7 Dec 2010 21:53:50 +0000 (21:53 +0000)]
Fix tests to copy with new style mail objects

13 years agoSet the preferred language for all test users
Tom Hughes [Tue, 7 Dec 2010 21:41:44 +0000 (21:41 +0000)]
Set the preferred language for all test users

Users with no preferred language will have one set by any request
which has an Accept-Language so in order to stop one test accidentally
affecting another by changing the language we need to make sure all
the users have a preferred language set to start with.

13 years agoRail 3 has renamed fieldWithErrors to field_with_errors
Tom Hughes [Tue, 7 Dec 2010 21:37:04 +0000 (21:37 +0000)]
Rail 3 has renamed fieldWithErrors to field_with_errors

13 years agoSet Accept-Language in a rails 3 compatible way
Tom Hughes [Tue, 7 Dec 2010 21:25:23 +0000 (21:25 +0000)]
Set Accept-Language in a rails 3 compatible way

13 years agoTemporary fix for postgres enums pending rails 3.0.4
Tom Hughes [Tue, 7 Dec 2010 00:23:37 +0000 (00:23 +0000)]
Temporary fix for postgres enums pending rails 3.0.4

13 years agoDo validation in the :save context when testing email address validations
Tom Hughes [Mon, 6 Dec 2010 23:03:20 +0000 (23:03 +0000)]
Do validation in the :save context when testing email address validations

13 years agoUse validates_email_format_of as a gem instead of a plugin
Tom Hughes [Mon, 6 Dec 2010 21:49:50 +0000 (21:49 +0000)]
Use validates_email_format_of as a gem instead of a plugin

13 years agoUpdate to composite_primary_keys 3.0.9
Tom Hughes [Mon, 29 Nov 2010 21:35:48 +0000 (21:35 +0000)]
Update to composite_primary_keys 3.0.9

13 years agoUpdate to rails 3.0.3 and composite_primary_keys 3.0.0.b3
Tom Hughes [Tue, 16 Nov 2010 22:58:31 +0000 (22:58 +0000)]
Update to rails 3.0.3 and composite_primary_keys 3.0.0.b3

13 years agoRework AMF controller's streaming output for rails 3
Tom Hughes [Wed, 22 Sep 2010 21:59:19 +0000 (22:59 +0100)]
Rework AMF controller's streaming output for rails 3

13 years agoAvoid empty content_for blocks as they trigger warnings
Tom Hughes [Wed, 22 Sep 2010 17:40:17 +0000 (18:40 +0100)]
Avoid empty content_for blocks as they trigger warnings

13 years agoRename notifier views to new style names
Tom Hughes [Wed, 22 Sep 2010 17:36:53 +0000 (18:36 +0100)]
Rename notifier views to new style names

13 years agoUpdate oauth support for rails 3 version of oauth plugin
Tom Hughes [Wed, 22 Sep 2010 17:29:27 +0000 (18:29 +0100)]
Update oauth support for rails 3 version of oauth plugin

13 years agoDuplicate records raise RecordNotUnique now, not StatementInvalid
Tom Hughes [Tue, 21 Sep 2010 21:21:55 +0000 (22:21 +0100)]
Duplicate records raise RecordNotUnique now, not StatementInvalid

13 years agoAdd fixtures for user blocks and tokens
Tom Hughes [Tue, 21 Sep 2010 21:12:09 +0000 (22:12 +0100)]
Add fixtures for user blocks and tokens

13 years agoRequire iconv directly as rails no longer loads it
Tom Hughes [Tue, 21 Sep 2010 20:37:54 +0000 (21:37 +0100)]
Require iconv directly as rails no longer loads it

13 years agoAvoid use of deprecated methods on error objects
Tom Hughes [Tue, 21 Sep 2010 20:26:58 +0000 (21:26 +0100)]
Avoid use of deprecated methods on error objects

13 years agoUse last_modified method instead of setting the header manually
Tom Hughes [Thu, 9 Sep 2010 23:12:35 +0000 (00:12 +0100)]
Use last_modified method instead of setting the header manually