2010-02-24 09:56:28 +08:00
|
|
|
source 'http://rubygems.org'
|
2010-02-01 08:33:06 +08:00
|
|
|
|
2010-03-26 06:31:42 +08:00
|
|
|
gem "arel", :git => "git://github.com/rails/arel.git"
|
2010-04-05 16:52:47 +08:00
|
|
|
gem "rails", :path => File.dirname(__FILE__)
|
2010-02-01 08:33:06 +08:00
|
|
|
|
|
|
|
gem "rake", ">= 0.8.7"
|
2009-11-11 06:59:22 +08:00
|
|
|
gem "mocha", ">= 0.9.8"
|
|
|
|
|
2010-05-19 22:24:51 +08:00
|
|
|
mri = !defined?(RUBY_ENGINE) || RUBY_ENGINE == "ruby"
|
|
|
|
if mri && RUBY_VERSION < '1.9'
|
|
|
|
gem "system_timer"
|
|
|
|
gem "ruby-debug", ">= 0.10.3"
|
|
|
|
end
|
|
|
|
|
|
|
|
if mri || RUBY_ENGINE == "rbx"
|
2010-04-29 00:02:45 +08:00
|
|
|
gem 'json'
|
|
|
|
gem 'yajl-ruby'
|
2010-05-16 21:11:07 +08:00
|
|
|
gem "nokogiri", ">= 1.4.0"
|
2010-05-19 22:24:51 +08:00
|
|
|
elsif RUBY_ENGINE == "jruby"
|
2010-05-20 04:38:27 +08:00
|
|
|
gem "ruby-debug"
|
|
|
|
gem "jruby-openssl"
|
2009-10-21 07:33:54 +08:00
|
|
|
end
|
2009-11-11 06:59:22 +08:00
|
|
|
|
|
|
|
# AR
|
2010-05-20 04:38:27 +08:00
|
|
|
if mri || RUBY_ENGINE == "rbx"
|
|
|
|
gem "sqlite3-ruby", "= 1.3.0.beta.2", :require => 'sqlite3'
|
|
|
|
|
|
|
|
group :db do
|
|
|
|
gem "pg", ">= 0.9.0"
|
|
|
|
gem "mysql", ">= 2.8.1"
|
|
|
|
end
|
|
|
|
elsif RUBY_ENGINE == "jruby"
|
|
|
|
gem "activerecord-jdbcsqlite3-adapter"
|
2010-01-01 10:49:27 +08:00
|
|
|
|
2010-05-20 04:38:27 +08:00
|
|
|
group :db do
|
|
|
|
gem "activerecord-jdbcmysql-adapter"
|
|
|
|
gem "activerecord-jdbcpostgresql-adapter"
|
|
|
|
end
|
2010-01-01 10:49:27 +08:00
|
|
|
end
|
2009-11-11 06:59:22 +08:00
|
|
|
|
|
|
|
# AP
|
|
|
|
gem "RedCloth", ">= 4.2.2"
|
|
|
|
|
2010-02-16 02:48:23 +08:00
|
|
|
group :documentation do
|
|
|
|
gem 'rdoc', '2.1'
|
|
|
|
end
|
|
|
|
|
2009-11-11 07:28:25 +08:00
|
|
|
if ENV['CI']
|
2009-11-11 06:59:22 +08:00
|
|
|
gem "nokogiri", ">= 1.4.0"
|
2009-11-11 07:46:32 +08:00
|
|
|
|
|
|
|
# fcgi gem doesn't compile on 1.9
|
2010-02-11 23:53:12 +08:00
|
|
|
gem "fcgi", ">= 0.8.7" if RUBY_VERSION < '1.9.0'
|
2009-11-11 06:59:22 +08:00
|
|
|
end
|