aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Handle non-UTF8 encoding in ruby 1.9 and above0.20-version-dependent-cachingLouise Crow2015-06-25-5/+55
|
* Use BASH_SOURCE to return the script path.Louise Crow2015-06-23-2/+2
| | | | | It is reliable in the case where the script is sourced from another script.
* Handle unparsed email contents as binary.Louise Crow2015-06-04-25/+62
| | | | | | | | | | | I think I was wrong in a83b379fd2d676172855825d0592937b234371e2 in assuming that all email gets properly encoded for transfer. Looking at the mail gem load method https://github.com/mikel/mail/blob/b159e0a542962fdd5e292a48cfffa560d7cf412e/lib/mail/mail.rb#L175a, it reads raw email content from a file in binary mode. So this commit makes both reading and writing the raw_email a binary mode operation and adds a data_as_text method for displaying the data in the admin interface that coerces it to valid utf-8.
* Address#to_s changes the input passed to it - dup before calling.Louise Crow2015-06-04-3/+20
| | | | Otherwise UTF-8 encoded strings will be returned as ASCII-8BIT.
* Make sure spelling corrections are encoded as UTF-8Louise Crow2015-06-04-1/+108
|
* Fix encoding issue with searching for macronsCaleb2015-06-04-35/+48
| | | | Correct indentation to be consistent
* Make sure regexes used in highlight helper are UTF-8 encodedLouise Crow2015-06-04-0/+1
|
* Add UTF-8 encoding line.Louise Crow2015-05-15-0/+1
| | | | | | | Without this line, strings created in the file will use the default external encoding set by the ENV variable LANG. When processes are forked or run in cron, this may not be preserved, so better to set explicitly.
* Use a relative path in call to pdftohtml.Louise Crow2015-05-15-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.
* Force the encoding of values returned from YAML.Louise Crow2015-05-07-3/+27
| | | | | | | | | This is a workaround for an issue where YAML in ruby 1.8 tags UTF-8 heavy strings as binary, resulting in them being retrieved under 1.9 as ASCII-8BIT which can't be concatenated with UTF-8. Described as "Deep deep YAML oddness" in https://www.zendesk.com/blog/upgrade-the-road-to-1-9/.
* Make the namespace for memcached dependent on ruby version.Louise Crow2015-05-05-1/+2
| | | | Items cached in 1.8 can't safely be retrieved in 1.9
* Latest translations from Transifex.0.20.0.15hotfix/0.20.0.15Louise Crow2015-03-24-586/+504
|
* Bump Alaveteli version.0.20.0.14hotfix/0.20.0.14Louise Crow2015-02-16-1/+1
|
* Latest translations from Transifex.Louise Crow2015-02-16-2/+2
|
* Bump Alaveteli version number.0.20.0.13hotfix/0.20.0.13Louise Crow2015-02-16-1/+1
|
* Latest translations from Transifex.Louise Crow2015-02-16-80/+80
|
* Bump Alaveteli version.0.20.0.12hotfix/0.20.0.12Louise Crow2015-02-16-1/+1
|
* Latest translations from Transifex.Louise Crow2015-02-16-1026/+974
|
* Merge branch 'hotfix/0.20.0.11'0.20.0.11Louise Crow2015-02-13-5/+17
|\
| * Bump Alaveteli versionhotfix/0.20.0.11Louise Crow2015-02-13-1/+1
| |
| * Set binary mode to false in call to pdftohtmlLouise Crow2015-02-13-4/+16
|/ | | | | We want the HTML to be encoding in the default encoding so that it can be combined with other strings.
* Merge branch 'hotfix/0.20.0.10'0.20.0.10Louise Crow2015-02-10-874/+888
|\
| * Bump Alaveteli versionhotfix/0.20.0.10Louise Crow2015-02-10-1/+1
| |
| * Latest translations from Transifex.Louise Crow2015-02-10-873/+887
| |
* | Merge branch 'hotfix/0.20.0.9'0.20.0.9Gareth Rees2015-02-09-106/+106
|\ \ | |/ |/|
| * Add RW translations of config/locales/rw.ymlGareth Rees2015-02-09-106/+106
|/
* Bump alaveteli version0.20.0.8hotfix/0.20.0.8Louise Crow2015-02-06-1/+1
|
* Latest translations from TransifexLouise Crow2015-02-06-763/+702
|
* Merge branch 'hotfix/0.20.0.7'0.20.0.7Louise Crow2015-02-05-8/+23
|\ | | | | | | | | Conflicts: config/initializers/alaveteli.rb
| * Bump version numberhotfix/0.20.0.7Louise Crow2015-02-05-1/+1
| |
| * Remove unused variableLouise Crow2015-02-03-4/+1
| |
| * Do not allow requests for search results after the first 500Louise Crow2015-02-03-3/+21
| | | | | | | | | | | | | | The pages for these search results are extremely slow to load. This is not an ideal solution by any means. Really we want to dig into why high offsets are so slow, and whether there's anything we can do to fix that.
* | Merge branch 'hotfix/0.20.0.6'0.20.0.6Louise Crow2015-02-05-75/+411
|\ \ | |/ |/|
| * Bump Alaveteli version numberhotfix/0.20.0.6Louise Crow2015-02-05-1/+1
| |
| * Deprecate PublicBody#translations_attributes=(Array)Gareth Rees2015-02-03-0/+13
| | | | | | | | Array handling will no longer be supported in release 0.22
| * Remove unused indexGareth Rees2015-02-03-3/+2
| |
| * Build available locales in the controllerGareth Rees2015-02-03-114/+57
| | | | | | | | | | Removes logic from views and obsoletes AdminPublicBodyHelper#public_body_form_object
| * Fix submission of form containing both existing and new translationsLouise Crow2015-02-03-121/+140
| |
| * Add AdminPublicBodyController#update specsGareth Rees2015-02-03-0/+106
| | | | | | | | | | | | | | Covers core functionality. Could do with extracting multiple assertions in to individual specs. Strange that you need to call `reload` on the PublicBody instance when testing “updates an existing translation and adds a third translation”
| * Add specs for PublicBody#translated_versions=Gareth Rees2015-01-30-1/+111
| | | | | | | | | | | | | | | | Also fixes #empty_translation? to check for String and Symbol keys named 'locale'. Specs use a pre-change check to assert difference. For some reason rspec change matcher fails with 'nil is not a symbol'.
| * Extract view logicGareth Rees2015-01-30-20/+107
| |
| * each instead of forGareth Rees2015-01-30-1/+1
| |
| * Rewrite complex ternary logicGareth Rees2015-01-30-3/+6
| |
| * Test adding multiple translations to Public BodiesGareth Rees2015-01-30-0/+56
| |
| * Add an extra locale to the test environment configGareth Rees2015-01-30-1/+1
|/
* Merge branch 'hotfix/0.20.0.5'0.20.0.5Louise Crow2015-01-30-337/+4278
|\
| * Bump Alaveteli versionhotfix/0.20.0.5Louise Crow2015-01-30-1/+1
| |
| * Latest translations from TransifexLouise Crow2015-01-30-336/+4277
|/
* Merge branch 'hotfix/0.20.0.4'0.20.0.4Gareth Rees2015-01-16-1/+205
|\
| * Bump ALAVETELI_VERSIONhotfix/0.20.0.4Gareth Rees2015-01-16-1/+1
| |