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