Skip to content

Commit

Permalink
Build the extension
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Dec 10, 2024
1 parent 77911d9 commit 3fa1738
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ gemspec
gem "rake"
gem "test-unit"
gem "test-unit-ruby-core"
gem "ruby-core-tasks", github: "ruby/ruby-core-tasks"
5 changes: 5 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
require "bundler/gem_tasks"
require "rake/testtask"
require "ruby-core/extensiontask"

helper = Bundler::GemHelper.instance
extask = RubyCore::ExtensionTask.new(helper.gemspec)

Rake::TestTask.new(:test) do |t|
t.libs.unshift(*extask.libs)
t.libs << "test/lib"
t.ruby_opts << "-rhelper"
t.test_files = FileList["test/**/test_*.rb"]
Expand Down

0 comments on commit 3fa1738

Please sign in to comment.