hey there, can somebody explain or point to some docu of what happens when you pass an instance of a class to rspec's describe? e.g. http://serverspec.org/resource_types.html#file all the describe docu only deals with classes or strings as parameter to describe
i think i got it already, subject gets automatically set to the instance of the example handed to describe ... what a mess
hey there, i'm trying to persist some data as yaml file and followed http://blog.mustmodify.com/pages/psych-ruby-1-9-yaml, so far so good, but it seems that i have to solve question 1 from that link or otherwise another programm doesn't parse the yaml file properly. Any ideas how i can manage to do that?
tl; dr how to force psych to emit key: [val1, val2] instead of key: \n-val1 \n-val2 when writing out yaml?
allcentury: we implemented that in our app recently but went for async writing log events to a queue and periodically pushing them to logstash via tcp
allcentury: the question is if you want the logger call to return fast or to have the mesaage send to the receiving end as fast as possible
with udp you might end up with split messages due to udp size limitations
Simple question: why aren't errors and exceptions that are expected to be thrown documented? e.g. http://ruby-doc.org/stdlib-1.9.3/libdoc/socket/rdoc/IPSocket.html should document that it can throw SocketError: getaddrinfo: Name or service not known. this is somewhat confusing when you come from other languages