forked from fatfreecrm/fat_free_crm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gemfile
101 lines (88 loc) · 2.49 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
99
100
101
# frozen_string_literal: true
source 'https://rubygems.org'
# Uncomment the database that you have configured in config/database.yml
# ----------------------------------------------------------------------
case ENV['CI'] && ENV['DB']
when 'sqlite'
gem 'sqlite3'
when 'mysql'
gem 'mysql2'
when 'postgres'
gem 'pg', '~> 0.21.0' # Pinned, see https://github.com/fatfreecrm/fat_free_crm/pull/689
else
gem 'pg', '~> 0.21.0'
end
# Removes a gem dependency
def remove(name)
@dependencies.reject! { |d| d.name == name }
end
# Replaces an existing gem dependency (e.g. from gemspec) with an alternate source.
def gem(name, *args)
remove(name)
super
end
# Bundler no longer treats runtime dependencies as base dependencies.
# The following code restores this behaviour.
# (See https://github.com/carlhuda/bundler/issues/1041)
spec = Bundler.load_gemspec(File.expand_path("../fat_free_crm.gemspec", __FILE__))
spec.runtime_dependencies.each do |dep|
gem dep.name, *dep.requirement.as_list
end
# Remove premailer auto-require
gem 'premailer', require: false
# Remove fat_free_crm dependency, to stop it from being auto-required too early.
remove 'fat_free_crm'
group :development do
# don't load these gems in travis
unless ENV["CI"]
gem 'capistrano'
gem 'capistrano-bundler'
gem 'capistrano-rails'
gem 'capistrano-rvm'
gem 'guard'
gem 'guard-rspec'
gem 'guard-rails'
gem 'rb-inotify', require: false
gem 'rb-fsevent', require: false
gem 'rb-fchange', require: false
gem 'brakeman', require: false
end
end
group :development, :test do
gem 'rails-controller-testing'
gem 'rspec-rails'
gem 'rspec-activemodel-mocks'
gem 'headless'
gem 'byebug'
gem 'pry-rails' unless ENV["CI"]
gem 'factory_bot_rails'
gem 'rubocop', '~> 0.52.0' # Pinned because upgrades require regenerating rubocop_todo.yml
gem 'rainbow'
gem 'puma' # used by capybara 3
end
group :test do
gem 'capybara'
gem 'selenium-webdriver'
gem 'chromedriver-helper'
gem 'database_cleaner'
gem 'acts_as_fu'
gem 'zeus', platform: :ruby unless ENV["CI"]
gem 'timecop'
end
group :heroku do
gem 'rails_12factor'
gem 'puma'
end
gem 'sass-rails'
gem 'coffee-rails'
gem 'uglifier'
gem 'execjs'
gem 'therubyracer', platform: :ruby unless ENV["CI"]
gem 'nokogiri', '>= 1.8.1'
gem 'activemodel-serializers-xml'
gem 'bootsnap', require: false
gem 'devise', '~>4.4.0'
gem 'devise-i18n'
gem "devise-encryptable"
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]
gem 'activejob', '~> 5.1.6.1'