rb-gravatar 1.0.4 → 1.0.5

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 +1 -2
  3. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 902b9f89d2da8145c452e9354151d8048852e6d2
4
- data.tar.gz: 34db2a11aad5d934ddc75163468fc709958067ce
3
+ metadata.gz: 3d771d980e83228dc6dcde938624cb4582cc4698
4
+ data.tar.gz: 29f2858a6553c3a019d14f4784333c4104ff16dd
5
5
  SHA512:
6
- metadata.gz: 190a5a3f5cc7ae8f07891023dd5d7d5d0e13bb108a5fc24428a3f1d09b2503f1c6a6b94c24ac20126b5862bfe6b68b83a3e864cc02305828cc51acfd36e0e8c1
7
- data.tar.gz: 03d349f68973a048cff082fe79b02f9893a2afde2eddf6b8102823635d18570028c3e34dbec4d4acbfb09a76a6d414c9b24994a86aa19d174ced8d0628d3eee4
6
+ metadata.gz: eab5c7ec50f2493e79644381ee3efa726cf2a38fb16c36912c981e7d19391a6123a5f52604e26dff620ed73aec455c49c434685b9d44abb95b7fb6174cc75de5
7
+ data.tar.gz: b91d83ed6d753da425cd0ebcec39b4d97bbf952092cd4d196c923974c5bf98aa26f4df23a9f9483c7f9e4e8402af934cc985f289b46aa105f379ca9703ace307
@@ -32,8 +32,7 @@ class Gravatar
32
32
  # Generate and return the full img tag for the Gravatar URI
33
33
  def self.tag(email_address, size = 64, default = nil, alt_text = nil)
34
34
  begin
35
- return "<img src='#{Gravatar.construct_resource(email_address, size, default)}' class='gravatar' />" if alt_text.nil?
36
- return "<img src='#{Gravatar.construct_resource(email_address, size, default)}' class='gravatar' alt='#{alt_text}' />" if !alt_text.nil?
35
+ return "<img src='#{Gravatar.construct_resource(email_address, size, default)}' class='gravatar' alt='#{alt_text}' />"
37
36
  rescue Exception => e
38
37
  nil
39
38
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rb-gravatar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Nieuwoudt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-14 00:00:00.000000000 Z
11
+ date: 2014-02-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple up to date gem for creating Gravatar image URL's and tags
14
14
  email: sean@wixelhq.com
@@ -27,17 +27,17 @@ require_paths:
27
27
  - lib
28
28
  required_ruby_version: !ruby/object:Gem::Requirement
29
29
  requirements:
30
- - - '>='
30
+ - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: '0'
33
33
  required_rubygems_version: !ruby/object:Gem::Requirement
34
34
  requirements:
35
- - - '>='
35
+ - - ">="
36
36
  - !ruby/object:Gem::Version
37
37
  version: '0'
38
38
  requirements: []
39
39
  rubyforge_project:
40
- rubygems_version: 2.1.9
40
+ rubygems_version: 2.2.0
41
41
  signing_key:
42
42
  specification_version: 4
43
43
  summary: rb-gravatar