Skip to content

Instantly share code, notes, and snippets.

@sebastiangeiger
Created June 4, 2013 19:36
Show Gist options
  • Select an option

  • Save sebastiangeiger/5708853 to your computer and use it in GitHub Desktop.

Select an option

Save sebastiangeiger/5708853 to your computer and use it in GitHub Desktop.
remove_file "README.rdoc"
create_file "README.md", "TODO"
gem 'devise'
gem 'cancan'
gem "slim-rails"
gem_group :assets do
gem 'anjlab-bootstrap-rails', '>= 2.3', :require => 'bootstrap-rails'
end
gem_group :development, :test do
gem "rspec-rails"
gem 'factory_girl_rails'
end
gem_group :test do
gem 'cucumber-rails', require: false
gem 'database_cleaner'
gem 'poltergeist'
gem 'simplecov'
gem 'selenium-webdriver'
end
gem_group :development do
gem 'pry'
gem 'launchy'
gem 'meta_request'
gem 'binding_of_caller'
gem 'quiet_assets'
end
application 'config.generators.test_framework :rspec, views: false, routes: false, requests: false'
application 'config.generators.fixture_replacement :factory_girl, dir: "spec/factories"'
application 'config.generators.javascripts false'
application 'config.generators.stylesheets false'
application 'config.generators.template_engine :slim'
application 'config.generators.helper false'
application 'config.generators.assets false'
run "bundle install"
run "rm -rf test"
generate "rspec:install"
generate "cucumber:install"
if yes? "Do you want to generate a root controller?"
name = ask("What should it be called?").underscore
generate :controller, "#{name} index"
route "root to: '#{name}\#index'"
remove_file "public/index.html"
end
git :init
append_file ".gitignore", "config/database.yml"
run "cp config/database.yml config/example_database.yml"
git add: ".", commit: "-m 'initial commit'"
@sebastiangeiger

Copy link
Copy Markdown
Author

Problems:

  • Does not generate the .ruby-version / .ruby-gemset files
  • bundle install is not executed within the rvm environment specified by those files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment