avatarly 1.6.0 → 1.6.1
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 +5 -5
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e04398f6f8f9c7313396db8eb31fbdc9c29370d09e9a6ecc4ec72fdc1abcb47
|
4
|
+
data.tar.gz: 3333588aafd7b47928a02bfea20a5267545ea61448d4297ebb5911ef7a82acb4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9823d7ff979e7094a218d2556f996d716f22db76846885b8931c52f99eb1e33e54f26db31feb5e3954f39b12f1806205b96c2dab32daad80bd1a74aea5bafc24
|
7
|
+
data.tar.gz: 12c01d3bc079ade9ffc9fe56ad5bb047e440502201db62e6af09593ad84061608af44a58b40967636674c39dd265983874a605bfb3c21602cb93421bd839d28a
|
data/lib/avatarly.rb
CHANGED
@@ -48,11 +48,11 @@ class Avatarly
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def draw_text(canvas, text, opts)
|
51
|
-
Magick::Draw.new do
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
51
|
+
Magick::Draw.new do |md|
|
52
|
+
md.pointsize = opts[:font_size]
|
53
|
+
md.font = opts[:font]
|
54
|
+
md.fill = opts[:font_color]
|
55
|
+
md.gravity = Magick::CenterGravity
|
56
56
|
end.annotate(canvas, 0, 0, 0, opts[:vertical_offset], text)
|
57
57
|
end
|
58
58
|
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: avatarly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lukasz Odziewa
|
8
8
|
- Artur Trzop
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-10-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rmagick
|
@@ -69,7 +69,7 @@ homepage: https://github.com/lucek/avatarly
|
|
69
69
|
licenses:
|
70
70
|
- MIT
|
71
71
|
metadata: {}
|
72
|
-
post_install_message:
|
72
|
+
post_install_message:
|
73
73
|
rdoc_options: []
|
74
74
|
require_paths:
|
75
75
|
- lib
|
@@ -84,8 +84,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
- !ruby/object:Gem::Version
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
|
-
rubygems_version: 3.
|
88
|
-
signing_key:
|
87
|
+
rubygems_version: 3.2.22
|
88
|
+
signing_key:
|
89
89
|
specification_version: 4
|
90
90
|
summary: Simple gem for creating gmail-like user avatars with initials.
|
91
91
|
test_files: []
|