Project

General

Profile

Redmine 500 internal error Check Help » Gemfile

li an, 2014-11-19 03:31

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

    
3
gem 'mongrel', '1.2.0.pre2'
4
gem 'auto_bundle_install', '~> 0.0.6'
5
gem 'watchr', '~> 0.7'
6
gem "rails", "3.2.13"
7
gem "jquery-rails", "~> 2.0.2"
8
gem "i18n", "~> 0.6.0"
9
gem "coderay", "~> 1.0.9"
10
gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby]
11
gem "builder", "3.0.0"
12

    
13
# Optional gem for LDAP authentication
14
group :ldap do
15
  gem "net-ldap", "~> 0.3.1"
16
end
17

    
18
# Optional gem for OpenID authentication
19
group :openid do
20
  gem "ruby-openid", "~> 2.1.4", :require => "openid"
21
  gem "rack-openid"
22
end
23

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

    
34
platforms :jruby do
35
  # jruby-openssl is bundled with JRuby 1.7.0
36
  gem "jruby-openssl" if Object.const_defined?(:JRUBY_VERSION) && JRUBY_VERSION < '1.7.0'
37
  gem "activerecord-jdbc-adapter", "1.2.5"
38
end
39

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

    
77
group :development do
78
  #gem "rdoc", ">= 2.4.2"
79
  #gem "yard"
80
end
81

    
82
group :test do
83
  #gem "shoulda", "~> 3.3.2"
84
  #gem "mocha", "~> 0.13.3"
85
  #gem 'capybara', '~> 2.0.0'
86
  gem 'nokogiri', '< 1.6.0'
87
end
88

    
89
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
90
if File.exists?(local_gemfile)
91
  puts "Loading Gemfile.local ..." if $DEBUG # `ruby -d` or `bundle -v`
92
  instance_eval File.read(local_gemfile)
93
end
94

    
95
# Load plugins' Gemfiles
96
Dir.glob File.expand_path("../plugins/*/Gemfile", __FILE__) do |file|
97
  puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
98
  instance_eval File.read(file)
99
end
100

    
101
gem "thin"
(3-3/3)