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

17 18
  platforms :mri_18, :mingw_18 do gem 'ruby-debug' end
  platforms :mri_19, :mingw_19 do gem 'ruby-debug19', :require => 'ruby-debug' end
Gregor Schmidt's avatar
Gregor Schmidt committed
19 20
end

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

25
group :rmagick do
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
  gem "rmagick" '>= 1.15.17'
  # 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.
  #
  # The following distributíons are known to *not* ship with a usable
  # 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"
41 42
end

Gregor Schmidt's avatar
Gregor Schmidt committed
43 44 45 46 47
# 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.
48

49
platforms :mri, :mingw do
Gregor Schmidt's avatar
Gregor Schmidt committed
50 51 52 53 54 55
  group :mysql do
    gem "mysql"
    #   gem "ruby-mysql"
  end

  group :mysql2 do
56
    gem "mysql2", "~> 0.2.7"
Gregor Schmidt's avatar
Gregor Schmidt committed
57
  end
58

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

65
platforms :mri_18, :mingw_18 do
Gregor Schmidt's avatar
Gregor Schmidt committed
66 67
  group :sqlite do
    gem "sqlite3-ruby", "< 1.3", :require => "sqlite3"
68 69 70
  end
end

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

platforms :jruby do
  gem "jruby-openssl"

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

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

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

93 94 95 96 97 98 99
# 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
100 101
# Load plugins' Gemfiles
Dir.glob File.expand_path("../vendor/plugins/*/Gemfile", __FILE__) do |file|
102
  puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
Gregor Schmidt's avatar
Gregor Schmidt committed
103 104
  instance_eval File.read(file)
end