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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. source 'https://rubygems.org'
  2. gem "bundler", ">= 1.5.0", "< 2.0.0"
  3. gem "rails", "4.2.11"
  4. gem "addressable", "2.4.0" if RUBY_VERSION < "2.0"
  5. if RUBY_VERSION < "2.1"
  6. gem "public_suffix", (RUBY_VERSION < "2.0" ? "~> 1.4" : "~> 2.0.5")
  7. end
  8. gem "jquery-rails", "~> 3.1.4"
  9. gem "coderay", "~> 1.1.1"
  10. gem "request_store", "1.0.5"
  11. gem "mime-types", (RUBY_VERSION >= "2.0" ? "~> 3.0" : "~> 2.99")
  12. gem "protected_attributes"
  13. gem "actionpack-xml_parser"
  14. gem "roadie-rails", "~> 1.1.1"
  15. gem "roadie", "~> 3.2.1"
  16. gem "mimemagic"
  17. gem "mail", "~> 2.6.4"
  18. gem "nokogiri", (RUBY_VERSION >= "2.1" ? "~> 1.8.1" : "~> 1.6.8")
  19. gem "i18n", "~> 0.7.0"
  20. gem "ffi", "1.9.14", :platforms => :mingw if RUBY_VERSION < "2.0"
  21. gem "xpath", "< 3.2.0" if RUBY_VERSION < "2.3"
  22. # Request at least rails-html-sanitizer 1.0.3 because of security advisories
  23. gem "rails-html-sanitizer", ">= 1.0.3"
  24. # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
  25. gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin]
  26. gem "rbpdf", "~> 1.19.6"
  27. # Optional gem for LDAP authentication
  28. group :ldap do
  29. gem "net-ldap", "~> 0.12.0"
  30. end
  31. # Optional gem for OpenID authentication
  32. group :openid do
  33. gem "ruby-openid", "~> 2.3.0", :require => "openid"
  34. gem "rack-openid"
  35. end
  36. platforms :mri, :mingw, :x64_mingw do
  37. # Optional gem for exporting the gantt to a PNG file, not supported with jruby
  38. group :rmagick do
  39. gem "rmagick", "~> 2.16.0"
  40. end
  41. # Optional Markdown support, not for JRuby
  42. group :markdown do
  43. gem "redcarpet", "~> 3.4.0"
  44. end
  45. end
  46. # Include database gems for the adapters found in the database
  47. # configuration file
  48. require 'erb'
  49. require 'yaml'
  50. database_file = File.join(File.dirname(__FILE__), "config/database.yml")
  51. if File.exist?(database_file)
  52. database_config = YAML::load(ERB.new(IO.read(database_file)).result)
  53. adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
  54. if adapters.any?
  55. adapters.each do |adapter|
  56. case adapter
  57. when 'mysql2'
  58. gem "mysql2", "~> 0.4.6", :platforms => [:mri, :mingw, :x64_mingw]
  59. when /postgresql/
  60. gem "pg", "~> 0.18.1", :platforms => [:mri, :mingw, :x64_mingw]
  61. when /sqlite3/
  62. gem "sqlite3", (RUBY_VERSION < "2.0" && RUBY_PLATFORM =~ /mingw/ ? "1.3.12" : "~>1.3.12"),
  63. :platforms => [:mri, :mingw, :x64_mingw]
  64. when /sqlserver/
  65. gem "tiny_tds", (RUBY_VERSION >= "2.0" ? "~> 1.0.5" : "~> 0.7.0"), :platforms => [:mri, :mingw, :x64_mingw]
  66. gem "activerecord-sqlserver-adapter", :platforms => [:mri, :mingw, :x64_mingw]
  67. else
  68. warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
  69. end
  70. end
  71. else
  72. warn("No adapter found in config/database.yml, please configure it first")
  73. end
  74. else
  75. warn("Please configure your config/database.yml first")
  76. end
  77. group :development do
  78. gem "rdoc", "~> 4.3"
  79. gem "yard"
  80. end
  81. group :test do
  82. gem "minitest"
  83. gem "rails-dom-testing"
  84. gem "mocha"
  85. gem "simplecov", "~> 0.9.1", :require => false
  86. # TODO: remove this after upgrading to Rails 5
  87. gem "test_after_commit", "~> 0.4.2"
  88. # For running UI tests
  89. gem "capybara", '~> 2.13'
  90. gem "selenium-webdriver", "~> 2.53.4"
  91. end
  92. local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
  93. if File.exists?(local_gemfile)
  94. eval_gemfile local_gemfile
  95. end
  96. # Load plugins' Gemfiles
  97. Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
  98. eval_gemfile file
  99. end