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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. source 'https://rubygems.org'
  2. ruby '>= 2.4.0', '< 2.8.0'
  3. gem 'bundler', '>= 1.12.0'
  4. gem 'rails', '5.2.4.4'
  5. gem 'sprockets', '~> 3.7.2' if RUBY_VERSION < '2.5'
  6. gem 'rouge', '~> 3.24.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', (RUBY_VERSION < '2.5' ? ['>= 3.1.1', '<= 3.1.5'] : '~> 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', '~> 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. # TOTP-based 2-factor authentication
  22. gem 'rotp'
  23. gem 'rqrcode'
  24. # Optional gem for LDAP authentication
  25. group :ldap do
  26. gem "net-ldap", "~> 0.16.0"
  27. end
  28. # Optional gem for OpenID authentication
  29. group :openid do
  30. gem "ruby-openid", "~> 2.9.2", :require => "openid"
  31. gem "rack-openid"
  32. end
  33. # Optional gem for exporting the gantt to a PNG file
  34. group :minimagick do
  35. gem 'mini_magick', '~> 4.10.1'
  36. end
  37. # Optional Markdown support, not for JRuby
  38. group :markdown do
  39. gem "redcarpet", "~> 3.5.0"
  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.5.0", :platforms => [:mri, :mingw, :x64_mingw]
  54. when /postgresql/
  55. gem "pg", "~> 1.2.2", :platforms => [:mri, :mingw, :x64_mingw]
  56. when /sqlite3/
  57. gem "sqlite3", "~> 1.4.0", :platforms => [:mri, :mingw, :x64_mingw]
  58. when /sqlserver/
  59. gem "tiny_tds", "~> 2.1.2", :platforms => [:mri, :mingw, :x64_mingw]
  60. gem "activerecord-sqlserver-adapter", "~> 5.2.1", :platforms => [:mri, :mingw, :x64_mingw]
  61. else
  62. warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
  63. end
  64. end
  65. else
  66. warn("No adapter found in config/database.yml, please configure it first")
  67. end
  68. else
  69. warn("Please configure your config/database.yml first")
  70. end
  71. group :development do
  72. gem "yard"
  73. end
  74. group :test do
  75. gem "rails-dom-testing"
  76. gem 'mocha', '>= 1.4.0'
  77. gem 'simplecov', '~> 0.18.5', :require => false
  78. gem "ffi", platforms: [:mingw, :x64_mingw, :mswin]
  79. # For running system tests
  80. gem 'puma'
  81. gem 'capybara', '~> 3.31.0'
  82. gem "selenium-webdriver"
  83. # RuboCop
  84. gem 'rubocop', '~> 1.0.0'
  85. gem 'rubocop-performance', '~> 1.8.0'
  86. gem 'rubocop-rails', '~> 2.8.0'
  87. end
  88. local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
  89. if File.exists?(local_gemfile)
  90. eval_gemfile local_gemfile
  91. end
  92. # Load plugins' Gemfiles
  93. Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
  94. eval_gemfile file
  95. end