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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rb-gravatar.rb +6 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30f2d29385a6a31d0201c5dfc8d85cf11ff555b1
4
- data.tar.gz: 5df574546c7fbcb1de066f8e6603fd54b2750bd5
3
+ metadata.gz: 902b9f89d2da8145c452e9354151d8048852e6d2
4
+ data.tar.gz: 34db2a11aad5d934ddc75163468fc709958067ce
5
5
  SHA512:
6
- metadata.gz: 00bcd20e14453c33de388ce3b1774be6e1f901cceb271155a70907a265ea284744dacd1b09cebdf75b3c0ec797820d2eb962dfed220c39ebb980f71cf5aed42e
7
- data.tar.gz: 621518390532b89000310c7da02c1a25fef0015cf6ac46565689d6c3e9717014e37daeeb640718b3eaaa14d095f0e22eb0ad44877493748444e0d4dfaaf13ff9
6
+ metadata.gz: 190a5a3f5cc7ae8f07891023dd5d7d5d0e13bb108a5fc24428a3f1d09b2503f1c6a6b94c24ac20126b5862bfe6b68b83a3e864cc02305828cc51acfd36e0e8c1
7
+ data.tar.gz: 03d349f68973a048cff082fe79b02f9893a2afde2eddf6b8102823635d18570028c3e34dbec4d4acbfb09a76a6d414c9b24994a86aa19d174ced8d0628d3eee4
@@ -9,7 +9,7 @@ class Gravatar
9
9
  end
10
10
 
11
11
  parts = []
12
- parts << "http://www.gravatar.com/avatar/"
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rb-gravatar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Nieuwoudt