avatarly 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/avatarly.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0081142c330446d431cfbdec11ce81263a2fb0c
|
4
|
+
data.tar.gz: ec658cc5995209171711dfedb97917efc07a2701
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2983b2c752403541f9091819de7cda4133d9aad53720a911f1ea3abd68bbea670de71b16e739b11ef4cc8ea7cb05ece3ca4d0b1bfd249214128ec5d037362cb7
|
7
|
+
data.tar.gz: 6f1a26653ea8d2ee3a3c878a894e20411dd87b4fc16c28de967a778f0092fac5864d2442a41d15e6f3d56087c5c29b2f593a75cd1f1fb86dea432237043e75d0
|
data/lib/avatarly.rb
CHANGED
@@ -43,7 +43,7 @@ class Avatarly
|
|
43
43
|
canvas.background_fill = opts[:background_color]
|
44
44
|
end.draw
|
45
45
|
image.format = opts[:format]
|
46
|
-
draw_text(image, text, opts)
|
46
|
+
draw_text(image, text, opts) if text.length > 0
|
47
47
|
image
|
48
48
|
end
|
49
49
|
|
@@ -71,7 +71,7 @@ class Avatarly
|
|
71
71
|
text = text.split(separator)
|
72
72
|
text[0][0] + text[1][0]
|
73
73
|
else
|
74
|
-
text[0]
|
74
|
+
text[0] || ''
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avatarly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lukasz Odziewa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rmagick
|