Hi,
in our rake task library(*) we often use "exit" to fail tasks:
puts "ERROR: 'make money' failed"
exit 1
I've found that if you raise an exception instead, it will let rake
finish the other tasks that are running at the same time. (Yes,
that's possible. "task" is sequential and "multitask" is parallel)
raise "'make money' failed"
or just
fail
Kernel.fail is a synonym for Kernel.raise, did you know that?
*)
http://gitorious.org/opensuse/yast-rest-service/trees/master/webservice-tas…
--
Martin Vidner, YaST developer
http://en.opensuse.org/User:Mvidner
Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
Hi all,
I have noticed that all rubygems in OBS are failing with this error:
/usr/bin/gem install --verbose --local --build-root=/var/tmp/......
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Installer::Pathname
Can somebody look at it?
Currently I'm updating a webyast gem package and I cannot check whether
it builds correctly...
--
Best Regards
Ladislav Slezák
Yast Developer
------------------------------------------------------------------------
SUSE LINUX, s.r.o. e-mail: lslezak(a)suse.cz
Lihovarská 1060/12 tel: +420 284 028 960
190 00 Prague 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/
--
To unsubscribe, e-mail: opensuse-ruby+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-ruby+help(a)opensuse.org
Hi,
We've found out that our RoR-based application can crash if broken XML
is sent as a request to the application REST API.
I've tried to create a test case that simulates sending XML - as found
on several forums and howtos - by using @request.env['RAW_POST_DATA']
but this variable seems to be ignored during the test. See the attached
file, please.
I've tested that the application behaves differently if the very same
XML is POSTed to REST API by curl. See the command below (XML sent to
server is different here):
curl -H 'Accept: application/xml' -H 'Content-type: application/xml' -u
'$user:$password' --data-binary '<xml/&' --http-request POST
https://$server:443/$path
How can I test it? What's wrong with my testcase that the RAW_POST_DATA
entry is ignored?
Thanks in advance for any help :)
Bye
Lukas
--
Lukas Ocilka, Appliances Department, Novell Inc.