text-ui 0.2.3 → 0.2.4

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 +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d91e3529649ba6f00b7bb088f402babfc220c0689988513409f6f6c09d62f723
4
- data.tar.gz: 7064c994012ba786930f774d1b3fde673e07255222c1d77d7c75020e468081cd
3
+ metadata.gz: c93ee321c5505fc92c51f866aa5c31c799be70385e44a0c77c2762453aa43580
4
+ data.tar.gz: d07fe013128dc1896ce3ea3392d1672c5161b7cea9f5e52692e24918f91da779
5
5
  SHA512:
6
- metadata.gz: 5b897cf1fc75f04e76d536430549c87717cbc95d38e3a600df8c33f4ca1eb00f2b6a58ff80d04e2101be9dd6036ad78ce9011e9903e088665f713698c46cedb0
7
- data.tar.gz: fa3341f2470449d78251d5ec0807b57d6424e21ce8c4976c6d64a6e981b4d0a4c2b01ce20d846fd27da4423e209a2d231ed37cb268b91923a8e9e4a6c38302a5
6
+ metadata.gz: 442daa6554d8d4e3cb6097997d53f64b3e1134195f90786465f1849f9962df93304128f252f2cb7832fc49ecd615bed4bde7c0cd740be0a22f08ad415724652d
7
+ data.tar.gz: 18400f508ce127cee81a0504a521ed689e602b004d69886dab3c8a3bec0783b13186b960c44ef854f92318b296ed084adcf2118e9cd4eb94e9ba8ae243b99538
data/lib/tui/format.rb CHANGED
@@ -132,7 +132,7 @@ module Tui
132
132
  end
133
133
  end
134
134
  unless width.nil?
135
- collect! { |line| crop_line line, width }
135
+ collect! { |line| crop_line line, width, fill }
136
136
  end
137
137
  self
138
138
  end
@@ -140,7 +140,7 @@ module Tui
140
140
  private
141
141
 
142
142
  # Crop line to fit the width
143
- def crop_line line, width
143
+ def crop_line line, width, fill
144
144
  line_width = Tools.calc_width(line)
145
145
  if line_width > width
146
146
  cut_line = "#{line[...(width - 1)]}"
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.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Skorobogaty Dmitry