Sha256: fbfccbfa741ba35ec728c6675f69e230cc6dc3e747dec72276aec111996c7f3e

Contents?: true

Size: 1.8 KB

Versions: 6

Compression:

Stored size: 1.8 KB

Contents

# BOOTSRAP VERSION
copy '.ruby-version'
gsub_file "#{@project_path}/.ruby-version", /version/, RUBY_VERSION
apply 'recipes/gemfile.rb'
run 'bundle install'

copy 'config/initializers/html_helpers.rb'
copy 'config/locales/cs.yml'
copy 'app/assets/stylesheets/theme.css'
copy 'app/assets/stylesheets/custom.css.scss'
copy 'app/assets/stylesheets/timepress.css.scss'
copy 'app/assets/stylesheets/bootstrap-variables.scss'
copy 'app/assets/stylesheets/bootstrap-generators.scss'

remove 'app/views/layouts/application.html.erb'
copy 'app/views/layouts/application_bootstrap.html.erb', 'app/views/layouts/application.html.erb'

apply 'recipes/bootstrap_app.rb'
apply 'recipes/upload_app.rb'
gsub_file "#{@project_path}/lib/tasks/upload.rake", /PROJECT_DIR/, @project_name

insert_into_file "#{@project_path}/config/application.rb",
                 after: "class Application < Rails::Application\n" do <<-RUBY
      config.assets.enabled = true
      config.assets.precompile += %w()
      config.i18n.default_locale = :cs
      config.time_zone = 'Prague'
RUBY
end

apply 'recipes/mysql.rb'
apply 'recipes/rspec_generators.rb'
apply 'recipes/exception_notification.rb'
rake 'db:drop'
rake 'db:create'

apply 'recipes/devise.rb'
apply 'recipes/bootstrap.rb'
layout_file = "#{@project_path}/app/views/layouts/application.html.erb"
remove 'app/views/layouts/application.html.erb'
copy 'app/views/layouts/application.html.erb'
apply 'recipes/mail_settings.rb'
apply 'recipes/timepress_specifics.rb'
apply 'recipes/add_rack_mini_profiler.rb'
gsub_file layout_file, 'PROJECT_NAME', @project_name
apply 'recipes/gitignore.rb'
run 'git init'
run 'git add .'
run "git commit -a -m 'Initial commit'"

todo =
<<TEXT
Check mail configuration in config/environments/production.rb for your server
Check upload.rake task for your server
TEXT

say todo, :green

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
r5-0.5.0.0 lib/r5/installations/app_with_bootstrap.rb
r5-0.4.0.5 lib/r5/installations/app_with_bootstrap.rb
r5-0.4.0.4 lib/r5/installations/app_with_bootstrap.rb
r5-0.4.0.2 lib/r5/installations/app_with_bootstrap.rb
r5-0.4.0.1 lib/r5/installations/app_with_bootstrap.rb
r5-0.4.0.0 lib/r5/installations/app_with_bootstrap.rb