-
Notifications
You must be signed in to change notification settings - Fork 0
/
base.rb
63 lines (46 loc) · 2.24 KB
/
base.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
59
60
61
62
63
css_framework = "960"
sass_dir = "app/sass"
css_dir = "public/stylesheets"
gem "haml", :lib => "haml", :version => ">=2.2.0"
gem "chriseppstein-compass", :source => "http://gems.github.com/", :lib => "compass"
rake "gems:install GEM=haml", :sudo => true
rake "gems:install GEM=chriseppstein-compass", :sudo => true
gem "chriseppstein-compass-960-plugin", :source => "http://gems.github.com", :lib => "ninesixty"
rake "gems:install GEM=chriseppstein-compass-960-plugin", :sudo => true
plugin_require = "-r ninesixty"
gem 'redinger-validation_reflection', :lib => 'validation_reflection', :source => 'http://gems.github.com'
rake "gems:install GEM=redinger-validation_reflection", :sudo => true
compass_command = "compass --rails -f #{css_framework} . --css-dir=#{css_dir} --sass-dir=#{sass_dir} "
compass_command << plugin_require if plugin_require
file 'vendor/plugins/compass/init.rb', <<-CODE
# This is here to make sure that the right version of sass gets loaded (haml 2.2) by the compass requires.
require 'compass'
CODE
#run "haml --rails ."
run compass_command
run "rm 'public/index.html'"
run "rm 'public/javascripts/controls.js'"
run "rm 'public/javascripts/dragdrop.js'"
run "rm 'public/javascripts/effects.js'"
run "rm 'public/javascripts/prototype.js'"
run "cd public/javascripts; curl -O http://code.jquery.com/jquery-1.4.1.min.js"
run "echo TODO: Write documentation > README"
gem 'mislav-will_paginate', :version => '~> 2.3.11', :lib => 'will_paginate', :source => 'http://gemcutter.org'
gem 'validatious-on-rails', :source => 'http://gemcutter.org'
rake "gems:install", :sudo => true
plugin "custom-err-msg", :git => "git://github.com/gumayunov/custom-err-msg.git"
plugin "has_permalink", :git => "git://github.com/olkarls/has_permalink.git"
plugin "generic_controllers", :git => "git://github.com/olkarls/generic_controllers.git"
plugin "authentication", :git => "git://github.com/olkarls/authentication.git"
plugin "semantic_form", :git => "git://github.com/olkarls/semantic_form_builder.git"
git :init
file ".gitignore", <<-END
.DS_Store
log/*.log
tmp/**/*
db/*.sqlite3
END
run "touch tmp/.gitignore log/.gitignore vendor/.gitignore"
run "capify ."
#rake "authentication:install"
#git :add => ".", :commit => "-m 'Initial commit'"