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