source "https://ruby.taobao.org" # source "https://rubygems.org" # Use rubygems if you're not in China gem 'sinatra', '~> 2.0.0.rc2', require: 'sinatra/base' # sinatra-contrib gem was merged into sinatra in v2.0.0 # requirement can be changed when you use some/all of them gem 'sinatra-contrib', '~> 2.0.0.rc2', require: false gem 'rake' <%- unless @no_database -%> gem 'activerecord' <%- if @database == 'postgresql' || @database == 'pg' -%> gem 'pg' <%- elsif @database == 'sqlite' -%> gem 'sqlite3' <%- elsif @database == 'mongo' || @database == 'mongodb' -%> gem 'mongoid' <%- else -%> # default database: mysql gem 'mysql2', '~> 0.4.3' <%- end -%> <%- if @redis -%> gem 'redis' <%- end -%> <%- end -%> <%- unless @no_views -%> # Sprockets for assets pipeline # sass, coffescript, and compile with uglifier gem 'sprockets', '~> 3.7.1' gem 'sprockets-helpers' gem 'uglifier' gem 'sass' gem 'coffee-script' gem 'execjs' <%- end %> <%- unless @no_views -%> # Rack csrf gem for authentication of form post action gem 'rack_csrf', require: "rack/csrf" <%- end %> group :development, :test do gem 'shotgun' gem 'pry' gem 'racksh' gem 'rspec' gem 'guard-rspec' gem 'guard-livereload' gem 'terminal-notifier-guard' gem 'database_cleaner' end group :development, :production do # web app servers # gem 'unicorn' # gem 'rainbows' gem 'puma' end