visionmedia-commander 3.2.8 → 3.2.9

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.
@@ -1,4 +1,8 @@
1
1
 
2
+ === 3.2.9 / 2009-04-09
3
+
4
+ * Fixed bug in removal of global options
5
+
2
6
  === 3.2.8 / 2009-04-09
3
7
 
4
8
  * Added auto-loading support of visionmedia-growl convenience methods when the gem is available
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{commander}
5
- s.version = "3.2.8"
5
+ s.version = "3.2.9"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["TJ Holowaychuk"]
@@ -281,7 +281,8 @@ module Commander
281
281
  switches = option[:switches]
282
282
  past_switch, arg_removed = false, false
283
283
  @args.delete_if do |arg|
284
- if switches.any? { |switch| switch =~ /^#{arg}/ }
284
+ # TODO: clean this up, no rescuing ;)
285
+ if switches.any? { |switch| switch.match(/^#{arg}/) rescue false }
285
286
  past_switch, arg_removed = true, false
286
287
  true
287
288
  elsif past_switch && !arg_removed && arg !~ /^-/
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Commander
3
- VERSION = '3.2.8'
3
+ VERSION = '3.2.9'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: visionmedia-commander
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.8
4
+ version: 3.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - TJ Holowaychuk