mcfearsome (owner)

Revisions

gist: 139665 Download_button fork
public
Public Clone URL: git://gist.github.com/139665.git
Embed All Files: show embed
snippet.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
inside('vendor') { run 'ln -s ~/code/rails-edge rails' }
 
 
gem "haml-edge", :version => ">=2.1.6", :lib => "haml"
gem "chriseppstein-compass", :version => ">=0.6.5", :lib => false, :source => "http://gems.github.com"
gem 'config_reader', :version => '>=0.0.5'
gem "justinfrench-formtastic", :lib => 'formtastic', :source => 'http://gems.github.com'
gem "image_science"
gem "friendly_id"
gem "authlogic"
 
rake 'gems:install'
 
plugin "jrails", :git => "git://github.com/aaronchi/jrails.git"
plugin 'hoptoad_notifier', :git => 'git://github.com/thoughtbot/hoptoad_notifier.git'
plugin "paperclip", :git => 'git://github.com/thoughtbot/paperclip.git'
plugin "state_machine", :git => 'git://github.com/pluginaweek/state_machine.git'
plugin "pretty-flash", :git => 'git://github.com/rpheath/pretty_flash.git'
 
 
if yes?("Do you want to use RSpec for testing?")
  plugin "rspec", :git => "git://github.com/dchelimsky/rspec.git"
  plugin "rspec-rails", :git => "git://github.com/dchelimsky/rspec-rails.git"
  generate :rspec
end
 
generate :nifty_layout
generate :friendly_id
generate :session, 'user_session'
 
 
run "haml --rails ."
run "compass --rails -f blueprint ."
rake "pretty_flash:install"
 
# run "haml --rails"
 
rake "db:migrate"
 
 
run "rm README"
run "rm public/index.html"
run "rm public/favicon.ico"
run "rm public/robots.txt"
 
git :init
 
run "touch .gitignore"
run "cp config/database.yml config/example_database.yml"
 
file ".gitignore", <<-END
log/*.log
tmp/**/*
config/database.yml
db/*.sqlite3
END
 
git :add => ".", :commit => "-m 'initial commit'"