aboutsummaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeLines
* Monkey patch actionmailer for CVE-2013-43890.14.0.3hotfix/0.14.0.3Louise Crow2013-10-24-0/+15
| | | | http://seclists.org/oss-sec/2013/q4/118
* Merge branch 'feature/hide-individual-responses' into rails-3-developLouise Crow2013-09-17-1/+38
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: Gemfile app/views/admin_request/edit_outgoing.html.erb config/packages doc/CHANGES.md doc/INSTALL.md spec/models/info_request_spec.rb spec/models/public_body_spec.rb
| * Hide hidden outgoing messages in download.Louise Crow2013-09-16-0/+4
| |
| * Move indexed_by_search to MessageProminenceLouise Crow2013-09-16-0/+4
| | | | | | | | Add some tests that it's working on the outgoing message model.
| * Add hidden messages for outgoing message.Louise Crow2013-09-16-2/+2
| | | | | | | | | | | | Conflicts: app/views/request/_incoming_correspondence.html.erb
| * Create MessageProminence module.Louise Crow2013-09-16-0/+18
| | | | | | | | | | | | At least some of the logic for incoming and outgoing message prominence is going to be identical, so move it to a module they can both include and use.
| * Refactor common logic about prominence and access.Louise Crow2013-09-16-1/+12
| | | | | | | | Move it into the Ability module.
* | Add simple task for updating theme translations.Louise Crow2013-09-12-0/+26
| |
* | Remove unused task.Louise Crow2013-09-12-22/+0
| |
* | Merge branch 'public-body-locale-fallback' into rails-3-developLouise Crow2013-09-12-0/+1
|\ \ | | | | | | | | | | | | | | | | | | Conflicts: app/controllers/public_body_controller.rb config/general.yml-example lib/configuration.rb
| * | Make falling back to default locale in public body listings optionalMark Longair2013-09-10-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As the code stood, the list method in PublicBodyController would only return results that had translations of the public body in the default locale. This has a variety of problems if you're viewing pages in the non-default locale - for example, the "first letter" links wouldn't bring up the public bodies that began with that letter in the current locale, only those that began with it in the default locale. Ideally, every public body would be translated into every available locale for the site, but there are cases where deployers wish to have public body listings also include those from the default locale, in case there are untralsated public bodies: https://groups.google.com/d/msg/alaveteli-dev/zUY_USaAMAM/M7KTQ9RC5YUJ This commit makes the default behaviour to look for public body listings only in the current locale, but if the new configuration option PUBLIC_BODY_LIST_FALLBACK_TO_DEFAULT_LOCALE is set, then public body listings will be looked for in both the current locale and the default locale. Fixes #1000
* | | Don't save a public body version when updating the stats.Louise Crow2013-09-05-1/+3
| | |
* | | Don't re-index body when updating statsLouise Crow2013-09-05-0/+1
| | |
* | | Add a verbosity flag to public body stats taskLouise Crow2013-09-05-1/+3
| | |
* | | Merge branch 'hotfix/0.13.0.2' into rails-3-developLouise Crow2013-09-04-1/+1
|\ \ \
| * | | Add a timeout to document conversion with wvtext - it can hang.0.13.0.2hotfix/0.13.0.2Louise Crow2013-09-04-1/+1
| | | |
* | | | Merge branch 'hotfix/0.13.0.1' into rails-3-developLouise Crow2013-09-04-1/+1
|\| | |
| * | | Fix wrong method name.hotfix/0.13.0.1Louise Crow2013-08-28-1/+1
| |/ /
* | | Merge remote-tracking branch 'origin/remove-old-i18n-patches' into ↵Louise Crow2013-09-04-105/+0
|\ \ \ | | | | | | | | | | | | rails-3-develop
| * | | Remove apparently unneeded I18n customizationMark Longair2013-08-28-105/+0
| |/ / | | | | | | | | | | | | | | | The tests still pass with this code removed, so remove it - if it's still needed, it should be readded with tests that would fail without.
* | | Merge branch 'body-statistics' into rails-3-developLouise Crow2013-09-04-0/+54
|\ \ \ | |/ / |/| |
| * | Add a config option to enable the public body statistics pageMark Longair2013-08-20-0/+1
| | |
| * | Improve calculation of PublicBody statistics columnsMark Longair2013-08-20-18/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On PublicBody, we don't need to update info_requests_count because that's already done with :counter_cache. On the other hand, info_requests_successful_count and info_requests_not_held_count can't be updated easily with counter_cache (since they need conditions to be attached). Instead we update them in post_save and post_destroy, as suggested here: http://blog.douglasfshearer.com/post/17495285851/custom-counter-cache-with-conditions This also adds tests to ensure that the after_(save|destroy) callbacks are called and that they modify the counts correctly.
| * | Make the minimum requests for statistics configurableMark Longair2013-08-20-0/+1
| | | | | | | | | | | | This adds the MINIMUM_REQUESTS_FOR_STATISTICS config option.
| * | Add a page with experimental statistics on public bodiesMark Longair2013-08-20-0/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The statistics on the status of the requests to a particular public body are too slow to calculate on-the-fly, so this commit adds: * Extra columns on public_bodies to store counts of the successful, not held, and overdue request counts for each public body. * A rake task which should be run periodically to update the overdue request count column. If Javascript is not available, the summary statistics are shown as tables. If Javascript is available, graphs are drawn with Flot.
* | | Mark all events for the fixed requests as needing a reindex.release/0.13Louise Crow2013-08-20-9/+16
|/ /
* | Merge branch 'feature/further-request-event-fixes' into rails-3-developLouise Crow2013-08-15-0/+30
|\ \
| * | Add task for cleaning up bad request histories.Louise Crow2013-08-15-0/+30
| |/
* | Only check commonlib, don't try to split the response into segments (as @mhl ↵Louise Crow2013-08-08-7/+8
| | | | | | | | points out, the case where the initial character is a space is somewhat confusing), just grab the first character of the whole string and check it against expected values.
* | Call it an error, not a warning.Louise Crow2013-07-30-4/+4
| |
* | Get first character in a way that will work in Ruby 1.8 and 1.9Louise Crow2013-07-30-1/+1
| |
* | Add a rake task to print a warning if the state of a submodule is not what ↵Louise Crow2013-07-30-0/+27
|/ | | | we expect it to be.
* Merge branch 'feature/localisation-fixes' into rails-3-developLouise Crow2013-07-29-7/+39
|\
| * Move some more config into AlaveteliLocalization so that it can be called ↵Louise Crow2013-07-24-0/+8
| | | | | | | | outside initialization e.g. in tests.
| * Clarify comment.Louise Crow2013-07-23-1/+1
| |
| * Patch Globalize to compensate for the way gettext_i18n_rails patches ↵Louise Crow2013-07-23-6/+17
| | | | | | | | 118n.locale in the handling of locales with underscores. Fixes #999.
| * Extract code for setting locales in FastGettext and I18nLouise Crow2013-07-18-0/+13
| |
* | Merge branch 'hotfix/0.12.0.1' into rails-3-developLouise Crow2013-07-29-0/+9
|\ \ | |/ |/| | | | | | | Conflicts: locale/he_IL/app.po locale/nb_NO/app.po
| * Backport https://github.com/mikel/mail/pull/405 to prevent stack overflow ↵0.12.0.1hotfix/0.12.0.1Louise Crow2013-07-26-0/+9
| | | | | | | | errors when parsing large mails with envelopes on memory limited systems.
* | Add test case and fix for unrecognized encoding in subject lineLouise Crow2013-06-25-0/+15
| |
* | Handle the case where an encoding is extracted that iconv doesn't handle.Louise Crow2013-06-25-1/+4
|/
* Merge branch 'hotfix/0.11.0.13' into rails-3-developLouise Crow2013-06-17-1/+1
|\ | | | | | | | | Conflicts: spec/mailers/outgoing_mailer_spec.rb
| * Fix a security vulnerability: eval used in quoting display name0.11.0.12Mark Longair2013-06-17-1/+1
| | | | | | | | | | | | | | | | | | This use of eval allows arbitrary remote code execution on parsing of a maliciously formed email. Two tests are updated to match the behaviour of the new code to return the display name - these introduce extra escaping, so should be innocous.
* | Add a rake task to re-extract any missing attachmentsMark Longair2013-06-12-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | You can see the number of emails that would be reparsed by doing: bundle exec rake temp:reextract_missing_attachments To actually reparse the incoming emails and rextract attachments for any that were missing, you would do: bundle exec rake temp:reextract_missing_attachments[commit] (In fact, the 'commit' can be any non-empty string.)
* | Merge branch 'hotfix/0.11.0.7' into rails-3-developLouise Crow2013-06-10-39/+69
|\| | | | | | | | | Conflicts: spec/models/info_request_spec.rb
| * Add extra debug linehotfix/0.11.0.7Louise Crow2013-06-10-0/+1
| |
| * Fix syntax errors, add some debug output.Louise Crow2013-06-10-8/+22
| |
| * Add a task for cleaning up user accounts that were created with a space in ↵Louise Crow2013-06-10-0/+65
| | | | | | | | the email address.
| * Remove old temp tasks.Louise Crow2013-06-10-50/+0
| |
* | Allow the donation url to be configured. Closes #909.Louise Crow2013-06-07-0/+1
| |