Skip to content

Commit

Permalink
Workaround for installation error of BigDecimal 3.1.5 in JRuby
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Dec 13, 2023
1 parent 43d7d73 commit 496fa6d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,19 @@ gem 'simplecov'
gem 'test-queue'
gem 'yard', '~> 0.9'

group :test do
# FIXME: This is a workaround for installation error of BigDecimal 3.1.5 in JRuby:
#
# ```
# Installing bigdecimal 3.1.5 with native extensions
# Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
# ```
#
# https://github.com/rubocop/rubocop-rails/actions/runs/7192052922/job/19587776909
#
# See: https://github.com/ruby/bigdecimal/issues/279
gem 'bigdecimal', '< 3.1.5', platform: :jruby
end

local_gemfile = File.expand_path('Gemfile.local', __dir__)
eval_gemfile local_gemfile if File.exist?(local_gemfile)

0 comments on commit 496fa6d

Please sign in to comment.