nifty-utils 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Nifty
2
2
  module Utils
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.2'
4
4
  end
5
5
  end
@@ -31,7 +31,7 @@ module Nifty
31
31
  options[:class] ||= 'gravatar'
32
32
  options[:secure] ||= request.ssl?
33
33
  host = (options[:secure] ? 'https://secure.gravatar.com' : 'http://gravatar.com')
34
- path = "/avatar.php?gravatar_id=#{Digest::MD5.hexdigest(email)}&rating=#{options[:rating]}&size=#{options[:size] * 2}&d=#{options[:default]}"
34
+ path = "/avatar.php?gravatar_id=#{Digest::MD5.hexdigest(email.to_s.downcase)}&rating=#{options[:rating]}&size=#{options[:size] * 2}&d=#{options[:default]}"
35
35
  image_tag([host,path].join, :class => options[:class], :width => options[:size], :height => options[:size])
36
36
  end
37
37
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nifty-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
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: 2013-09-26 00:00:00.000000000 Z
12
+ date: 2014-03-24 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A set of useful utilties for Rails applications
15
15
  email:
@@ -48,3 +48,4 @@ signing_key:
48
48
  specification_version: 3
49
49
  summary: A set of useful utilties for Rails applications
50
50
  test_files: []
51
+ has_rdoc: