2013-02-26 12:40:58 +01: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
|
|
|
|
|
2016-04-16 08:16:24 +02:00
|
|
|
gem "rails", "4.2.6"
|
2015-10-09 09:05:09 +02:00
|
|
|
gem "jquery-rails", "~> 3.1.4"
|
2013-10-26 10:55:50 +02:00
|
|
|
gem "coderay", "~> 1.1.0"
|
2014-06-30 15:35:41 +02:00
|
|
|
gem "builder", ">= 3.0.4"
|
2014-06-12 13:43:30 +02:00
|
|
|
gem "request_store", "1.0.5"
|
2016-03-24 06:20:26 +01:00
|
|
|
gem "mime-types", (RUBY_VERSION >= "2.0" ? "~> 3.0" : "~> 2.99")
|
2014-10-22 19:37:16 +02:00
|
|
|
gem "protected_attributes"
|
|
|
|
gem "actionpack-action_caching"
|
2014-12-22 14:41:15 +01:00
|
|
|
gem "actionpack-xml_parser"
|
2015-08-31 09:38:29 +02:00
|
|
|
gem "roadie-rails"
|
2016-05-04 20:05:54 +02:00
|
|
|
gem "mimemagic"
|
2014-10-22 19:37:16 +02:00
|
|
|
|
2016-01-26 05:26:10 +01:00
|
|
|
# Request at least nokogiri 1.6.7.2 because of security advisories
|
2016-01-26 04:51:06 +01:00
|
|
|
gem "nokogiri", ">= 1.6.7.2"
|
2015-12-19 08:57:00 +01:00
|
|
|
|
2016-01-26 12:06:12 +01:00
|
|
|
# Request at least rails-html-sanitizer 1.0.3 because of security advisories
|
|
|
|
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
|
2014-11-26 05:39:20 +01:00
|
|
|
gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin, :jruby]
|
2015-12-04 06:42:25 +01:00
|
|
|
gem "rbpdf", "~> 1.19.0"
|
2012-02-19 15:30:46 +01:00
|
|
|
|
|
|
|
# Optional gem for LDAP authentication
|
|
|
|
group :ldap do
|
2015-10-31 15:48:26 +01:00
|
|
|
gem "net-ldap", "~> 0.12.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
|
2015-08-10 09:11:35 +02:00
|
|
|
gem "redcarpet", "~> 3.3.2"
|
2013-12-23 18:07:51 +01:00
|
|
|
end
|
2012-02-19 15:30:46 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
platforms :jruby do
|
2012-12-08 10:22:46 +01:00
|
|
|
# jruby-openssl is bundled with JRuby 1.7.0
|
|
|
|
gem "jruby-openssl" if Object.const_defined?(:JRUBY_VERSION) && JRUBY_VERSION < '1.7.0'
|
2013-11-09 17:44:44 +01:00
|
|
|
gem "activerecord-jdbc-adapter", "~> 1.3.2"
|
2013-01-15 20:23:03 +01:00
|
|
|
end
|
2012-02-19 15:30:46 +01:00
|
|
|
|
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'
|
2014-11-25 10:53:42 +01:00
|
|
|
gem "mysql2", "~> 0.3.11", :platforms => [:mri, :mingw, :x64_mingw]
|
2013-02-28 18:20:28 +01:00
|
|
|
gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
|
|
|
|
when 'mysql'
|
2013-01-15 20:23:03 +01:00
|
|
|
gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
|
|
|
|
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
|
|
|
gem "activerecord-jdbcpostgresql-adapter", :platforms => :jruby
|
|
|
|
when /sqlite3/
|
2014-11-25 10:53:42 +01:00
|
|
|
gem "sqlite3", :platforms => [:mri, :mingw, :x64_mingw]
|
2015-06-18 09:10:49 +02:00
|
|
|
gem "jdbc-sqlite3", ">= 3.8.10.1", :platforms => :jruby
|
2015-04-14 14:49:37 +02:00
|
|
|
gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby
|
2013-01-15 20:23:03 +01:00
|
|
|
when /sqlserver/
|
2014-11-25 10:53:42 +01:00
|
|
|
gem "tiny_tds", "~> 0.6.2", :platforms => [:mri, :mingw, :x64_mingw]
|
|
|
|
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
|
|
|
|
gem "rdoc", ">= 2.4.2"
|
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"
|
2014-12-02 20:59:38 +01:00
|
|
|
gem "simplecov", "~> 0.9.1", :require => false
|
2014-10-22 19:37:16 +02:00
|
|
|
# For running UI tests
|
2015-01-10 11:26:09 +01:00
|
|
|
gem "capybara"
|
2014-10-22 19:37:16 +02:00
|
|
|
gem "selenium-webdriver"
|
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
|
2014-08-13 11:07:34 +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
|