Gemfile 2.74 KB
Newer Older
Gregor Schmidt's avatar
Gregor Schmidt committed
1 2
source :rubygems

3
gem "rails", "2.3.14"
Gregor Schmidt's avatar
Gregor Schmidt committed
4 5

gem "coderay", "~> 0.9.7"
6
gem "i18n", "~> 0.4.2"
Gregor Schmidt's avatar
Gregor Schmidt committed
7
gem "rubytree", "~> 0.5.2", :require => 'tree'
8
gem "rdoc", ">= 2.4.2"
9 10
# Needed only on RUBY_VERSION = 1.8, ruby 1.9+ compatible interpreters should bring their csv
gem "fastercsv", "~> 1.5.0", :platforms => [:ruby_18, :jruby, :mingw_18]
Gregor Schmidt's avatar
Gregor Schmidt committed
11

12
group :test do
13
  gem 'shoulda', '~> 2.10.3'
Gregor Schmidt's avatar
Gregor Schmidt committed
14 15
  gem 'edavis10-object_daddy', :require => 'object_daddy'
  gem 'mocha'
16
  gem 'capybara'
Gregor Schmidt's avatar
Gregor Schmidt committed
17 18
end

19 20 21 22
group :ldap do
  gem "net-ldap", '~> 0.2.2'
end

23 24 25
group :openid do
  gem "ruby-openid", '~> 2.1.4', :require => 'openid'
end
Gregor Schmidt's avatar
Gregor Schmidt committed
26

27
group :rmagick do
Holger Just's avatar
Holger Just committed
28
  gem "rmagick", ">= 1.15.17"
29 30 31 32 33 34
  # Older distributions might not have a sufficiently new ImageMagick version
  # for the current rmagick release (current rmagick is rmagick 2, which
  # requires ImageMagick 6.4.9 or later). If this is the case for you, comment
  # the line above this comment block and uncomment the one underneath it to
  # get an rmagick version known to work on older distributions.
  #
Holger Just's avatar
Holger Just committed
35
  # The following distributions are known to *not* ship with a usable
36 37 38 39 40 41 42
  # ImageMagick version. There might be additional ones.
  #   * Ubuntu 9.10 and older
  #   * Debian Lenny 5.0 and older
  #   * CentOS 5 and older
  #   * RedHat 5 and older
  #
  #gem "rmagick", "< 2.0.0"
43 44
end

Gregor Schmidt's avatar
Gregor Schmidt committed
45 46 47 48 49
# Use the commented pure ruby gems, if you have not the needed prerequisites on
# board to compile the native ones.  Note, that their use is discouraged, since
# their integration is propbably not that well tested and their are slower in
# orders of magnitude compared to their native counterparts. You have been
# warned.
50

51
platforms :mri, :mingw do
Gregor Schmidt's avatar
Gregor Schmidt committed
52
  group :mysql2 do
53
    gem "mysql2", "~> 0.2.7"
Gregor Schmidt's avatar
Gregor Schmidt committed
54
  end
55

Gregor Schmidt's avatar
Gregor Schmidt committed
56 57 58 59
  group :postgres do
    gem "pg", "~> 0.9.0"
    #   gem "postgres-pr"
  end
60 61
end

62
platforms :mri_18, :mingw_18 do
63 64 65 66 67
  group :mysql do
    gem "mysql"
    #   gem "ruby-mysql"
  end

Gregor Schmidt's avatar
Gregor Schmidt committed
68 69
  group :sqlite do
    gem "sqlite3-ruby", "< 1.3", :require => "sqlite3"
70 71 72
  end
end

73
platforms :mri_19, :mingw_19 do
74 75
  group :sqlite do
    gem "sqlite3"
Gregor Schmidt's avatar
Gregor Schmidt committed
76 77 78 79 80 81 82 83 84
  end
end

platforms :jruby do
  gem "jruby-openssl"

  group :mysql do
    gem "activerecord-jdbcmysql-adapter"
  end
85

Gregor Schmidt's avatar
Gregor Schmidt committed
86 87 88
  group :postgres do
    gem "activerecord-jdbcpostgresql-adapter"
  end
89

Gregor Schmidt's avatar
Gregor Schmidt committed
90 91 92 93 94
  group :sqlite do
    gem "activerecord-jdbcsqlite3-adapter"
  end
end

95 96 97 98 99 100 101
# Load a "local" Gemfile
gemfile_local = File.join(File.dirname(__FILE__), "Gemfile.local")
if File.readable?(gemfile_local)
  puts "Loading #{gemfile_local} ..." if $DEBUG
  instance_eval(File.read(gemfile_local))
end

Gregor Schmidt's avatar
Gregor Schmidt committed
102
# Load plugins' Gemfiles
103 104 105 106 107
["plugins", "chiliproject_plugins"].each do |plugin_path|
  Dir.glob File.expand_path("../vendor/#{plugin_path}/*/Gemfile", __FILE__) do |file|
    puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
    instance_eval File.read(file)
  end
108
end