Rochit Sen wrote in post #1113647:
> Joel Pearson wrote in post #1113564:
>> 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
>
> Hi Joel,
> Thanks. your suggestion worked. But when i run the exe i am getting
> error:
> "uninitialized constant yaml" and the exe exits.
> I am using the YAML.load_file method in my script to read from a yaml
> file
>
> Any thoughts?

Hi Joel,
Please ignore my previous email. Issue is resolved :)

Thanks for your help.

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