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

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