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