sepp2k has quit [Remote host closed the connection]
Hakon|mbp has joined #ruby-lang
akahn has joined #ruby-lang
wycats has joined #ruby-lang
headius has joined #ruby-lang
<darix>
rue: that would be too easy ;p
<darix>
and for changing the uid/gid of a process Process.initgroups(user, target_gid) ; Process::GID.change_privilege(target_gid) ; Process::UID.change_privilege(target_uid)
pkondzior has joined #ruby-lang
znowi_ has left #ruby-lang [#ruby-lang]
znowi has joined #ruby-lang
dkannan has joined #ruby-lang
Hakon|mbp has quit [Quit: Leaving...]
telemachus has left #ruby-lang [#ruby-lang]
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
rolfb has joined #ruby-lang
JohnBat26 has joined #ruby-lang
pemeon has joined #ruby-lang
heftig has joined #ruby-lang
umttumt has quit [Remote host closed the connection]
<rue>
banisterfiend: Please don’t peddle that as an official channel.
<banisterfiend>
rue: hehe
<rue>
No, not hehe.
<banisterfiend>
reality is though, this chan is dead, and half the size of the other one, ppl are probably more likely to get help there
<banisterfiend>
(imo)
kristofferrr has joined #ruby-lang
Leeky_afk is now known as Leeky
<henk>
I’m trying to learn programming (as opposed to hacking together little scripts) by writing a gtk client for xmms2 in ruby. After the connection is established, the client just hangs for quite a while, AFAICT depending on the size of the medialib it has to get from the daemon. Can anyone give advice on how to determine what causes these delays?
d3vic3 has joined #ruby-lang
<rue>
Need more detail
beiter has joined #ruby-lang
<rue>
banisterfiend: Don’t mean you can parade it around as the official channel.
<rue>
Fucking useless shit.
<banisterfiend>
fair enough
<banisterfiend>
sorry rue
<rue>
banisterfiend: Not you, the channel situation is useless shit.
<rue>
henk: The connection hangs before any data is transmitted, after, during…?
<henk>
rue: Me too :-/ Sorry if my question does not provide what you need to know. Since I’m just learning, I probably don’t know what I should tell.
stardiviner has joined #ruby-lang
<rue>
henk: Well, if you have code you can show, put it up on Gist, for example. The smaller the reproduction/example is, the better
<darix>
henk: you can find out with strace in which syscall it is hanging
<rue>
That too, eliminates some possibilities at least
<darix>
rue: the situation could be solved easily with just making #ruby or #ruby-lang forward to the other and move everyone from forwarding channel to the other
<rue>
darix: Enter Freenode policies
<rue>
Sense exit stage left
<darix>
rue: which part of it?
stardiviner has quit [Client Quit]
<rue>
Even a low-tech solution worked fine. This was never a problem when the /topic over there stated that this is the official channel
<henk>
rue: Program starts, I tell it to connect, it does connect without problem. I have no idea at which point it hangs as I can’t make any sense of the traffic dump (not plaintext AFAICT). I assume it is either waiting for results from the server (I wrote an 'async' client, i.e. the request is sent and the program continues. A notifier runs the associated block then), or it is processing those results. The
<darix>
henk: your message to cut off at "results. The"
<darix>
JFYI
<darix>
there is a length limit on irc
<henk>
darix: hm, yeah, I know, but weechat is supposed to work around that. Do you only see one line from me? I see two and the second continues the first …
<darix>
henk: it didnt. i know from irssi you need a script for that. maybe weechat also needs a script/plugin for it?
<henk>
i.e. "… those results. The code can be found"
<darix>
ah
<darix>
yes that 2nd line came through but without the "..." :)
DEac-_ has quit [Read error: Connection reset by peer]
<darix>
so
<darix>
back to strace
<henk>
Yeah, the irssi plugin does that, weechat does it OOTB but no '...' :)
<henk>
Yep, just installing and trying, gimme a minute ;)
<darix>
henk: strace -fF -s 1024
<darix>
so you catch threads and subprocesses too
DEac- has joined #ruby-lang
DEac- has quit [Read error: Connection reset by peer]
<henk>
darix: ok, it’s running. And producing a f…ine lot of output, 15MB to be exact …
<henk>
I’ll try to make sense of it. If I can’t I’ll try to figure out which parts are relevant and paste them. If anyone has any hints what to look out for or would like to look at the complete output, tell me and I’ll upload it. Thanks so far! :)
tekin has joined #ruby-lang
dhruvasa1ar has joined #ruby-lang
<rue>
If it’s hanging, the answer should be at the bottom :P
DEac- has joined #ruby-lang
<rue>
Yay dtruss
dhruvasagar has quit [Ping timeout: 246 seconds]
<henk>
oh damn, I think I misphrased that maybe :-/ with 'hanging' I don’t mean that it does not continue running at all. It just takes quite a while at a certain point before the program goes on. I’d like to find what causes the delay.
QaDeS has quit [Quit: Ex-Chat]
<henk>
Sorry for the confusion :(
DEac- has quit [Read error: Connection reset by peer]
outoftime has quit [Ping timeout: 244 seconds]
deobald_ has joined #ruby-lang
DEac- has joined #ruby-lang
dfr|mac has joined #ruby-lang
bryancp has joined #ruby-lang
mistym has joined #ruby-lang
<henk>
btw: I know it is a problem because other clients are lightning fast in comparison.
<rue>
Doesn’t the strace (or maybe socat/tcpdump) show a call where there’s a clear visual delay?
toretore has quit [Quit: Leaving]
jxie has quit [Quit: leaving]
DEac-_ has joined #ruby-lang
tommyvyo has joined #ruby-lang
DEac- has quit [Read error: Connection reset by peer]
voker57 has quit [Read error: Connection reset by peer]
DEac-_ has quit [Read error: Connection reset by peer]
mistym has quit [Remote host closed the connection]
outoftime has joined #ruby-lang
DEac- has joined #ruby-lang
<henk>
rue: I tried tcpdump, but the protocol is binary, so I can’t tell much :-/ strace shows a call which seems to be repeated over and over while it hangs/waits: https://gist.github.com/3129206
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
<henk>
I’ll add some debug output to all the async notifier functions, maybe that’ll lead some where …
<henk>
Is there a way to reference the currently running method?
bryancp has quit [Ping timeout: 250 seconds]
<rue>
From Ruby?
<bnagy>
__method__
<rue>
There’s __method__, which gives you the name, but it has some limitations
<henk>
rue: Yes, I’d like to add debug statements saying "Running method $current_method from $binaryname, currently in line $line, or something like that.
<rue>
You could just step through in the debugger at that point
dfr|mac has quit [Remote host closed the connection]
<henk>
rue: "the debugger"? I don’t know about it yet, can you point me to its manual please?
<rue>
Either just ruby -rdebug script (or -e), or you can use the debugger gem
tekin has quit [Quit: Computer has gone to sleep.]
gregmore_ has quit [Read error: Operation timed out]
Caius has joined #ruby-lang
bglusman has joined #ruby-lang
cha1tanya has quit [Ping timeout: 246 seconds]
bglusman has quit [Read error: Connection reset by peer]
bglusman has joined #ruby-lang
outoftime has quit [Quit: Leaving]
gregmoreno has joined #ruby-lang
srbartlett has quit [Remote host closed the connection]
rhodee has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 250 seconds]
robbyoconnor has joined #ruby-lang
joast has quit [Ping timeout: 244 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
sailias has quit [Quit: Leaving.]
pmullins has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 246 seconds]
hynkle has joined #ruby-lang
concernedcitizen has joined #ruby-lang
concernedcitizen has quit [Changing host]
concernedcitizen has joined #ruby-lang
hynkle has quit [Client Quit]
hynkle has joined #ruby-lang
dfr|mac_ has joined #ruby-lang
dfr|mac has quit [Ping timeout: 250 seconds]
sockmonk has joined #ruby-lang
headius has quit [Quit: headius]
dfr|mac has joined #ruby-lang
dfr|mac_ has quit [Ping timeout: 265 seconds]
dejongge has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
stardiviner has joined #ruby-lang
dv310p3r has joined #ruby-lang
mwjcomputing has left #ruby-lang ["Leaving"]
<rue>
That too
dejongge has quit [Quit: Leaving.]
slyphon has quit [Ping timeout: 245 seconds]
mistym has quit [Remote host closed the connection]
<henk>
darix: thanks, will take a look :)
bryancp has quit [Remote host closed the connection]
fgomez has quit [Remote host closed the connection]
deobald_ has quit [Ping timeout: 244 seconds]
slyphon has joined #ruby-lang
dfr|mac has joined #ruby-lang
deobald_ has joined #ruby-lang
outoftime has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
pmullins has quit [Remote host closed the connection]
dfr|mac has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
dfr|mac has quit [Remote host closed the connection]
neocoin has quit [Remote host closed the connection]
dfr|mac has joined #ruby-lang
sailias has joined #ruby-lang
Austin__ has joined #ruby-lang
Austin__ has quit [Remote host closed the connection]
Austin__ has joined #ruby-lang
andrewhl has joined #ruby-lang
postmodern has quit [Quit: Leaving]
slyphon has quit [Quit: WeeChat 0.3.7]
pemeon has joined #ruby-lang
akira989 has joined #ruby-lang
Hash_Rocket has joined #ruby-lang
Amigaman has joined #ruby-lang
<mfn>
I've a tiny sinatra app in a gem; I provided a bin/ for it to easy run it; I'd also like to provide a config.ru for rackup. But where would I put this in my gem, and when a user installs the gem, how can I figure out where the config.ru for my gem is? I think I certainly don't want to put it into lib/ ...
<mweichert>
hi guys, is Kernel#system or backtick a blocking operation?
<mweichert>
I'm having an issue executing sequential shell commands from Ruby - the first command seems to be returning execution to the ruby script too soon, therefore causing the next shell command to be executed (which is causing tumbling effects for me)
anjen has joined #ruby-lang
fayimora has joined #ruby-lang
<Mon_Ouie>
Yes. IO.popen doesn't block and still allows you to get the output if needed
fayimora has quit [Client Quit]
anjen has quit [Quit: anjen]
bfreeman has quit [Ping timeout: 240 seconds]
neocoin has joined #ruby-lang
neocoin has quit [Remote host closed the connection]
sailias has quit [Ping timeout: 248 seconds]
mistym is now known as mistym_meeting
voker57 has quit [Read error: Connection reset by peer]
Berglund has quit [Quit: Computer died.]
franckverrot has joined #ruby-lang
anekos has quit [Ping timeout: 260 seconds]
anekos has joined #ruby-lang
bfreeman has joined #ruby-lang
rhodee_ has left #ruby-lang [#ruby-lang]
bryancp has quit [Remote host closed the connection]
cynosure has quit [Ping timeout: 252 seconds]
cynosure has joined #ruby-lang
jastix has quit [Quit: Leaving]
DEac- has quit [Read error: Connection reset by peer]
DEac- has joined #ruby-lang
pemeon has joined #ruby-lang
workmad3 has joined #ruby-lang
mistym_meeting is now known as mistym
<ryanf>
Mon_Ouie: it sounds like he's saying he wants it to block and it isn't
<ryanf>
but yeah, backticks and system should both block
<ryanf>
is it possible that your command is failing to execute properly?
vertroa has joined #ruby-lang
mortice has quit [Remote host closed the connection]
matled- has joined #ruby-lang
tonni has joined #ruby-lang
flori_ has joined #ruby-lang
levicole_ has joined #ruby-lang
andrewhl has quit [*.net *.split]
franckverrot has quit [*.net *.split]
Spaceghostc2c has quit [*.net *.split]
jarib has quit [*.net *.split]
Axsuul has quit [*.net *.split]
matled has quit [*.net *.split]
Tearan has quit [*.net *.split]
tonni_ has quit [*.net *.split]
snk has quit [*.net *.split]
flebel has quit [*.net *.split]
levicole has quit [*.net *.split]
knu has quit [*.net *.split]
musl has quit [*.net *.split]
flori has quit [*.net *.split]
_ko1 has quit [*.net *.split]
Kuukunen has quit [*.net *.split]
FiXato has quit [*.net *.split]
ged has quit [*.net *.split]
matled- is now known as matled
snk has joined #ruby-lang
FiXato has joined #ruby-lang
jarib_ has joined #ruby-lang
andrewhl has joined #ruby-lang
Axsuul has joined #ruby-lang
Kuukunen has joined #ruby-lang
Tearan has joined #ruby-lang
franckverrot has joined #ruby-lang
knu has joined #ruby-lang
Spaceghostc2c has joined #ruby-lang
Spaceghostc2c has quit [Changing host]
Spaceghostc2c has joined #ruby-lang
flebel has joined #ruby-lang
havenn has joined #ruby-lang
musl has joined #ruby-lang
ged has joined #ruby-lang
krainboltgreene has quit [Quit: krainboltgreene]
mdickens has joined #ruby-lang
rowanu has quit [Remote host closed the connection]
mweichert has quit [Quit: mweichert]
krainboltgreene has joined #ruby-lang
Austin__ has left #ruby-lang [#ruby-lang]
qpingu has quit [Remote host closed the connection]
qpingu has joined #ruby-lang
petercooper has joined #ruby-lang
mistofvongola has joined #ruby-lang
qpingu has left #ruby-lang [#ruby-lang]
dhruvasagar has quit [Ping timeout: 248 seconds]
Asher has quit [Ping timeout: 248 seconds]
bryancp has joined #ruby-lang
kvirani has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
JohnBat26 has quit [Remote host closed the connection]
<moos3_>
is their away to force the mysql ruby gem not to attemp a socket connection when trying to connect remotely
fgomez has quit [Remote host closed the connection]
fgomez has joined #ruby-lang
<drbrain>
moos3_: I don't understand how it could connect without a socket
<moos3_>
socket connections are only for lcoalhost
<moos3_>
when your trying to connect to a remote server you dont have the socket locally
<drbrain>
you mean, "UNIX socket connections"
<drbrain>
I would think that by giving a host and port it would create a TCP socket to the remote machine like you asked… I've not used mysql in ages though, so I'm not sure
<drbrain>
somebody else probably knows
<moos3_>
some reason my @varname isn't getting accessible from another method
<davidbalbert>
it says iseq->local_size is sizeof(vars) + 1 for method and class frames but sizeof(vars) for block frames
<davidbalbert>
it looks like block frames are now also sizeof(vars) + 1, but i want to be sure
<drbrain>
davidbalbert: if self is a local to the VM, that seems sane
<drbrain>
davidbalbert: not sure
<moos3_>
drbrain ok
<davidbalbert>
drbrain: i'm not sure i followed the first thing you said. Which option seems sane?
solars has quit [Ping timeout: 265 seconds]
<drbrain>
davidbalbert: if you've found evidence that it's always sizeof(vars) + 1 it may be out of date
<drbrain>
I made an uneducated guess, so you can ignore my input
<davidbalbert>
got it
<zenspider>
apeiros_: what'd I do?
<drbrain>
davidbalbert: _ko1 might know, you can sometimes find him in #ruby-core
<drbrain>
I think he usually shows up in another hour or two
moos3_ has quit [Quit: Computer has gone to sleep.]
<cored>
hello guys
<cored>
I'm having a dependency problem
<cored>
one of the gem on my Gemfile is using multi_json 1.0.3
<cored>
another one is using 1.4.x
<cored>
is there a way for me to solve this?
<cored>
using bundler
<drbrain>
there's a way to solve it using the project's issue tracker, but it's pretty slow
<cored>
:-)
<cored>
the other way?
headius has quit [Quit: headius]
dmwuw_ has joined #ruby-lang
<drbrain>
file an issue against the gem using 1.0.3 and say "fix your dependency to X, I ran the tests and it's OK"
<drbrain>
(of course, you should run the tests and ensure it's OK)
bryancp has quit [Remote host closed the connection]
kristofferrr has quit [Quit: ❤]
<cored>
ok
dmwuw has quit [Ping timeout: 246 seconds]
mssola has quit [Quit: Konversation terminated!]
malev has quit [Remote host closed the connection]
<drbrain>
cored: if one says "= 1.0.3" and the other doesn't have a range that's compatible there's no way to make them work together without modifying one or the other
<cored>
drbrain: I see
ttilley is now known as ttilley_off
<drbrain>
bringing the 1.0.3 version into the light (if there's now a 1.4 series) is probably the best way
<cored>
drbrain: ok, I'll try that
<davidbalbert>
drbrain: looked at it more, almost positive it's out of date. is this the kind of thing it's worth submitting a patch for?
<drbrain>
davidbalbert: absolutely, I hate it when documentation is obviously wrong
<davidbalbert>
k, cool. i'll do that.
fromhet has joined #ruby-lang
<davidbalbert>
close to done with a draft of the RubyVM::InstructionSequence docs as well
<davidbalbert>
oh actually
<davidbalbert>
Is there a way to get rdoc to treat a getter and a setter function as an attribute in C code?
slyphon has quit [Quit: WeeChat 0.3.7]
<davidbalbert>
I tried Document-attr, but I wasn't able to get it to take
<drbrain>
davidbalbert: I don't think so… I think rdoc decides they're methods due to rb_define_method
<davidbalbert>
ok. thanks.
headius has joined #ruby-lang
franckverrot has quit [Read error: Operation timed out]
aef has quit [Read error: Operation timed out]
jmeeuwen has quit [Remote host closed the connection]
valeri_ufo has quit [Read error: Connection reset by peer]
jmeeuwen has joined #ruby-lang
valeri_ufo has joined #ruby-lang
aef has joined #ruby-lang
mistym has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
franckverrot has joined #ruby-lang
yxhuvud has quit [Ping timeout: 246 seconds]
pemeon has quit [Remote host closed the connection]
coryf has quit [Remote host closed the connection]
malev has joined #ruby-lang
<apeiros_>
zenspider: you set the channel to require registration in order to talk
mdickens has quit [Ping timeout: 248 seconds]
<apeiros_>
I didn't know how to check that. had to fiddle & google a bit
bglusman has quit [Remote host closed the connection]
<zenspider>
ah. kk. yeah. thanks. I was confused.
andrewhl has quit [Remote host closed the connection]
sailias has joined #ruby-lang
Asher has joined #ruby-lang
andrewhl has joined #ruby-lang
andrewhl has quit [Remote host closed the connection]
Asher has quit [Ping timeout: 250 seconds]
levicole_ is now known as levicole
malev has quit [Remote host closed the connection]
banisterfiend has quit [Read error: Connection reset by peer]
Leeky is now known as Leeky_afk
Asher has joined #ruby-lang
banisterfiend has joined #ruby-lang
htroyack has joined #ruby-lang
erics has quit [Remote host closed the connection]
Skif has joined #ruby-lang
Asher1 has joined #ruby-lang
Asher has quit [Ping timeout: 265 seconds]
sailias has quit [Ping timeout: 265 seconds]
Jade has joined #ruby-lang
dv310p3r has quit [Ping timeout: 246 seconds]
<jtoy>
how could I do cat file | ruby -rjson I_DONT_KNOW_THIS_PART to read the file and just do JSON.parse on the input? or is this too much for a single line?
<drbrain>
JSON.parse ARGF.read should be sufficient
brianpWins has quit [Quit: brianpWins]
<jtoy>
drbrain: will that read in a line at a time?
<drbrain>
jtoy: no… you can't read JSON that way
<jtoy>
drbrain: I have a json object per line
<jtoy>
sorry, forgot to mention that
<drbrain>
then use ARGF.each_line
stardiviner has joined #ruby-lang
<erikh>
ARGF rules.
gareth_ has joined #ruby-lang
Asher1 has quit [Ping timeout: 244 seconds]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
GarethAdams has joined #ruby-lang
GarethAdams has quit [Client Quit]
<jtoy>
erikh: yes, I've been using it, could be made a little better thoug
<jtoy>
drbrain: thx
GarethAdams has joined #ruby-lang
<petercooper>
intrigued why it's from the command line though
<petercooper>
you're parsing it but then showing what?
<drbrain>
petercooper: I was sure this question would be asked eventually :D
<injekt>
your json should all be on one line
<erikh>
I love you, injekt
<injekt>
<3
<GarethAdams>
ooh, it's petercooper
<petercooper>
well yeah, it should all be a giant array, hash or whatever.. so it sounds weird to start with ;-)
<petercooper>
GARETH!
<GarethAdams>
yeah, I hang out here, like 4 years ago (and since last weekend)
<drbrain>
I could understand a stream of JSON objects one per line
<drbrain>
it's not the usual way these things are done, but I could see it happening
<injekt>
drbrain: yeah sure, but I'd still want to read it as a collection before traversing it
<petercooper>
To be fair, I can see almost anything happening. I wrote a Perl library to use XML files as a database once because I didn't want to learn SQL.
<injekt>
reading+parsing
dejongge has quit [Ping timeout: 246 seconds]
<injekt>
Don't want to learn SQL? Learn Perl and XML instead kids!
<petercooper>
To be fair it was 1999 and many people had boners for XML.
<erikh>
what
<petercooper>
The late 90s equivalent to REST *ducks*
<erikh>
people were doing rest before REST the culture/spec
<rue>
Mm, XML databases
<rue>
erikh: Not before the spec, not really
<erikh>
meh
<erikh>
not in full spec mode, but close enough for horseshoes
<rue>
That is—whether by accident or design—pretty much exactly how they wanted HTTP to turn out
<injekt>
heh
<rue>
jtoy: Shouldn’t that be an array of objects, then?
<injekt>
uh oh
<rue>
Would make it valid, and parseable.
<jtoy>
rue, no , i am just trying to make serializable json
<jtoy>
rue: although I think i ran into an issue with new lines
<injekt>
your json isn't parsable already?
<injekt>
so it's not json?
<rue>
…JSON *is* a serialization format?
* erikh
cries
<petercooper>
you don't mean streamable?
<erikh>
use Marshal.
<jtoy>
i meant streamable
<jtoy>
but i don't need it in an array
<petercooper>
because twitter's streaming api works like that, I believe
<petercooper>
just pumps out random, complete bits of JSON
tjadc has quit [Ping timeout: 265 seconds]
<GarethAdams>
it's not random, that's just how people talk these days
<petercooper>
hehe
<injekt>
so use JSON.parse on each line of streaming
<injekt>
done?
<injekt>
profit
<erikh>
depends on how much you're streaming
<rue>
Yeah, that’s an ad-hoc protocolless protocol, I suppose
<petercooper>
a protonul
<zrail>
petercooper: twitter pumps out \r delimited records
<rue>
There we go
<erikh>
protoprotocol
<zrail>
each of which is a complete json doc
<injekt>
:D
<petercooper>
write the parser for your protonul in subjective C and you're ready to roll
<erikh>
ha, C is already subjective enough
<injekt>
no subjective c, it's a new dialect like objective c, just more subjective
<injekt>
my head hurts
calm has quit [Quit: Lost terminal]
<petercooper>
someone on Twitter said Subjective C is just JavaScript because it depends on the browser's mood as to how/if it'll work
<erikh>
injekt: INCEPTION
<injekt>
just make sure you add those semi colons
<injekt>
amirite
<petercooper>
if you want Opera to support it
outoftime has quit [Quit: Leaving]
<erikh>
fuck that, just use void * everywhere.
<injekt>
:D
<petercooper>
did you see that story today?
<GarethAdams>
erikh: subception?
<injekt>
petercooper: yes
<petercooper>
twitter breaking on Opera because twitter's JS uses the comma separator everywhere.. oh man
<petercooper>
s/separator/operator
<injekt>
interesting that it's only on like the 1090th comma (or something)
<injekt>
and by interesting, I think I mean stupid
<petercooper>
the 0.01% of people affected are outraged
<injekt>
zing
<petercooper>
the blame is being put on a tool called 'uglify'
<GarethAdams>
doesn't jquery use uglify? or did I totally misremember that?
<petercooper>
which is kinda like blaming rosie o'donnell's makeup department for making her look bad
WillMarshall has joined #ruby-lang
<injekt>
she's pretty on the inside
<drbrain>
when my pure-ruby gems break on JRuby or Rubinius I usually blame the implementation
havenn has quit [Remote host closed the connection]
<injekt>
drbrain: what if it breaks in both? you blame them both?
<petercooper>
in soviet russia, you break rubinius
<drbrain>
injekt: I don't think that's happened, but usually CRuby is correct
htroyack has left #ruby-lang [#ruby-lang]
<petercooper>
do not let brixen hear you say that
carloslopes has quit [Quit: Leaving.]
<drbrain>
I get more bug reports due to JRuby not being quite correct than Rubinius
<headius>
that's because more people use JRuby
<drbrain>
but usually it's on weird things like "Tempfile#unlink doesn't work"
<headius>
:)
<petercooper>
+1 headius
<drbrain>
for that one I got headius to make unlink a no-op like Windows
<drbrain>
headius: it's true!
Asher has joined #ruby-lang
<headius>
drbrain: after the change I made for that one, I took a step back and made it actually delete if the file is already closed and warn in the no-op case
<headius>
felt a bit better that way
<drbrain>
headius: sure
slyphon has joined #ruby-lang
<jtoy>
if i am putting a json object per line to file, is that valid? I found that doing object.to_json has new lines in it sometimes which breaks it