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