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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. source 'https://rubygems.org'
  2. ruby '>= 2.5.0', '< 3.1.0'
  3. gem 'bundler', '>= 1.12.0'
  4. gem 'rails', '6.1.4.1'
  5. gem 'globalid', '~> 0.4.2' if Gem.ruby_version < Gem::Version.new('2.6.0')
  6. gem 'rouge', '~> 3.26.0'
  7. gem 'request_store', '~> 1.5.0'
  8. gem 'mini_mime', '~> 1.1.0'
  9. gem "actionpack-xml_parser"
  10. gem 'roadie-rails', '~> 2.2.0'
  11. gem 'marcel'
  12. gem "mail", "~> 2.7.1"
  13. gem 'csv', '~> 3.2.0'
  14. gem 'nokogiri', '~> 1.12.2'
  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.17.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.11.0'
  36. end
  37. # Optional Markdown support, not for JRuby
  38. group :markdown do
  39. gem 'redcarpet', '~> 3.5.1'
  40. end
  41. # Optional CommonMark support, not for JRuby
  42. group :common_mark do
  43. gem "html-pipeline", "~> 2.13.2"
  44. gem "commonmarker", (Gem.ruby_version < Gem::Version.new('2.6.0') ? '0.21.0' : '~> 0.22')
  45. gem "sanitize", "~> 6.0"
  46. end
  47. # Include database gems for the adapters found in the database
  48. # configuration file
  49. require 'erb'
  50. require 'yaml'
  51. database_file = File.join(File.dirname(__FILE__), "config/database.yml")
  52. if File.exist?(database_file)
  53. yaml_config = ERB.new(IO.read(database_file)).result
  54. database_config = YAML.respond_to?(:unsafe_load) ? YAML.unsafe_load(yaml_config) : YAML.load(yaml_config)
  55. adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
  56. if adapters.any?
  57. adapters.each do |adapter|
  58. case adapter
  59. when 'mysql2'
  60. gem "mysql2", "~> 0.5.0", :platforms => [:mri, :mingw, :x64_mingw]
  61. when /postgresql/
  62. gem "pg", "~> 1.2.2", :platforms => [:mri, :mingw, :x64_mingw]
  63. when /sqlite3/
  64. gem "sqlite3", "~> 1.4.0", :platforms => [:mri, :mingw, :x64_mingw]
  65. when /sqlserver/
  66. gem "tiny_tds", "~> 2.1.2", :platforms => [:mri, :mingw, :x64_mingw]
  67. gem "activerecord-sqlserver-adapter", "~> 6.1.0", :platforms => [:mri, :mingw, :x64_mingw]
  68. else
  69. warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
  70. end
  71. end
  72. else
  73. warn("No adapter found in config/database.yml, please configure it first")
  74. end
  75. else
  76. warn("Please configure your config/database.yml first")
  77. end
  78. group :development do
  79. gem "yard"
  80. end
  81. group :test do
  82. gem "rails-dom-testing"
  83. gem 'mocha', '>= 1.4.0'
  84. gem 'simplecov', '~> 0.21.2', :require => false
  85. gem "ffi", platforms: [:mingw, :x64_mingw, :mswin]
  86. # For running system tests
  87. gem 'puma'
  88. gem 'capybara', '~> 3.35.3'
  89. gem "selenium-webdriver"
  90. gem 'webdrivers', '~> 4.4', require: false
  91. # RuboCop
  92. gem 'rubocop', '~> 1.17.0'
  93. gem 'rubocop-performance', '~> 1.11.0'
  94. gem 'rubocop-rails', '~> 2.11.0'
  95. end
  96. local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
  97. if File.exists?(local_gemfile)
  98. eval_gemfile local_gemfile
  99. end
  100. # Load plugins' Gemfiles
  101. Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
  102. eval_gemfile file
  103. end