##// END OF EJS Templates
Merged r13117 from trunk to 2.4-stable (#16685)...
Toshi MARUYAMA -
r12844:8e50e4940b96
parent child
Show More
@@ -1,101 +1,101
1 1 source 'https://rubygems.org'
2 2
3 3 gem "rails", "3.2.17"
4 4 gem "rake", "~> 10.1.1"
5 5 gem "jquery-rails", "~> 2.0.2"
6 6 gem "coderay", "~> 1.1.0"
7 7 gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby]
8 8 gem "builder", "3.0.0"
9 9 gem "request_store"
10 10
11 11 # Optional gem for LDAP authentication
12 12 group :ldap do
13 13 gem "net-ldap", "~> 0.3.1"
14 14 end
15 15
16 16 # Optional gem for OpenID authentication
17 17 group :openid do
18 18 gem "ruby-openid", "~> 2.3.0", :require => "openid"
19 19 gem "rack-openid"
20 20 end
21 21
22 22 # Optional gem for exporting the gantt to a PNG file, not supported with jruby
23 23 platforms :mri, :mingw do
24 24 group :rmagick do
25 25 # RMagick 2 supports ruby 1.9
26 26 # RMagick 1 would be fine for ruby 1.8 but Bundler does not support
27 27 # different requirements for the same gem on different platforms
28 28 gem "rmagick", ">= 2.0.0"
29 29 end
30 30 end
31 31
32 32 platforms :jruby do
33 33 # jruby-openssl is bundled with JRuby 1.7.0
34 34 gem "jruby-openssl" if Object.const_defined?(:JRUBY_VERSION) && JRUBY_VERSION < '1.7.0'
35 35 gem "activerecord-jdbc-adapter", "~> 1.3.2"
36 36 end
37 37
38 38 # Include database gems for the adapters found in the database
39 39 # configuration file
40 40 require 'erb'
41 41 require 'yaml'
42 42 database_file = File.join(File.dirname(__FILE__), "config/database.yml")
43 43 if File.exist?(database_file)
44 44 database_config = YAML::load(ERB.new(IO.read(database_file)).result)
45 45 adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
46 46 if adapters.any?
47 47 adapters.each do |adapter|
48 48 case adapter
49 49 when 'mysql2'
50 50 gem "mysql2", "~> 0.3.11", :platforms => [:mri, :mingw]
51 51 gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
52 52 when 'mysql'
53 53 gem "mysql", "~> 2.8.1", :platforms => [:mri, :mingw]
54 54 gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
55 55 when /postgresql/
56 56 gem "pg", ">= 0.11.0", :platforms => [:mri, :mingw]
57 57 gem "activerecord-jdbcpostgresql-adapter", :platforms => :jruby
58 58 when /sqlite3/
59 59 gem "sqlite3", :platforms => [:mri, :mingw]
60 60 gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby
61 61 when /sqlserver/
62 62 gem "tiny_tds", "~> 0.5.1", :platforms => [:mri, :mingw]
63 63 gem "activerecord-sqlserver-adapter", :platforms => [:mri, :mingw]
64 64 else
65 65 warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
66 66 end
67 67 end
68 68 else
69 69 warn("No adapter found in config/database.yml, please configure it first")
70 70 end
71 71 else
72 72 warn("Please configure your config/database.yml first")
73 73 end
74 74
75 75 group :development do
76 76 gem "rdoc", ">= 2.4.2"
77 77 gem "yard"
78 78 end
79 79
80 80 group :test do
81 81 gem "shoulda", "~> 3.3.2"
82 gem "mocha", ">= 0.14", :require => 'mocha/api'
82 gem "mocha", "~> 1.0.0", :require => 'mocha/api'
83 83 if RUBY_VERSION >= '1.9.3'
84 84 gem "capybara", "~> 2.1.0"
85 85 gem "selenium-webdriver"
86 86 gem "database_cleaner"
87 87 end
88 88 end
89 89
90 90 local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
91 91 if File.exists?(local_gemfile)
92 92 puts "Loading Gemfile.local ..." if $DEBUG # `ruby -d` or `bundle -v`
93 93 instance_eval File.read(local_gemfile)
94 94 end
95 95
96 96 # Load plugins' Gemfiles
97 97 Dir.glob File.expand_path("../plugins/*/Gemfile", __FILE__) do |file|
98 98 puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
99 99 #TODO: switch to "eval_gemfile file" when bundler >= 1.2.0 will be required (rails 4)
100 100 instance_eval File.read(file), file
101 101 end
General Comments 0
You need to be logged in to leave comments. Login now