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