Gemfile 3.01 KB
Newer Older
jplang's avatar
jplang committed
1
source 'https://rubygems.org'
2

jplang's avatar
jplang committed
3
if Gem::Version.new(Bundler::VERSION) < Gem::Version.new('1.5.0')
4
  abort "Redmine requires Bundler 1.5.0 or higher (you're using #{Bundler::VERSION}).\nPlease update with 'gem update bundler'."
jplang's avatar
jplang committed
5 6
end

maeda's avatar
maeda committed
7
gem "rails", "5.2.2"
maeda's avatar
maeda committed
8
gem "rouge", "~> 3.3.0"
9
gem "request_store", "1.0.5"
10
gem "mini_mime", "~> 1.0.1"
11
gem "actionpack-xml_parser"
12
gem "roadie-rails", "~> 1.3.0"
13
gem "mimemagic"
maeda's avatar
maeda committed
14
gem "mail", "~> 2.7.1"
15
gem "csv", "~> 1.0.2" if RUBY_VERSION >= "2.3"
jplang's avatar
jplang committed
16

17
gem "nokogiri", "~> 1.8.0"
marutosijp's avatar
marutosijp committed
18
gem "i18n", "~> 0.7.0"
19

20
# Request at least rails-html-sanitizer 1.0.3 because of security advisories
21 22
gem "rails-html-sanitizer", ">= 1.0.3"

jplang's avatar
jplang committed
23
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
24
gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin]
25
gem "rbpdf", "~> 1.19.6"
26 27 28

# Optional gem for LDAP authentication
group :ldap do
jplang's avatar
jplang committed
29
  gem "net-ldap", "~> 0.16.0"
30 31 32 33
end

# Optional gem for OpenID authentication
group :openid do
34
  gem "ruby-openid", "~> 2.3.0", :require => "openid"
jplang's avatar
jplang committed
35
  gem "rack-openid"
36 37
end

38
platforms :mri, :mingw, :x64_mingw do
jplang's avatar
jplang committed
39
  # Optional gem for exporting the gantt to a PNG file, not supported with jruby
40
  group :rmagick do
marutosijp's avatar
marutosijp committed
41
    gem "rmagick", ">= 2.14.0"
42
  end
jplang's avatar
jplang committed
43 44 45

  # Optional Markdown support, not for JRuby
  group :markdown do
46
    gem "redcarpet", "~> 3.4.0"
jplang's avatar
jplang committed
47
  end
48 49
end

50 51
# Include database gems for the adapters found in the database
# configuration file
52
require 'erb'
53
require 'yaml'
54 55
database_file = File.join(File.dirname(__FILE__), "config/database.yml")
if File.exist?(database_file)
56
  database_config = YAML::load(ERB.new(IO.read(database_file)).result)
57 58 59 60
  adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
  if adapters.any?
    adapters.each do |adapter|
      case adapter
61
      when 'mysql2'
maeda's avatar
maeda committed
62
        gem "mysql2", "~> 0.5.0", :platforms => [:mri, :mingw, :x64_mingw]
63
      when /postgresql/
maeda's avatar
maeda committed
64
        gem "pg", "~> 1.0.0", :platforms => [:mri, :mingw, :x64_mingw]
65
      when /sqlite3/
66
        gem "sqlite3", "~>1.3.12", :platforms => [:mri, :mingw, :x64_mingw]
67
      when /sqlserver/
68
        gem "tiny_tds", "~> 1.0.5", :platforms => [:mri, :mingw, :x64_mingw]
69
        gem "activerecord-sqlserver-adapter", :platforms => [:mri, :mingw, :x64_mingw]
70
      else
jplang's avatar
jplang committed
71
        warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
72 73 74
      end
    end
  else
75
    warn("No adapter found in config/database.yml, please configure it first")
76
  end
77
else
78
  warn("Please configure your config/database.yml first")
79 80 81
end

group :development do
maeda's avatar
maeda committed
82
  gem "rdoc"
emassip's avatar
emassip committed
83
  gem "yard"
84 85 86
end

group :test do
jplang's avatar
jplang committed
87
  gem "rails-dom-testing"
marutosijp's avatar
marutosijp committed
88
  gem "mocha"
jplang's avatar
jplang committed
89
  gem "simplecov", "~> 0.14.1", :require => false
90
  # For running system tests
jplang's avatar
jplang committed
91
  gem 'puma', '~> 3.7'
92 93
  gem "capybara", '~> 2.13'
  gem "selenium-webdriver"
94 95
end

96 97
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
if File.exists?(local_gemfile)
jplang's avatar
jplang committed
98
  eval_gemfile local_gemfile
jplang's avatar
jplang committed
99 100
end

101
# Load plugins' Gemfiles
102
Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
jplang's avatar
jplang committed
103
  eval_gemfile file
104
end