You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Gemfile 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. source 'https://rubygems.org'
  2. if Gem::Version.new(Bundler::VERSION) < Gem::Version.new('1.5.0')
  3. abort "Redmine requires Bundler 1.5.0 or higher (you're using #{Bundler::VERSION}).\nPlease update with 'gem update bundler'."
  4. end
  5. gem "rails", "4.2.8"
  6. gem "addressable", "2.4.0" if RUBY_VERSION < "2.0"
  7. gem "jquery-rails", "~> 3.1.4"
  8. gem "coderay", "~> 1.1.1"
  9. gem "request_store", "1.0.5"
  10. gem "mime-types", (RUBY_VERSION >= "2.0" ? "~> 3.0" : "~> 2.99")
  11. gem "protected_attributes"
  12. gem "actionpack-xml_parser"
  13. gem "roadie-rails", "~> 1.1.1"
  14. gem "roadie", "~> 3.2.1"
  15. gem "mimemagic"
  16. gem "nokogiri", (RUBY_VERSION >= "2.1" ? "~> 1.7.2" : "~> 1.6.8")
  17. gem "i18n", "~> 0.7.0"
  18. gem "ffi", "1.9.14", :platforms => :mingw if RUBY_VERSION < "2.0"
  19. # Request at least rails-html-sanitizer 1.0.3 because of security advisories
  20. gem "rails-html-sanitizer", ">= 1.0.3"
  21. # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
  22. gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin]
  23. gem "rbpdf", "~> 1.19.2"
  24. # Optional gem for LDAP authentication
  25. group :ldap do
  26. gem "net-ldap", "~> 0.12.0"
  27. end
  28. # Optional gem for OpenID authentication
  29. group :openid do
  30. gem "ruby-openid", "~> 2.3.0", :require => "openid"
  31. gem "rack-openid"
  32. end
  33. platforms :mri, :mingw, :x64_mingw do
  34. # Optional gem for exporting the gantt to a PNG file, not supported with jruby
  35. group :rmagick do
  36. gem "rmagick", ">= 2.14.0"
  37. end
  38. # Optional Markdown support, not for JRuby
  39. group :markdown do
  40. gem "redcarpet", "~> 3.4.0"
  41. end
  42. end
  43. # Include database gems for the adapters found in the database
  44. # configuration file
  45. require 'erb'
  46. require 'yaml'
  47. database_file = File.join(File.dirname(__FILE__), "config/database.yml")
  48. if File.exist?(database_file)
  49. database_config = YAML::load(ERB.new(IO.read(database_file)).result)
  50. adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
  51. if adapters.any?
  52. adapters.each do |adapter|
  53. case adapter
  54. when 'mysql2'
  55. gem "mysql2", "~> 0.4.6", :platforms => [:mri, :mingw, :x64_mingw]
  56. when /postgresql/
  57. gem "pg", "~> 0.18.1", :platforms => [:mri, :mingw, :x64_mingw]
  58. when /sqlite3/
  59. gem "sqlite3", (RUBY_VERSION < "2.0" && RUBY_PLATFORM =~ /mingw/ ? "1.3.12" : "~>1.3.12"),
  60. :platforms => [:mri, :mingw, :x64_mingw]
  61. when /sqlserver/
  62. gem "tiny_tds", (RUBY_VERSION >= "2.0" ? "~> 1.0.5" : "~> 0.7.0"), :platforms => [:mri, :mingw, :x64_mingw]
  63. gem "activerecord-sqlserver-adapter", :platforms => [:mri, :mingw, :x64_mingw]
  64. else
  65. warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
  66. end
  67. end
  68. else
  69. warn("No adapter found in config/database.yml, please configure it first")
  70. end
  71. else
  72. warn("Please configure your config/database.yml first")
  73. end
  74. group :development do
  75. gem "rdoc", "~> 4.3"
  76. gem "yard"
  77. end
  78. group :test do
  79. gem "minitest"
  80. gem "rails-dom-testing"
  81. gem "mocha"
  82. gem "simplecov", "~> 0.9.1", :require => false
  83. # TODO: remove this after upgrading to Rails 5
  84. gem "test_after_commit", "~> 0.4.2"
  85. # For running UI tests
  86. gem "capybara"
  87. gem "selenium-webdriver", "~> 2.53.4"
  88. end
  89. local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
  90. if File.exists?(local_gemfile)
  91. eval_gemfile local_gemfile
  92. end
  93. # Load plugins' Gemfiles
  94. Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
  95. eval_gemfile file
  96. end