Gemfile 4.5 KB
Newer Older
1
source "https://rubygems.org"
2

3 4
gemspec

5
# We need a newish Rake since Active Job sets its test tasks' descriptions.
6
gem "rake", ">= 11.1"
7

S
Sarah A 已提交
8
# This needs to be with require false to ensure correct loading order, as it has to
9
# be loaded after loading the test library.
10
gem "mocha", "~> 0.14", require: false
11

12 13 14 15 16
gem "rack-cache", "~> 1.2"
gem "jquery-rails"
gem "coffee-rails"
gem "sass-rails"
gem "turbolinks", "~> 5"
17

T
T.J. Schuck 已提交
18
# require: false so bcrypt is loaded only when has_secure_password is used.
19
# This is to avoid Active Model (and by extension the entire framework)
T
T.J. Schuck 已提交
20
# being dependent on a binary library.
21
gem "bcrypt", "~> 3.1.11", require: false
T
T.J. Schuck 已提交
22

23 24
# This needs to be with require false to avoid it being automatically loaded by
# sprockets.
25
gem "uglifier", ">= 1.3.0", require: false
26

27
# Track stable branch of sass because it doesn't have circular require warnings.
28
gem "sass", git: "https://github.com/sass/sass", branch: "stable", require: false
29

30
# FIXME: Remove this fork after https://github.com/nex3/rb-inotify/pull/49 is fixed.
31
gem "rb-inotify", git: "https://github.com/matthewd/rb-inotify", branch: "close-handling", require: false
32

33
group :doc do
34 35 36 37
  gem "sdoc", "~> 0.4.0"
  gem "redcarpet", "~> 3.2.3", platforms: :ruby
  gem "w3c_validators"
  gem "kindlerb", "0.1.1"
38
end
39

40
# Active Support.
41 42
gem "dalli", ">= 2.2.1"
gem "listen", "~> 3.0.5", require: false
43

44
# Active Job.
45
group :job do
46
  gem "resque", git: "https://github.com/resque/resque", require: false
47 48 49
  gem "resque-scheduler", require: false
  gem "sidekiq", require: false
  gem "sucker_punch", require: false
50 51
  gem "delayed_job", require: false, git: "https://github.com/collectiveidea/delayed_job"
  gem "queue_classic", git: "https://github.com/QueueClassic/queue_classic", branch: "master", require: false, platforms: :ruby
52 53 54
  gem "sneakers", require: false
  gem "que", require: false
  gem "backburner", require: false
55 56
  #TODO: add qu after it support Rails 5.1
  # gem 'qu-rails', github: "bkeepers/qu", branch: "master", require: false
57
  gem "qu-redis", require: false
58
  gem "delayed_job_active_record", require: false, git: "https://github.com/collectiveidea/delayed_job_active_record"
59
  gem "sequel", require: false
60
end
61

62 63
# Action Cable
group :cable do
64
  gem "puma", require: false
65

66 67 68
  gem "em-hiredis", require: false
  gem "hiredis", require: false
  gem "redis", require: false
69

70
  gem "faye-websocket", require: false
71

72
  # Lock to 1.1.1 until the fix for https://github.com/faye/faye/issues/394 is released
73
  gem "faye", "1.1.1", require: false
74

75 76
  gem "blade", require: false, platforms: [:ruby]
  gem "blade-sauce_labs_plugin", require: false, platforms: [:ruby]
77 78
end

79
# Add your own local bundler stuff.
B
Bogdan Gusiev 已提交
80
local_gemfile = File.dirname(__FILE__) + "/.Gemfile"
81
instance_eval File.read local_gemfile if File.exist? local_gemfile
82

83
group :test do
84
  # FIX: Our test suite isn't ready to run in random order yet.
85
  gem "minitest", "< 5.3.4"
86

87
  platforms :mri do
88 89
    gem "stackprof"
    gem "byebug"
90 91
  end

92
  gem "benchmark-ips"
93 94
end

95
platforms :ruby, :mswin, :mswin64, :mingw, :x64_mingw do
96
  gem "nokogiri", ">= 1.6.8"
A
Arun Agrawal 已提交
97

98
  # Needed for compiling the ActionDispatch::Journey parser.
99
  gem "racc", ">=1.4.6", require: false
100

101
  # Active Record.
102
  gem "sqlite3", "~> 1.3.6"
103 104

  group :db do
105 106
    gem "pg", ">= 0.18.0"
    gem "mysql2", ">= 0.4.4"
107
  end
108 109 110
end

platforms :jruby do
111
  if ENV["AR_JDBC"]
112
    gem "activerecord-jdbcsqlite3-adapter", git: "https://github.com/jruby/activerecord-jdbc-adapter", branch: "master"
113
    group :db do
114 115
      gem "activerecord-jdbcmysql-adapter", git: "https://github.com/jruby/activerecord-jdbc-adapter", branch: "master"
      gem "activerecord-jdbcpostgresql-adapter", git: "https://github.com/jruby/activerecord-jdbc-adapter", branch: "master"
116 117
    end
  else
118
    gem "activerecord-jdbcsqlite3-adapter", ">= 1.3.0"
119
    group :db do
120 121
      gem "activerecord-jdbcmysql-adapter", ">= 1.3.0"
      gem "activerecord-jdbcpostgresql-adapter", ">= 1.3.0"
122
    end
123
  end
124
end
125

126
platforms :rbx do
127 128
  # The rubysl-yaml gem doesn't ship with Psych by default as it needs
  # libyaml that isn't always available.
129
  gem "psych", "~> 2.0"
130 131
end

132
# Gems that are necessary for Active Record tests with Oracle.
133
if ENV["ORACLE_ENHANCED"]
134
  platforms :ruby do
135
    gem "ruby-oci8", "~> 2.2"
136
  end
137
  gem "activerecord-oracle_enhanced-adapter", git: "https://github.com/rsim/oracle-enhanced", branch: "master"
138
end
139

140
# A gem necessary for Active Record tests with IBM DB.
141 142 143
gem "ibm_db" if ENV["IBM_DB"]
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]
gem "wdm", ">= 0.1.0", platforms: [:mingw, :mswin, :x64_mingw, :mswin64]