-
-
Notifications
You must be signed in to change notification settings - Fork 195
/
Gemfile
51 lines (45 loc) · 1.64 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
# NOTE: This Gemfile is only relevant to local development.
# It allows during local development:
# - code coverage reports to be generated
# - style linting to be run with RuboCop & extensions
# All CI builds use files in gemfiles/*.
source 'https://rubygems.org'
# Specify your gem's dependencies in dynamoid.gemspec
gemspec
# Only add to the set of gems from the gemspec when running on local.
# All CI jobs must use a discrete Gemfile located at gemfiles/*.gemfile. They will not use this Gemfile
if ENV['CI'].nil?
ruby_version = Gem::Version.new(RUBY_VERSION)
minimum_version = ->(version, engine = 'ruby') { ruby_version >= Gem::Version.new(version) && engine == RUBY_ENGINE }
committing = minimum_version.call('2.4')
linting = minimum_version.call('2.7')
coverage = minimum_version.call('2.7')
platforms :mri do
if committing
gem 'overcommit'
end
if linting
gem 'rubocop-md', require: false
gem 'rubocop-packaging', require: false
gem 'rubocop-performance', require: false
gem 'rubocop-rake', require: false
gem 'rubocop-rspec', require: false
gem 'rubocop-thread_safety', require: false
end
if coverage
gem 'codecov', '~> 0.6' # For CodeCov
gem 'simplecov', '~> 0.21', require: false
gem 'simplecov-cobertura' # XML for Jenkins
gem 'simplecov-json' # For CodeClimate
gem 'simplecov-lcov', '~> 0.8', require: false
end
end
platforms :jruby do
# Add `binding.pry` to your code where you want to drop to REPL
gem 'pry-debugger-jruby'
end
platforms :ruby do
gem 'pry-byebug'
end
end