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