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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. source 'https://rubygems.org'
  2. gem "bundler", ">= 1.5.0", "< 2.0.0"
  3. gem "rails", "4.2.11.1"
  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. # TODO: Remove the following line when #32223 is fixed
  25. gem "sprockets", "~> 3.7.2"
  26. # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
  27. gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin]
  28. gem "rbpdf", "~> 1.19.6"
  29. # Optional gem for LDAP authentication
  30. group :ldap do
  31. gem "net-ldap", "~> 0.12.0"
  32. end
  33. # Optional gem for OpenID authentication
  34. group :openid do
  35. gem "ruby-openid", "~> 2.9.2", :require => "openid"
  36. gem "rack-openid"
  37. end
  38. platforms :mri, :mingw, :x64_mingw do
  39. # Optional gem for exporting the gantt to a PNG file, not supported with jruby
  40. group :rmagick do
  41. gem "rmagick", "~> 2.16.0"
  42. end
  43. # Optional Markdown support, not for JRuby
  44. group :markdown do
  45. gem "redcarpet", "~> 3.4.0"
  46. end
  47. end
  48. # Include database gems for the adapters found in the database
  49. # configuration file
  50. require 'erb'
  51. require 'yaml'
  52. database_file = File.join(File.dirname(__FILE__), "config/database.yml")
  53. if File.exist?(database_file)
  54. database_config = YAML::load(ERB.new(IO.read(database_file)).result)
  55. adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
  56. if adapters.any?
  57. adapters.each do |adapter|
  58. case adapter
  59. when 'mysql2'
  60. gem "mysql2", "~> 0.4.6", :platforms => [:mri, :mingw, :x64_mingw]
  61. when /postgresql/
  62. gem "pg", "~> 0.18.1", :platforms => [:mri, :mingw, :x64_mingw]
  63. when /sqlite3/
  64. gem "sqlite3", (RUBY_VERSION < "2.0" && RUBY_PLATFORM =~ /mingw/ ? "1.3.12" : "~>1.3.12"),
  65. :platforms => [:mri, :mingw, :x64_mingw]
  66. when /sqlserver/
  67. gem "tiny_tds", (RUBY_VERSION >= "2.0" ? "~> 1.0.5" : "~> 0.7.0"), :platforms => [:mri, :mingw, :x64_mingw]
  68. gem "activerecord-sqlserver-adapter", :platforms => [:mri, :mingw, :x64_mingw]
  69. else
  70. warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
  71. end
  72. end
  73. else
  74. warn("No adapter found in config/database.yml, please configure it first")
  75. end
  76. else
  77. warn("Please configure your config/database.yml first")
  78. end
  79. group :development do
  80. gem "rdoc", "~> 4.3"
  81. gem "yard"
  82. end
  83. group :test do
  84. gem "minitest"
  85. gem "rails-dom-testing"
  86. gem 'mocha', '>= 1.4.0'
  87. gem "simplecov", "~> 0.9.1", :require => false
  88. # TODO: remove this after upgrading to Rails 5
  89. gem "test_after_commit", "~> 0.4.2"
  90. # For running UI tests
  91. gem "capybara", '~> 2.13'
  92. gem "selenium-webdriver", "~> 2.53.4"
  93. end
  94. local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
  95. if File.exists?(local_gemfile)
  96. eval_gemfile local_gemfile
  97. end
  98. # Load plugins' Gemfiles
  99. Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
  100. eval_gemfile file
  101. end