##// END OF EJS Templates
Merged r16167 from trunk to 3.3-stable....
Toshi MARUYAMA -
r15786:cb8aaf197465
parent child
Show More
@@ -1,119 +1,118
1 source 'https://rubygems.org'
1 source 'https://rubygems.org'
2
2
3 if Gem::Version.new(Bundler::VERSION) < Gem::Version.new('1.5.0')
3 if Gem::Version.new(Bundler::VERSION) < Gem::Version.new('1.5.0')
4 abort "Redmine requires Bundler 1.5.0 or higher (you're using #{Bundler::VERSION}).\nPlease update with 'gem update bundler'."
4 abort "Redmine requires Bundler 1.5.0 or higher (you're using #{Bundler::VERSION}).\nPlease update with 'gem update bundler'."
5 end
5 end
6
6
7 gem "rails", "4.2.7.1"
7 gem "rails", "4.2.7.1"
8 gem "addressable", "2.4.0" if RUBY_VERSION < "2.0"
8 gem "addressable", "2.4.0" if RUBY_VERSION < "2.0"
9 gem "jquery-rails", "~> 3.1.4"
9 gem "jquery-rails", "~> 3.1.4"
10 gem "coderay", "~> 1.1.1"
10 gem "coderay", "~> 1.1.1"
11 gem "builder", ">= 3.0.4"
11 gem "builder", ">= 3.0.4"
12 gem "request_store", "1.0.5"
12 gem "request_store", "1.0.5"
13 gem "mime-types", (RUBY_VERSION >= "2.0" ? "~> 3.0" : "~> 2.99")
13 gem "mime-types", (RUBY_VERSION >= "2.0" ? "~> 3.0" : "~> 2.99")
14 gem "protected_attributes"
14 gem "protected_attributes"
15 gem "actionpack-action_caching"
15 gem "actionpack-action_caching"
16 gem "actionpack-xml_parser"
16 gem "actionpack-xml_parser"
17 gem "roadie-rails"
17 gem "roadie-rails"
18 gem "mimemagic"
18 gem "mimemagic"
19
19
20 # Request at least nokogiri 1.6.7.2 because of security advisories
20 gem "nokogiri", "~> 1.6.8"
21 gem "nokogiri", ">= 1.6.7.2"
22
21
23 # Request at least rails-html-sanitizer 1.0.3 because of security advisories
22 # Request at least rails-html-sanitizer 1.0.3 because of security advisories
24 gem "rails-html-sanitizer", ">= 1.0.3"
23 gem "rails-html-sanitizer", ">= 1.0.3"
25
24
26 # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
25 # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
27 gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin, :jruby]
26 gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin, :jruby]
28 gem "rbpdf", "~> 1.19.0"
27 gem "rbpdf", "~> 1.19.0"
29
28
30 # Optional gem for LDAP authentication
29 # Optional gem for LDAP authentication
31 group :ldap do
30 group :ldap do
32 gem "net-ldap", "~> 0.12.0"
31 gem "net-ldap", "~> 0.12.0"
33 end
32 end
34
33
35 # Optional gem for OpenID authentication
34 # Optional gem for OpenID authentication
36 group :openid do
35 group :openid do
37 gem "ruby-openid", "~> 2.3.0", :require => "openid"
36 gem "ruby-openid", "~> 2.3.0", :require => "openid"
38 gem "rack-openid"
37 gem "rack-openid"
39 end
38 end
40
39
41 platforms :mri, :mingw, :x64_mingw do
40 platforms :mri, :mingw, :x64_mingw do
42 # Optional gem for exporting the gantt to a PNG file, not supported with jruby
41 # Optional gem for exporting the gantt to a PNG file, not supported with jruby
43 group :rmagick do
42 group :rmagick do
44 gem "rmagick", ">= 2.14.0"
43 gem "rmagick", ">= 2.14.0"
45 end
44 end
46
45
47 # Optional Markdown support, not for JRuby
46 # Optional Markdown support, not for JRuby
48 group :markdown do
47 group :markdown do
49 gem "redcarpet", "~> 3.3.2"
48 gem "redcarpet", "~> 3.3.2"
50 end
49 end
51 end
50 end
52
51
53 platforms :jruby do
52 platforms :jruby do
54 # jruby-openssl is bundled with JRuby 1.7.0
53 # jruby-openssl is bundled with JRuby 1.7.0
55 gem "jruby-openssl" if Object.const_defined?(:JRUBY_VERSION) && JRUBY_VERSION < '1.7.0'
54 gem "jruby-openssl" if Object.const_defined?(:JRUBY_VERSION) && JRUBY_VERSION < '1.7.0'
56 gem "activerecord-jdbc-adapter", "~> 1.3.2"
55 gem "activerecord-jdbc-adapter", "~> 1.3.2"
57 end
56 end
58
57
59 # Include database gems for the adapters found in the database
58 # Include database gems for the adapters found in the database
60 # configuration file
59 # configuration file
61 require 'erb'
60 require 'erb'
62 require 'yaml'
61 require 'yaml'
63 database_file = File.join(File.dirname(__FILE__), "config/database.yml")
62 database_file = File.join(File.dirname(__FILE__), "config/database.yml")
64 if File.exist?(database_file)
63 if File.exist?(database_file)
65 database_config = YAML::load(ERB.new(IO.read(database_file)).result)
64 database_config = YAML::load(ERB.new(IO.read(database_file)).result)
66 adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
65 adapters = database_config.values.map {|c| c['adapter']}.compact.uniq
67 if adapters.any?
66 if adapters.any?
68 adapters.each do |adapter|
67 adapters.each do |adapter|
69 case adapter
68 case adapter
70 when 'mysql2'
69 when 'mysql2'
71 gem "mysql2", "~> 0.3.11", :platforms => [:mri, :mingw, :x64_mingw]
70 gem "mysql2", "~> 0.3.11", :platforms => [:mri, :mingw, :x64_mingw]
72 gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
71 gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
73 when 'mysql'
72 when 'mysql'
74 gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
73 gem "activerecord-jdbcmysql-adapter", :platforms => :jruby
75 when /postgresql/
74 when /postgresql/
76 gem "pg", "~> 0.18.1", :platforms => [:mri, :mingw, :x64_mingw]
75 gem "pg", "~> 0.18.1", :platforms => [:mri, :mingw, :x64_mingw]
77 gem "activerecord-jdbcpostgresql-adapter", :platforms => :jruby
76 gem "activerecord-jdbcpostgresql-adapter", :platforms => :jruby
78 when /sqlite3/
77 when /sqlite3/
79 gem "sqlite3", :platforms => [:mri, :mingw, :x64_mingw]
78 gem "sqlite3", :platforms => [:mri, :mingw, :x64_mingw]
80 gem "jdbc-sqlite3", ">= 3.8.10.1", :platforms => :jruby
79 gem "jdbc-sqlite3", ">= 3.8.10.1", :platforms => :jruby
81 gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby
80 gem "activerecord-jdbcsqlite3-adapter", :platforms => :jruby
82 when /sqlserver/
81 when /sqlserver/
83 gem "tiny_tds", "~> 0.6.2", :platforms => [:mri, :mingw, :x64_mingw]
82 gem "tiny_tds", "~> 0.6.2", :platforms => [:mri, :mingw, :x64_mingw]
84 gem "activerecord-sqlserver-adapter", :platforms => [:mri, :mingw, :x64_mingw]
83 gem "activerecord-sqlserver-adapter", :platforms => [:mri, :mingw, :x64_mingw]
85 else
84 else
86 warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
85 warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
87 end
86 end
88 end
87 end
89 else
88 else
90 warn("No adapter found in config/database.yml, please configure it first")
89 warn("No adapter found in config/database.yml, please configure it first")
91 end
90 end
92 else
91 else
93 warn("Please configure your config/database.yml first")
92 warn("Please configure your config/database.yml first")
94 end
93 end
95
94
96 group :development do
95 group :development do
97 gem "rdoc", "~> 4.3"
96 gem "rdoc", "~> 4.3"
98 gem "yard"
97 gem "yard"
99 end
98 end
100
99
101 group :test do
100 group :test do
102 gem "minitest"
101 gem "minitest"
103 gem "rails-dom-testing"
102 gem "rails-dom-testing"
104 gem "mocha"
103 gem "mocha"
105 gem "simplecov", "~> 0.9.1", :require => false
104 gem "simplecov", "~> 0.9.1", :require => false
106 # For running UI tests
105 # For running UI tests
107 gem "capybara"
106 gem "capybara"
108 gem "selenium-webdriver", "~> 2.53.4"
107 gem "selenium-webdriver", "~> 2.53.4"
109 end
108 end
110
109
111 local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
110 local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
112 if File.exists?(local_gemfile)
111 if File.exists?(local_gemfile)
113 eval_gemfile local_gemfile
112 eval_gemfile local_gemfile
114 end
113 end
115
114
116 # Load plugins' Gemfiles
115 # Load plugins' Gemfiles
117 Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
116 Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
118 eval_gemfile file
117 eval_gemfile file
119 end
118 end
General Comments 0
You need to be logged in to leave comments. Login now