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.
- checksums.yaml +4 -4
- data/lib/rb-gravatar.rb +1 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d771d980e83228dc6dcde938624cb4582cc4698
|
4
|
+
data.tar.gz: 29f2858a6553c3a019d14f4784333c4104ff16dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eab5c7ec50f2493e79644381ee3efa726cf2a38fb16c36912c981e7d19391a6123a5f52604e26dff620ed73aec455c49c434685b9d44abb95b7fb6174cc75de5
|
7
|
+
data.tar.gz: b91d83ed6d753da425cd0ebcec39b4d97bbf952092cd4d196c923974c5bf98aa26f4df23a9f9483c7f9e4e8402af934cc985f289b46aa105f379ca9703ace307
|
data/lib/rb-gravatar.rb
CHANGED
@@ -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' />"
|
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
|
+
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:
|
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.
|
40
|
+
rubygems_version: 2.2.0
|
41
41
|
signing_key:
|
42
42
|
specification_version: 4
|
43
43
|
summary: rb-gravatar
|