Project

General

Profile

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

    
3
ruby '>= 3.1.0', '< 3.4.0'
4

    
5
gem 'rails', '7.2.2.1'
6
gem 'rouge', '~> 4.5'
7
gem 'mini_mime', '~> 1.1.0'
8
gem "actionpack-xml_parser"
9
gem 'roadie-rails', '~> 3.3.0'
10
gem 'marcel'
11
gem 'mail', '~> 2.8.1'
12
gem 'nokogiri', '~> 1.18.3'
13
gem 'i18n', '~> 1.14.1'
14
gem 'rbpdf', '~> 1.21.3'
15
gem 'addressable'
16
gem 'rubyzip', '~> 2.4.0'
17
gem 'propshaft', '~> 1.1.0'
18
gem 'rack', '>= 3.1.3'
19

    
20
#  Ruby Standard Gems
21
gem 'csv', '~> 3.2.8'
22
gem 'net-imap', '~> 0.4.8'
23
gem 'net-pop', '~> 0.1.2'
24
gem 'net-smtp', '~> 0.4.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', '~> 5.1.0'
45
end
46

    
47
# Optional CommonMark support, not for JRuby
48
group :common_mark do
49
  gem "commonmarker", '~> 1.1.0'
50
  gem 'deckar01-task_list', '2.3.2'
51
end
52

    
53
# Include database gems for the adapters found in the database
54
# configuration file
55
database_file = File.join(File.dirname(__FILE__), "config/database.yml")
56
if File.exist?(database_file)
57
  database_config = File.read(database_file)
58

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

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

    
93
group :development, :test do
94
  gem 'debug'
95
end
96

    
97
group :development do
98
  gem 'listen', '~> 3.3'
99
  gem 'yard', require: false
100
  gem 'svg_sprite', require: false
101
end
102

    
103
group :test do
104
  gem "rails-dom-testing"
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
  gem 'selenium-webdriver', '>= 4.11.0'
112
  # RuboCop
113
  gem 'rubocop', '~> 1.69.0', require: false
114
  gem 'rubocop-performance', '~> 1.23.0', require: false
115
  gem 'rubocop-rails', '~> 2.29.0', require: false
116
  gem 'bundle-audit', require: false
117
end
118

    
119
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
120
if File.exist?(local_gemfile)
121
  eval_gemfile local_gemfile
122
end
123

    
124
# Load plugins' Gemfiles
125
Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
126
  eval_gemfile file
127
end
(8-8/14)