Skip to content

Commit

Permalink
Merge pull request #252 from nobu/spec-in-helper
Browse files Browse the repository at this point in the history
Reuse the gemspec read by `Bundler::GemHelper`
  • Loading branch information
nobu committed Feb 19, 2023
2 parents 829956c + 7d312d7 commit 6cedc8f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ require "rake"
require "rake/extensiontask"
require "rake/testtask"

spec = eval(File.read('bigdecimal.gemspec'))
if RUBY_ENGINE == 'jruby'
# JRuby's extension is included with JRuby currently
task :compile do; end
else
Rake::ExtensionTask.new('bigdecimal', spec)
Rake::ExtensionTask.new('bigdecimal', Bundler::GemHelper.gemspec)
end

Rake::TestTask.new do |t|
Expand Down

0 comments on commit 6cedc8f

Please sign in to comment.