Project

General

Profile

1
source 'https://rubygems.org'
2

    
3
ruby '>= 2.7.0', '< 3.3.0'
4

    
5
gem 'rails', '6.1.7.10'
6
gem 'rouge', '~> 4.2.0'
7
gem 'request_store', '~> 1.5.0'
8
gem 'mini_mime', '~> 1.1.0'
9
gem "actionpack-xml_parser"
10
gem 'roadie-rails', '~> 3.1.0'
11
gem 'marcel'
12
gem 'mail', '~> 2.8.1'
13
gem 'nokogiri', Gem.ruby_version >= Gem::Version.new('3.1') ? '1.18.3' : '~> 1.15.7'
14
gem 'i18n', '~> 1.14.1'
15
gem 'rbpdf', '~> 1.21.3'
16
gem 'addressable'
17
gem 'rubyzip', '~> 2.3.0'
18

    
19
#  Ruby Standard Gems
20
gem 'csv', '~> 3.2.6'
21
gem 'net-imap', '~> 0.3.9'
22
gem 'net-pop', '~> 0.1.2'
23
gem 'net-smtp', '~> 0.3.3'
24
gem 'rexml', require: false if Gem.ruby_version >= Gem::Version.new('3.0')
25

    
26
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
27
gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin]
28

    
29
# TOTP-based 2-factor authentication
30
gem 'rotp', '>= 5.0.0'
31
gem 'rqrcode'
32

    
33
# HTML pipeline and sanitization
34
gem "html-pipeline", "~> 2.13.2"
35
gem "sanitize", "~> 6.0"
36

    
37
# Optional gem for LDAP authentication
38
group :ldap do
39
  gem 'net-ldap', '~> 0.17.0'
40
end
41

    
42
# Optional gem for exporting the gantt to a PNG file
43
group :minimagick do
44
  gem 'mini_magick', '~> 4.12.0'
45
end
46

    
47
# Optional Markdown support
48
group :markdown do
49
  gem 'redcarpet', '~> 3.6.0'
50
end
51

    
52
# Optional CommonMark support, not for JRuby
53
group :common_mark do
54
  gem "commonmarker", '~> 0.23.8'
55
  gem 'deckar01-task_list', '2.3.2'
56
end
57

    
58
# Include database gems for the adapters found in the database
59
# configuration file
60
database_file = File.join(File.dirname(__FILE__), "config/database.yml")
61
if File.exist?(database_file)
62
  database_config = File.read(database_file)
63

    
64
  # Requiring libraries in a Gemfile may cause Bundler warnings or
65
  # unexpected behavior, especially if multiple gem versions are available.
66
  # So, process database.yml through ERB only if it contains ERB syntax
67
  # in the adapter setting. See https://www.redmine.org/issues/41749.
68
  if database_config.match?(/^ *adapter: *<%=/)
69
    require 'erb'
70
    database_config = ERB.new(database_config).result
71
  end
72

    
73
  adapters = database_config.scan(/^ *adapter: *(.*)/).flatten.uniq
74
  if adapters.any?
75
    adapters.each do |adapter|
76
      case adapter.strip
77
      when /mysql2/
78
        gem "mysql2", "~> 0.5.0", :platforms => [:mri, :mingw, :x64_mingw]
79
        gem "with_advisory_lock"
80
      when /postgresql/
81
        gem 'pg', '~> 1.5.3', :platforms => [:mri, :mingw, :x64_mingw]
82
      when /sqlite3/
83
        gem 'sqlite3', '~> 1.6.0', :platforms => [:mri, :mingw, :x64_mingw]
84
      when /sqlserver/
85
        gem "tiny_tds", "~> 2.1.2", :platforms => [:mri, :mingw, :x64_mingw]
86
        gem "activerecord-sqlserver-adapter", "~> 6.1.0", :platforms => [:mri, :mingw, :x64_mingw]
87
      else
88
        warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
89
      end
90
    end
91
  else
92
    warn("No adapter found in config/database.yml, please configure it first")
93
  end
94
else
95
  warn("Please configure your config/database.yml first")
96
end
97

    
98
group :development do
99
  gem 'listen', '~> 3.3'
100
  gem "yard"
101
end
102

    
103
group :test do
104
  gem "rails-dom-testing", '>= 2.3.0'
105
  gem 'mocha', '>= 2.0.1'
106
  gem 'simplecov', '~> 0.22.0', :require => false
107
  gem "ffi", platforms: [:mingw, :x64_mingw, :mswin]
108
  # For running system tests
109
  gem 'puma'
110
  gem "capybara", ">= 3.39"
111
  if Gem.ruby_version < Gem::Version.new('3.0')
112
    gem "selenium-webdriver", "<= 4.9.0"
113
    gem "webdrivers", require: false
114
  else
115
    gem "selenium-webdriver", ">= 4.11.0"
116
  end
117
  # RuboCop
118
  gem 'rubocop', '~> 1.57.0', require: false
119
  gem 'rubocop-ast', '~> 1.40.0', require: false
120
  gem 'rubocop-performance', '~> 1.19.0', require: false
121
  gem 'rubocop-rails', '~> 2.22.1', require: false
122
end
123

    
124
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
125
if File.exist?(local_gemfile)
126
  eval_gemfile local_gemfile
127
end
128

    
129
# Load plugins' Gemfiles
130
Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
131
  eval_gemfile file
132
end
(8-8/14)