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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. source 'https://rubygems.org'
  2. gem "bundler", ">= 1.5.0"
  3. gem "rails", "5.2.2"
  4. gem "rouge", "~> 3.3.0"
  5. gem "request_store", "1.0.5"
  6. gem "mini_mime", "~> 1.0.1"
  7. gem "actionpack-xml_parser"
  8. gem "roadie-rails", "~> 1.3.0"
  9. gem "mimemagic"
  10. gem "mail", "~> 2.7.1"
  11. gem "csv", "~> 3.0.1" if RUBY_VERSION >= "2.3" && RUBY_VERSION < "2.6"
  12. gem "nokogiri", (RUBY_VERSION >= "2.3" ? "~> 1.10.0" : "~> 1.9.1")
  13. gem "i18n", "~> 0.7.0"
  14. gem "xpath", "< 3.2.0" if RUBY_VERSION < "2.3"
  15. # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
  16. gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin]
  17. gem "rbpdf", "~> 1.19.6"
  18. # Optional gem for LDAP authentication
  19. group :ldap do
  20. gem "net-ldap", "~> 0.16.0"
  21. end
  22. # Optional gem for OpenID authentication
  23. group :openid do
  24. gem "ruby-openid", "~> 2.3.0", :require => "openid"
  25. gem "rack-openid"
  26. end
  27. platforms :mri, :mingw, :x64_mingw do
  28. # Optional gem for exporting the gantt to a PNG file, not supported with jruby
  29. group :rmagick do
  30. gem "rmagick", "~> 2.16.0"
  31. end
  32. # Optional Markdown support, not for JRuby
  33. group :markdown do
  34. gem "redcarpet", "~> 3.4.0"
  35. end
  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. database_config = YAML::load(ERB.new(IO.read(database_file)).result)
  44. adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
  45. if adapters.any?
  46. adapters.each do |adapter|
  47. case adapter
  48. when 'mysql2'
  49. gem "mysql2", "~> 0.5.0", :platforms => [:mri, :mingw, :x64_mingw]
  50. when /postgresql/
  51. gem "pg", "~> 1.1.4", :platforms => [:mri, :mingw, :x64_mingw]
  52. when /sqlite3/
  53. gem "sqlite3", "~>1.3.12", :platforms => [:mri, :mingw, :x64_mingw]
  54. when /sqlserver/
  55. gem "tiny_tds", "~> 1.0.5", :platforms => [:mri, :mingw, :x64_mingw]
  56. gem "activerecord-sqlserver-adapter", :platforms => [:mri, :mingw, :x64_mingw]
  57. else
  58. warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
  59. end
  60. end
  61. else
  62. warn("No adapter found in config/database.yml, please configure it first")
  63. end
  64. else
  65. warn("Please configure your config/database.yml first")
  66. end
  67. group :development do
  68. gem "yard"
  69. end
  70. group :test do
  71. gem "rails-dom-testing"
  72. gem "mocha"
  73. gem "simplecov", "~> 0.14.1", :require => false
  74. # For running system tests
  75. gem 'puma', '~> 3.7'
  76. gem "capybara", '~> 2.13'
  77. gem "selenium-webdriver"
  78. end
  79. local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
  80. if File.exists?(local_gemfile)
  81. eval_gemfile local_gemfile
  82. end
  83. # Load plugins' Gemfiles
  84. Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
  85. eval_gemfile file
  86. end