avataree 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -28,10 +28,23 @@ for fetching gravatar image
28
28
 
29
29
  @gravatar(email)@
30
30
 
31
+ here are options and there possible values:
32
+
33
+ | *Options* | *What value do they take* |
34
+ | :extension | extension of image to be fetched(default => jpg) |
35
+ | :secure | boolean to/not to use https scheme (default => false) |
36
+ | :s or :size | size of image (e.g 100x100) (default => 80x80) |
37
+ | :d or :default | default image to be used(e.g. 404, mm, identicon ..) |
38
+ | :f or :forcedefault | takes 'y' or 'n' as argument. always force to load default image |
39
+ | :r or :rating | image rating (e.g. g, pg, r, x) |
40
+
31
41
  for fetching gravatar profile
32
42
 
33
43
  @gravatar_profile(email)@
34
44
 
45
+ | *Options* | *What value do they take* |
46
+ | :secure | boolean to/not to use https scheme (default => false) |
47
+
35
48
  h2. Credits
36
49
 
37
50
  Credit for this gem goes to Gravatar team for making such a awesome application.
@@ -27,11 +27,10 @@ module Avataree
27
27
 
28
28
  include Helper
29
29
 
30
- #image path for gravatar if not defined?
31
- # IMAGES_PATH = "http://www.gravatar.com/avatar/" unless const_defined?("IMAGES_PATH")
32
-
33
30
  #this method returns resulted path to be requested to gravatar. takes all argument as a hash
34
31
  #options:
32
+ #<tt>extension</tt> takes image type(e.g. jpg, png ...) :default => jpg
33
+ #<tt>secure</tt> takes boolean values to use https or not :default => false
35
34
  #<tt>s</tt> or <tt>size</tt> takes size in px (upto 512 px) :default => 80px x 80px
36
35
  #<tt>d</tt> or <tt>default</tt> takes default image. Also takes a url other options are:
37
36
  # 404: do not load any image if none is associated with the email hash, instead return an HTTP 404 (File Not Found) response
@@ -28,9 +28,8 @@ module Avataree
28
28
 
29
29
  module ProfileServices
30
30
 
31
- #image path for gravatar if not defined?
32
- # PROFILE_PATH = "http://www.gravatar.com/" unless const_defined?("PROFILE_PATH")
33
-
31
+ #options:
32
+ # <tt>secure</tt> takes boolean values to use https or not :default => false
34
33
  # this method returns hash full of information provided by Gravatar.
35
34
  # This hash may contain
36
35
  # Email address marked up with class=email (only available via JS/client-side parsing due to spam-protection measures)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avataree
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 1
10
- version: 0.6.1
9
+ - 2
10
+ version: 0.6.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bagwan Pankaj (a.k.a modulo9)
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-16 00:00:00 +05:30
18
+ date: 2011-01-18 00:00:00 +05:30
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency