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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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.2'
  5. gem 'sprockets', '~> 3.7.2' if RUBY_VERSION < '2.5'
  6. gem 'rouge', '~> 3.17.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.8.2'
  16. gem "rbpdf", "~> 1.20.0"
  17. gem 'addressable'
  18. gem 'rubyzip', (RUBY_VERSION < '2.4' ? '~> 1.3.0' : '~> 2.3.0')
  19. # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
  20. gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin]
  21. # Optional gem for LDAP authentication
  22. group :ldap do
  23. gem "net-ldap", "~> 0.16.0"
  24. end
  25. # Optional gem for OpenID authentication
  26. group :openid do
  27. gem "ruby-openid", "~> 2.9.2", :require => "openid"
  28. gem "rack-openid"
  29. end
  30. # Optional gem for exporting the gantt to a PNG file
  31. group :minimagick do
  32. gem 'mini_magick', '~> 4.10.1'
  33. end
  34. # Optional Markdown support, not for JRuby
  35. group :markdown do
  36. gem "redcarpet", "~> 3.5.0"
  37. end
  38. # Include database gems for the adapters found in the database
  39. # configuration file
  40. require 'erb'
  41. require 'yaml'
  42. database_file = File.join(File.dirname(__FILE__), "config/database.yml")
  43. if File.exist?(database_file)
  44. database_config = YAML::load(ERB.new(IO.read(database_file)).result)
  45. adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
  46. if adapters.any?
  47. adapters.each do |adapter|
  48. case adapter
  49. when 'mysql2'
  50. gem "mysql2", "~> 0.5.0", :platforms => [:mri, :mingw, :x64_mingw]
  51. when /postgresql/
  52. gem "pg", "~> 1.2.2", :platforms => [:mri, :mingw, :x64_mingw]
  53. when /sqlite3/
  54. gem "sqlite3", "~> 1.4.0", :platforms => [:mri, :mingw, :x64_mingw]
  55. when /sqlserver/
  56. gem "tiny_tds", "~> 2.1.2", :platforms => [:mri, :mingw, :x64_mingw]
  57. gem "activerecord-sqlserver-adapter", "~> 5.2.1", :platforms => [:mri, :mingw, :x64_mingw]
  58. else
  59. warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
  60. end
  61. end
  62. else
  63. warn("No adapter found in config/database.yml, please configure it first")
  64. end
  65. else
  66. warn("Please configure your config/database.yml first")
  67. end
  68. group :development do
  69. gem "yard"
  70. end
  71. group :test do
  72. gem "rails-dom-testing"
  73. gem 'mocha', '>= 1.4.0'
  74. gem 'simplecov', (RUBY_VERSION < '2.4' ? '~> 0.17.0' : '~> 0.18.5'), :require => false
  75. gem "ffi", platforms: [:mingw, :x64_mingw, :mswin]
  76. # For running system tests
  77. gem 'puma'
  78. gem 'capybara', (RUBY_VERSION < '2.4' ? '~> 3.15.1' : '~> 3.31.0')
  79. gem "selenium-webdriver"
  80. # RuboCop
  81. gem 'rubocop', '~> 0.81.0'
  82. gem 'rubocop-performance', '~> 1.5.0'
  83. gem 'rubocop-rails', '~> 2.5.0'
  84. end
  85. local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
  86. if File.exists?(local_gemfile)
  87. eval_gemfile local_gemfile
  88. end
  89. # Load plugins' Gemfiles
  90. Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
  91. eval_gemfile file
  92. end