aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeLines
...
* 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
* Add FixMyTransport's strip_empty_sessions to not send a cookie if there's ↵Matthew Somerville2011-07-26-0/+29
| | | | nothing in the session.
* Only prepend locales to paths when there's more than one locale to choose from.Seb Bacon2011-07-15-0/+9
| | | | Replaces core "locale" filter with customised one. Fixes #82
* moved jurisdiction-specific files to themeSeb Bacon2011-07-07-186/+0
|
* fallbacks for public_body_categories (this needs to be done in a better way, ↵Seb Bacon2011-07-07-78/+1
| | | | but will do for now
* get language names from a comprehensive list, rather than just hard-code a ↵Seb Bacon2011-07-07-0/+193
| | | | handful
* initial merge of Kosovan branch; still need to get tests passing, factor out ↵Seb Bacon2011-07-06-0/+279
|\ | | | | | | Kosovan-specific code
| * I18n fixFaton Selishta2011-06-02-0/+279
| |
* | Add tests for the external_command library, and fix a bugRobin Houston2011-06-22-4/+8
| | | | | | | | | | | | | | (which was actually a fairly late regression, showing the benefits of formal tests vs informal testing). I believe this bug was the cause of the recent Xapian indexing errors.
* | Replace STDERR.puts by $stderr.puts elsewhere, which is potentially more ↵Robin Houston2011-06-21-1/+1
| | | | | | | | flexible (because STDERR is always the system standard error file descriptor, whereas $stderr can be replaced by some other ruby object to handle error output).
* | Improve parameter nameRobin Houston2011-06-21-3/+3
| |
* | - Refactor models/incoming_message.rb to get rid of the hideousRobin Houston2011-06-21-0/+92
| | | | | | | | | | | | | | global variables and methods. Move the MIME type stuff into lib/alaveteli_file_types.rb. - Correct the spelling of the word extensions (not extentions).