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
64
65
66
67
68
69
|
# File 'lib/generators/squeezer/squeezer_generator.rb', line 18
def squeez
gem "will_paginate", "~> 3.0.pre2"
puts "paginacion"
gem 'haml'
puts "para escribir en haml en lugar de html"
gem 'devise',"~>1.1.rc2"
puts "maneja la registracion de usuario, login, emails de confirmacion, etc"
gem 'paperclip'
puts "para subir archivos"
gem 'cancan'
puts "permisos para roles"
gem 'nifty-generators'
puts "un generador de scaffold mas lindo"
gem 'jquery-rails'
puts "para usar jquery en lugar de prototype"
gem 'inherited_resources'
puts "para no tener que repetir el mismo controlardor todas las veces, util para entidades simples."
gem 'mysql'
puts "para usar mysql"
gem "meta_search"
puts "hace las busquedas mas faciles"
generate('bundler install')
generate('jquery:install --ui')
generate('devise:install')
generate('devise user')
cf_m "user.rb"
cf_m "ability.rb"
cf_v "layouts/application.html.erb"
cf_v "layouts/_msn.haml"
cf_v "layouts/_login.html.erb"
cf_v "layouts/_sidebar.html.haml"
cf_v "layouts/_menu.html.haml"
cf_v "layouts/_msn.haml"
cf_v "layouts/_footer.html.haml"
cf_v "layouts/_ice.haml"
copy_file("public/javascripts/application.js","public/javascripts/application.js")
copy_file("public/javascripts/jquery.layout.min-1.2.0.js","public/javascripts/jquery.layout.min-1.2.0.js")
copy_file("config/devise.rb","config/initializers/devise.rb")
FileUtils.cp_r(File.expand_path('../templates/public/stylesheets', __FILE__),'public/')
migrations
end
|