Skip to content

Commit f623720

Browse files
committed
Use ruby-core-tasks gem
1 parent 099b87b commit f623720

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@
1010
*.bundle
1111
*.so
1212
*.dll
13+
/.build/

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ gem "bundler"
66
gem "test-unit"
77
gem "test-unit-ruby-core"
88
gem "rake"
9-
gem "rake-compiler"
9+
gem "ruby-core-tasks", github: "ruby/ruby-core-tasks"

Rakefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
require "bundler/gem_tasks"
22
require "rake/testtask"
3+
require "ruby-core/extensiontask"
34

45
if RUBY_PLATFORM.include?("s390x")
56
# Avoid possible test failures with the zlib applying the following patch on
@@ -8,14 +9,14 @@ if RUBY_PLATFORM.include?("s390x")
89
ENV["DFLTCC"] = "0"
910
end
1011

12+
extask = RubyCore::ExtensionTask.new(Bundler::GemHelper.instance.gemspec)
13+
1114
desc "Run tests"
1215
Rake::TestTask.new do |t|
1316
t.libs << "test/lib"
17+
t.libs.concat(extask.libs)
1418
t.ruby_opts << "-rhelper"
1519
t.test_files = FileList["test/**/test_*.rb"]
1620
end
1721

18-
require 'rake/extensiontask'
19-
Rake::ExtensionTask.new("zlib")
20-
2122
task :default => [:compile, :test]

rakelib/epoch.rake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require 'ruby-core/epoch'

0 commit comments

Comments
 (0)