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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. source 'https://rubygems.org'
  2. gem "bundler", ">= 1.5.0"
  3. gem "rails", "5.2.3"
  4. gem "rouge", "~> 3.12.0"
  5. gem "request_store", "1.0.5"
  6. gem "mini_mime", "~> 1.0.1"
  7. gem "actionpack-xml_parser"
  8. gem "roadie-rails", (RUBY_VERSION < "2.5" ? "~> 1.3.0" : "~> 2.1.0")
  9. gem "mimemagic"
  10. gem "mail", "~> 2.7.1"
  11. gem "csv", "~> 3.1.1"
  12. gem "nokogiri", "~> 1.10.0"
  13. gem "i18n", "~> 1.6.0"
  14. gem "rbpdf", "~> 1.20.0"
  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. # 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.9.2", :require => "openid"
  26. gem "rack-openid"
  27. end
  28. # Optional gem for exporting the gantt to a PNG file
  29. group :minimagick do
  30. gem "mini_magick", "~> 4.9.5"
  31. end
  32. # Optional Markdown support, not for JRuby
  33. group :markdown do
  34. gem "redcarpet", "~> 3.5.0"
  35. end
  36. # Include database gems for the adapters found in the database
  37. # configuration file
  38. require 'erb'
  39. require 'yaml'
  40. database_file = File.join(File.dirname(__FILE__), "config/database.yml")
  41. if File.exist?(database_file)
  42. database_config = YAML::load(ERB.new(IO.read(database_file)).result)
  43. adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
  44. if adapters.any?
  45. adapters.each do |adapter|
  46. case adapter
  47. when 'mysql2'
  48. gem "mysql2", "~> 0.5.0", :platforms => [:mri, :mingw, :x64_mingw]
  49. when /postgresql/
  50. gem "pg", "~> 1.1.4", :platforms => [:mri, :mingw, :x64_mingw]
  51. when /sqlite3/
  52. gem "sqlite3", "~> 1.4.0", :platforms => [:mri, :mingw, :x64_mingw]
  53. when /sqlserver/
  54. gem "tiny_tds", "~> 1.0.5", :platforms => [:mri, :mingw, :x64_mingw]
  55. gem "activerecord-sqlserver-adapter", :platforms => [:mri, :mingw, :x64_mingw]
  56. else
  57. warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
  58. end
  59. end
  60. else
  61. warn("No adapter found in config/database.yml, please configure it first")
  62. end
  63. else
  64. warn("Please configure your config/database.yml first")
  65. end
  66. group :development do
  67. gem "yard"
  68. end
  69. group :test do
  70. gem "rails-dom-testing"
  71. gem "mocha"
  72. gem "simplecov", "~> 0.17.0", :require => false
  73. gem "ffi", platforms: [:mingw, :x64_mingw, :mswin]
  74. # For running system tests
  75. gem 'puma', '~> 3.7'
  76. gem "capybara", (RUBY_VERSION < "2.4" ? "~> 3.15.1" : "~> 3.25.0")
  77. gem "selenium-webdriver"
  78. # RuboCop
  79. gem 'rubocop', '~> 0.75.0'
  80. gem 'rubocop-performance', '~> 1.5.0'
  81. gem 'rubocop-rails', '~> 2.3.0'
  82. end
  83. local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
  84. if File.exists?(local_gemfile)
  85. eval_gemfile local_gemfile
  86. end
  87. # Load plugins' Gemfiles
  88. Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
  89. eval_gemfile file
  90. end