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