-
Notifications
You must be signed in to change notification settings - Fork 9
/
gems.rb
40 lines (33 loc) · 1014 Bytes
/
gems.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
gem 'rails3-generators'
if yes?("Install jammit?", :yellow)
gem 'jammit'
create_file "config/assets.yml" do
"package_assets: on\n" +
"embed_images: off\n\n" +
"javascripts:\n" +
" application:\n" +
" - public/javascripts/jquery/jquery.min.js\n" +
" - public/javascripts/jquery/jquery.metadata.js\n" +
" - public/javascripts/rails.js\n" +
" - public/javascripts/application.js\n\n" +
"stylesheets:\n" +
" application:\n" +
" - public/stylesheets/reset.css\n"
end
@use_jammit = true
end
if yes?("Install haml?", :yellow)
gem 'haml'
gem 'haml-rails'
inject_into_file "config/application.rb", :after => "config.generators do |generator|\n" do
(" " * 6) + "generator.template_engine :haml\n"
end
create_file "config/initializers/haml.rb" do
<<-HAML
Haml::Template.options[:attr_wrapper] = '\"'
Haml::Template.options[:format] = :xhtml
Sass::Plugin.options[:style] = :expanded
HAML
end
@use_haml = true
end