aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeLines
* Merge branch '2101-country-specific-select-authority' into rails-3-developGareth Rees2015-02-19-0/+1
|\
| * Add AUTHORITY_MUST_RESPOND configuration optionGareth Rees2015-02-19-0/+1
| |
* | Merge branch 'hotfix/0.20.0.11' into rails-3-developLouise Crow2015-02-13-2/+1
|\ \ | |/ |/|
| * Set binary mode to false in call to pdftohtmlLouise Crow2015-02-13-2/+1
| | | | | | | | | | We want the HTML to be encoding in the default encoding so that it can be combined with other strings.
* | Update language mappingsGareth Rees2015-01-06-2/+2
| | | | | | | | | | | | | | | | [11:41:15] <louise> pere: did you decide if you'd prefer "Bokmål" to "Norsk Bokmål" as the description? [11:41:51] <pere> louise: yes. pull request will show up. We go with Bokmål and Nynorsk in the web page, as it is now on <URL: URL_REDACTED>.
* | Merge branch 'rails-3-develop' of ↵Louise Crow2014-12-15-5/+20
|\ \ | | | | | | | | | ssh://git.mysociety.org/data/git/public/alaveteli into rails-3-develop
| * \ Merge branch 'gettext_clean_theme' into rails-3-developGareth Rees2014-12-12-5/+20
| |\ \
| | * | Extract duplication in gettext theme tasksGareth Rees2014-12-11-11/+10
| | | |
| | * | Add task to clean theme translationsGareth Rees2014-12-11-0/+16
| | |/
* | / Refactor the application of masks and censor rules to messages.Louise Crow2014-12-15-0/+127
|/ / | | | | | | | | | | | | | | | | | | Seems more logical to make this one method that figures out what to do based on file type. Plus, incoming message does so many things, it seemed like having these related methods be separate would make them easier to read and understand. Also, email, mobile and login substitution texts weren't being translated. Finally, I think passing the censor rules and masks as arguments is a first step in some more decoupling of models.
* | Merge branch 'catch-openuri-timeout-errors' into rails-3-developLouise Crow2014-12-11-2/+13
|\ \ | |/ |/|
| * Use exception notification for third party url errorsLouise Crow2014-11-14-2/+13
| | | | | | | | Include URL and error in notification and log.
| * Catch timeouts in quietly_try_to_purgeIan Chard2014-11-03-1/+1
| | | | | | | | | | Although many times of errors are caught, the case where a connection is made but no reply is received resulted in an uncaught Timeout::Error.
* | Support the full four-point version stringGareth Rees2014-11-19-0/+2
| |
* | Add fix for Apple Mail with attachments Gareth Rees2014-11-04-0/+4
| |
* | Allow resetting of the locale pattern on the locale routing filter.Louise Crow2014-10-28-0/+9
| | | | | | | | | | | | | | An order-dependent error in locale integration tests (https://travis-ci.org/mysociety/alaveteli/jobs/37914013) showed that the routing filter pattern was not being updated from it's initial value when a new set of available locales was passed to AlaveteliLocalization.
* | Merge branch 'issues/222-category-editing-add-order-interface' into ↵Louise Crow2014-10-14-74/+97
|\ \ | | | | | | | | | rails-3-develop
| * | Remove default public_body_categories_[locale].rb files.Louise Crow2014-10-09-39/+0
| | |
| * | Remove old PublicBodyCategories calls.Louise Crow2014-10-09-0/+11
| | | | | | | | | | | | | | | Add deprecation notice to draw attention to any place where PublicBodyCategories is called from themes.
| * | fixup! Don't migrate categories automatically.Louise Crow2014-10-09-6/+10
| | |
| * | Find by translated name correctly.Louise Crow2014-09-26-2/+4
| | | | | | | | | | | | | | | | | | .where doesn't seem to use the translations with this version of Globalize, even in a locale block. As this is run-once code to migrate, I think we're fine with the old syntax.
| * | Create module to clarify what code is just for migrating from files.Louise Crow2014-09-25-0/+85
| | |
| * | Basic category admin screenlizconlan2014-09-22-0/+20
| | |
| * | Replace existing PublicBodyCategories functionality with db models ↵lizconlan2014-09-22-60/+0
| | | | | | | | | | | | PublicBodyCategory and PublicBodyHeading
* | | Replace initial checks with DaysAgoCheckGareth Rees2014-09-25-36/+28
| | |
* | | Add some initial health checksGareth Rees2014-09-25-0/+36
| | |
* | | Add HealthCheck and HealthCheckableGareth Rees2014-09-25-0/+65
|/ / | | | | | | | | | | | | HealthCheck is a basic library for creating health checks. HealthCheck works with any class so long as it includes HealthCheckable and defines the `check` method.
* | Merge branch 'hotfix/0.19.0.2' into rails-3-developGareth Rees2014-09-05-1/+2
|\|
| * Allow RAILS_ENV to be set in sysvinit-thinhotfix/0.19.1hotfix/0.19.0.2Gareth Rees2014-08-29-1/+2
| | | | | | | | Install script on AWS uses development mode by default
* | Add default MTA_LOG_PATHGareth Rees2014-08-26-0/+1
| | | | | | | | We default MTA_LOG_TYPE to exim so we can set the default log path too
* | Set default MAX_REQUESTS_PER_USER_PER_DAYGareth Rees2014-08-26-1/+1
| | | | | | | | | | | | We supply a default example for MAX_REQUESTS_PER_USER_PER_DAY so we might as well set it as default and allow the user to tune if they dislike the default.
* | Add default INCOMING_EMAIL_PREFIXGareth Rees2014-08-26-1/+1
|/ | | | | | All our examples use the 'foi+' prefix so lets make this the default. If people _really_ want no prefix, they can change the setting to ''. This will probably cover the more general cases.
* Add charset to view-as-html templateGareth Rees2014-08-19-0/+1
|
* Fix typo in config_files:convert_init_scriptGareth Rees2014-08-07-1/+1
|
* Tidy config_files:convert_init_scriptGareth Rees2014-08-07-10/+11
|
* Merge branch 'stats_export_body_name_quoting' into rails-3-developGareth Rees2014-08-05-2/+2
|\
| * Quote body name in stats csv exportGareth Rees2014-08-04-2/+2
| | | | | | | | Some Public Body names contain commas (or other characters) which lead to a malformed CSV where parts of the body name are in later columns.
* | Use correct site name for alert tracks log and pidGareth Rees2014-07-15-3/+5
| | | | | | | | | | ENV[‘SITE’] can be specified for the crontab (and elsewhere) so allow the option here too.
* | Generate alert-tracks pid & log to default locationGareth Rees2014-07-15-2/+3
| | | | | | | | | | Deployment system should handle linking the original location to wherever necessary on the specific platform.
* | Minor tidying of alert-tracks generationGareth Rees2014-07-15-6/+10
|/
* Merge branch 'issues/1585-responsive-styling-by-default' into rails-3-developGareth Rees2014-07-15-1/+1
|\
| * Set fallback responsitve styling to trueGareth Rees2014-07-11-1/+1
| | | | | | | | | | 156481f set the default example to true but this ensures the fallback is true.
* | Update list of world FOI websites.Louise Crow2014-07-08-3/+14
|/
* Merge branch 'issues/1415-bulk-update-public-bodies' into rails-3-developGareth Rees2014-06-25-0/+95
|\
| * Extract public body CSV export to its own classGareth Rees2014-06-06-0/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - SRP: Do one thing. PublicBodyCSV converts a collection of bodies in to a CSV formatted String - Adds some parenthesis around parameters in PublicBodyController#list_all_csv - Let the controller handle what records to pull out for the CSV export Arguably this doesn't really need to be anything to do with PublicBody, but it allows us to set nice defaults.
* | Merge branch 'issues/1434-email-highlighting' into rails-3-developGareth Rees2014-06-25-12/+50
|\ \
| * | Handle unhelpful stemmingGareth Rees2014-06-25-5/+32
| | | | | | | | | | | | | | | | | | | | | Stemming returns 'bore' as the word to highlight which can't be matched in the original phrase. Also removes duplicates from the results
| * | Improve ActsAsXapian::Search#words_to_highlightGareth Rees2014-06-16-10/+21
| | | | | | | | | | | | | | | | | | - Ignore stopwords - Use Stemming - Wrap words with regex for use in a highlighter (optional)
* | | Add MAILTO option to convert_crontab taskGareth Rees2014-06-25-2/+3
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Less manual editing for reinstallers. Existing backwards-compatibility: $ bundle exec rake config_files:convert_crontab \ DEPLOY_USER=deploy \ VHOST_DIR=/home/vagrant/ \ VCSPATH=alaveteli \ SITE=alaveteli \ CRONTAB=config/crontab-example | grep 'MAILTO=' MAILTO=cron-alaveteli@mysociety.org New optional MAILTO option: $ bundle exec rake config_files:convert_crontab \ DEPLOY_USER=deploy \ VHOST_DIR=/home/vagrant/ \ VCSPATH=alaveteli \ SITE=alaveteli CRONTAB=config/crontab-example \ MAILTO=cron@example.org | grep 'MAILTO=' MAILTO=cron@example.org
* | Merge branch 'replace-xxx-todo' into rails-3-developGareth Rees2014-06-16-19/+19
|\ \