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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. source 'https://rubygems.org'
  2. ruby '>= 2.4.0', '< 2.8.0'
  3. gem 'bundler', '>= 1.12.0'
  4. gem 'rails', '5.2.6.3'
  5. gem 'sprockets', '~> 3.7.2' if RUBY_VERSION < '2.5'
  6. gem 'globalid', '~> 0.4.2' if Gem.ruby_version < Gem::Version.new('2.6.0')
  7. gem 'rouge', '~> 3.26.0'
  8. gem 'request_store', '~> 1.5.0'
  9. gem "mini_mime", "~> 1.0.1"
  10. gem "actionpack-xml_parser"
  11. gem 'roadie-rails', (RUBY_VERSION < '2.5' ? '~> 1.3.0' : '~> 2.2.0')
  12. gem 'marcel'
  13. gem "mail", "~> 2.7.1"
  14. gem 'csv', (RUBY_VERSION < '2.5' ? ['>= 3.1.1', '<= 3.1.5'] : '~> 3.1.1')
  15. gem 'nokogiri', (RUBY_VERSION < '2.5' ? '~> 1.10.0' : '~> 1.11.1')
  16. gem 'i18n', '~> 1.8.2'
  17. gem "rbpdf", "~> 1.20.0"
  18. gem 'addressable'
  19. gem 'rubyzip', '~> 2.3.0'
  20. # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
  21. gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin]
  22. # TOTP-based 2-factor authentication
  23. gem 'rotp', '>= 5.0.0'
  24. gem 'rqrcode'
  25. # Optional gem for LDAP authentication
  26. group :ldap do
  27. gem 'net-ldap', '~> 0.17.0'
  28. end
  29. # Optional gem for OpenID authentication
  30. group :openid do
  31. gem "ruby-openid", "~> 2.9.2", :require => "openid"
  32. gem "rack-openid"
  33. end
  34. # Optional gem for exporting the gantt to a PNG file
  35. group :minimagick do
  36. gem 'mini_magick', '~> 4.11.0'
  37. end
  38. # Optional Markdown support, not for JRuby
  39. group :markdown do
  40. gem 'redcarpet', '~> 3.5.1'
  41. end
  42. # Include database gems for the adapters found in the database
  43. # configuration file
  44. require 'erb'
  45. require 'yaml'
  46. database_file = File.join(File.dirname(__FILE__), "config/database.yml")
  47. if File.exist?(database_file)
  48. yaml_config = ERB.new(IO.read(database_file)).result
  49. database_config = YAML.respond_to?(:unsafe_load) ? YAML.unsafe_load(yaml_config) : YAML.load(yaml_config)
  50. adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
  51. if adapters.any?
  52. adapters.each do |adapter|
  53. case adapter
  54. when 'mysql2'
  55. gem "mysql2", "~> 0.5.0", :platforms => [:mri, :mingw, :x64_mingw]
  56. when /postgresql/
  57. gem "pg", "~> 1.2.2", :platforms => [:mri, :mingw, :x64_mingw]
  58. when /sqlite3/
  59. gem "sqlite3", "~> 1.4.0", :platforms => [:mri, :mingw, :x64_mingw]
  60. when /sqlserver/
  61. gem "tiny_tds", "~> 2.1.2", :platforms => [:mri, :mingw, :x64_mingw]
  62. gem "activerecord-sqlserver-adapter", "~> 5.2.1", :platforms => [:mri, :mingw, :x64_mingw]
  63. else
  64. warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
  65. end
  66. end
  67. else
  68. warn("No adapter found in config/database.yml, please configure it first")
  69. end
  70. else
  71. warn("Please configure your config/database.yml first")
  72. end
  73. group :development do
  74. gem "yard"
  75. end
  76. group :test do
  77. gem "rails-dom-testing"
  78. gem 'mocha', '>= 1.4.0'
  79. gem 'simplecov', '~> 0.18.5', :require => false
  80. gem "ffi", platforms: [:mingw, :x64_mingw, :mswin]
  81. # For running system tests
  82. gem 'puma'
  83. gem 'capybara', '~> 3.31.0'
  84. gem "selenium-webdriver"
  85. gem 'webdrivers', '~> 4.4', require: false
  86. # RuboCop
  87. gem 'rubocop', '~> 1.12.0'
  88. gem 'rubocop-performance', '~> 1.10.1'
  89. gem 'rubocop-rails', '~> 2.9.0'
  90. end
  91. local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
  92. if File.exists?(local_gemfile)
  93. eval_gemfile local_gemfile
  94. end
  95. # Load plugins' Gemfiles
  96. Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
  97. eval_gemfile file
  98. end