Skip to content

Commit ccb9ef2

Browse files
committed
ruby 1.9 compatibility PLATFORM vs RUBY_PLATFORM
1 parent f79931f commit ccb9ef2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ namespace :test do
5050
Rake::Task['test:provider'].invoke
5151
end
5252

53-
system("open coverage/index.html") if PLATFORM['darwin']
53+
system("open coverage/index.html") if (PLATFORM['darwin'] if Kernel.const_defined? :PLATFORM) || (RUBY_PLATFORM =~ /darwin/ if Kernel.const_defined? :RUBY_PLATFORM)
5454
end
5555

5656
end

0 commit comments

Comments
 (0)