class Jeweler::Generator
def initialize(github_repo_name, options = {})
def initialize(github_repo_name, options = {}) if github_repo_name.nil? || github_repo_name.squeeze.strip == "" raise NoGitHubRepoNameGiven end self.github_repo_name = github_repo_name self.testing_framework = (options[:testing_framework] || :shoulda).to_sym unless SUPPORTED_TESTING_FRAMEWORKS.include? self.testing_framework raise ArgumentError, "Unsupported testing framework (#{testing_framework})" end self.target_dir = options[:directory] || self.github_repo_name self.should_create_repo = options[:create_repo] self.summary = options[:summary] || 'TODO' self.should_use_cucumber= options[:use_cucumber] self.should_setup_rubyforge = options[:rubyforge] use_user_git_config end