avatarly 1.6.0 → 1.6.1

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/avatarly.rb +5 -5
  3. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3666c36f32ade5c2a49d8609df6d7d529a6c5656d1abb2b5c62fd9a714db9f89
4
- data.tar.gz: 490763ff605a4afaa7ca15593ab2e1586d31db867fe33fc8412c61293687823c
3
+ metadata.gz: 0e04398f6f8f9c7313396db8eb31fbdc9c29370d09e9a6ecc4ec72fdc1abcb47
4
+ data.tar.gz: 3333588aafd7b47928a02bfea20a5267545ea61448d4297ebb5911ef7a82acb4
5
5
  SHA512:
6
- metadata.gz: ce7015d45196252e381e5421a2188d1897a80f279575333d1931864a8aa7e707dd46bc7d8ce3907230753b089ee5aacd754f37978563bf93a7a401264e9b942f
7
- data.tar.gz: 6d998d24528ee1872056631cd2d985aea4aaf6e361aed2c1844f597b645f04cff9ef38bd91f8347a891700b9ac037a5f10abc6c70f416a213e4eab5a4cb4cd69
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
- self.pointsize = opts[:font_size]
53
- self.font = opts[:font]
54
- self.fill = opts[:font_color]
55
- self.gravity = Magick::CenterGravity
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.0
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: 2019-11-24 00:00:00.000000000 Z
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.0.6
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: []