aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeLines
* 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
|\ \
| * | Rename XXX comments with TODO:Gareth Rees2014-06-10-19/+19
| |/ | | | | | | Picks these up in `rake notes` and adds semantic meaning
* | Merge remote-tracking branch 'origin/hotfix/0.18.0.3' into rails-3-developLouise Crow2014-06-06-0/+2
|\ \ | |/ |/|
| * Handle converting empty RTF fileshotfix/0.18.0.3Gareth Rees2014-06-06-0/+2
| | | | | | | | Fixes https://github.com/mysociety/alaveteli/issues/1563
* | Rake task for cleaning up holding pen eventsLouise Crow2014-06-02-0/+20
|/
* Remove obsolete requireLouise Crow2014-05-15-2/+0
|
* Work around bug#77932 in pdftohtmlGareth Rees2014-05-06-0/+11
| | | | | | | | | Sometimes pdftohtml will generate thousands of images when converting an image embedded in a PDF. This causes a request spike when a user tries to view the converted PDF as HTML. See https://bugs.freedesktop.org/show_bug.cgi?id=77932 for the bug report.
* Merge branch 'issues/1390-james-cheshire-infographic' into rails-3-developGareth Rees2014-05-01-0/+77
|\
| * Remove Total Requests from quarterly statsGareth Rees2014-05-01-6/+6
| | | | | | | | | | Was confusing what the number meant; easier to just sum numbers in the quartery columns to get totals.
| * Add rake tasks for James Cheshire statsGareth Rees2014-05-01-0/+55
| |
| * Extract quarters_between to DateQuarter libGareth Rees2014-05-01-0/+22
| |