Tom Hughes
bd402599f5
Update to rails 4.1.1
2014-07-04 19:24:25 +01:00
John Firebaugh
665abc501c
Use Konacha for testing JavaScript
2014-02-27 16:03:22 +00:00
Tom Hughes
933b091330
Highlight erroneous fields by adding a class to them
...
The default rails scheme for highlighting errors is to wrap the
field in a div, but that changes the structure of the page and can
change the meaning of CSS rules applied to the fields.
As an alternative we now apply a class to the fields, and use that
in the CSS to apply a highlight.
2014-01-15 21:41:16 +00:00
Tom Hughes
de9d26c7df
Drop redundant monkey patches
2013-12-08 22:49:31 +00:00
Tom Hughes
cc4bca22b0
Update to rails 4.0.2
2013-12-03 21:09:10 +00:00
Tom Hughes
aff0583a34
Drop monkey patch now we're using option style redirects
...
Option style redirects escape path parameters correctly, so we
can drop out monkey patch.
2013-12-01 20:54:52 +00:00
Tom Hughes
e73a770d81
Remove monkey patch which has been merged upstream in rails 4
2013-11-30 14:02:49 +00:00
Tom Hughes
309831a619
Monkey patch escaping in redirect routes
...
The correct method of escaping depends on whether the parameter
is being substituted in the path or the query, but all our ones
are substitued in the path so use URI.escape instead of the
standard Rack::Utils.escape which does query escaping.
https://github.com/rails/rails/issues/13110
2013-11-30 13:53:48 +00:00
Tom Hughes
d375caf7a3
Update to CPK 6.0.1 and drop monkey patch
2013-11-30 10:28:41 +00:00
Tom Hughes
b0936b87f4
Monkey patch composite_primary_keys to fix deletes via has_many
...
https://github.com/composite-primary-keys/composite_primary_keys/pull/170
2013-10-15 00:17:39 +01:00
Tom Hughes
0e9e6e6f8f
Upgrade to http_accept_language 2.x
2013-09-24 20:22:44 +01:00
Tom Hughes
f289c1092c
Fixup the paperclip asset URL handling for rails 4 support
2013-09-24 10:46:00 +01:00
Tom Hughes
7d993febee
Avoid "unknown OID" warnings from Postgres driver
2013-09-23 11:41:35 +01:00
Tom Hughes
5208b7e3af
Configure page caching in the production environment
2013-09-23 10:39:11 +01:00
Tom Hughes
b0bc04abf1
Configure the page cache
2013-09-23 10:07:23 +01:00
Tom Hughes
537cd6a52c
Fix typo in session store configuration
2013-09-23 09:58:31 +01:00
Tom Hughes
255b0b9425
Drop memcached and use dalli as the memcache client
2013-09-22 15:57:22 +01:00
Tom Hughes
90048d87d6
Ignore exceptions clearing sessions
...
Rails 3 sessions can't be loaded by rails 4 but reset_session also
fails because it tries to clear the session, which tries to load it
in to clear it.
So monkey patch the session to ignore exceptions during clear so
that out normal reset-on-exception logic will reset the session.
2013-09-22 10:33:31 +01:00
Tom Hughes
36c220ca2b
Monkey patch PostgreSQLAdapter to make enums work
2013-09-21 11:35:45 +01:00
Tom Hughes
984c6dc114
Update to rails 4.0.0
2013-09-21 11:35:45 +01:00
Tom Hughes
26855add38
Rework piwik configuration
2013-08-24 12:54:51 +01:00
Tom Hughes
f78c703708
Simplify locale handing in notification emails
2013-05-27 10:53:14 +01:00
Tom Hughes
898cc828dd
Merge branch 'master' into notes
...
Conflicts:
Gemfile.lock
2013-03-28 00:36:07 +00:00
Tom Hughes
d53bbe53f4
Mark CORS responses as uncacheable
2013-03-25 21:50:26 +00:00
Tom Hughes
30f8e412bc
Wait until after rails has initialise I18n to preload the resources
2013-03-25 12:50:18 +00:00
Tom Hughes
652b09b4d1
Force translations to be preloaded during startup
2013-03-25 10:49:58 +00:00
Tom Hughes
8090e086da
Merge branch 'master' into notes
2013-02-05 19:03:28 +00:00
Tom Hughes
3374f50a5d
Drop secret_token as we don't use it and it confuses people
2013-02-03 12:23:37 +00:00
Tom Hughes
ff73d12255
Make notes RSS feeds work
2013-02-02 17:48:56 +00:00
Tom Hughes
78f608b114
Merge branch 'master' into notes
...
Conflicts:
app/assets/javascripts/browse.js
app/assets/javascripts/map.js.erb
app/assets/stylesheets/common.css.scss
app/views/site/index.html.erb
2012-12-01 18:22:30 +00:00
Tom Hughes
8f02fe8269
Update to CPK 5.0.10 and remove monkey patch
2012-11-22 09:10:04 +00:00
Tom Hughes
7599f98957
Merge branch 'master' into notes
...
Conflicts:
Gemfile
Gemfile.lock
app/assets/stylesheets/common.css.scss
app/helpers/application_helper.rb
2012-11-20 19:08:30 +00:00
Tom Hughes
d68368e0d5
Rework RTL handling to keep rules together
2012-11-19 10:39:30 +00:00
Tom Hughes
2cecfa7d01
Configure CORS to allow GET and POST to /oauth
2012-11-16 22:28:52 +00:00
Tom Hughes
9bc3196dee
Monkey patch field_changed? support until CPK is updated
2012-11-12 19:15:20 +00:00
John Firebaugh
7751973871
Allow cross-origin requests to API
2012-10-22 19:11:52 +01:00
Tom Hughes
0037502426
Merge branch 'master' into notes
...
Conflicts:
Gemfile.lock
app/views/browse/_map.html.erb
app/views/site/index.html.erb
2012-10-13 15:55:34 +01:00
Tom Hughes
05b4406c14
Remove monkey patch for I18n which is no longer needed
2012-09-30 14:07:41 +01:00
Tom Hughes
4d91fe3dd9
Merge branch 'master' into openstreetbugs
...
Conflicts:
Gemfile
app/helpers/application_helper.rb
app/views/site/index.html.erb
2012-09-20 16:01:24 +01:00
Tom Hughes
81336c4a87
Monkey patch I18n::JS to ensure translations are in a fixed order
...
Without this the result of converting the hash to JSON can vary
which causes different hashes for the result JS asset.
This is only an issue with ruby 1.8 as ruby 1.9 hashes behave like
the ActiveSupport::OrderedHash and enumerate in insertion order.
2012-08-31 11:51:58 +01:00
Tom Hughes
0d3a9ed9cb
Merge branch 'master' into openstreetbugs
...
Conflicts:
Gemfile.lock
app/views/browse/_map.html.erb
app/views/user/view.html.erb
config/locales/en.yml
config/openlayers.cfg
db/structure.sql
vendor/assets/openlayers/OpenLayers.js
2012-08-22 20:52:08 +01:00
Tom Hughes
0adb54ad86
Update to rails 3.2.6
2012-06-18 11:00:28 +01:00
Tom Hughes
f89dda9b90
Use memcache to store temporary OpenID data
...
OpenID nonces and associations need to be visible across all the
servers in the production cluster, so store them in memcache where
everything can see them properly.
2012-05-09 10:14:58 +01:00
Tom Hughes
afeee2923f
Send a Content-Length header when streaming a file
2012-03-28 18:44:02 +01:00
Tom Hughes
5cae983622
Removed temporary code for promoting databases sessions to memcached
2012-03-28 10:04:56 +01:00
Tom Hughes
a48f2ac856
Update to rails-i18n 0.5.2 and remove monkey patch
2012-03-17 17:04:02 +00:00
Tom Hughes
b1cb7bb819
Drop the contents of <script> and <style> tags when we strip them
2012-03-17 16:37:01 +00:00
Tom Hughes
e660e60966
Merge branch 'master' into openstreetbugs
...
Conflicts:
Gemfile
Gemfile.lock
lib/migrate.rb
2012-03-08 18:23:27 +00:00
Tom Hughes
4d7c3db62c
Use cache store for sessions when memcached is not available
...
Using cookie store is problematic because there is a limit to the
amount of session data you can store, and we sometimes overflow.
2012-03-06 10:42:37 +00:00
Tom Hughes
c5a54b779c
Add a temporary hack to suppress some broken rails translations
...
See https://github.com/svenfuchs/rails-i18n/issues/194 for more
information and progress on an upstream fix.
2012-03-06 09:21:26 +00:00