bin/sb in starting_blocks-0.0.29 vs bin/sb in starting_blocks-0.0.30

- old
+ new

@@ -5,28 +5,16 @@ options = {} def display value end -if ARGV.include? '--blinky' - require 'starting_blocks-blinky' -end +require 'starting_blocks-blinky' if ARGV.include? '--blinky' +require 'starting_blocks-growl' if ARGV.include? '--growl' -if ARGV.include? '--growl' - require 'starting_blocks-growl' -end - -if ARGV.include? '--verbose' - options[:verbose] = true -end - -if ARGV.include? '--no-vendor' - options[:no_vendor] = true -end - -if ARGV.include? '--bundler' - options[:use_bundler] = true -end +options[:verbose] = ARGV.include? '--verbose' +options[:no_vendor] = ARGV.include?('--vendor') == false +options[:use_bundler] = Dir['Gemfile'].count > 0 +raise options.inspect def run_all_specs options files = ['**/*_spec.rb*', '**/*_test.rb*', '**/test_*.rb*'].map do |d| Dir[d]. select { |f| File.file?(f) }.