Commit message (Collapse) | Author | Age | Lines | |
---|---|---|---|---|
* | Merge branch 'hotfix/0.21.0.33' into rails-3-develop | Louise Crow | 2015-05-28 | -0/+110 |
|\ | ||||
| * | Add required setup | Louise Crow | 2015-05-28 | -11/+17 |
| | | ||||
| * | Make sure spelling corrections are encoded as UTF-8 | Louise Crow | 2015-05-28 | -0/+29 |
| | | ||||
| * | Cleanup spec. | Louise Crow | 2015-05-26 | -52/+54 |
| | | | | | | | | Remove unneeded setup, fixtures are not used in these specs. | |||
| * | Move acts_as_xapian specs to own file. | Louise Crow | 2015-05-26 | -0/+73 |
| | | ||||
* | | Merge branch 'force-filenames-to-utf8' into rails-3-develop | Louise Crow | 2015-05-28 | -1/+65 |
|\ \ | ||||
| * | | Fix typo | Louise Crow | 2015-05-15 | -1/+1 |
| | | | ||||
| * | | Force attachment filenames to utf-8 before trying to save them | Louise Crow | 2015-05-15 | -0/+9 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In a database with encoding SQL-ASCII, an invalid utf-8 filename can be saved but will cause an "invalid byte sequence in UTF-8" when the filename is prepared for display. In a database with a UTF-8 encoding, saving the string will cause an error like "ActiveRecord::StatementInvalid (PG::Error: ERROR: invalid byte sequence for encoding "UTF8"" | |||
| * | | Add method for forcing strings to valid utf-8 | Louise Crow | 2015-05-14 | -0/+55 |
| | | | | | | | | | | | | | | | Try likely conversions but if that fails, just replace the characters that are invalid utf-8. | |||
* | | | Merge branch 'locale-specific-language-name' into rails-3-develop | Louise Crow | 2015-05-28 | -0/+22 |
|\ \ \ | ||||
| * | | | Allow locale specific language names and add one for Hong Kong Chinese. | Louise Crow | 2015-05-15 | -0/+22 |
| | | | | ||||
* | | | | Merge branch 'hotfix/0.21.0.32' into rails-3-develop | Louise Crow | 2015-05-26 | -0/+10 |
|\ \ \ \ | | |_|/ | |/| | | ||||
| * | | | Handle invalid 'to' addresses. | Louise Crow | 2015-05-22 | -0/+10 |
| | | | | ||||
* | | | | Merge remote-tracking branch 'jpmckinney_github/parentheses' into ↵ | Louise Crow | 2015-05-22 | -1/+1 |
|\ \ \ \ | | | | | | | | | | | | | | | | rails-3-develop | |||
| * | | | | Remove all optional parentheses for method calls in Ruby | James McKinney | 2015-05-21 | -1/+1 |
| | |/ / | |/| | | ||||
* / | | | Simplify HealthCheckable API | James McKinney | 2015-05-21 | -24/+10 |
|/ / / | ||||
* | / | Add source file encoding for all ruby files. | Louise Crow | 2015-05-15 | -7/+25 |
| |/ |/| | | | | | | | | | This is important under ruby 1.9 in order to determine the encoding that will be used for new strings created in the code in the file. | |||
* | | Refactor a bit to allow testing of logic branches. | Louise Crow | 2015-04-16 | -0/+17 |
| | | | | | | | | | | Add specs for current behaviour on failure to uncompress, failure to compress. | |||
* | | Remove presumably accidentally committed RSpec focus tags | Henare Degan | 2015-04-11 | -2/+2 |
|/ | ||||
* | Handle the expected case where conversion fails and returns nil. | Louise Crow | 2015-04-02 | -0/+5 |
| | ||||
* | Merge branch 'hotfix/0.20.0.11' into rails-3-develop | Louise Crow | 2015-02-13 | -2/+15 |
|\ | ||||
| * | Set binary mode to false in call to pdftohtml | Louise Crow | 2015-02-13 | -2/+15 |
| | | | | | | | | | | We want the HTML to be encoding in the default encoding so that it can be combined with other strings. | |||
* | | Refactor the application of masks and censor rules to messages. | Louise Crow | 2014-12-15 | -0/+146 |
|/ | | | | | | | | | | 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. | |||
* | Add fix for Apple Mail with attachments | Gareth Rees | 2014-11-04 | -0/+6 |
| | ||||
* | Add some specs to MailBackend | Gareth Rees | 2014-11-04 | -0/+145 |
| | ||||
* | Merge branch 'issues/222-category-editing-add-order-interface' into ↵ | Louise Crow | 2014-10-14 | -42/+0 |
|\ | | | | | | | rails-3-develop | |||
| * | Replace existing PublicBodyCategories functionality with db models ↵ | lizconlan | 2014-09-22 | -42/+0 |
| | | | | | | | | PublicBodyCategory and PublicBodyHeading | |||
* | | Replace initial checks with DaysAgoCheck | Gareth Rees | 2014-09-25 | -84/+66 |
| | | ||||
* | | Add some initial health checks | Gareth Rees | 2014-09-25 | -0/+84 |
| | | ||||
* | | Add HealthCheck and HealthCheckable | Gareth Rees | 2014-09-25 | -0/+205 |
|/ | | | | | | | 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. | |||
* | Add charset to view-as-html template | Gareth Rees | 2014-08-19 | -0/+1 |
| | ||||
* | Merge branch 'issues/1415-bulk-update-public-bodies' into rails-3-develop | Gareth Rees | 2014-06-25 | -0/+114 |
|\ | ||||
| * | Extract public body CSV export to its own class | Gareth Rees | 2014-06-06 | -0/+114 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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. | |||
* | | Handle converting empty RTF fileshotfix/0.18.0.3 | Gareth Rees | 2014-06-06 | -0/+11 |
|/ | | | | Fixes https://github.com/mysociety/alaveteli/issues/1563 | |||
* | Work around bug#77932 in pdftohtml | Gareth Rees | 2014-05-06 | -0/+37 |
| | | | | | | | | | 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. | |||
* | Remove dependency on timezone in config | Louise Crow | 2014-05-02 | -10/+12 |
| | ||||
* | Merge branch 'issues/1390-james-cheshire-infographic' into rails-3-develop | Gareth Rees | 2014-05-01 | -0/+29 |
|\ | ||||
| * | Extract quarters_between to DateQuarter lib | Gareth Rees | 2014-05-01 | -0/+29 |
| | | ||||
* | | Merge branch 'hotfix/0.17.0.1' into rails-3-develop | Louise Crow | 2014-04-25 | -0/+5 |
|\ \ | |/ |/| | ||||
| * | Fix for badly-formed content-disposition header. | Louise Crow | 2014-04-25 | -0/+5 |
| | | | | | | | | Taken from https://github.com/mikel/mail/pull/602 | |||
* | | Dynamically inject AttachmentToHTML::View content | Gareth Rees | 2014-04-07 | -0/+5 |
| | | ||||
* | | Remove redundant AttachmentToHTML::HTML | Gareth Rees | 2014-04-07 | -24/+0 |
| | | ||||
* | | Update AttachmentToHTML for new View class | Gareth Rees | 2014-04-07 | -6/+24 |
| | | ||||
* | | Simpler AttachmentToHTML::Adapters::CouldNotConvert interface | Gareth Rees | 2014-04-07 | -40/+9 |
| | | ||||
* | | Simpler AttachmentToHTML::Adapters::GoogleDocsViewer interface | Gareth Rees | 2014-04-07 | -42/+10 |
| | | ||||
* | | Simpler AttachmentToHTML::Adapters::RTF interface | Gareth Rees | 2014-04-07 | -60/+22 |
| | | | | | | | | | | | | | | | | | | | | | | TODO: We really should be testing the full output of RTF#body, but we currently want to remain consistent with Adapters::PDF as many methods are shared between the Adapters. A more correct spec might be: expected = %Q(<font size=3><font color="#000000">thisisthebody</font></font>) adapter.body.should == expected | |||
* | | Simpler AttachmentToHTML::Adapters::PDF interface | Gareth Rees | 2014-04-07 | -56/+21 |
| | | | | | | | | | | | | | | | | | | | | | | TODO: We really should be testing the full output of PDF#body, but inconsistencies between pdftohtml prevent sensible means of doing this. For example: adapter.body.should == %Q(\n<A name=1></a>thisisthebody<br/>\n<hr>\n) Fails because some versions (correctly!) use lower case tag names. | |||
* | | Simpler AttachmentToHTML::Adapters::Text interface | Gareth Rees | 2014-04-07 | -73/+22 |
| | | ||||
* | | Add an AttachmentToHTML::View to deal with rendering | Gareth Rees | 2014-04-07 | -0/+145 |
| | | ||||
* | | Work around a bug in unrtf | Gareth Rees | 2014-04-01 | -0/+25 |
| | |