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