That's a side-effect of using the command --no-dep-run

Here's the code sample I suggested before, with an extra note:

def initialize

  # Allow EXE build without running.
  if defined?(Ocra)
    # Let OCRA pick up the cookies from Mechanize.
    Mechanize.new.cookies
    # Let OCRA pick up file-tail
    ... something that uses file-tail here...
    # Quit so Ocra can do its thing.
    exit
  end

  # Normal stuff goes here...
  @agent = Mechanize.new

end

-- 
Posted via http://www.ruby-forum.com/.