Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
My Rails Template
# Using taobao Gem source
# 'http://ruby.taobao.org' => 'https://ruby.taobao.org'
gsub_file 'Gemfile', /^source.*$/,"source 'https://ruby.taobao.org'"
# remove gem
gsub_file "Gemfile", /^gem\s+["']sqlite3["'].*$/,''
gsub_file "Gemfile", /^gem\s+["']turbolinks["'].*$/,''
# install gem
gem 'newrelic_rpm'
gem 'puma'
gem_group :development do
gem 'capistrano' , require: false
gem 'capistrano-bundler', require: false
gem 'capistrano-rails', require: false
gem 'capistrano-rvm', require: false
gem 'capistrano3-puma', require: false
gem 'capistrano-sidekiq', require: false
gem 'annotate', require: false
gem 'better_errors'
gem 'quiet_assets'
end
gem_group :test do
gem 'minitest'
gem 'mocha', require: false
end
gem_group :development, :test do
gem 'pry-rails'
gem 'pry-byebug'
gem 'pry-stack_explorer'
gem 'awesome_print'
gem 'factory_girl_rails'
end
run "bundle install"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.