lib/bard/check.rb in bard-0.8.16 vs lib/bard/check.rb in bard-0.8.17

- old
+ new

@@ -1,10 +1,10 @@ class Bard < Thor private def auto_update! required = `curl -s http://gemcutter.org/api/v1/gems/bard.json`.match(/"version":"([0-9.]+)"/)[1] if Versionomy.parse(Bard::VERSION) < Versionomy.parse(required) - original_command = [ENV["_"], @_invocations[Bard], ARGV].flatten.join(" ") + original_command = [ENV["_"], @_invocations[Bard].first, ARGV].flatten.join(" ") puts "bard gem is out of date... updating to new version" exec "gem install bard && #{original_command}" end if options.verbose? puts green("#{"bard".ljust(9)} (#{Bard::VERSION})")