to_gravatar 1.0.1 → 1.0.2

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.
@@ -15,19 +15,17 @@ module ToGravatar
15
15
  self.gr_ssl = (options[:ssl] ||= false)
16
16
  end
17
17
  end
18
-
19
- module InstanceMethods
20
- def to_gravatar
21
- gr_id = Digest::MD5.hexdigest(self.read_attribute(self.gr_field).downcase)
22
- if self.gr_ssl == true
23
- gravatar_url= "https://secure.gravatar.com/avatar/#{gr_id}.png?s=#{self.gr_size}?r=#{self.gr_rating}"
24
- gravatar_url += "?d=#{self.gr_default}" if self.gr_default
25
- return gravatar_url
26
- else
27
- gravatar_url = "http://gravatar.com/avatar/#{gr_id}.png?s=#{self.gr_size}?r=#{self.gr_rating}"
28
- gravatar_url += "?d=#{self.gr_default}" if self.gr_default
29
- return gravatar_url
30
- end
18
+
19
+ def to_gravatar
20
+ gr_id = Digest::MD5.hexdigest(self.read_attribute(self.gr_field).downcase)
21
+ if self.gr_ssl == true
22
+ gravatar_url= "https://secure.gravatar.com/avatar/#{gr_id}.png?s=#{self.gr_size}?r=#{self.gr_rating}"
23
+ gravatar_url += "?d=#{self.gr_default}" if self.gr_default
24
+ return gravatar_url
25
+ else
26
+ gravatar_url = "http://gravatar.com/avatar/#{gr_id}.png?s=#{self.gr_size}?r=#{self.gr_rating}"
27
+ gravatar_url += "?d=#{self.gr_default}" if self.gr_default
28
+ return gravatar_url
31
29
  end
32
30
  end
33
31
  end
@@ -1,3 +1,3 @@
1
1
  module ToGravatar
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: to_gravatar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: