aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeLines
* Always provide a string for stdin (passing nil exposed an apparent bug in ↵Seb Bacon2012-07-17-1/+1
| | | | `uudecode` in Ubuntu 11.10)
* Merge branch 'develop' of github.com:sebbacon/alaveteli into developRobin Houston2012-06-23-12/+37
|\ | | | | | | | | | | | | | | Conflicts: Gemfile.lock script/handle-mail-replies script/handle-mail-replies.rb spec/controllers/request_controller_spec.rb
| * Make successful PURGEs log at debug level to reduce unecessary noise at ↵Seb Bacon2012-06-20-1/+1
| | | | | | | | default level (info)
| * Increase the time a page is cached for sites that are using Varnish. ↵Seb Bacon2012-06-20-3/+3
| | | | | | | | Relatedly, document the consequences of getting the Varnish config wrong; and make it easier to grep for problems with Varnish in the log.
| * Bind PURGE requests to localhostSeb Bacon2012-06-20-6/+8
| |
| * Use explicit `Rails.logger` (as we're not inheriting from ActiveRecord)Seb Bacon2012-06-20-4/+4
| |
| * Ensure we generate URLs containing the current locale, even if the locale ↵Seb Bacon2012-06-14-0/+17
| | | | | | | | | | | | contains an underscore. Includes a bonus test to ensure that locales with unknown territories fall back to known languages.
| * Upgrade to latest gettext_i18n_rails. As we are now using a gem, we also ↵Seb Bacon2012-06-14-0/+4
| | | | | | | | need to explicitly include the rake tasts from that gem.
| * Fix it so we can correctly use and display locales that contain an ↵Seb Bacon2012-06-13-1/+1
| | | | | | | | | | | | | | | | | | | | underscore (e.g. `hu_HU`): * Use the latest version of `gettext_i18n_rails` (including fix to make it work in Railes 2.x) * Use a backend that falls back to, for example, `hu` from `hu_HU` (so we can use any underlying Rails l10n) * Normalize the underscore to a hyphen when working out which languages to display in the language switcher Fixes #503 (and see there for more discussion)
| * Fall back to "parent" locale names when deciding the localised language ↵Seb Bacon2012-06-12-2/+3
|/ | | | name. Fixes #503
* trailing whitespaceRobin Houston2012-06-03-1/+1
|
* Bring list of world FOI websites up to dateSeb Bacon2012-05-30-8/+25
|
* More changes and refactoring to make purges work.Seb Bacon2012-04-20-11/+34
|
* Merge branch 'develop' into purge-requestsSeb Bacon2012-04-19-12/+9
|\ | | | | | | | | Conflicts: spec/controllers/request_controller_spec.rb
| * use Rails.root, not RAILS_ROOTJames McKinney2012-04-02-9/+9
| |
| * Merge jpmckinney/bundlerSeb Bacon2012-02-15-3/+0
| |
* | first stab at sending PURGE requests to upstream varnish for request pages. ↵Seb Bacon2012-03-13-0/+11
|/ | | | Next step: making it asynchronous, e.g. with a queue of things to purge via a cron job.
* Update all the PO files as well as the POT when running our gettext ↵Seb Bacon2012-02-08-1/+4
| | | | commands. Also, don't word-wrap. Includes non-word-wrapped source files.
* Fix namespace problem in i18n interpolationSeb Bacon2012-02-02-2/+2
|
* New improved find-msgids-and-make-pot-file rake task:Seb Bacon2012-02-02-1/+19
| | | | | (a) it doesn't do fuzzy matches (apparently Transifex does that for you) (b) it doesn't update all the PO files too (which certainly Transifex does for you)
* Merge branch 'release/0.5' of github.com:sebbacon/alaveteli into release/0.5Seb Bacon2012-02-02-0/+21
|\
| * Avoid need to be db superuser to run testsRobin Houston2012-01-31-0/+21
| | | | | | | | | | Add a patch from louisecrow (https://github.com/mysociety/fixmytransport/blob/master/lib/patches/fixtures_constraint_disabling.rb) that makes it possible to run the tests without being a database superuser.
* | Remove WDTK-specific categories from core Alaveteli. Replace with ↵Seb Bacon2012-02-02-79/+15
|/ | | | categories that work with the sample data.
* Make better wording at the top of the page listing subsets of public bodies. ↵Seb Bacon2012-01-30-4/+3
| | | | At the same time, cause the tests not to rely on WDTK data. Fixes #396
* Force the 'C' locale for elinksRobin Houston2012-01-17-1/+1
| | | | | The behaviour of elinks is locale-dependent. This patch forces LANG=C which makes the behaviour consistent across platforms.
* Replace all `which command` callsRobin Houston2012-01-17-2/+2
| | | | | | | | | | The trouble with `which command` is twofold: - It spawns a whole shell just to find out the path to a binary, every time; - The results are environment-dependent, since they depend on $PATH. It would be better to specify the search path in the configuration file where everything else is specified rather than in the environment. This commit replaces it with the new mechanism from AlaveteliExternalCommand.
* Paths for external commandsRobin Houston2012-01-17-1/+16
| | | | | | Look for external commands in a config-defined path (defaulting to /usr/bin:/usr/local/bin), rather than requiring the path to be hard-coded or the caller to resolve it.
* Ensure pagination works when running behind PassengerSeb Bacon2012-01-09-2/+4
|
* Make sure paging authority list works even when using typeahead searchSeb Bacon2012-01-09-1/+5
|
* remove stray cut&paste cruftSeb Bacon2012-01-09-1/+0
|
* Ensure pagination works even on general search pageSeb Bacon2012-01-09-14/+54
|
* Display internationalized emails correctly (specifically, RFC2047 headers, ↵Seb Bacon2012-01-04-1/+1
| | | | and HTML emails with encoding in a meta-tag). Fixes #281
* Merge remote-tracking branch 'jpmckinney/pre1.9' into developSeb Bacon2011-11-24-2/+12
|\ | | | | | | | | Conflicts: spec/controllers/request_controller_spec.rb
| * add String#is_binary_data? in Ruby 1.9James McKinney2011-10-17-0/+8
| |
| * comment out commonlib tests, which are not 1.9 compatibleJames McKinney2011-10-16-1/+2
| |
| * call #first on from_addrs and to_addrs before calling #to_sJames McKinney2011-10-16-1/+1
| |
| * add encoding magic comments and fix pathsJames McKinney2011-10-16-0/+1
| |
* | Merge pull request #264 from jpmckinney/flexible_binary_paths_devSeb Bacon2011-11-22-1/+1
|\ \ | |/ |/| Use flexible binary paths for external commands
| * add one more commandJames McKinney2011-10-11-1/+1
| |
* | Add a more correct check for vendored Rails, and use non-vendored Rails' ↵James McKinney2011-10-11-1/+5
|/ | | | gem_dependency.rb if not vendored
* Don't prepend path when loading public categories, closes #178David Cabo2011-09-19-1/+1
| | | | There's a quite strange interaction that I couldn't work out fully with the themes: even if I comment out the init.rb file in the theme, the theme categories under lib/ were overriding the default ones, which broke some tests. By removing the lib/ prefix it works as expected: the theme overrides the defaults only when alavetelitheme.rb is require'd
* Wrap categories loading into singleton and add support for multiple locales ↵David Cabo2011-09-19-94/+109
| | | | simultaneously. Fixes #178
* Provide ability to download zip file containing complete request. Closes #11Seb Bacon2011-09-13-0/+33
|
* Merge branch 'wdtk' into developRobin Houston2011-09-08-135/+0
|\ | | | | | | | | | | Conflicts: config/general.yml-example spec/models/track_mailer_spec.rb
| * Move external_command.rb to commonlibRobin Houston2011-09-07-135/+0
| |
* | Flash a message to users from outside the deployed country, telling them ↵Seb Bacon2011-09-05-0/+40
|/ | | | about either (a) a website in their country, or (b) the existence of Alaveteli to help them make one themselves. Closes #124.
* Produce transaction stats up to and including August 2011.Robin Houston2011-08-24-2/+2
|
* Ensure that recent Rails upgrade doesn't break compatibility with older ↵Seb Bacon2011-08-22-0/+42
| | | | versions of Rubygems (such as exist in Debian Lenny). Closes #145.
* New files I forgot to add in a7df6f479f452503e3a9Seb Bacon2011-08-15-0/+65
|
* include "locale" in list of session data keys that are used to decide if a ↵Seb Bacon2011-07-27-1/+1
| | | | rails session cookie is redundant for the purposes of this request. Fixes #91