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