lib/irbcp.rb in irbcp-0.0.1 vs lib/irbcp.rb in irbcp-0.0.2

- old
+ new

@@ -1,9 +1,9 @@ require 'systemu' module Irbcp - Version = '0.0.1' + Version = '0.0.2' def Irbcp.version() Irbcp::Version end case RUBY_PLATFORM @@ -14,10 +14,15 @@ when /linux/ Copy = 'xsel –clipboard –input' Paste = 'xsel –clipboard –output' when /windoze/ - raise 'fail!' # TODO ! + ## Windows Server 2003 , Windows Vista , Windows 7. Anything else don t have and don t matter anymore :) + # + Copy = 'clip.exe' + ## download paste.exe from http://www.c3scripts.com/tutorials/msdos/paste.html#exe + # + Paste = 'paste.exe' end def copy(*args) stdin = args.join systemu(Copy, :stdin => stdin)