Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Bump application version. | Louise Crow | 2013-08-15 | -1/+1 |
| | ||||
* | Move some more config into AlaveteliLocalization so that it can be called ↵ | Louise Crow | 2013-07-24 | -3/+2 |
| | | | | outside initialization e.g. in tests. | |||
* | Extract code for setting locales in FastGettext and I18n | Louise Crow | 2013-07-18 | -8/+4 |
| | ||||
* | Bump version number to 0.12 | Louise Crow | 2013-06-25 | -1/+1 |
| | ||||
* | Bump version number. | Louise Crow | 2013-06-03 | -1/+1 |
| | ||||
* | Remove the (we think) now unneeded will_paginate customization | Mark Longair | 2013-05-29 | -4/+0 |
| | | | | | | | | We believe that this customization is no longer needed, and in any case would need to be rewritten for will_paginate 3.0.4. If any pagination bugs do arise, a test should be added that reproduces that problem, since currently the tests pass without this extension. | |||
* | Merge branch 'tmail-to-mail-tests' into rails-3-develop | Mark Longair | 2013-05-28 | -0/+2 |
|\ | | | | | | | | | | | | | | | This merge brings in a number of tests and fixes for the handling of mail under Mail / Rails 3 instead of TMail / Rails 2. Conflicts: config/initializers/alaveteli.rb | |||
| * | Move "require 'alaveteli_file_types'" into the initializer | Mark Longair | 2013-05-16 | -0/+1 |
| | | ||||
| * | Add functions for converting from arbitrary text data to UTF-8 | Mark Longair | 2013-05-16 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Throughout the codebase it is simplest and most consistent if we could assume that all text/* attachments are represented by UTF-8 strings, and this was largely true with the TMail backend which ensured that all returned text parts were in UTF-8. We have to change the replacement Mail-backed to similarly attempt to convert text parts to UTF-8. This commit introduces two functions which are useful for this. The normalize_string_to_utf8 function will try various encodings, either suggested or guessed (with charlock_holmes) to convert the passed string to UTF-8, and if it can't find a suitable encoding will throw an exception. Unfortunately, the current behaviour of the site is that uninterpretable text/* attachments are still passed around and mangled to UTF-8 just before display. To mimic this it's also useful to have the convert_string_to_utf8_or_binary function, which tries to convert the string to UTF-8 with normalize_string_to_utf8, but if that's not possible just returns the original string. (In Ruby 1.9, encoding will be set to UTF-8 or ASCII-8BIT appropriately.) | |||
* | | Disable referential integrity disabling in the test database, if a config ↵ | Louise Crow | 2013-05-28 | -0/+5 |
|/ | | | | param 'constraint_disabling' is set to false in the test section of database.yml, and pay attention to the order in which fixtures are defined when deleting and loading them. | |||
* | Merge remote-tracking branch 'openaustralia_github/rails_3_cookies_prefix' ↵ | Louise Crow | 2013-05-13 | -1/+6 |
|\ | | | | | | | into rails-3-develop | |||
| * | Invalidate cookies on upgrading from Rails 2 to Rails 3. Fixes #899 | Matthew Landauer | 2013-04-05 | -1/+6 |
| | | ||||
* | | Add a simple hook to allow theme tests to load the theme code in the context ↵ | Louise Crow | 2013-05-02 | -5/+16 |
|/ | | | | of Alaveteli. | |||
* | Bump ALAVETELI_VERSION to 0.10 (should be the first Rails 3 version) | Mark Longair | 2013-04-03 | -1/+1 |
| | | | | | | | | | | One of the mechanisms by which the correct version of a theme to use is chosen is by checking whether there's a tag in the the theme repository that matches the ALAVETELI_VERSION. Since the themes need to have code changes for Rails 3, it makes sense to define a version number to be the first Rails 3 version so that we can work on this branch and have working versions of themes installed. | |||
* | Merge branch 'hotfix/0.8.0.1' into rails-3-develop | Louise Crow | 2013-04-02 | -0/+4 |
|\ | | | | | | | | | | | Conflicts: config/environment.rb spec/mailers/track_mailer_spec.rb | |||
* \ | Merge remote-tracking branch 'openaustralia_github/rails-3-develop' into ↵ | Louise Crow | 2013-03-21 | -11/+0 |
|\ \ | | | | | | | | | | rails-3-develop | |||
| * | | We've already removed the proxied admin interface (and ADMIN_PUBLIC_URL ↵ | Matthew Landauer | 2013-03-20 | -11/+0 |
| | | | | | | | | | | | | configuration setting) | |||
* | | | Merge branch 'develop' into rails-3-develop | Louise Crow | 2013-03-19 | -1/+1 |
|\ \ \ | |/ / |/| / | |/ | | | | | | | | | Conflicts: Gemfile Gemfile.lock app/views/admin_request/show.html.erb config/environment.rb | |||
* | | This is already the default | Henare Degan | 2013-03-16 | -5/+0 |
| | | ||||
* | | This no longer requires iconv in Ruby 1.9 | Henare Degan | 2013-03-16 | -7/+0 |
| | | ||||
* | | In Rails 3 we need to explicity require | Henare Degan | 2013-03-14 | -0/+1 |
| | | ||||
* | | Removed in 09ce54c6c09d878015102153cd214cf1d7ad3660 | Henare Degan | 2013-03-14 | -1/+0 |
| | | ||||
* | | Reinstate exception_notification | Henare Degan | 2013-03-05 | -7/+0 |
| | | ||||
* | | Rename Configuration class to avoid conflict with ActiveSupport::Configurable | Henare Degan | 2013-03-03 | -12/+12 |
| | | ||||
* | | We don't need this now we're not using Rails 2.x | Henare Degan | 2013-02-26 | -51/+0 |
| | | ||||
* | | Remove safe_html monkeypatch workarounds because things should now be ↵ | Matthew Landauer | 2013-01-29 | -31/+0 |
| | | | | | | | | correctly implemented | |||
* | | Remove rack_quote_monkeypatch because it should not be needed in Rails 3 | Matthew Landauer | 2013-01-29 | -1/+0 |
| | | ||||
* | | In rails 3 sendmail is passed the destination of the email on the ↵ | Matthew Landauer | 2013-01-25 | -1/+0 |
| | | | | | | | | commandline. Also, monkeypatch not needed anymore | |||
* | | Remove timezone monkeypatch fixes because they're not necessary in Rails 3 ↵ | Matthew Landauer | 2013-01-25 | -1/+0 |
| | | | | | | | | anymore | |||
* | | Temporarily commented out some ExceptionNotification setup code that was ↵ | Matthew Landauer | 2013-01-25 | -4/+6 |
| | | | | | | | | causing problems in the test | |||
* | | Mark translations as html_safe | Henare Degan | 2012-12-11 | -0/+3 |
| | | ||||
* | | Require public_body_categories like the other things in lib | Henare Degan | 2012-12-11 | -0/+1 |
| | | ||||
* | | Upgrade globalize | Henare Degan | 2012-12-11 | -2/+0 |
| | | ||||
* | | Move middleware insertion | Henare Degan | 2012-12-11 | -5/+0 |
| | | ||||
* | | Move Rails config over | Henare Degan | 2012-12-11 | -57/+0 |
| | | ||||
* | | I don't think we need to support Lenny any more | Henare Degan | 2012-12-11 | -5/+0 |
| | | ||||
* | | Start upgrading Avaveteli initialiser | Henare Degan | 2012-12-11 | -13/+3 |
| | | ||||
* | | Start moving to Rails 3 config/initialisation | Henare Degan | 2012-12-11 | -0/+161 |
| | | ||||
* | | Run the Rails 3 generator | Henare Degan | 2012-12-11 | -11/+30 |
|/ | ||||
* | Give the implicit default locale in a URL without locale precedence over the ↵ | Louise Crow | 2012-11-28 | -3/+1 |
| | | | | session in the case where the default locale is not being included in URLs. This allows the user to return to the default locale. | |||
* | Add a configuration option to specify that you don't want the default locale ↵ | Louise Crow | 2012-11-28 | -1/+3 |
| | | | | to appear in URLs generated by the application. | |||
* | backport Ruby 1.9.3 fix from Rails HEAD | James McKinney | 2012-10-10 | -0/+2 |
| | ||||
* | Default internal and external encodings now set in environment.rb | Louise Crow | 2012-10-10 | -1/+0 |
| | ||||
* | Extract configuration with defaults into one module | Matthew Landauer | 2012-09-25 | -3/+2 |
| | ||||
* | Merge branch 'release/0.6.3' into develop | Louise Crow | 2012-08-22 | -1/+1 |
|\ | | | | | | | | | | | | | | | Conflicts: app/controllers/admin_public_body_controller.rb app/views/admin_public_body/import_csv.rhtml spec/controllers/admin_public_body_controller_spec.rb spec/models/info_request_spec.rb | |||
| * | Rollback change to activerecord session store - whilst activerecord store ↵ | Louise Crow | 2012-08-15 | -2/+2 |
| | | | | | | | | has some advantages (notably avoiding permanent versus transient session hijack possibilities), I think it needs some more work/testing (we'd need to have good code for cleaning out stale activerecord sessions periodically - with activerecord store this is now our responsibility). We'd also need to reset the session key to kill all in progress sessions to prevent errors as rails tries to store long cookie keys in the limited key field of the activerecord store. For this release, it'll be more straightforward to fix the csv_upload file issue #526 in a more localized way. | |||
| * | Use ActiveRecord to store sessions, rather than Cookies. Fixes #526. | Seb Bacon | 2012-07-19 | -1/+1 |
| | | ||||
* | | Add workaround for Rails security vulnerability CVE-2012-3464. | Louise Crow | 2012-08-13 | -0/+31 |
|/ | ||||
* | Fix it so we can correctly use and display locales that contain an ↵ | Seb Bacon | 2012-06-13 | -0/+4 |
| | | | | | | | | | | underscore (e.g. `hu_HU`): * Use the latest version of `gettext_i18n_rails` (including fix to make it work in Railes 2.x) * Use a backend that falls back to, for example, `hu` from `hu_HU` (so we can use any underlying Rails l10n) * Normalize the underscore to a hyphen when working out which languages to display in the language switcher Fixes #503 (and see there for more discussion) | |||
* | Monkey-patch for CVE-2012-2660 | Robin Houston | 2012-06-12 | -0/+51 |
| | | | | Stolen from FixMyTransport. Thanks @crowbot! |