Sha256: 7530424571167ca86bfa3a89c0a504f2733dd1b28e8956ae3e486d980ec813ce

Contents?: true

Size: 930 Bytes

Versions: 6

Compression:

Stored size: 930 Bytes

Contents

#
# Default Rails application template
#

gem 'haml'

gem_group :development do
  gem 'haml-rails'
  gem 'ruby_parser'
  gem 'hpricot'
  gem 'puma'
end

gem_group :test do
  gem 'rspec-rails'
  gem 'capybara'
end

initializer "generators.rb", <<-RUBY
Rails.application.config.generators do |g|
  g.template_engine :haml
  g.test_framework :rspec, fixtures: true, fixture_location: "spec/fixtures"
end
RUBY

rakefile "base.rake" do
  <<-RUBY
task :server do
  sh "rails server puma"
end
  RUBY
end

%w(.env .travis.yml).each do |name|
  file(name) { IO.read File.expand_path("~/etc/rails/template/#{name}") }
end

file("README.md") { "# #{app_name.titleize}" }

run "createuser -s #{app_name}"
run "bundle install"
run "bundle exec rails generate rspec:install"
rake 'db:create'
rake 'db:test:prepare'
run "rm -rf test/; rm -rf README.rdoc; rm -rf public/index.html"
run "git init && git add . && git commit -am 'Initial commit.'"

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
zsh_dots-0.5.8 etc/rails/template.rb
zsh_dots-0.5.7 etc/rails/template.rb
zsh_dots-0.5.6 etc/rails/template.rb
zsh_dots-0.5.5 etc/rails/template.rb
zsh_dots-0.5.4 etc/rails/template.rb
zsh_dots-0.5.3 etc/rails/template.rb