Whoops...got my logic inverted

This commit is contained in:
Eric Allen 2011-03-24 16:11:48 -07:00
parent 7e8b1b9617
commit 1eed84cd16
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ class SauceGenerator < Rails::Generator::Base
def initialize(runtime_args, runtime_options = {})
config = Sauce::Config.new
if config.username.nil? || config.access_key.nil?
if runtime_args.size >= 2
if runtime_args.size < 2
puts "No username or API key specified. Assuming you're using Heroku Sauce"
else
system("sauce config #{runtime_args[0]} #{runtime_args[1]}")

View File

@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = %q{sauce}
s.version = "0.18.2"
s.version = "0.18.3"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Eric Allen", "Sean Grove", "Steven Hazel"]