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 2.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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 "rbpdf", "~> 1.19.6"
  15. # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
  16. gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin]
  17. # Optional gem for LDAP authentication
  18. group :ldap do
  19. gem "net-ldap", "~> 0.16.0"
  20. end
  21. # Optional gem for OpenID authentication
  22. group :openid do
  23. gem "ruby-openid", "~> 2.3.0", :require => "openid"
  24. gem "rack-openid"
  25. end
  26. platforms :mri, :mingw, :x64_mingw do
  27. # Optional gem for exporting the gantt to a PNG file, not supported with jruby
  28. group :rmagick do
  29. gem "rmagick", ">= 2.14.0"
  30. end
  31. # Optional Markdown support, not for JRuby
  32. group :markdown do
  33. gem "redcarpet", "~> 3.4.0"
  34. end
  35. end
  36. # Include database gems for the adapters found in the database
  37. # configuration file
  38. require 'erb'
  39. require 'yaml'
  40. database_file = File.join(File.dirname(__FILE__), "config/database.yml")
  41. if File.exist?(database_file)
  42. database_config = YAML::load(ERB.new(IO.read(database_file)).result)
  43. adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
  44. if adapters.any?
  45. adapters.each do |adapter|
  46. case adapter
  47. when 'mysql2'
  48. gem "mysql2", "~> 0.5.0", :platforms => [:mri, :mingw, :x64_mingw]
  49. when /postgresql/
  50. gem "pg", "~> 1.1.4", :platforms => [:mri, :mingw, :x64_mingw]
  51. when /sqlite3/
  52. gem "sqlite3", "~>1.3.12", :platforms => [:mri, :mingw, :x64_mingw]
  53. when /sqlserver/
  54. gem "tiny_tds", "~> 1.0.5", :platforms => [:mri, :mingw, :x64_mingw]
  55. gem "activerecord-sqlserver-adapter", :platforms => [:mri, :mingw, :x64_mingw]
  56. else
  57. warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
  58. end
  59. end
  60. else
  61. warn("No adapter found in config/database.yml, please configure it first")
  62. end
  63. else
  64. warn("Please configure your config/database.yml first")
  65. end
  66. group :development do
  67. gem "yard"
  68. end
  69. group :test do
  70. gem "rails-dom-testing"
  71. gem "mocha"
  72. gem "simplecov", "~> 0.14.1", :require => false
  73. # For running system tests
  74. gem 'puma', '~> 3.7'
  75. gem "capybara", '~> 2.13'
  76. gem "selenium-webdriver"
  77. end
  78. local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
  79. if File.exists?(local_gemfile)
  80. eval_gemfile local_gemfile
  81. end
  82. # Load plugins' Gemfiles
  83. Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
  84. eval_gemfile file
  85. end