aboutsummaryrefslogtreecommitdiffstats
path: root/config/initializers
Commit message (Collapse)AuthorAgeLines
* Merge branch 'switch-theme-script' into rails-3-developMark Longair2013-10-30-2/+2
|\ | | | | | | | | Conflicts: config/initializers/alaveteli.rb
| * Make theme URL to theme name mapping consistentMark Longair2013-10-15-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code that extracted the theme name from each entry in THEME_URLS (in order to require code from a directory whose leaf name is the theme name) only supported git URLs that ended in '.git'. However, the themes:install rake task usefully supports a wider range of git URLs - for example, all of the following were supported: /home/whoever/themes/blah-theme => blah-theme /home/whoever/themes/blah-theme/ => blah-theme git://wherever/blah-theme.git => blah-theme ssh://wherever/blah-theme.git// => blah-theme This commit factors out a theme_url_to_theme_name method, adds tests for it, and uses that method in both: lib/tasks/themes.rake config/initializers/theme_loader.rb ... so that a wider range of theme URLs are consistently supported.
* | Monkey patch actionmailer for CVE-2013-43890.14.0.3hotfix/0.14.0.3Louise Crow2013-10-24-0/+1
|/ | | | http://seclists.org/oss-sec/2013/q4/118
* Bump Alaveteli versionLouise Crow2013-09-24-1/+1
|
* Merge branch 'feature/hide-individual-responses' into rails-3-developLouise Crow2013-09-17-0/+1
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: Gemfile app/views/admin_request/edit_outgoing.html.erb config/packages doc/CHANGES.md doc/INSTALL.md spec/models/info_request_spec.rb spec/models/public_body_spec.rb
| * Create MessageProminence module.Louise Crow2013-09-16-0/+1
| | | | | | | | | | | | At least some of the logic for incoming and outgoing message prominence is going to be identical, so move it to a module they can both include and use.
* | Remove obsolete comment.Louise Crow2013-09-05-1/+0
| |
* | Bump application version.Louise Crow2013-08-15-1/+1
|/
* Move some more config into AlaveteliLocalization so that it can be called ↵Louise Crow2013-07-24-3/+2
| | | | outside initialization e.g. in tests.
* Extract code for setting locales in FastGettext and I18nLouise Crow2013-07-18-8/+4
|
* Bump version number to 0.12Louise Crow2013-06-25-1/+1
|
* Bump version number.Louise Crow2013-06-03-1/+1
|
* Remove the (we think) now unneeded will_paginate customizationMark Longair2013-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-developMark Longair2013-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 initializerMark Longair2013-05-16-0/+1
| |
| * Add functions for converting from arbitrary text data to UTF-8Mark Longair2013-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 Crow2013-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 Crow2013-05-13-1/+6
|\ | | | | | | into rails-3-develop
| * Invalidate cookies on upgrading from Rails 2 to Rails 3. Fixes #899Matthew Landauer2013-04-05-1/+6
| |
* | Add a simple hook to allow theme tests to load the theme code in the context ↵Louise Crow2013-05-02-5/+16
|/ | | | of Alaveteli.
* Bump ALAVETELI_VERSION to 0.10 (should be the first Rails 3 version)Mark Longair2013-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-developLouise Crow2013-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 Crow2013-03-21-11/+0
|\ \ | | | | | | | | | rails-3-develop
| * | We've already removed the proxied admin interface (and ADMIN_PUBLIC_URL ↵Matthew Landauer2013-03-20-11/+0
| | | | | | | | | | | | configuration setting)
* | | Merge branch 'develop' into rails-3-developLouise Crow2013-03-19-1/+1
|\ \ \ | |/ / |/| / | |/ | | | | | | | | Conflicts: Gemfile Gemfile.lock app/views/admin_request/show.html.erb config/environment.rb
* | This is already the defaultHenare Degan2013-03-16-5/+0
| |
* | This no longer requires iconv in Ruby 1.9Henare Degan2013-03-16-7/+0
| |
* | In Rails 3 we need to explicity requireHenare Degan2013-03-14-0/+1
| |
* | Removed in 09ce54c6c09d878015102153cd214cf1d7ad3660Henare Degan2013-03-14-1/+0
| |
* | Reinstate exception_notificationHenare Degan2013-03-05-7/+0
| |
* | Rename Configuration class to avoid conflict with ActiveSupport::ConfigurableHenare Degan2013-03-03-12/+12
| |
* | We don't need this now we're not using Rails 2.xHenare Degan2013-02-26-51/+0
| |
* | Remove safe_html monkeypatch workarounds because things should now be ↵Matthew Landauer2013-01-29-31/+0
| | | | | | | | correctly implemented
* | Remove rack_quote_monkeypatch because it should not be needed in Rails 3Matthew Landauer2013-01-29-1/+0
| |
* | In rails 3 sendmail is passed the destination of the email on the ↵Matthew Landauer2013-01-25-1/+0
| | | | | | | | commandline. Also, monkeypatch not needed anymore
* | Remove timezone monkeypatch fixes because they're not necessary in Rails 3 ↵Matthew Landauer2013-01-25-1/+0
| | | | | | | | anymore
* | Temporarily commented out some ExceptionNotification setup code that was ↵Matthew Landauer2013-01-25-4/+6
| | | | | | | | causing problems in the test
* | Mark translations as html_safeHenare Degan2012-12-11-0/+3
| |
* | Require public_body_categories like the other things in libHenare Degan2012-12-11-0/+1
| |
* | Upgrade globalizeHenare Degan2012-12-11-2/+0
| |
* | Move middleware insertionHenare Degan2012-12-11-5/+0
| |
* | Move Rails config overHenare Degan2012-12-11-57/+0
| |
* | I don't think we need to support Lenny any moreHenare Degan2012-12-11-5/+0
| |
* | Start upgrading Avaveteli initialiserHenare Degan2012-12-11-13/+3
| |
* | Start moving to Rails 3 config/initialisationHenare Degan2012-12-11-0/+161
| |
* | Run the Rails 3 generatorHenare Degan2012-12-11-11/+30
|/
* Give the implicit default locale in a URL without locale precedence over the ↵Louise Crow2012-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 Crow2012-11-28-1/+3
| | | | to appear in URLs generated by the application.
* backport Ruby 1.9.3 fix from Rails HEADJames McKinney2012-10-10-0/+2
|
* Default internal and external encodings now set in environment.rbLouise Crow2012-10-10-1/+0
|