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 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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", "5.2.2"
  6. gem "rouge", "~> 3.3.0"
  7. gem "request_store", "1.0.5"
  8. gem "mini_mime", "~> 1.0.1"
  9. gem "actionpack-xml_parser"
  10. gem "roadie-rails", "~> 1.3.0"
  11. gem "mimemagic"
  12. gem "mail", "~> 2.7.1"
  13. gem "csv", "~> 3.0.1" if RUBY_VERSION >= "2.3" && RUBY_VERSION < "2.6"
  14. gem "nokogiri", "~> 1.8.0"
  15. gem "i18n", "~> 0.7.0"
  16. # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
  17. gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin]
  18. gem "rbpdf", "~> 1.19.6"
  19. # Optional gem for LDAP authentication
  20. group :ldap do
  21. gem "net-ldap", "~> 0.16.0"
  22. end
  23. # Optional gem for OpenID authentication
  24. group :openid do
  25. gem "ruby-openid", "~> 2.3.0", :require => "openid"
  26. gem "rack-openid"
  27. end
  28. platforms :mri, :mingw, :x64_mingw do
  29. # Optional gem for exporting the gantt to a PNG file, not supported with jruby
  30. group :rmagick do
  31. gem "rmagick", ">= 2.14.0"
  32. end
  33. # Optional Markdown support, not for JRuby
  34. group :markdown do
  35. gem "redcarpet", "~> 3.4.0"
  36. end
  37. end
  38. # Include database gems for the adapters found in the database
  39. # configuration file
  40. require 'erb'
  41. require 'yaml'
  42. database_file = File.join(File.dirname(__FILE__), "config/database.yml")
  43. if File.exist?(database_file)
  44. database_config = YAML::load(ERB.new(IO.read(database_file)).result)
  45. adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
  46. if adapters.any?
  47. adapters.each do |adapter|
  48. case adapter
  49. when 'mysql2'
  50. gem "mysql2", "~> 0.5.0", :platforms => [:mri, :mingw, :x64_mingw]
  51. when /postgresql/
  52. gem "pg", "~> 1.0.0", :platforms => [:mri, :mingw, :x64_mingw]
  53. when /sqlite3/
  54. gem "sqlite3", "~>1.3.12", :platforms => [:mri, :mingw, :x64_mingw]
  55. when /sqlserver/
  56. gem "tiny_tds", "~> 1.0.5", :platforms => [:mri, :mingw, :x64_mingw]
  57. gem "activerecord-sqlserver-adapter", :platforms => [:mri, :mingw, :x64_mingw]
  58. else
  59. warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
  60. end
  61. end
  62. else
  63. warn("No adapter found in config/database.yml, please configure it first")
  64. end
  65. else
  66. warn("Please configure your config/database.yml first")
  67. end
  68. group :development do
  69. gem "yard"
  70. end
  71. group :test do
  72. gem "rails-dom-testing"
  73. gem "mocha"
  74. gem "simplecov", "~> 0.14.1", :require => false
  75. # For running system tests
  76. gem 'puma', '~> 3.7'
  77. gem "capybara", '~> 2.13'
  78. gem "selenium-webdriver"
  79. end
  80. local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
  81. if File.exists?(local_gemfile)
  82. eval_gemfile local_gemfile
  83. end
  84. # Load plugins' Gemfiles
  85. Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
  86. eval_gemfile file
  87. end