text-ui 0.2.1 → 0.2.2

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tui/format.rb +4 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a62ea868dbf5ef06916ce3c183fe44025f57b95a13153a7d4c775de44d04dc6
4
- data.tar.gz: 8728f0a571a4040715ae3d85d668a361b4aed83ad4b71d3b1461445dc129a156
3
+ metadata.gz: e9aa7470ce1e80b3fa0c6d0de7c3c5dacd67d51e8a75b9d1609a83f63012cd09
4
+ data.tar.gz: 873b51cbc60dfdb196d50a88c6e6e457a2bd6e3f4c9b8d25e0a5db1cd1ddc57d
5
5
  SHA512:
6
- metadata.gz: 3c92a845ae18264cdeb4d9eb803e5c9325ebbce9547f3e8e035e4631fe8a9379208e677e3a22795df8ffcce5202fc675040edf49ce21db87b4db2f609e28901e
7
- data.tar.gz: f645c58e9c4cfecf76aa45652f1c7f2198b1413dea7b34560f68e014e854182d9b96f071fa2fbc42247f1f23665a9eb1da9a6880b408cdfec1fa59b665a7a0dc
6
+ metadata.gz: 84b46fe510be54628e3b8fa1ab307b7d7768c52e7fb12ddfd9491fea60a45cb5d61dcf0f8bd62a0b65d90b7a5f14e7656146735a7241a1040e27b07ba839f000
7
+ data.tar.gz: 40930a3359b7583e6dfd49776866a3c87cf80f6230c0ccdb13745fbc7e63fe1a4bb8ac300ea4129cf32439799784459f1f9f3ddf72a22f1a1e6b7f76a0dcd82a
data/lib/tui/format.rb CHANGED
@@ -74,12 +74,12 @@ module Tui
74
74
  extra_lines_count = height - @array.size
75
75
  case type
76
76
  when :center
77
- (extra_lines_count/2).times { @array.prepend ' ' * @width }
78
- (extra_lines_count/2 + (extra_lines_count.odd? ? 1 : 0)).times { @array.append ' ' * @width }
77
+ (extra_lines_count/2).times { @array.prepend ' ' }
78
+ (extra_lines_count/2 + (extra_lines_count.odd? ? 1 : 0)).times { @array.append ' ' }
79
79
  when :top
80
- (extra_lines_count).times { @array.append ' ' * @width }
80
+ (extra_lines_count).times { @array.append ' ' }
81
81
  else # :bottom
82
- (extra_lines_count).times { @array.prepend ' ' * @width }
82
+ (extra_lines_count).times { @array.prepend ' ' }
83
83
  end
84
84
 
85
85
  self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: text-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Skorobogaty Dmitry