commander 4.1.4 → 4.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ === 4.1.5 / 2013-08-11
2
+
3
+ * Prevent deprecation warning when loaded in a Rails 4 environment (#58)
4
+
1
5
  === 4.1.4 / 2013-07-21
2
6
 
3
7
  * Improve help formatting for multiline program and command descriptions
@@ -327,7 +327,7 @@ module Commander
327
327
  # const_get(:Config) issues a deprecation warning on ruby 1.8.7
328
328
  Object.const_get(const) unless const == :Config
329
329
  end.select do |const|
330
- const.is_a? Class and const.respond_to? :parse
330
+ const.class == Class && const.respond_to?(:parse)
331
331
  end).each do |klass|
332
332
  define_method "ask_for_#{klass.to_s.downcase}" do |prompt|
333
333
  $terminal.ask(prompt, klass)
@@ -1,3 +1,3 @@
1
1
  module Commander
2
- VERSION = '4.1.4'
2
+ VERSION = '4.1.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.1.4
4
+ version: 4.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-07-21 00:00:00.000000000 Z
13
+ date: 2013-08-11 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: highline