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

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