lib/generators/mindapp/install_generator.rb in mindapp2-0.1.1.4 vs lib/generators/mindapp/install_generator.rb in mindapp2-0.1.1.5

- old
+ new

@@ -20,16 +20,10 @@ route "post ':controller(/:action(/:id))(.:format)'" end def setup_env create_file 'README.md', '' - # bug in mongo ruby driver 1.6.1, wait for mongoid 2.4.7 - # gem "mongo", "1.5.1" - # gem "bson_ext", "1.5.1" - # gem "mongoid" - # run "bundle install" - # generate "rspec:install" inject_into_file 'config/application.rb', :after => 'require "active_resource/railtie"' do "\nrequire 'mongoid/railtie'\n" "\nrequire 'rexml/document'\n" end application do @@ -89,10 +83,14 @@ "\n config.action_mailer.default_url_options = { :host => 'localhost:3000' }" end inject_into_file 'config/environments/production.rb', :after => 'config.assets.compile = false' do "\n config.assets.compile = true" end + inject_into_file 'config/initializers/assets.rb', :after => '# Precompile additional assets. +' do +"\nRails.application.config.assets.precompile += %w( sarabun.css )\n" + end end def setup_omniauth # gem 'bcrypt-ruby', '~> 3.0.0' # gem 'omniauth-identity' @@ -122,13 +120,16 @@ # copy_file "seeds.rb","db/seeds.rb" end def gen_image_store copy_file "cloudinary.yml","config/cloudinary.yml" + copy_file ".env",".env" + empty_directory "upload" # create upload directory just in case end def setup_gems + gem 'maruku', '~> 0.7.3' gem 'rouge' gem 'normalize-rails' gem "font-awesome-rails" gem 'ckeditor', github: 'galetahub/ckeditor' gem 'mongoid-paperclip', require: 'mongoid_paperclip'