2012-04-25 21:17:49 +04:00
|
|
|
source 'http://rubygems.org'
|
2012-02-19 18:30:46 +04:00
|
|
|
|
2012-06-14 14:33:30 +04:00
|
|
|
gem 'rails', '3.2.6'
|
2012-07-22 17:29:26 +04:00
|
|
|
gem "jquery-rails", "~> 2.0.2"
|
2012-09-01 03:44:35 +04:00
|
|
|
gem "i18n", "0.6.0"
|
2012-04-12 21:54:55 +04:00
|
|
|
gem "coderay", "~> 1.0.6"
|
2012-02-19 18:44:48 +04:00
|
|
|
gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby]
|
2012-04-25 21:17:49 +04:00
|
|
|
gem "builder"
|
2012-02-19 18:30:46 +04:00
|
|
|
|
|
|
|
# Optional gem for LDAP authentication
|
|
|
|
group :ldap do
|
2012-02-19 19:05:20 +04:00
|
|
|
gem "net-ldap", "~> 0.3.1"
|
2012-02-19 18:30:46 +04:00
|
|
|
end
|
|
|
|
|
|
|
|
# Optional gem for OpenID authentication
|
|
|
|
group :openid do
|
|
|
|
gem "ruby-openid", "~> 2.1.4", :require => "openid"
|
2012-04-25 21:17:49 +04:00
|
|
|
gem "rack-openid"
|
2012-02-19 18:30:46 +04:00
|
|
|
end
|
|
|
|
|
2012-04-06 14:26:55 +04:00
|
|
|
# Optional gem for exporting the gantt to a PNG file, not supported with jruby
|
|
|
|
platforms :mri, :mingw do
|
|
|
|
group :rmagick do
|
|
|
|
# RMagick 2 supports ruby 1.9
|
|
|
|
# RMagick 1 would be fine for ruby 1.8 but Bundler does not support
|
|
|
|
# different requirements for the same gem on different platforms
|
|
|
|
gem "rmagick", ">= 2.0.0"
|
|
|
|
end
|
2012-02-19 18:30:46 +04:00
|
|
|
end
|
|
|
|
|
|
|
|
# Database gems
|
|
|
|
platforms :mri, :mingw do
|
|
|
|
group :postgresql do
|
2012-04-09 01:10:02 +04:00
|
|
|
gem "pg", ">= 0.11.0"
|
2012-02-19 18:30:46 +04:00
|
|
|
end
|
|
|
|
|
|
|
|
group :sqlite do
|
|
|
|
gem "sqlite3"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
platforms :mri_18, :mingw_18 do
|
|
|
|
group :mysql do
|
|
|
|
gem "mysql"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
platforms :mri_19, :mingw_19 do
|
|
|
|
group :mysql do
|
2012-04-25 21:17:49 +04:00
|
|
|
gem "mysql2", "~> 0.3.11"
|
2012-02-19 18:30:46 +04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
platforms :jruby do
|
|
|
|
gem "jruby-openssl"
|
|
|
|
|
|
|
|
group :mysql do
|
|
|
|
gem "activerecord-jdbcmysql-adapter"
|
|
|
|
end
|
|
|
|
|
|
|
|
group :postgresql do
|
|
|
|
gem "activerecord-jdbcpostgresql-adapter"
|
|
|
|
end
|
|
|
|
|
|
|
|
group :sqlite do
|
|
|
|
gem "activerecord-jdbcsqlite3-adapter"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
group :development do
|
|
|
|
gem "rdoc", ">= 2.4.2"
|
2012-05-18 17:52:49 +04:00
|
|
|
gem "yard"
|
2012-02-19 18:30:46 +04:00
|
|
|
end
|
|
|
|
|
|
|
|
group :test do
|
2012-04-28 02:52:05 +04:00
|
|
|
gem "shoulda", "~> 2.11"
|
2012-07-31 06:32:40 +04:00
|
|
|
# Shoulda does not work nice on Ruby 1.9.3 and seems to need test-unit explicitely.
|
|
|
|
gem "test-unit", :platforms => [:mri_19]
|
2012-08-08 03:10:50 +04:00
|
|
|
gem "mocha", "0.12.3"
|
2012-02-19 18:30:46 +04:00
|
|
|
end
|
|
|
|
|
2012-04-19 13:22:55 +04:00
|
|
|
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
|
|
|
|
if File.exists?(local_gemfile)
|
2012-04-06 15:12:50 +04:00
|
|
|
puts "Loading Gemfile.local ..." if $DEBUG # `ruby -d` or `bundle -v`
|
2012-04-19 13:22:55 +04:00
|
|
|
instance_eval File.read(local_gemfile)
|
2012-04-06 15:12:50 +04:00
|
|
|
end
|
|
|
|
|
2012-02-19 18:30:46 +04:00
|
|
|
# Load plugins' Gemfiles
|
2012-05-02 20:20:32 +04:00
|
|
|
Dir.glob File.expand_path("../plugins/*/Gemfile", __FILE__) do |file|
|
2012-02-19 18:30:46 +04:00
|
|
|
puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
|
|
|
|
instance_eval File.read(file)
|
|
|
|
end
|