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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. source 'https://rubygems.org'
  2. ruby '>= 2.3.0', '< 2.7.0' if Bundler::VERSION >= '1.12.0'
  3. gem "bundler", ">= 1.5.0"
  4. gem 'rails', '5.2.6.2'
  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.12.0"
  8. gem "request_store", "~> 1.4.1"
  9. gem "mini_mime", "~> 1.0.1"
  10. gem "actionpack-xml_parser"
  11. gem "roadie-rails", (RUBY_VERSION < "2.5" ? "~> 1.3.0" : "~> 2.1.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.6.0"
  17. gem "rbpdf", "~> 1.20.0"
  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.9.5"
  32. end
  33. # Optional Markdown support, not for JRuby
  34. group :markdown do
  35. gem 'redcarpet', '~> 3.5.1'
  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. yaml_config = ERB.new(IO.read(database_file)).result
  44. database_config = YAML.respond_to?(:unsafe_load) ? YAML.unsafe_load(yaml_config) : YAML.load(yaml_config)
  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.1.4", :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", "~> 0.17.0", :require => false
  75. gem "ffi", platforms: [:mingw, :x64_mingw, :mswin]
  76. # For running system tests
  77. gem 'puma', '~> 3.7'
  78. gem "capybara", (RUBY_VERSION < "2.4" ? "~> 3.15.1" : "~> 3.25.0")
  79. gem "selenium-webdriver"
  80. # RuboCop
  81. gem 'rubocop', '~> 0.76.0'
  82. gem 'rubocop-performance', '~> 1.5.0'
  83. gem 'rubocop-rails', '~> 2.3.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