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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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.6"
  6. gem "jquery-rails", "~> 3.1.4"
  7. gem "coderay", "~> 1.1.1"
  8. gem "builder", ">= 3.0.4"
  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-action_caching"
  13. gem "actionpack-xml_parser"
  14. gem "roadie-rails"
  15. gem "mimemagic"
  16. # Request at least nokogiri 1.6.7.2 because of security advisories
  17. gem "nokogiri", ">= 1.6.7.2"
  18. # Request at least rails-html-sanitizer 1.0.3 because of security advisories
  19. gem "rails-html-sanitizer", ">= 1.0.3"
  20. # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
  21. gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin, :jruby]
  22. gem "rbpdf", "~> 1.19.0"
  23. # Optional gem for LDAP authentication
  24. group :ldap do
  25. gem "net-ldap", "~> 0.12.0"
  26. end
  27. # Optional gem for OpenID authentication
  28. group :openid do
  29. gem "ruby-openid", "~> 2.3.0", :require => "openid"
  30. gem "rack-openid"
  31. end
  32. platforms :mri, :mingw, :x64_mingw do
  33. # Optional gem for exporting the gantt to a PNG file, not supported with jruby
  34. group :rmagick do
  35. gem "rmagick", ">= 2.14.0"
  36. end
  37. # Optional Markdown support, not for JRuby
  38. group :markdown do
  39. gem "redcarpet", "~> 3.3.2"
  40. end
  41. end
  42. platforms :jruby do
  43. # jruby-openssl is bundled with JRuby 1.7.0
  44. gem "jruby-openssl" if Object.const_defined?(:JRUBY_VERSION) && JRUBY_VERSION < '1.7.0'
  45. gem "activerecord-jdbc-adapter", "~> 1.3.2"
  46. end
  47. # Include database gems for the adapters found in the database
  48. # configuration file
  49. require 'erb'
  50. require 'yaml'
  51. database_file = File.join(File.dirname(__FILE__), "config/database.yml")
  52. if File.exist?(database_file)
  53. database_config = YAML::load(ERB.new(IO.read(database_file)).result)
  54. adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
  55. if adapters.any?
  56. adapters.each do |adapter|
  57. case adapter
  58. when 'mysql2'
  59. gem "mysql2", "~> 0.3.11", :platforms => [:mri, :mingw, :x64_mingw]
  60. gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
  61. when 'mysql'
  62. gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
  63. when /postgresql/
  64. gem "pg", "~> 0.18.1", :platforms => [:mri, :mingw, :x64_mingw]
  65. gem "activerecord-jdbcpostgresql-adapter", :platforms => :jruby
  66. when /sqlite3/
  67. gem "sqlite3", :platforms => [:mri, :mingw, :x64_mingw]
  68. gem "jdbc-sqlite3", ">= 3.8.10.1", :platforms => :jruby
  69. gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby
  70. when /sqlserver/
  71. gem "tiny_tds", "~> 0.6.2", :platforms => [:mri, :mingw, :x64_mingw]
  72. gem "activerecord-sqlserver-adapter", :platforms => [:mri, :mingw, :x64_mingw]
  73. else
  74. warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
  75. end
  76. end
  77. else
  78. warn("No adapter found in config/database.yml, please configure it first")
  79. end
  80. else
  81. warn("Please configure your config/database.yml first")
  82. end
  83. group :development do
  84. gem "rdoc", ">= 2.4.2"
  85. gem "yard"
  86. end
  87. group :test do
  88. gem "minitest"
  89. gem "rails-dom-testing"
  90. gem "mocha"
  91. gem "simplecov", "~> 0.9.1", :require => false
  92. # For running UI tests
  93. gem "capybara"
  94. gem "selenium-webdriver"
  95. end
  96. local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
  97. if File.exists?(local_gemfile)
  98. eval_gemfile local_gemfile
  99. end
  100. # Load plugins' Gemfiles
  101. Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
  102. eval_gemfile file
  103. end