-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathGemfile
More file actions
72 lines (61 loc) · 1.45 KB
/
Gemfile
File metadata and controls
72 lines (61 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# frozen_string_literal: true
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
if ENV["DEVEL"] == "1"
gem "active_storage_db", path: "./"
else
gemspec
end
ruby_ver = ENV.fetch("RUBY_VERSION", "")
rails_ver = ENV.fetch("RAILS_VERSION", "")
rails =
if rails_ver.empty?
["rails"]
elsif rails_ver.count(".") < 2
["rails", "~> #{rails_ver}"]
else
["rails", rails_ver]
end
gem(*rails)
ruby32 = ruby_ver.empty? || Gem::Version.new(ruby_ver) >= Gem::Version.new("3.2")
gem "zeitwerk", "~> 2.6.18" unless ruby32
# DB driver
case ENV.fetch("DB_TEST", nil)
when "mssql"
gem "activerecord-sqlserver-adapter"
gem "tiny_tds"
when "mysql"
gem "mysql2"
when "postgres"
gem "pg"
else
rails72 = rails_ver.empty? || Gem::Version.new(rails_ver) >= Gem::Version.new("7.2")
sqlite3 = ruby32 && rails72 ? ["sqlite3"] : ["sqlite3", "~> 1.4"]
gem(*sqlite3)
end
# NOTE: to avoid error: uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger
gem "concurrent-ruby", "1.3.4"
gem "bigdecimal"
gem "bullet"
gem "image_processing", ">= 1.2"
gem "mutex_m"
gem "puma"
gem "sprockets-rails"
# Testing
gem "capybara"
gem "factory_bot_rails"
gem "rspec_junit_formatter"
gem "rspec-rails"
gem "selenium-webdriver"
gem "simplecov"
gem "simplecov-lcov"
# Linters
gem "brakeman"
gem "fasterer"
gem "rubocop"
gem "rubocop-packaging"
gem "rubocop-performance"
gem "rubocop-rails"
gem "rubocop-rspec"
# Tools
gem "pry-rails"