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