Gemfile 2.0 KB
Newer Older
1
source "http://rubygems.org"
2

3 4
gemspec

5 6 7 8
if ENV['AREL']
  gem "arel", :path => ENV['AREL']
end

9
gem "jquery-rails"
J
José Valim 已提交
10 11 12
# This needs to be with require false to avoid
# it being automatically loaded by sprockets
gem "uglifier", ">= 1.0.0", :require => false
13

14
gem "rake",  ">= 0.8.7"
15
gem "mocha", ">= 0.9.8"
16 17 18 19

group :doc do
  gem "rdoc",  "~> 3.4"
  gem "horo",  "= 1.0.3"
20
  gem "RedCloth", "~> 4.2" if RUBY_VERSION < "1.9.3"
21
  gem "w3c_validators"
22
end
23

24 25 26 27
# AS
gem "memcache-client", ">= 1.8.5"

platforms :mri_18 do
28
  gem "system_timer"
29
  gem "ruby-debug", ">= 0.10.3" unless ENV['TRAVIS']
30
  gem "json"
31 32
end

33 34
platforms :mri_19 do
  # TODO: Remove the conditional when ruby-debug19 supports Ruby >= 1.9.3
35
  gem "ruby-debug19", :require => "ruby-debug" unless RUBY_VERSION > "1.9.2" || ENV['TRAVIS']
36 37
end

38 39 40 41 42 43
platforms :mri do
  group :test do
    gem "ruby-prof" if RUBY_VERSION < "1.9.3"
  end
end

44
platforms :ruby do
45
  if ENV["RB_FSEVENT"]
46
    gem "rb-fsevent"
47
  end
48 49
  gem "json"
  gem "yajl-ruby"
A
Alexey Gaziev 已提交
50
  gem "nokogiri", ">= 1.4.5"
A
Arun Agrawal 已提交
51

52
  # AR
53
  gem "sqlite3", "~> 1.3.3"
54 55

  group :db do
56
    gem "pg", ">= 0.11.0" unless ENV['TRAVIS'] # once pg is on travis this can be removed
57
    gem "mysql", ">= 2.8.1"
G
Guillermo Iguaran 已提交
58
    gem "mysql2", ">= 0.3.6"
59
  end
60 61 62 63
end

platforms :jruby do
  gem "ruby-debug", ">= 0.10.3"
64
  gem "json"
65
  gem "activerecord-jdbcsqlite3-adapter"
66

67 68 69
  # This is needed by now to let tests work on JRuby
  # TODO: When the JRuby guys merge jruby-openssl in
  # jruby this will be removed
70 71
  gem "jruby-openssl"

72 73 74 75
  group :db do
    gem "activerecord-jdbcmysql-adapter"
    gem "activerecord-jdbcpostgresql-adapter"
  end
76
end
77 78 79 80

# gems that are necessary for ActiveRecord tests with Oracle database
if ENV['ORACLE_ENHANCED_PATH'] || ENV['ORACLE_ENHANCED']
  platforms :ruby do
81
    gem "ruby-oci8", ">= 2.0.4"
82 83
  end
  if ENV['ORACLE_ENHANCED_PATH']
84
    gem "activerecord-oracle_enhanced-adapter", :path => ENV['ORACLE_ENHANCED_PATH']
85 86 87 88
  else
    gem "activerecord-oracle_enhanced-adapter", :git => "git://github.com/rsim/oracle-enhanced.git"
  end
end