forked from 19wu/19wu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGemfile
98 lines (82 loc) · 2.38 KB
/
Gemfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# -*- coding: utf-8 -*-
#
# Some gems cannot/should not be installed on heroku and/or travis, but
# `bundle --without` cannot be used. Put these gems into group :development
# in such situations
is_travis = !!ENV['TRAVIS']
# should work until heroku changes the HOME directory location
is_heroku = ['/app/','/app'].include?(ENV['HOME']) # ENV['HOME'] = '/app' in rails console or rake
therubyracer_group = (is_travis || is_heroku) ? :development : :assets
sqlite3_group = is_heroku ? :development : :sqlite3
mysql2_group = is_heroku ? :development : :mysql2
source 'https://rubygems.org'
gem 'rails', '3.2.11'
gem 'slim-rails'
gem 'simple_form'
gem 'html-pipeline-no-charlock'
gem 'has_html_pipeline'
gem 'kramdown', :platform => [:jruby]
gem 'gravtastic'
gem 'cancan'
gem 'rolify'
group :pg do
gem 'pg', :platform => [:ruby, :mswin, :mingw]
gem 'activerecord-jdbcpostgresql-adapter', :platform => [:jruby]
end
group sqlite3_group do
gem 'sqlite3'
end
group mysql2_group do
gem 'mysql2'
end
gem 'devise'
gem 'settingslogic'
gem 'delayed_job_active_record'
gem 'carrierwave'
gem 'friendly_id'
gem 'mini_magick'
group :development do
gem 'mails_viewer'
gem 'quiet_assets'
gem 'guard-delayed'
gem 'guard-rails'
end
group :development, :test do
gem 'rspec-rails'
gem 'jasmine', '1.3.0'
gem 'factory_girl_rails', '~> 4.0' # generator will use it in development.
gem 'thin', '~> 1.5.0', :platform => [:ruby, :mswin, :mingw] # thin cannot run under jruby
gem 'pry-rails'
gem 'pry-nav'
gem 'guard-livereload'
end
group :test do
gem 'capybara'
gem 'capybara-email'
gem 'simplecov', :require => false
end
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'bootstrap-sass', '~> 2.2.2.0'
gem 'uglifier', '>= 1.0.3'
gem 'jquery-rails'
gem 'bootstrap-datepicker-rails'
gem 'jquery-fileupload-rails'
end
group therubyracer_group do
# Travis 编译coffee-script # 安装编译过程太慢(大概4分钟)
# Heroku 编译失败
gem 'libv8', '3.11.8.3', :platforms => :ruby # therubyracer 从 0.11 开始没有依赖 lib8. http://git.io/EtMkCg
gem 'therubyracer', :platforms => :ruby
end
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'debugger'