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

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