gst-gi-sample: ports helloworld.c

Please check this sample "gstreamer-gi/sample/helloworld.rb".
When I give text file to this code, it raises GLib::Error and cannot catch Gst::MessageType::ERROR in my PC(Fedora 18).