aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeLines
* Be more specific about the output from git remote-ls - anything except a ↵release/0.6.5Louise Crow2012-08-30-1/+1
| | | | single commit hash and tag should cause us just to pull head.
* Be verbose for now to make any errors more obvious.Louise Crow2012-08-30-1/+1
|
* The exit-code flag to git ls-remote seems relatively recent. Check for a ↵Louise Crow2012-08-30-3/+3
| | | | non-empty output from the tag query instead.
* Raise an error on a non-zero return code from the git pull command.Louise Crow2012-08-29-0/+1
|
* Handle absence of deprecated THEME_URL option.Louise Crow2012-08-29-1/+2
|
* Update references to point to the mySociety repo.Louise Crow2012-08-29-2/+2
|
* Pass through verbose param, switch to false.Louise Crow2012-08-29-4/+4
|
* Move the installation of themes to a Rake task so that we can use the ↵Louise Crow2012-08-29-0/+85
| | | | ALAVETELI_VERSION constant to check for tags in themes that indicate compatibility with this version of the Alaveteli codebase.
* Add headings and by_heading accessors to PublicBodyCategories to allow ↵Louise Crow2012-08-28-5/+24
| | | | easier access to headings and to tags associated with a particular heading.
* ECONNRESET is another error we might getRobin Houston2012-08-20-2/+2
|
* Merge branch 'wdtk' into developLouise Crow2012-08-16-10/+39
|\ | | | | | | | | | | | | Conflicts: app/controllers/admin_request_controller.rb config/httpd.conf spec/models/info_request_spec.rb
| * Add temp task to delete the cached attachment files for requests that have ↵Louise Crow2012-08-16-10/+39
| | | | | | | | been deleted or are currently not publicly visible - having prominence requester_only or hidden.
* | 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