Skip to content

Commit

Permalink
📝 Gemfile is for local dev only
Browse files Browse the repository at this point in the history
  • Loading branch information
pboling committed Dec 17, 2022
1 parent 13bf8c9 commit a39ee39
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 43 deletions.
64 changes: 34 additions & 30 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,38 +10,42 @@ source 'https://rubygems.org'
# Specify your gem's dependencies in dynamoid.gemspec
gemspec

ruby_version = Gem::Version.new(RUBY_VERSION)
minimum_version = ->(version, engine = 'ruby') { ruby_version >= Gem::Version.new(version) && RUBY_ENGINE == engine }
committing = minimum_version.call('2.4')
linting = minimum_version.call('2.7')
coverage = minimum_version.call('2.7')
# 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) && RUBY_ENGINE == 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'
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
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 :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'
platforms :ruby do
gem 'pry-byebug'
end
end
72 changes: 59 additions & 13 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ PATH
GEM
remote: https://rubygems.org/
specs:
activemodel (5.2.8.1)
activesupport (= 5.2.8.1)
activesupport (5.2.8.1)
activemodel (7.0.4)
activesupport (= 7.0.4)
activesupport (7.0.4)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
appraisal (2.4.1)
bundler
rake
Expand All @@ -33,23 +33,33 @@ GEM
aws-sigv4 (~> 1.1)
aws-sigv4 (1.5.2)
aws-eventstream (~> 1, >= 1.0.2)
byebug (11.0.1)
byebug (11.1.3)
childprocess (4.1.0)
codecov (0.6.0)
simplecov (>= 0.15, < 0.22)
coderay (1.1.3)
concurrent-ruby (1.1.10)
diff-lcs (1.5.0)
docile (1.4.0)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
iniparse (1.5.0)
jaro_winkler (1.5.4)
jmespath (1.6.2)
json (2.6.3)
method_source (0.9.2)
minitest (5.15.0)
parallel (1.19.2)
minitest (5.16.3)
overcommit (0.59.1)
childprocess (>= 0.6.3, < 5)
iniparse (~> 1.4)
rexml (~> 3.2)
parallel (1.22.1)
parser (3.1.3.0)
ast (~> 2.4.1)
pry (0.12.2)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
pry-byebug (3.7.0)
pry-byebug (3.8.0)
byebug (~> 11.0)
pry (~> 0.10)
rainbow (3.1.1)
Expand Down Expand Up @@ -78,13 +88,37 @@ GEM
unicode-display_width (>= 1.4.0, < 2.0)
rubocop-lts (10.0.1)
rubocop-ruby2_3 (~> 1.0.3)
rubocop-md (0.4.1)
rubocop (>= 0.60)
rubocop-packaging (0.1.1)
rubocop (>= 0.75.0)
rubocop-performance (1.6.1)
rubocop (>= 0.71.0)
rubocop-rake (0.5.1)
rubocop
rubocop-rspec (1.41.0)
rubocop (>= 0.68.1)
rubocop-ruby2_3 (1.0.3)
rubocop (= 0.81.0)
rubocop-thread_safety (0.4.4)
rubocop (>= 0.53.0)
ruby-progressbar (1.11.0)
simplecov (0.21.2)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-cobertura (2.1.0)
rexml
simplecov (~> 0.19)
simplecov-html (0.12.3)
simplecov-json (0.2.3)
json
simplecov
simplecov-lcov (0.8.0)
simplecov_json_formatter (0.1.4)
thor (1.2.1)
thread_safe (0.3.6)
tzinfo (1.2.10)
thread_safe (~> 0.1)
tzinfo (2.0.5)
concurrent-ruby (~> 1.0)
unicode-display_width (1.8.0)
webrick (1.7.0)
yard (0.9.28)
Expand All @@ -98,13 +132,25 @@ PLATFORMS
DEPENDENCIES
appraisal
bundler
codecov (~> 0.6)
dynamoid!
overcommit
pry (~> 0.12.0)
pry-byebug
pry-debugger-jruby
rake (~> 13.0)
rspec (~> 3.12)
rubocop-lts (~> 10.0)
rubocop-md
rubocop-packaging
rubocop-performance
rubocop-rake
rubocop-rspec
rubocop-thread_safety
simplecov (~> 0.21)
simplecov-cobertura
simplecov-json
simplecov-lcov (~> 0.8)
yard

BUNDLED WITH
Expand Down

0 comments on commit a39ee39

Please sign in to comment.