rb-gravatar 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rb-gravatar.rb +6 -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: 902b9f89d2da8145c452e9354151d8048852e6d2
|
4
|
+
data.tar.gz: 34db2a11aad5d934ddc75163468fc709958067ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 190a5a3f5cc7ae8f07891023dd5d7d5d0e13bb108a5fc24428a3f1d09b2503f1c6a6b94c24ac20126b5862bfe6b68b83a3e864cc02305828cc51acfd36e0e8c1
|
7
|
+
data.tar.gz: 03d349f68973a048cff082fe79b02f9893a2afde2eddf6b8102823635d18570028c3e34dbec4d4acbfb09a76a6d414c9b24994a86aa19d174ced8d0628d3eee4
|
data/lib/rb-gravatar.rb
CHANGED
@@ -9,7 +9,7 @@ class Gravatar
|
|
9
9
|
end
|
10
10
|
|
11
11
|
parts = []
|
12
|
-
parts << "
|
12
|
+
parts << "//www.gravatar.com/avatar/"
|
13
13
|
parts << "#{Digest::MD5.hexdigest(email_address.downcase.strip)}"
|
14
14
|
parts << "?s=#{size}"
|
15
15
|
|
@@ -38,4 +38,9 @@ class Gravatar
|
|
38
38
|
nil
|
39
39
|
end
|
40
40
|
end
|
41
|
+
|
42
|
+
# Output the DNS preload tags
|
43
|
+
def self.prefetch_dns()
|
44
|
+
'<link rel="dns-prefetch" href="//gravatar.com">'
|
45
|
+
end
|
41
46
|
end
|