forked from solidusio/solidus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gemfile
85 lines (69 loc) · 2.93 KB
/
Gemfile
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
73
74
75
76
77
78
79
80
81
82
83
84
85
# frozen_string_literal: true
source 'https://rubygems.org'
gemspec require: false
# rubocop:disable Bundler/DuplicatedGem
if ENV['RAILS_VERSION'] == 'master'
gem 'rails', github: 'rails', require: false
else
gem 'rails', ENV['RAILS_VERSION'] || '~> 7.0.2', require: false
end
# rubocop:enable Bundler/DuplicatedGem
# Temporarily locking sprockets to v3.x
# see https://github.com/solidusio/solidus/issues/3374
# and https://github.com/rails/sprockets-rails/issues/369
gem 'sprockets', '~> 3'
dbs = ENV['DB_ALL'] ? 'all' : ENV.fetch('DB', 'sqlite')
gem 'mysql2', '~> 0.5.0', require: false if dbs.match?(/all|mysql/)
gem 'pg', '~> 1.0', require: false if dbs.match?(/all|postgres/)
gem 'fast_sqlite', require: false if dbs.match?(/all|sqlite/)
gem 'database_cleaner', '~> 1.3', require: false
gem 'rspec-activemodel-mocks', '~> 1.1', require: false
gem 'rspec-rails', '~> 4.0.1', require: false
gem 'rspec-retry', '~> 0.6.2', require: false
gem 'simplecov', require: false
gem 'simplecov-cobertura', require: false
gem 'rails-controller-testing', require: false
gem 'puma', '< 6', require: false
gem 'i18n-tasks', '~> 0.9', require: false
# Ensure the requirement is also updated in core/lib/spree/testing_support/factory_bot.rb
gem 'factory_bot_rails', '>= 4.8', require: false
group :backend do
# 'net/http' is required by 'capybara/server', triggering
# a few "already initialized constant" warnings when loaded
# from default gems. See:
# - https://github.com/ruby/net-protocol/issues/10
# - https://stackoverflow.com/a/72474475
v = ->(string) { Gem::Version.new(string) }
if Gem::Requirement.new(['>= 2.7', '< 3']) === Gem::Version.new(RUBY_VERSION)
gem 'net-http', require: false
end
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('3')
# Need to explicitly declare gems when using ruby 3.0 with older versions of rails. Can be removed when mail 2.8.0 is released.
# - https://bugs.ruby-lang.org/issues/17873
# - https://stackoverflow.com/a/72474475
gem 'net-smtp', require: false
gem 'net-imap', require: false
gem 'net-pop', require: false
end
gem 'capybara', '~> 3.13', require: false
gem 'capybara-screenshot', '>= 1.0.18', require: false
gem 'selenium-webdriver', require: false
gem 'webdrivers', require: false
# JavaScript testing
gem 'teaspoon', github: 'jejacks0n/teaspoon', require: false
gem 'teaspoon-mocha', github: 'jejacks0n/teaspoon', require: false
gem 'webrick', require: false
end
group :utils do
gem 'pry'
gem 'launchy', require: false
gem 'rubocop', '~> 0.75.0', require: false
gem 'rubocop-performance', '~> 1.4', require: false
gem 'rubocop-rails', '~> 2.3', require: false
gem 'gem-release', require: false
end
gem 'rspec_junit_formatter', require: false, group: :ci
# Documentation
gem 'yard', require: false, group: :docs
custom_gemfile = File.expand_path('Gemfile-custom', __dir__)
eval File.read(custom_gemfile), nil, custom_gemfile, 0 if File.exist?(custom_gemfile)