File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,11 @@ Rake::TestTask.new(:test) do |t|
77 t . test_files = FileList [ "test/**/test_*.rb" ]
88end
99
10- require 'rake/extensiontask'
11- Rake ::ExtensionTask . new ( "pathname" )
10+ if RUBY_ENGINE == 'ruby'
11+ require 'rake/extensiontask'
12+ Rake ::ExtensionTask . new ( "pathname" )
13+ else
14+ task :compile
15+ end
1216
1317task :default => [ :compile , :test ]
Original file line number Diff line number Diff line change 11# frozen_string_literal: false
2+
23require 'mkmf'
3- create_makefile ( 'pathname' )
4+
5+ if RUBY_ENGINE == "ruby"
6+ create_makefile ( 'pathname' )
7+ else
8+ File . write ( "Makefile" , dummy_makefile ( $srcdir) . join ( "" ) )
9+ end
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ module ::Kernel
2828 # :startdoc:
2929end
3030
31- require 'pathname.so'
31+ require 'pathname.so' if RUBY_ENGINE == 'ruby'
3232
3333#
3434# Pathname represents the name of a file or directory on the filesystem,
You can’t perform that action at this time.
0 commit comments