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