commander 4.4.2 → 4.4.3

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: ea8a3adb031f870cf34d2f8bc700fe79fdaa8dc1
4
- data.tar.gz: 185b443d300a91265e8c5ccede6af243acb0001d
3
+ metadata.gz: 1fab0ac21561072424d7bf0d3e3ae8c07f00c721
4
+ data.tar.gz: a5e55123decc318877105e073ad5519a1d7e08c5
5
5
  SHA512:
6
- metadata.gz: 7591ef4b0a0f8b3843576a9c34a5d53dc0d10031fb8d22e95180c655b4d90ee05998c959f771f5334550c8781368201a6c89d5a81165ae15cca77d0226f9ff0f
7
- data.tar.gz: 5ab3f6ec15fe1d6febfbc02395fe6b2f9985b273f30e699fa7b56fd2fa218c853855f054e92ed81db747e61e0ce15a7841cf14922c7ed6f39d8997e5b69ff6c8
6
+ metadata.gz: 0b99a7f4c91b1fb9deee588616aadcd56dee44db34d6d99b8efd6efcc199097f94df8fec3947eeb48270da6b18df176be252fd2e9025b58a2c11df6d687bce55
7
+ data.tar.gz: cdd0930f1ce730579c1f1572643ea6632683262df7bf5438b107994a7523fe0a7d71505e77304eda1e6f442ad8a9b98d710e7043cb761237bb024f8d503001d5
@@ -5,6 +5,8 @@ before_install:
5
5
  rvm:
6
6
  - 1.9.3
7
7
  - 2.0.0
8
- - 2.1.0
9
- - 2.2.0
8
+ - 2.1.10
9
+ - 2.2.6
10
+ - 2.3.3
11
+ - 2.4.0
10
12
  - jruby-19mode
@@ -1,3 +1,7 @@
1
+ === 4.4.3 / 2016-12-28
2
+
3
+ * Fix deprecated constant warnings on Ruby 2.4.
4
+
1
5
  === 4.4.2 / 2016-12-20
2
6
 
3
7
  * Add `help_paging` program flag so that help paging may be disabled. (@gogiel)
@@ -324,13 +324,14 @@ module Commander
324
324
  # Implements ask_for_CLASS methods.
325
325
 
326
326
  module AskForClass
327
+ DEPRECATED_CONSTANTS = [:Config, :TimeoutError, :MissingSourceFile, :NIL, :TRUE, :FALSE, :Fixnum, :Bignum].freeze
327
328
  # All special cases in HighLine::Question#convert, except those that implement #parse
328
329
  (
329
330
  [Float, Integer, String, Symbol, Regexp, Array, File, Pathname] +
330
331
  # All Classes that respond to #parse
331
- Object.constants.map do |const|
332
- # Ignore constants that trigger deprecation warnings
333
- Object.const_get(const) unless [:Config, :TimeoutError, :MissingSourceFile].include?(const)
332
+ # Ignore constants that trigger deprecation warnings
333
+ (Object.constants - DEPRECATED_CONSTANTS).map do |const|
334
+ Object.const_get(const)
334
335
  end.select do |const|
335
336
  const.class == Class && const.respond_to?(:parse)
336
337
  end
@@ -1,3 +1,3 @@
1
1
  module Commander
2
- VERSION = '4.4.2'.freeze
2
+ VERSION = '4.4.3'.freeze
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.4.2
4
+ version: 4.4.3
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: 2016-12-20 00:00:00.000000000 Z
12
+ date: 2016-12-28 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.5.1
160
+ rubygems_version: 2.6.8
161
161
  signing_key:
162
162
  specification_version: 4
163
163
  summary: The complete solution for Ruby command-line executables