Project

General



Profile

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

    
3
gem "rails", "4.1.4"
4
gem "jquery-rails", "~> 2.0.2"
5
gem "coderay", "~> 1.1.0"
6
gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby]
7
gem "builder", ">= 3.0.4"
8
gem "request_store", "1.0.5"
9
gem "mime-types"
10
gem "protected_attributes"
11
gem "actionpack-action_caching"
12

    
13
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
14
gem 'tzinfo-data', platforms: [:mingw, :mswin, :jruby]
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
    gem "rmagick", ">= 2.0.0"
31
  end
32

    
33
  # Optional Markdown support, not for JRuby
34
  group :markdown do
35
    gem "redcarpet", "~> 3.1.2"
36
  end
37
end
38

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

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

    
82
group :development do
83
  gem "rdoc", ">= 2.4.2"
84
  gem "yard"
85
end
86

    
87
group :test do
88
  gem "minitest"
89
  gem "shoulda"
90
  gem "shoulda-context"
91
  gem "mocha", :require => 'mocha/api'
92
  # For running UI tests
93
  gem "capybara", "~> 2.1.0"
94
  gem "selenium-webdriver"
95
end
96

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

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