-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGemfile
51 lines (38 loc) · 1.58 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
# frozen_string_literal: true
source "https://rubygems.org"
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
git_source(:gitlab) { |repo_name| "https://gitlab.com/#{repo_name}" }
#### IMPORTANT #######################################################
# Gemfile is for local development ONLY; Gemfile is NOT loaded in CI #
####################################################### IMPORTANT ####
# For Ruby version specific dependencies
ruby_version = Gem::Version.create(RUBY_VERSION)
# Include dependencies from <gem name>.gemspec
gemspec
platform :mri do
# Debugging - Ensure ENV["DEBUG"] == "true" to use debuggers within spec suite
if ruby_version < Gem::Version.create("2.7")
# Use byebug in code
gem "byebug", ">= 11"
else
# Use binding.break, binding.b, or debugger in code
gem "debug", ">= 1.0.0"
end
# Dev Console - Binding.pry - Irb replacement
gem "pry", "~> 0.14" # ruby >= 2.0
gem "reek", "~> 6.4"
end
# Security Audit
if ruby_version >= Gem::Version.create("3")
# NOTE: Audit fails on Ruby 2.7 because nokogiri has dropped support for Ruby < 3
# See: https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-r95h-9x8f-r3f7
# We can't add upgraded nokogiri here unless we are developing on Ruby 3+
eval_gemfile "gemfiles/modular/audit.gemfile"
end
# Code Coverage
eval_gemfile "gemfiles/modular/coverage.gemfile"
# Linting
eval_gemfile "gemfiles/modular/style.gemfile"
# Documentation
eval_gemfile "gemfiles/modular/documentation.gemfile"
gem "appraisal", github: "pboling/appraisal", branch: "galtzo"