twine 0.10.0 → 0.10.1

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
  SHA1:
3
- metadata.gz: 16380246b6372f45f09c1b9080a1401a9e422696
4
- data.tar.gz: f756135db29d5bb33f32ca402ff267f351bd5042
3
+ metadata.gz: 6dcdb67ead79faa41f6f4849e7ae0e187ea98b92
4
+ data.tar.gz: 11ca78a313a5d092dc107b2100abb95f3ac4cc5b
5
5
  SHA512:
6
- metadata.gz: affb9e7964adb4c5800a7952879c4a99b7c1d2d3b1b5d2785c875d14e390b4f64c9751e056bc71d2c7ddb95d53735fb5359d9e7a16a62737fed3e64dee09e038
7
- data.tar.gz: 818a9c8d2d6b26991d5a8360d7415c5c417d5d19b9bceffcba5f1d165781aedd0483d9a44ba6fd7bd5660f969e6a1b5c015ad76db750ba791d8576b45fbd89f3
6
+ metadata.gz: 0e097325df41ef943e72ecc58e663c5b7261a46103fd7d27f4e187c1f2c1bbdd03e49fb11dd6d2b5534c3bfde939cf28f4725a458c444b935ba519f0aecf219c
7
+ data.tar.gz: 71d7c5d2e9c61b7038f69d9780f0f1137314a44be5849152fd39baddfa0312799cc6a887ce13f9b66ba13dca470d398b4c3b6311be80e78ce5c527826583cd3f
@@ -306,8 +306,13 @@ module Twine
306
306
  end
307
307
  end
308
308
 
309
+ if IO.console
310
+ console_width = IO.console.winsize[1]
311
+ else
312
+ console_width = 100
313
+ end
309
314
  summary_width += 7 # account for description padding
310
- max_description_width = IO.console.winsize[1] - summary_width
315
+ max_description_width = console_width - summary_width
311
316
  merged_lines.map! do |line|
312
317
  if line[0] == ' '
313
318
  line = word_wrap(line.strip, max_description_width - 2)
@@ -1,3 +1,3 @@
1
1
  module Twine
2
- VERSION = '0.10.0'
2
+ VERSION = '0.10.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Celis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-17 00:00:00.000000000 Z
11
+ date: 2017-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip