corn_starch 1.1.33 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/corn_starch/corn_starch_helper.rb +11 -0
- data/lib/corn_starch/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77b0aeaf14f8983dc7649222ef445fb8e2980011
|
4
|
+
data.tar.gz: 81b0df91816c77176503800b0787624afc5faa15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72d8dad648fb24cbb8a9727feae71499e6e1511e144e8bcc946c127d1d59fd3c39b78995cc173187f4210afb8e3bda685b694c0f2ba6dfc1c01e807196433311
|
7
|
+
data.tar.gz: 99961224fc0d1d79a23372e70a76f74b757770494a266cd1fc63e5196b0f50c7ad90e037875db2dd98b8caf52b81095ada9350311c5a9178ee134da28f1ae2e5
|
@@ -11,6 +11,17 @@ module CornStarch
|
|
11
11
|
extend ActionView::Helpers
|
12
12
|
extend ActionView::Context
|
13
13
|
|
14
|
+
# Gravatar Image
|
15
|
+
def gravatar_img email, size = 64, options = {}
|
16
|
+
image_tag gravatar_url(email, size), options
|
17
|
+
end
|
18
|
+
|
19
|
+
# Gravatar URL
|
20
|
+
def gravatar_url email, size = 64
|
21
|
+
gravatar_id = Digest::MD5.hexdigest(email.downcase)
|
22
|
+
"http://gravatar.com/avatar/#{gravatar_id}.png?s=#{size}"
|
23
|
+
end
|
24
|
+
|
14
25
|
# Icon Link
|
15
26
|
def icon_link_to target, icon
|
16
27
|
link_to target do
|
data/lib/corn_starch/version.rb
CHANGED