helper_methods 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/helper_methods/version.rb +1 -1
- data/lib/helper_methods.rb +7 -3
- metadata +2 -2
data/lib/helper_methods.rb
CHANGED
@@ -146,9 +146,13 @@ module HelperMethods
|
|
146
146
|
end
|
147
147
|
|
148
148
|
def gravatar(email, html_options = {})
|
149
|
-
|
150
|
-
|
151
|
-
|
149
|
+
email = Digest::MD5.hexdigest(email)
|
150
|
+
image_tag "http://www.gravatar.com/avatar/#{email}?size=48", html_options
|
151
|
+
end
|
152
|
+
|
153
|
+
def attachment_url(file, style = :original)
|
154
|
+
"#{request.protocol}#{request.host_with_port}#{file.url(style)}"
|
155
|
+
end
|
152
156
|
|
153
157
|
end
|
154
158
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: helper_methods
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-11-22 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: There are a small collection of simple methods
|
15
15
|
email:
|