textbringer-presentation 4 → 5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ebd0aea8f6c194787d2c18b1259b797632bdc4107be882047ceff4008297c7d3
4
- data.tar.gz: 14b4c4f2fc7a97b4fcda575f6160763447184f4b35964d75abb3586a337fe863
3
+ metadata.gz: 1ad965d76d36235c90442f02f1fd52c9baed9c0d980517861da32ef15ffaf4ab
4
+ data.tar.gz: b9ecd5ba52f95f1008a92062818baa4051b2326fdbbaae63099960a992abe5f0
5
5
  SHA512:
6
- metadata.gz: 84da4841008a52448cd2f7311c44f84cfd9d127901ff89fdf82c62a11d3440a9c72b914adcda6d42d33b4285122d1f6b97d97e695174571e172804983a7f06fd
7
- data.tar.gz: e50fb46d7227f35881e14d22a873dfddff5d6f692bc3325a9f1424c031a53302d4780b8f0a69c0184112007ea5ba63f6667110616b17020e398c4efd980ae07a
6
+ metadata.gz: f4e394809be86a207a288a0e00b481284fe77e9058f98570d45a0782d3167202bf170bb0e71d0e2c130c3b3c6405945215a8d9e1003d9254642106de5c9bad9e
7
+ data.tar.gz: abde9e68957ab7ae88e3ea4fa8af2e1e2d991f7dcbdf2abc756e85f82b93ea2de0ff328cba235acb6e85126389e0547dd83c2302a83231cce01fcd0bfd389ac5
@@ -110,7 +110,7 @@ module Textbringer
110
110
  y = @buffer[:presentation_top_margin] +
111
111
  (/\A\s*\z/.match(body) ? 3 : body.count("\n") + 5)
112
112
  left_margin = @buffer[:presentation_image_left_margin]
113
- if width > 0 && height > 0
113
+ if width && height
114
114
  img_width = width * (columns - left_margin * 2) / columns
115
115
  img_height = height * (lines - y - 2) / lines
116
116
  STDOUT.printf("\e[%d;%dH", y, left_margin + 1)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Textbringer
4
4
  module Presentation
5
- VERSION = "4"
5
+ VERSION = "5"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: textbringer-presentation
3
3
  version: !ruby/object:Gem::Version
4
- version: '4'
4
+ version: '5'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shugo Maeda