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