|
1 | 1 | # frozen_string_literal: true |
2 | 2 |
|
3 | | -source 'https://rubygems.org' |
4 | | - |
5 | | -gemspec |
| 3 | +source "https://rubygems.org" |
6 | 4 |
|
7 | 5 | git_source(:github) { |repo_name| "https://github.com/#{repo_name}" } |
8 | 6 | git_source(:gitlab) { |repo_name| "https://gitlab.com/#{repo_name}" } |
9 | 7 |
|
10 | | -gem 'rake', '~> 13.0' |
11 | | - |
12 | | -gem 'rspec', '~> 3.0' |
13 | | - |
14 | | -ruby_version = Gem::Version.new(RUBY_VERSION) |
15 | | -minimum_version = ->(version, engine = 'ruby') { ruby_version >= Gem::Version.new(version) && RUBY_ENGINE == engine } |
16 | | -linting = minimum_version.call('2.7') |
17 | | -coverage = minimum_version.call('2.7') |
18 | | -debug = minimum_version.call('2.5') |
19 | | - |
20 | | -gem 'overcommit', '~> 0.58' if linting |
21 | | - |
22 | | -platforms :mri do |
23 | | - if linting |
24 | | - # Danger is incompatible with Faraday 2 (for now) |
25 | | - # see: https://github.com/danger/danger/issues/1349 |
26 | | - # gem 'danger', '~> 8.4' |
27 | | - # Commented out rubocop-md because of the <--rubocop/md--> bug |
28 | | - # gem 'rubocop-md', require: false |
29 | | - # Can be added once we reach rubocop-lts >= v10 (i.e. drop Ruby 2.2) |
30 | | - # gem 'rubocop-packaging', require: false |
31 | | - gem 'rubocop-performance', require: false |
32 | | - gem 'rubocop-rake', require: false |
33 | | - gem 'rubocop-rspec', require: false |
34 | | - gem 'rubocop-thread_safety', require: false |
35 | | - end |
36 | | - if coverage |
37 | | - gem 'codecov', '~> 0.6' # For CodeCov |
38 | | - gem 'simplecov', '~> 0.21', require: false |
39 | | - gem 'simplecov-cobertura' # XML for Jenkins |
40 | | - gem 'simplecov-json' # For CodeClimate |
41 | | - gem 'simplecov-lcov', '~> 0.8', require: false |
42 | | - end |
43 | | - if debug |
44 | | - # Add `byebug` to your code where you want to drop to REPL |
45 | | - gem 'byebug' |
46 | | - end |
47 | | -end |
48 | | -platforms :jruby do |
49 | | - # Add `binding.pry` to your code where you want to drop to REPL |
50 | | - gem 'pry-debugger-jruby' |
51 | | -end |
| 8 | +#### IMPORTANT ####################################################### |
| 9 | +# Gemfile is for local development ONLY; Gemfile is NOT loaded in CI # |
| 10 | +####################################################### IMPORTANT #### |
| 11 | + |
| 12 | +# Include dependencies from <gem name>.gemspec |
| 13 | +gemspec |
52 | 14 |
|
53 | | -### deps for documentation and rdoc.info |
54 | | -group :documentation do |
55 | | - gem 'github-markup', platform: :mri |
56 | | - gem 'redcarpet', platform: :mri |
57 | | - gem 'yard', require: false |
| 15 | +platform :mri do |
| 16 | + # Use binding.break, binding.b, or debugger in code |
| 17 | + gem "debug", ">= 1.0.0" # ruby >= 2.7 |
| 18 | + gem "gem_bench", "~> 2.0", ">= 2.0.5" |
58 | 19 | end |
| 20 | + |
| 21 | +# Security Audit |
| 22 | +eval_gemfile "gemfiles/modular/audit.gemfile" |
| 23 | + |
| 24 | +# Code Coverage |
| 25 | +eval_gemfile "gemfiles/modular/coverage.gemfile" |
| 26 | + |
| 27 | +# Linting |
| 28 | +eval_gemfile "gemfiles/modular/style.gemfile" |
| 29 | + |
| 30 | +# Documentation |
| 31 | +eval_gemfile "gemfiles/modular/documentation.gemfile" |
0 commit comments