commander 4.3.4 → 4.3.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
  SHA1:
3
- metadata.gz: 72ee1a4d6498d366df2896b19afd77d57a2fe2e5
4
- data.tar.gz: 0c3c85152bcd33462c1f2e399c05badd4bb62b63
3
+ metadata.gz: f290e975ab9b9d9e3f5db7dd99f5b985984deb89
4
+ data.tar.gz: 7254bcee0a976447fcdd3370778096a205cc716c
5
5
  SHA512:
6
- metadata.gz: 4c3d14e701cfe6e057f0f002aad28ffbf1d1b91ad2fa4f7a320326e161c079d5001c670b938a55090fc76a510a94e1f48b1a7474e760588d5ed8fee5223a9a41
7
- data.tar.gz: 1ee04c92a9502fc7c0f970a52705746fc657fd9833b694b67246ce036356ac3cd9698a938b535c392c11e2939a5e177a3a99196b18d194ed6f0a0d715a599ee7
6
+ metadata.gz: bce21b7b6f39a65a0653821b9ea207665a2dc2e25a1e159b961a1bca4f0299540c4c0419d409f75bd35375bfe710f9bb388da640d8f0b6de87c0757170ca5e1c
7
+ data.tar.gz: 4972b7261a5b0ecacf41fac471cf20659d69990d2588966b540f8cd73b5c02cbd5bc5a45be93ff509c6cf0c1ff408f9caa855a25fa5b4cc6d0237887cb1cb10c
@@ -1,3 +1,7 @@
1
+ === 4.3.5 / 2015-08-09
2
+
3
+ * Fixed a bug with small terminal widths, changed minimum screen width for wrapping to 40 columns. (@toolmantim)
4
+
1
5
  === 4.3.4 / 2015-05-03
2
6
 
3
7
  * Fixed a regression with the compact help formatter.
@@ -1,8 +1,5 @@
1
1
  require 'commander'
2
2
 
3
- include Commander::UI
4
- include Commander::UI::AskForClass
5
- include Commander::Delegates
3
+ include Commander::Methods
6
4
 
7
- $terminal.wrap_at = HighLine::SystemExtensions.terminal_size.first - 5 rescue 80 if $stdin.tty?
8
5
  at_exit { run! }
@@ -4,6 +4,8 @@ module Commander
4
4
  include Commander::UI::AskForClass
5
5
  include Commander::Delegates
6
6
 
7
- $terminal.wrap_at = HighLine::SystemExtensions.terminal_size.first - 5 rescue 80 if $stdin.tty?
7
+ if $stdin.tty? && (cols = $terminal.output_cols) >= 40
8
+ $terminal.wrap_at = cols - 5
9
+ end
8
10
  end
9
11
  end
@@ -1,3 +1,3 @@
1
1
  module Commander
2
- VERSION = '4.3.4'
2
+ VERSION = '4.3.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commander
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.4
4
+ version: 4.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - TJ Holowaychuk
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-05-04 00:00:00.000000000 Z
12
+ date: 2015-08-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: highline
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  version: '0'
158
158
  requirements: []
159
159
  rubyforge_project:
160
- rubygems_version: 2.2.2
160
+ rubygems_version: 2.4.8
161
161
  signing_key:
162
162
  specification_version: 4
163
163
  summary: The complete solution for Ruby command-line executables