2016-10-20 19:49:24 +02:00
|
|
|
source 'https://rubygems.org'
|
2012-02-19 15:30:46 +01:00
|
|
|
|
2015-03-08 10:49:27 +01:00
|
|
|
if Gem::Version.new(Bundler::VERSION) < Gem::Version.new('1.5.0')
|
2015-04-18 17:22:23 +02:00
|
|
|
abort "Redmine requires Bundler 1.5.0 or higher (you're using #{Bundler::VERSION}).\nPlease update with 'gem update bundler'."
|
2015-03-08 10:49:27 +01:00
|
|
|
end
|
|
|
|
|
2017-02-23 03:31:08 +01:00
|
|
|
gem "rails", "4.2.8"
|
2015-10-09 09:05:09 +02:00
|
|
|
gem "jquery-rails", "~> 3.1.4"
|
2016-06-19 09:04:44 +02:00
|
|
|
gem "coderay", "~> 1.1.1"
|
2014-06-12 13:43:30 +02:00
|
|
|
gem "request_store", "1.0.5"
|
2017-07-08 18:33:37 +02:00
|
|
|
gem "mime-types", "~> 3.0"
|
2014-10-22 19:37:16 +02:00
|
|
|
gem "protected_attributes"
|
2014-12-22 14:41:15 +01:00
|
|
|
gem "actionpack-xml_parser"
|
2017-05-10 13:54:27 +02:00
|
|
|
gem "roadie-rails", "~> 1.1.1"
|
2017-06-06 05:41:42 +02:00
|
|
|
gem "roadie", "~> 3.2.1"
|
2016-05-04 20:05:54 +02:00
|
|
|
gem "mimemagic"
|
2014-10-22 19:37:16 +02:00
|
|
|
|
2017-06-17 12:48:32 +02:00
|
|
|
gem "nokogiri", (RUBY_VERSION >= "2.1" ? "~> 1.7.2" : "~> 1.6.8")
|
2017-02-02 06:41:57 +01:00
|
|
|
gem "i18n", "~> 0.7.0"
|
2015-12-19 08:57:00 +01:00
|
|
|
|
2017-04-05 12:53:33 +02:00
|
|
|
# Request at least rails-html-sanitizer 1.0.3 because of security advisories
|
2016-01-26 12:06:12 +01:00
|
|
|
gem "rails-html-sanitizer", ">= 1.0.3"
|
|
|
|
|
2014-10-22 19:37:16 +02:00
|
|
|
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
2017-04-07 00:10:27 +02:00
|
|
|
gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin]
|
2017-04-08 09:33:25 +02:00
|
|
|
gem "rbpdf", "~> 1.19.2"
|
2012-02-19 15:30:46 +01:00
|
|
|
|
|
|
|
# Optional gem for LDAP authentication
|
|
|
|
group :ldap do
|
2017-07-08 15:46:47 +02:00
|
|
|
gem "net-ldap", "~> 0.16.0"
|
2012-02-19 15:30:46 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
# Optional gem for OpenID authentication
|
|
|
|
group :openid do
|
2013-09-30 02:18:26 +02:00
|
|
|
gem "ruby-openid", "~> 2.3.0", :require => "openid"
|
2012-04-25 19:17:49 +02:00
|
|
|
gem "rack-openid"
|
2012-02-19 15:30:46 +01:00
|
|
|
end
|
|
|
|
|
2014-11-26 05:39:20 +01:00
|
|
|
platforms :mri, :mingw, :x64_mingw do
|
2013-12-23 18:07:51 +01:00
|
|
|
# Optional gem for exporting the gantt to a PNG file, not supported with jruby
|
2012-04-06 12:26:55 +02:00
|
|
|
group :rmagick do
|
2015-04-14 07:38:14 +02:00
|
|
|
gem "rmagick", ">= 2.14.0"
|
2012-04-06 12:26:55 +02:00
|
|
|
end
|
2013-12-23 18:07:51 +01:00
|
|
|
|
|
|
|
# Optional Markdown support, not for JRuby
|
|
|
|
group :markdown do
|
2017-05-30 19:06:57 +02:00
|
|
|
gem "redcarpet", "~> 3.4.0"
|
2013-12-23 18:07:51 +01:00
|
|
|
end
|
2012-02-19 15:30:46 +01:00
|
|
|
end
|
|
|
|
|
2013-01-15 20:23:03 +01:00
|
|
|
# Include database gems for the adapters found in the database
|
|
|
|
# configuration file
|
2013-01-29 19:02:20 +01:00
|
|
|
require 'erb'
|
2013-02-26 12:41:09 +01:00
|
|
|
require 'yaml'
|
2013-01-15 20:23:03 +01:00
|
|
|
database_file = File.join(File.dirname(__FILE__), "config/database.yml")
|
|
|
|
if File.exist?(database_file)
|
2013-01-29 19:02:20 +01:00
|
|
|
database_config = YAML::load(ERB.new(IO.read(database_file)).result)
|
2013-01-15 20:23:03 +01:00
|
|
|
adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
|
|
|
|
if adapters.any?
|
|
|
|
adapters.each do |adapter|
|
|
|
|
case adapter
|
2013-02-28 18:20:28 +01:00
|
|
|
when 'mysql2'
|
2017-05-13 11:28:46 +02:00
|
|
|
gem "mysql2", "~> 0.4.6", :platforms => [:mri, :mingw, :x64_mingw]
|
2013-01-15 20:23:03 +01:00
|
|
|
when /postgresql/
|
2015-05-01 18:30:26 +02:00
|
|
|
gem "pg", "~> 0.18.1", :platforms => [:mri, :mingw, :x64_mingw]
|
2013-01-15 20:23:03 +01:00
|
|
|
when /sqlite3/
|
2017-07-08 18:33:37 +02:00
|
|
|
gem "sqlite3", "~>1.3.12", :platforms => [:mri, :mingw, :x64_mingw]
|
2013-01-15 20:23:03 +01:00
|
|
|
when /sqlserver/
|
2017-07-08 18:33:37 +02:00
|
|
|
gem "tiny_tds", "~> 1.0.5", :platforms => [:mri, :mingw, :x64_mingw]
|
2014-11-25 10:53:42 +01:00
|
|
|
gem "activerecord-sqlserver-adapter", :platforms => [:mri, :mingw, :x64_mingw]
|
2013-01-15 20:23:03 +01:00
|
|
|
else
|
2013-01-21 21:53:52 +01:00
|
|
|
warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
|
2013-01-15 20:23:03 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
else
|
2013-01-19 15:44:26 +01:00
|
|
|
warn("No adapter found in config/database.yml, please configure it first")
|
2012-02-19 15:30:46 +01:00
|
|
|
end
|
2013-01-15 20:23:03 +01:00
|
|
|
else
|
2013-01-19 15:44:26 +01:00
|
|
|
warn("Please configure your config/database.yml first")
|
2012-02-19 15:30:46 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
group :development do
|
2016-11-05 18:26:12 +01:00
|
|
|
gem "rdoc", "~> 4.3"
|
2012-05-18 15:52:49 +02:00
|
|
|
gem "yard"
|
2012-02-19 15:30:46 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
group :test do
|
2014-10-22 19:37:16 +02:00
|
|
|
gem "minitest"
|
2015-01-17 18:02:55 +01:00
|
|
|
gem "rails-dom-testing"
|
2015-01-25 11:44:29 +01:00
|
|
|
gem "mocha"
|
2017-07-08 15:25:57 +02:00
|
|
|
gem "simplecov", "~> 0.14.1", :require => false
|
2017-05-27 10:44:24 +02:00
|
|
|
# TODO: remove this after upgrading to Rails 5
|
2017-05-30 16:00:54 +02:00
|
|
|
gem "test_after_commit", "~> 0.4.2"
|
2014-10-22 19:37:16 +02:00
|
|
|
# For running UI tests
|
2015-01-10 11:26:09 +01:00
|
|
|
gem "capybara"
|
2016-10-20 19:49:05 +02:00
|
|
|
gem "selenium-webdriver", "~> 2.53.4"
|
2012-02-19 15:30:46 +01:00
|
|
|
end
|
|
|
|
|
2012-04-19 11:22:55 +02:00
|
|
|
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
|
|
|
|
if File.exists?(local_gemfile)
|
2014-10-22 19:37:16 +02:00
|
|
|
eval_gemfile local_gemfile
|
2012-04-06 13:12:50 +02:00
|
|
|
end
|
|
|
|
|
2012-02-19 15:30:46 +01:00
|
|
|
# Load plugins' Gemfiles
|
2017-06-17 09:50:01 +02:00
|
|
|
Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
|
2014-10-22 19:37:16 +02:00
|
|
|
eval_gemfile file
|
2012-02-19 15:30:46 +01:00
|
|
|
end
|