To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / Gemfile @ 1566:ac2e4a54a6a6

History | View | Annotate | Download (3.58 KB)

1
source 'https://rubygems.org'
2

    
3
gem "rails", "~> 3.2.22"
4
gem "rake", "~> 10.1.1"
5
gem "jquery-rails", "~> 2.0.2"
6
gem "coderay", "~> 1.1.0"
7
gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby]
8
gem "builder", "3.0.0"
9
gem "mime-types"
10
gem "awesome_nested_set", "2.1.6"
11

    
12
#cc -- CiteProc v1.0.0 broke our citations (CiteProc.process returns nil).
13
# Until I've managed to work out what's up and fix that...
14
gem "citeproc", "0.0.6"
15

    
16
# Optional gem for LDAP authentication
17
group :ldap do
18
  gem "net-ldap", "~> 0.3.1"
19
end
20

    
21
# Optional gem for OpenID authentication
22
group :openid do
23
  gem "ruby-openid", "~> 2.3.0", :require => "openid"
24
  gem "rack-openid"
25
end
26

    
27
platforms :mri, :mingw do
28
  # Optional gem for exporting the gantt to a PNG file, not supported with jruby
29
  group :rmagick do
30
    # RMagick 2 supports ruby 1.9
31
    # RMagick 1 would be fine for ruby 1.8 but Bundler does not support
32
    # different requirements for the same gem on different platforms
33
    gem "rmagick", ">= 2.0.0"
34
  end
35

    
36
  # Optional Markdown support, not for JRuby
37
  group :markdown do
38
    # TODO: upgrade to redcarpet 3.x when ruby1.8 support is dropped
39
    gem "redcarpet", "~> 2.3.0"
40
  end
41
end
42

    
43
platforms :jruby do
44
  # jruby-openssl is bundled with JRuby 1.7.0
45
  gem "jruby-openssl" if Object.const_defined?(:JRUBY_VERSION) && JRUBY_VERSION < '1.7.0'
46
  gem "activerecord-jdbc-adapter", "~> 1.3.2"
47
end
48

    
49
# Include database gems for the adapters found in the database
50
# configuration file
51
require 'erb'
52
require 'yaml'
53
database_file = File.join(File.dirname(__FILE__), "config/database.yml")
54
if File.exist?(database_file)
55
  database_config = YAML::load(ERB.new(IO.read(database_file)).result)
56
  adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
57
  if adapters.any?
58
    adapters.each do |adapter|
59
      case adapter
60
      when 'mysql2'
61
        gem "mysql2", "~> 0.3.11", :platforms => [:mri, :mingw]
62
        gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
63
      when 'mysql'
64
        gem "mysql", "~> 2.8.1", :platforms => [:mri, :mingw]
65
        gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
66
      when /postgresql/
67
        gem "pg", ">= 0.11.0", :platforms => [:mri, :mingw]
68
        gem "activerecord-jdbcpostgresql-adapter", :platforms => :jruby
69
      when /sqlite3/
70
        gem "sqlite3", :platforms => [:mri, :mingw]
71
        gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby
72
      when /sqlserver/
73
        gem "tiny_tds", "~> 0.5.1", :platforms => [:mri, :mingw]
74
        gem "activerecord-sqlserver-adapter", :platforms => [:mri, :mingw]
75
      else
76
        warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
77
      end
78
    end
79
  else
80
    warn("No adapter found in config/database.yml, please configure it first")
81
  end
82
else
83
  warn("Please configure your config/database.yml first")
84
end
85

    
86
group :development do
87
  gem "rdoc", ">= 2.4.2"
88
  gem "yard"
89
end
90

    
91
group :test do
92
  gem "shoulda", "~> 3.3.2"
93
  gem "mocha", "~> 1.0.0", :require => 'mocha/api'
94
  if RUBY_VERSION >= '1.9.3'
95
    gem "capybara", "~> 2.1.0"
96
    gem "selenium-webdriver"
97
  end
98
end
99

    
100
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
101
if File.exists?(local_gemfile)
102
  puts "Loading Gemfile.local ..." if $DEBUG # `ruby -d` or `bundle -v`
103
  instance_eval File.read(local_gemfile)
104
end
105

    
106
# Load plugins' Gemfiles
107
Dir.glob File.expand_path("../plugins/*/Gemfile", __FILE__) do |file|
108
  puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
109
  #TODO: switch to "eval_gemfile file" when bundler >= 1.2.0 will be required (rails 4)
110
  instance_eval File.read(file), file
111
end