commander 4.3.5 → 4.3.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f290e975ab9b9d9e3f5db7dd99f5b985984deb89
4
- data.tar.gz: 7254bcee0a976447fcdd3370778096a205cc716c
3
+ metadata.gz: ba1823d2bcff49f4c59b140925c2773f17f3579f
4
+ data.tar.gz: 4f909e1d446cba6c1eb61fe1b92077d4378bffb8
5
5
  SHA512:
6
- metadata.gz: bce21b7b6f39a65a0653821b9ea207665a2dc2e25a1e159b961a1bca4f0299540c4c0419d409f75bd35375bfe710f9bb388da640d8f0b6de87c0757170ca5e1c
7
- data.tar.gz: 4972b7261a5b0ecacf41fac471cf20659d69990d2588966b540f8cd73b5c02cbd5bc5a45be93ff509c6cf0c1ff408f9caa855a25fa5b4cc6d0237887cb1cb10c
6
+ metadata.gz: 6cd8a8409c9f0201a2a9e94b9d9f1aa6e15de1512f83af9acba6f26b420b3c12f898fb47b08d83b9756f3e791b9278a755f6ee0c337603a3a4f45ba7c719505b
7
+ data.tar.gz: 27f9dcd16f94f57b40ad39bd93d02b0f673202b5f95d8f813aebe3b0d406f0dfb5c3f5d0619cd8c3147a43cd795f20c50c1054a0ec0a9716b05eadb26e230aea
@@ -1,8 +1,10 @@
1
1
  language: ruby
2
- before_install: gem update --system
2
+ before_install:
3
+ - gem update --system
4
+ - gem update bundler
3
5
  rvm:
4
6
  - 1.9.3
5
7
  - 2.0.0
6
8
  - 2.1.0
9
+ - 2.2.0
7
10
  - jruby-19mode
8
- - rbx-2
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source 'http://rubygems.org'
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
@@ -1,3 +1,12 @@
1
+ === 4.3.7 / 2016-01-26
2
+
3
+ * Fix regression in help formatter introduced in 4.3.6.
4
+
5
+ === 4.3.6 / 2016-01-26 [YANKED]
6
+
7
+ * Fix deprecation warnings on Ruby 2.3.0.
8
+ * Indent option descriptions the same way as program and command descriptions. (@badeball)
9
+
1
10
  === 4.3.5 / 2015-08-09
2
11
 
3
12
  * Fixed a bug with small terminal widths, changed minimum screen width for wrapping to 40 columns. (@toolmantim)
@@ -43,7 +43,7 @@ module Commander
43
43
  module_function
44
44
 
45
45
  def indent(amount, text)
46
- text.gsub("\n", "\n" + (' ' * amount))
46
+ text.to_s.gsub("\n", "\n" + (' ' * amount))
47
47
  end
48
48
  end
49
49
  end
@@ -29,7 +29,7 @@
29
29
  <% for option in @options -%>
30
30
 
31
31
  <%= option[:switches].join ', ' %>
32
- <%= option[:description] %>
32
+ <%= Commander::HelpFormatter.indent 8, option[:description] %>
33
33
  <% end -%>
34
34
  <% end -%>
35
35
 
@@ -329,9 +329,8 @@ module Commander
329
329
  [Float, Integer, String, Symbol, Regexp, Array, File, Pathname] +
330
330
  # All Classes that respond to #parse
331
331
  Object.constants.map do |const|
332
- # const_get(:Config) issues a deprecation warning on ruby 1.8.7
333
- # TODO: clean up now that we're not supporting Ruby 1.8
334
- Object.const_get(const) unless const == :Config
332
+ # const_get(:TimeoutError) issues a deprecation warning on ruby 2.3.0
333
+ Object.const_get(const) unless const == :TimeoutError
335
334
  end.select do |const|
336
335
  const.class == Class && const.respond_to?(:parse)
337
336
  end
@@ -1,3 +1,3 @@
1
1
  module Commander
2
- VERSION = '4.3.5'
2
+ VERSION = '4.3.7'
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.5
4
+ version: 4.3.7
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-08-09 00:00:00.000000000 Z
12
+ date: 2016-01-27 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.4.8
160
+ rubygems_version: 2.4.6
161
161
  signing_key:
162
162
  specification_version: 4
163
163
  summary: The complete solution for Ruby command-line executables