Permalink
Newer
Older
100644 50 lines (37 sloc) 1.2 KB
May 9, 2010
1
rvmrc = <<-RVMRC
2
rvm_gemset_create_on_use_flag=1
Mar 30, 2011
3
rvm use 1.9.2@#{app_name}
May 9, 2010
4
RVMRC
5
6
create_file ".rvmrc", rvmrc
May 9, 2010
7
Mar 30, 2011
8
gem "barista"
9
gem "compass"
10
gem "compass-susy-plugin"
11
gem "haml-rails"
12
gem "jquery-rails"
13
gem "rspec-rails", :group => :test
14
gem "factory_girl_rails", :group => :test
15
gem "capybara", :group => :test
16
gem "factory_girl_generator", :group => [:test, :development]
17
gem "fixture_builder", :group => [:test, :development]
18
gem "rails3-generators", :group => :development
May 9, 2010
19
20
generators = <<-GENERATORS
21
22
config.generators do |g|
Mar 30, 2011
23
g.fixture_replacement :factory_girl
May 9, 2010
24
g.test_framework :rspec, :fixture => true, :views => false
25
g.integration_tool :rspec, :fixture => true, :views => true
May 9, 2010
26
end
27
GENERATORS
28
29
application generators
30
31
gsub_file 'config/application.rb', 'config.action_view.javascript_expansions[:defaults] = %w()', 'config.action_view.javascript_expansions[:defaults] = %w(jquery.js jquery-ui.js rails.js)'
May 9, 2010
32
33
create_file "log/.gitkeep"
34
create_file "tmp/.gitkeep"
36
git :init
37
git :add => "."
May 9, 2010
38
39
docs = <<-DOCS
40
41
Run the following commands to complete the setup of #{app_name.humanize}:
42
43
% cd #{app_name}
44
% bundle install
45
% rails generate rspec:install
Mar 30, 2011
46
% rails generate jquery:install
May 9, 2010
47
DOCS
48
49
log docs