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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. source 'https://rubygems.org'
  2. gem "rails", "3.2.16"
  3. gem "jquery-rails", "~> 2.0.2"
  4. gem "coderay", "~> 1.1.0"
  5. gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby]
  6. gem "builder", "3.0.0"
  7. # Optional gem for LDAP authentication
  8. group :ldap do
  9. gem "net-ldap", "~> 0.3.1"
  10. end
  11. # Optional gem for OpenID authentication
  12. group :openid do
  13. gem "ruby-openid", "~> 2.3.0", :require => "openid"
  14. gem "rack-openid"
  15. end
  16. platforms :mri, :mingw do
  17. # Optional gem for exporting the gantt to a PNG file, not supported with jruby
  18. group :rmagick do
  19. # RMagick 2 supports ruby 1.9
  20. # RMagick 1 would be fine for ruby 1.8 but Bundler does not support
  21. # different requirements for the same gem on different platforms
  22. gem "rmagick", ">= 2.0.0"
  23. end
  24. # Optional Markdown support, not for JRuby
  25. group :markdown do
  26. # TODO: upgrade to redcarpet 3.x when ruby1.8 support is dropped
  27. gem "redcarpet", "~> 2.3.0"
  28. end
  29. end
  30. platforms :jruby do
  31. # jruby-openssl is bundled with JRuby 1.7.0
  32. gem "jruby-openssl" if Object.const_defined?(:JRUBY_VERSION) && JRUBY_VERSION < '1.7.0'
  33. gem "activerecord-jdbc-adapter", "~> 1.3.2"
  34. end
  35. # Include database gems for the adapters found in the database
  36. # configuration file
  37. require 'erb'
  38. require 'yaml'
  39. database_file = File.join(File.dirname(__FILE__), "config/database.yml")
  40. if File.exist?(database_file)
  41. database_config = YAML::load(ERB.new(IO.read(database_file)).result)
  42. adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
  43. if adapters.any?
  44. adapters.each do |adapter|
  45. case adapter
  46. when 'mysql2'
  47. gem "mysql2", "~> 0.3.11", :platforms => [:mri, :mingw]
  48. gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
  49. when 'mysql'
  50. gem "mysql", "~> 2.8.1", :platforms => [:mri, :mingw]
  51. gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
  52. when /postgresql/
  53. gem "pg", ">= 0.11.0", :platforms => [:mri, :mingw]
  54. gem "activerecord-jdbcpostgresql-adapter", :platforms => :jruby
  55. when /sqlite3/
  56. gem "sqlite3", :platforms => [:mri, :mingw]
  57. gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby
  58. when /sqlserver/
  59. gem "tiny_tds", "~> 0.5.1", :platforms => [:mri, :mingw]
  60. gem "activerecord-sqlserver-adapter", :platforms => [:mri, :mingw]
  61. else
  62. warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
  63. end
  64. end
  65. else
  66. warn("No adapter found in config/database.yml, please configure it first")
  67. end
  68. else
  69. warn("Please configure your config/database.yml first")
  70. end
  71. group :development do
  72. gem "rdoc", ">= 2.4.2"
  73. gem "yard"
  74. end
  75. group :test do
  76. gem "shoulda", "~> 3.3.2"
  77. gem "mocha", ">= 0.14", :require => 'mocha/api'
  78. if RUBY_VERSION >= '1.9.3'
  79. gem "capybara", "~> 2.1.0"
  80. gem "selenium-webdriver"
  81. end
  82. end
  83. local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
  84. if File.exists?(local_gemfile)
  85. puts "Loading Gemfile.local ..." if $DEBUG # `ruby -d` or `bundle -v`
  86. instance_eval File.read(local_gemfile)
  87. end
  88. # Load plugins' Gemfiles
  89. Dir.glob File.expand_path("../plugins/*/Gemfile", __FILE__) do |file|
  90. puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
  91. #TODO: switch to "eval_gemfile file" when bundler >= 1.2.0 will be required (rails 4)
  92. instance_eval File.read(file), file
  93. end