Permalink
Browse files

move initializers to the end

  • Loading branch information...
xdite committed Oct 8, 2012
1 parent 57d29a2 commit 0d8029d6f7f75dfd31c7a73fc38f5f90fc67822b
View
@@ -8,8 +8,8 @@ Gem::Specification.new do |gem|
gem.version = Bootstrapers::VERSION
gem.authors = ["xdite"]
gem.email = ["xdite@rocodev.com"]
gem.description = %q{TODO: Write a gem description}
gem.summary = %q{TODO: Write a gem summary}
gem.description = %q{ Write a gem description}
gem.summary = %q{ Write a gem summary}
gem.homepage = ""
gem.files = `git ls-files`.split($/)
@@ -56,6 +56,11 @@ def add_custom_gems
:after => /gem 'jquery-rails'/
end
def add_devise_gem
inject_into_file 'Gemfile', "\ngem 'devise'",
:after => /gem 'jquery-rails'/
end
def use_mysql_config_template
template 'mysql_database.yml.erb', 'config/database.yml',
@@ -68,13 +73,24 @@ def create_database
bundle_command 'exec rake db:create'
end
def generate_devise
generate 'devise:install'
generate 'devise User'
end
def build_settings_from_config
# seo_helper initialize setting
template 'setting.rb', 'app/models/setting.rb',:force => true
template 'seo_helper.rb', 'config/initializers/seo_helper.rb',:force => true
## seo_helper initialize setting
# FIXME : temp mark
# template 'seo_helper.rb', 'config/initializers/seo_helper.rb',:force => true
template 'config_yml.erb', 'config/config.yml',:force => true
end
def create_initializers
directory 'initializers', 'config/initializers'
end
def setup_stylesheets
copy_file 'app/assets/stylesheets/application.css', 'app/assets/stylesheets/application.css.scss'
remove_file 'app/assets/stylesheets/application.css'
@@ -24,6 +24,7 @@ def bootstrapers_customization
invoke :customize_gemfile
invoke :setup_database
invoke :configure_app
# invoke :create_initializers
invoke :setup_stylesheets
invoke :remove_routes_comment_lines
invoke :setup_root_route
@@ -68,6 +69,7 @@ def add_jquery_ui
def customize_gemfile
build :add_custom_gems
build :add_devise_gem
bundle_command 'install'
end
@@ -83,10 +85,19 @@ def setup_database
def configure_app
say 'Configuring app'
build :setup_devise
build :build_settings_from_config
# TODO
end
def create_initializers
say 'create_initializers'
build :create_initializers
end
def setup_devise
build :generate_devise
end
def customize_error_pages
@@ -4,7 +4,7 @@ gem 'seo_helper', '~> 1.0'
gem "settingslogic"
gem 'anjlab-bootstrap-rails', '>= 2.1', :require => 'bootstrap-rails'
gem "bootstrap_helper", :git => "git://github.com/xdite/bootstrap-helper.git"
gem "bootstrap_helper", "2.1.0"
gem "simple_form", "2.0.3"
gem "will_paginate", "3.0.3"
File renamed without changes.

0 comments on commit 0d8029d

Please sign in to comment.