annotate .svn/pristine/2d/2d28f189b2d97988268fc59540fff3ecfe6121d1.svn-base @ 1519:afce8026aaeb redmine-2.4-integration

Merge from branch "live"
author Chris Cannam
date Tue, 09 Sep 2014 09:34:53 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 == Gravatar Plugin
Chris@909 2
Chris@909 3 This plugin provides a handful of view helpers for displaying gravatars
Chris@909 4 (globally-recognized avatars).
Chris@909 5
Chris@909 6 Gravatars allow users to configure an avatar to go with their email address at
Chris@909 7 a central location: http://gravatar.com. Gravatar-aware websites (such
Chris@909 8 as yours) can then look up and display each user's preferred avatar, without
Chris@909 9 having to handle avatar management. The user gets the benefit of not having to
Chris@909 10 set up an avatar for each site that they post on.
Chris@909 11
Chris@909 12 == Installation
Chris@909 13
Chris@909 14 cd ~/myapp
Chris@909 15 ruby script/plugin install git://github.com/woods/gravatar-plugin.git
Chris@909 16
Chris@909 17 or, if you're using piston[http://piston.rubyforge.org] (worth it!):
Chris@909 18
Chris@909 19 cd ~/myapp/vendor/plugins
Chris@909 20 piston import git://github.com/woods/gravatar-plugin.git
Chris@909 21
Chris@909 22 == Example
Chris@909 23
Chris@909 24 If you represent your users with a model that has an +email+ method (typical
Chris@909 25 for most rails authentication setups), then you can simply use this method
Chris@909 26 in your views:
Chris@909 27
Chris@909 28 <%= gravatar_for @user %>
Chris@909 29
Chris@909 30 This will be replaced with the full HTML +img+ tag necessary for displaying
Chris@909 31 that user's gravatar.
Chris@909 32
Chris@909 33 Other helpers are documented under GravatarHelper::PublicMethods.
Chris@909 34
Chris@909 35 == Acknowledgments
Chris@909 36
Chris@909 37 Thanks to Magnus Bergmark (http://github.com/Mange), who contributed the SSL
Chris@909 38 support in this plugin, as well as a few minor fixes.
Chris@909 39
Chris@909 40 The following people have also written gravatar-related Ruby libraries:
Chris@909 41 * Seth Rasmussen created the gravatar gem[http://gravatar.rubyforge.org]
Chris@909 42 * Matt McCray has also created a gravatar
Chris@909 43 plugin[http://mattmccray.com/svn/rails/plugins/gravatar_helper]
Chris@909 44
Chris@909 45 == Author
Chris@909 46
Chris@909 47 Scott A. Woods
Chris@909 48 West Arete Computing, Inc.
Chris@909 49 http://westarete.com
Chris@909 50 scott at westarete dot com
Chris@909 51
Chris@909 52 == TODO
Chris@909 53
Chris@909 54 * Add specs for ssl support
Chris@909 55 * Finish rdoc documentation