Why does the gets call get my command-line text?

D:\temp>type test.rb
puts gets

D:\temp>test.rb hey
D:\temp\test.rb:1:in `gets': No such file or directory - "hey"
(Errno::ENOENT)
        from D:\temp\test.rb:1

D:\temp>ruby -e 'puts VERSION, PLATFORM'
1.6.6
i586-mswin32

Chris
http://clabs.org