2013-02-26 11:40:58 +00:00
|
|
|
source 'https://rubygems.org'
|
2012-02-19 14:30:46 +00:00
|
|
|
|
2014-11-18 10:59:43 +00:00
|
|
|
gem "rails", "4.1.8"
|
2014-09-14 14:17:52 +00:00
|
|
|
gem "jquery-rails", "~> 3.1.1"
|
2013-10-26 08:55:50 +00:00
|
|
|
gem "coderay", "~> 1.1.0"
|
2014-06-30 13:35:41 +00:00
|
|
|
gem "builder", ">= 3.0.4"
|
2014-06-12 11:43:30 +00:00
|
|
|
gem "request_store", "1.0.5"
|
2014-01-05 16:35:59 +00:00
|
|
|
gem "mime-types"
|
2014-10-22 17:37:16 +00:00
|
|
|
gem "protected_attributes"
|
|
|
|
|
gem "actionpack-action_caching"
|
2014-12-22 13:41:15 +00:00
|
|
|
gem "actionpack-xml_parser"
|
2014-10-22 17:37:16 +00:00
|
|
|
|
|
|
|
|
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
2014-11-26 04:39:20 +00:00
|
|
|
gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin, :jruby]
|
2015-01-11 04:19:33 +00:00
|
|
|
gem "rbpdf", "~> 1.18.4"
|
2012-02-19 14:30:46 +00:00
|
|
|
|
|
|
|
|
# Optional gem for LDAP authentication
|
|
|
|
|
group :ldap do
|
2012-02-19 15:05:20 +00:00
|
|
|
gem "net-ldap", "~> 0.3.1"
|
2012-02-19 14:30:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# Optional gem for OpenID authentication
|
|
|
|
|
group :openid do
|
2013-09-30 00:18:26 +00:00
|
|
|
gem "ruby-openid", "~> 2.3.0", :require => "openid"
|
2012-04-25 17:17:49 +00:00
|
|
|
gem "rack-openid"
|
2012-02-19 14:30:46 +00:00
|
|
|
end
|
|
|
|
|
|
2014-11-26 04:39:20 +00:00
|
|
|
platforms :mri, :mingw, :x64_mingw do
|
2013-12-23 17:07:51 +00:00
|
|
|
# Optional gem for exporting the gantt to a PNG file, not supported with jruby
|
2012-04-06 10:26:55 +00:00
|
|
|
group :rmagick do
|
|
|
|
|
gem "rmagick", ">= 2.0.0"
|
|
|
|
|
end
|
2013-12-23 17:07:51 +00:00
|
|
|
|
|
|
|
|
# Optional Markdown support, not for JRuby
|
|
|
|
|
group :markdown do
|
2014-10-22 17:37:16 +00:00
|
|
|
gem "redcarpet", "~> 3.1.2"
|
2013-12-23 17:07:51 +00:00
|
|
|
end
|
2012-02-19 14:30:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
platforms :jruby do
|
2012-12-08 09:22:46 +00: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 16:44:44 +00:00
|
|
|
gem "activerecord-jdbc-adapter", "~> 1.3.2"
|
2013-01-15 19:23:03 +00:00
|
|
|
end
|
2012-02-19 14:30:46 +00:00
|
|
|
|
2013-01-15 19:23:03 +00:00
|
|
|
# Include database gems for the adapters found in the database
|
|
|
|
|
# configuration file
|
2013-01-29 18:02:20 +00:00
|
|
|
require 'erb'
|
2013-02-26 11:41:09 +00:00
|
|
|
require 'yaml'
|
2013-01-15 19:23:03 +00:00
|
|
|
database_file = File.join(File.dirname(__FILE__), "config/database.yml")
|
|
|
|
|
if File.exist?(database_file)
|
2013-01-29 18:02:20 +00:00
|
|
|
database_config = YAML::load(ERB.new(IO.read(database_file)).result)
|
2013-01-15 19:23:03 +00:00
|
|
|
adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
|
|
|
|
|
if adapters.any?
|
|
|
|
|
adapters.each do |adapter|
|
|
|
|
|
case adapter
|
2013-02-28 17:20:28 +00:00
|
|
|
when 'mysql2'
|
2014-11-25 09:53:42 +00:00
|
|
|
gem "mysql2", "~> 0.3.11", :platforms => [:mri, :mingw, :x64_mingw]
|
2013-02-28 17:20:28 +00:00
|
|
|
gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
|
|
|
|
|
when 'mysql'
|
2013-01-15 19:23:03 +00:00
|
|
|
gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
|
|
|
|
|
when /postgresql/
|
2015-01-04 07:31:41 +00:00
|
|
|
gem "pg", "~> 0.17.1", :platforms => [:mri, :mingw, :x64_mingw]
|
2013-01-15 19:23:03 +00:00
|
|
|
gem "activerecord-jdbcpostgresql-adapter", :platforms => :jruby
|
|
|
|
|
when /sqlite3/
|
2014-11-25 09:53:42 +00:00
|
|
|
gem "sqlite3", :platforms => [:mri, :mingw, :x64_mingw]
|
2015-01-03 16:18:31 +00:00
|
|
|
gem "activerecord-jdbcsqlite3-adapter", "1.3.11", :platforms => :jruby
|
2013-01-15 19:23:03 +00:00
|
|
|
when /sqlserver/
|
2014-11-25 09:53:42 +00:00
|
|
|
gem "tiny_tds", "~> 0.6.2", :platforms => [:mri, :mingw, :x64_mingw]
|
|
|
|
|
gem "activerecord-sqlserver-adapter", :platforms => [:mri, :mingw, :x64_mingw]
|
2013-01-15 19:23:03 +00:00
|
|
|
else
|
2013-01-21 20:53:52 +00:00
|
|
|
warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
|
2013-01-15 19:23:03 +00:00
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
else
|
2013-01-19 14:44:26 +00:00
|
|
|
warn("No adapter found in config/database.yml, please configure it first")
|
2012-02-19 14:30:46 +00:00
|
|
|
end
|
2013-01-15 19:23:03 +00:00
|
|
|
else
|
2013-01-19 14:44:26 +00:00
|
|
|
warn("Please configure your config/database.yml first")
|
2012-02-19 14:30:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
group :development do
|
|
|
|
|
gem "rdoc", ">= 2.4.2"
|
2012-05-18 13:52:49 +00:00
|
|
|
gem "yard"
|
2012-02-19 14:30:46 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
group :test do
|
2014-10-22 17:37:16 +00:00
|
|
|
gem "minitest"
|
2014-05-01 11:44:06 +00:00
|
|
|
gem "mocha", "~> 1.0.0", :require => 'mocha/api'
|
2014-12-02 19:59:38 +00:00
|
|
|
gem "simplecov", "~> 0.9.1", :require => false
|
2014-10-22 17:37:16 +00:00
|
|
|
# For running UI tests
|
2015-01-10 10:26:09 +00:00
|
|
|
gem "capybara"
|
2014-10-22 17:37:16 +00:00
|
|
|
gem "selenium-webdriver"
|
2012-02-19 14:30:46 +00:00
|
|
|
end
|
|
|
|
|
|
2012-04-19 09:22:55 +00:00
|
|
|
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
|
|
|
|
|
if File.exists?(local_gemfile)
|
2014-10-22 17:37:16 +00:00
|
|
|
eval_gemfile local_gemfile
|
2012-04-06 11:12:50 +00:00
|
|
|
end
|
|
|
|
|
|
2012-02-19 14:30:46 +00:00
|
|
|
# Load plugins' Gemfiles
|
2014-08-13 09:07:34 +00:00
|
|
|
Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
|
2014-10-22 17:37:16 +00:00
|
|
|
eval_gemfile file
|
2012-02-19 14:30:46 +00:00
|
|
|
end
|