gravy 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/README.md +15 -3
  2. data/lib/gravy.rb +1 -0
  3. data/lib/gravy/version.rb +1 -1
  4. metadata +3 -3
data/README.md CHANGED
@@ -4,15 +4,27 @@ Gravy is a very simple rails engine that makes the already easy usage of gravata
4
4
 
5
5
  ## Usage
6
6
 
7
- In your Gemfile:
7
+ ### General usage
8
+
9
+ require "gravy"
10
+ Gravy::Avatar("foo@bar.com")
11
+
12
+ This will return the image url for the gravatar associated with that email address.
13
+
14
+ ### Use in your Rails app:
15
+
16
+ Gemfile:
8
17
 
9
18
  `gem "gravy"`
10
19
 
11
- In your Rails app:
20
+ Then:
12
21
 
13
22
  `Gravy::Avatar("foo@bar.com")`
14
23
 
15
- This will return the image url for the gravatar associated with that email address.
24
+
25
+ _Or_ you can use a convenient helper:
26
+
27
+ `<%= avatar_image "foo@bar.com", :size => 48 %>`
16
28
 
17
29
  ## Options
18
30
 
@@ -1,4 +1,5 @@
1
1
  module Gravy
2
2
  require "gravy/engine" if defined?(Rails)
3
3
  require "gravy/avatar"
4
+ require "digest" unless defined?(Digest)
4
5
  end
@@ -1,3 +1,3 @@
1
1
  module Gravy
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 3
9
- version: 0.0.3
8
+ - 4
9
+ version: 0.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Oemuer Oezkir
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-03-04 00:00:00 +01:00
17
+ date: 2011-03-05 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies: []
20
20