bin/gumdrop in gumdrop-0.7.5 vs bin/gumdrop in gumdrop-0.8.0

- old
+ new

@@ -1,13 +1,22 @@ #!/usr/bin/env ruby # encoding: utf-8 - # Copyright (c) 2011 M@ McCray. All rights reserved. -$: << File.expand_path(File.dirname(__FILE__) + "/../lib") - +# $: << File.expand_path(File.dirname(__FILE__) + "/../lib") require 'rubygems' +require 'bundler/setup' +require 'gumdrop' +Bundler.require if File.exists?('Gemfile') -# require 'bundler/setup' - -require "gumdrop" -require "gumdrop/cli" +begin + if Gumdrop.in_site_folder? + Gumdrop::CLI::Internal.start + else + Gumdrop::CLI::External.start + end +rescue Interrupt => e + puts "\nQuitting..." + exit 1 +rescue SystemExit => e + exit e.status +end \ No newline at end of file