aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeLines
* Make sure spelling corrections are encoded as UTF-8Louise Crow2015-05-28-1/+4
|
* Handle invalid 'to' addresses.Louise Crow2015-05-22-1/+1
|
* Use a relative path in call to pdftohtml.Louise Crow2015-05-11-2/+2
| | | | | | | | pdftohtml will use the file path as the basis for generating the image links in the generated HTML, so we want them to be relative, not absolute. Ruby 1.9 tempfile.path will generate an absolute path when given the current directory as the tmpdir, whilst 2.0 and 1.8 will use a relative one.
* Handle the expected case where conversion fails and returns nil.Louise Crow2015-04-02-1/+2
|
* Merge branch '1472-simpler-external-process-management' into rails-3-developLouise Crow2015-03-24-30/+43
|\
| * Handle a child that cannot be terminated.Louise Crow2015-03-23-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Basic handling that is the same as for other process errors - just write to stderr. Add TODO for allowing the calling code to specify an error stream to allow other handling. In different circumstances, the calling code might want to raise an exception, write to the log, or do something else. At the moment this code assumes a cron context and writes to stderr, which will cause an email to be sent from the cron process, but that's not always the context the calling code is being run in. So we may be missing errors that are, for example, being written to stderr during the request cycle. In fact, this code may be called from the same place with different contexts (i.e. as part of a cron reindexing task and in the request cycle), so at the moment some substantial refactoring of the calling code would be required to make sure calls to this code handle errors appropriately for each context.
| * Give messages standard start text.Louise Crow2015-03-23-3/+3
| | | | | | | | To make it easier to find them in other output.
| * Set options via options hash only.Louise Crow2015-03-23-16/+3
| |
| * Add a default timeout of 20 mins to external commands.Louise Crow2015-03-23-1/+3
| |
| * Give a forced timeout its own error message.Louise Crow2015-03-23-2/+11
| | | | | | | | Clarify grouping of command and arguments with quotes.
| * Separate flags for binary input and outputLouise Crow2015-03-23-3/+8
| | | | | | | | | | There may be cases where the input is binary but the output is encoded text.
| * Allow options hash to be passed to ExternalCommand.Louise Crow2015-03-23-2/+3
| | | | | | | | Document :timeout as a possible option key.
| * Factor out find_program method.Louise Crow2015-01-27-13/+14
| |
* | Merge branch 'translation-script' into rails-3-developLouise Crow2015-03-23-1/+46
|\ \
| * | Add rake task for uppdating locale files with slightly changed msgidsLouise Crow2015-03-23-1/+46
| | | | | | | | | | | | | | | | | | We don't really want to make all the translators retranslate strings that are basically the same but slightly tweaked in the English version. So this task just replaces the msgid in the app.po files for each locale.
* | | Update Croatian languageMiroslav2015-03-17-1/+1
|/ / | | | | Just updating to first caps to match GUI context
* | Remove deprecated code. Fixes #2015.Louise Crow2015-02-26-102/+0
| |
* | 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
|