dmitriy_ has quit [Read error: Connection reset by peer]
cagomez has quit [Remote host closed the connection]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
hahuang61 has joined #ruby
ChaosBringer has quit [Ping timeout: 264 seconds]
dmitriy_ has joined #ruby
ryzokuken has quit [Quit: Connection closed for inactivity]
dmitriy_ has quit [Read error: Connection reset by peer]
jottr has joined #ruby
RedNifre has joined #ruby
yashi has joined #ruby
ChaosBringer has joined #ruby
<yashi>
Is there something like ruby -run -e httpd . -p 9090, but for https?
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RedNifre>
Hi. Is there a way to convert a string with length 14 bytes to an integer and back? Just by interpreting all the bytes as one big number? E.g. 65 should turn into a string with A and 13 NUL bytes.
<RedNifre>
I mean I guess I can do it manually somehow but I was wondering if there was an elegant way to do this.
hahuang61 has quit [Ping timeout: 264 seconds]
jottr has quit [Ping timeout: 240 seconds]
<RedNifre>
Hm, looks like I could use Array#pack and String#unpack...
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
phaul has quit [Ping timeout: 256 seconds]
kapil___ has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<RedNifre>
...but what's the inverse of "Hey".bytes.to_a ?
<eam>
RedNifre: [72, 101, 121].pack "c*"
<eam>
and "Hey".bytes.to_a is rewritten as "Hey".unpack "c*"
<RedNifre>
eam nice, I only have to add a .force_encoding('utf-8') to that to deal with the multi byte characters :)
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<eam>
`perldoc -f pack` will show you how to use pack/unpack
<eam>
c is for 8 bit bytes, s is for 16bit, l is for 32bit, etc
<RedNifre>
hm, unpack gives me negative numbers.
jottr has joined #ruby
<eam>
you can use C for unsigned 8 bit
<eam>
c is signed
<eam>
check perldoc -f pack :)
<RedNifre>
:)
<RedNifre>
I'll play around with it :)
bambanx has joined #ruby
<zenspider>
eam: perldoc??
<eam>
I mean, do you know of a better doc for pack? :)
<zenspider>
ri pack
<zenspider>
VERY detailed
<eam>
that is ... actually not bad at all
jenrzzz has joined #ruby
<zenspider>
(almost too detailed... at least it needs some good examples)
<RedNifre>
Is there a simple way to convert an int to a byte array or do I have to chip away at it with modulo?
<zenspider>
um... maybe you're not getting through, eam. :P
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
42.digits(2) #=> [0, 1, 0, 1, 0, 1]
<RedNifre>
magic!
<eam>
[2054450793].pack "l"
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<morfin60>
dminuoso, well i just want to find out which objects count is constantly growing
SynSynack has quit [Quit: Не разучиться мечтать... любить...]
amatas_ has quit [Ping timeout: 240 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso>
morfin60: If applicable ruby-prof could be of interest.
jottr has quit [Ping timeout: 248 seconds]
<morfin60>
i suspect something "leak"
am55 has quit [Quit: am55]
AJA4350 has joined #ruby
Cavallari has joined #ruby
<morfin60>
i have Sidekiq performing some tasks and eventually it consumed all memory + all swap
Cavallari1 has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
am55 has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
Cavallari has quit [Ping timeout: 248 seconds]
Cavallari1 is now known as Cavallari
shinnya has joined #ruby
jottr has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
jottr has quit [Ping timeout: 256 seconds]
roshanavand has joined #ruby
roshanavand has quit [Client Quit]
roshanavand has joined #ruby
jottr has joined #ruby
mikecmpb_ has joined #ruby
mikecmpbll has quit [Ping timeout: 246 seconds]
synthroid has joined #ruby
sonOfRa has quit [Remote host closed the connection]
nadir has quit [Quit: Connection closed for inactivity]
sonOfRa has joined #ruby
dr3w_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
karapetyan has quit [Remote host closed the connection]
chouhoulis has joined #ruby
dr3w_ has joined #ruby
karapetyan has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
nickjj has joined #ruby
n0m4d1c has joined #ruby
kapil___ has joined #ruby
ta_ has quit [Quit: Leaving...]
ta_ has joined #ruby
Psybur_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
KeyJoo has quit [Read error: Connection reset by peer]
keyjoo_ has joined #ruby
Zaab1t has joined #ruby
willmichael has quit [Ping timeout: 240 seconds]
luminous has joined #ruby
karapetyan has joined #ruby
bmurt has joined #ruby
<dminuoso>
morfin60: Then ObjectSpace is your better friend (if its an object leak)
<dminuoso>
morfin60: There is a gem called memory_profiler, but I have no experience with it
<dminuoso>
If its a memory leak, then you have to valgrind it.
tvw has joined #ruby
_aeris_ has quit [Remote host closed the connection]
keyjoo_ has quit [Quit: keyjoo_]
karapetyan has quit [Remote host closed the connection]
_aeris_ has joined #ruby
karapetyan has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
karapetyan has quit [Remote host closed the connection]
troulouliou_div2 has quit [Remote host closed the connection]
karapetyan has joined #ruby
chouhoulis has joined #ruby
mikecmpb_ has quit [Quit: inabit. zz.]
howdoi has quit [Quit: Connection closed for inactivity]
mikecmpbll has joined #ruby
tcopeland has joined #ruby
cdg has joined #ruby
<morfin60>
not sure it's real leak
<morfin60>
well, i know some native extension can allocate and do not free memory but there is pretty low chance of this because whole thing consumes bunch of memory
<dminuoso>
morfin60: You can do other things do (just look at the class description), and finally `dump` it into a file (either human readable or json), and then work with that
willmichael has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
<morfin60>
cdg has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
<dminuoso>
morfin60: In my experience the most common cause is somehow maintaing references to objects where you shouldn't (or sometimes where you should be using WeakRef instead)
<dminuoso>
morfin60: But use ObjectSpace to trace it down.
<dminuoso>
morfin60: It's also possible the GC is misbehaving, so be sure to look at it too
mtkd has quit [Ping timeout: 252 seconds]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
mtkd has joined #ruby
alex`` has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
dviola has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
oetjenj has joined #ruby
mrproper has joined #ruby
<mrproper>
hello there
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mrproper>
Need help with this. I'm using Resolv.getaddress and rescuing from Resolv::ResolvError to see if a hostname exists but this is not handling problems with the DNS server itself (not listening, timeouts, filtered...) how should I control those problems? I can't find any suitable exception in the documentation apart from ResolvTimeout
bmurt has joined #ruby
<dminuoso>
mrproper: Dont rethrow `Resolv::...` exceptions. Just make your own
jcalla has joined #ruby
<mrproper>
dminuoso: I'm not trying to rethrow anything. I'm just catching that exception to get a list of hosts not in the dns
<dminuoso>
mrproper: guard it with a `begin; rescue; ...; end`
mtkd has quit []
<mrproper>
dminuoso: wait, I'll paste the code in a gist. Will be way easier
<dminuoso>
=)
tomphp has joined #ruby
mtkd has joined #ruby
<mrproper>
dminuoso: so this is part of the code https://gist.github.com/anonymous/a81d252184c62ca71d920a00474a56e7 I check fo a list of hosts and if they are not in the dns I add them to an array to deal with them later. Now, if the dns is not available or I have a timeout or the url of the dns is wrong, the host will be added to the list too
<mrproper>
I would like to control it in a better way
dionysus69 has quit [Ping timeout: 248 seconds]
karapetyan has quit [Remote host closed the connection]
<mrproper>
imagine that the ip of the dns server answers to pings but the server is down. I don't want to remove hosts just because of this
cdg has joined #ruby
karapetyan has joined #ruby
gregf_ has joined #ruby
desperek has joined #ruby
desperek has quit [Remote host closed the connection]
desperek has joined #ruby
dr3w_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
willmichael has quit [Read error: Connection reset by peer]
willmichael has joined #ruby
jameser has joined #ruby
axsuul has quit [Ping timeout: 256 seconds]
karapetyan has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dr3w_ has joined #ruby
tomphp has joined #ruby
axsuul has joined #ruby
tomphp has quit [Client Quit]
DLSteve_ has joined #ruby
tomphp has joined #ruby
karapetyan has joined #ruby
Psybur_ is now known as Psybur
Psybur has quit [Changing host]
Psybur has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ltem has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
n008f4g_ has quit [Ping timeout: 260 seconds]
memo1 has joined #ruby
govg has quit [Quit: leaving]
synthroid has quit [Remote host closed the connection]
andikr has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 256 seconds]
synthroid has joined #ruby
jottr has joined #ruby
oetjenj has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
tomphp has quit [Client Quit]
ryandv has joined #ruby
tomphp has joined #ruby
John_Ivan has joined #ruby
ryandv has quit [Ping timeout: 248 seconds]
ledestin has joined #ruby
jrafanie has joined #ruby
ryandv has joined #ruby
rafik has joined #ruby
<X-Jester>
when using something like net-http or rest-client, is there a way to ignore a certain content type? specifically, can i configure one of these libraries to skip downloading a binary file if the link redirects to one? to save time and bandwidth?
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alex`` has quit [Ping timeout: 260 seconds]
jottr has quit [Ping timeout: 264 seconds]
alfiemax has joined #ruby
rafik has quit [Ping timeout: 276 seconds]
sidx64 has joined #ruby
bocaneri has quit [Ping timeout: 246 seconds]
chouhoulis has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has joined #ruby
fribmendes_away is now known as fribmendes
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rapture has joined #ruby
alex`` has joined #ruby
oetjenj has joined #ruby
tomphp has joined #ruby
hogetaro_ has quit [Quit: Leaving...]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
Burgestrand has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
n008f4g_ has joined #ruby
ltt has joined #ruby
tomphp has joined #ruby
chouhoulis has quit [Remote host closed the connection]
jrafanie_ has joined #ruby
bocaneri has joined #ruby
chouhoulis has joined #ruby
jrafanie has quit [Ping timeout: 252 seconds]
marius has quit [Quit: baj]
marius has joined #ruby
netherwolfe has joined #ruby
Psybur has quit [Read error: Connection reset by peer]
Psybur has joined #ruby
kn-928 has joined #ruby
bocaneri has quit [Ping timeout: 256 seconds]
chouhoulis has quit [Ping timeout: 264 seconds]
kn-928_ has joined #ruby
rafik has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
duckpuppy has joined #ruby
kn-928 has quit [Ping timeout: 248 seconds]
cdg has quit [Remote host closed the connection]
deathwishdave has joined #ruby
rafik has quit [Ping timeout: 264 seconds]
nowhere_man has joined #ruby
alex`` has quit [Ping timeout: 264 seconds]
synthroi_ has joined #ruby
bocaneri has joined #ruby
bocaneri has quit [Max SendQ exceeded]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroid has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
cschneid has joined #ruby
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jrafanie has joined #ruby
oleo has joined #ruby
cschneid has quit [Ping timeout: 268 seconds]
oetjenj has joined #ruby
alfiemax has quit [Remote host closed the connection]
cschneid has joined #ruby
alfiemax has joined #ruby
oetjenj has quit [Client Quit]
ta_ has quit [Ping timeout: 276 seconds]
alex`` has joined #ruby
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kn-928_ has quit [Quit: WeeChat 2.0.1]
kn-928 has joined #ruby
ansraliant has joined #ruby
ansraliant has joined #ruby
ansraliant has quit [Changing host]
ltt has joined #ruby
mrproper has quit [Ping timeout: 260 seconds]
ryandv has quit [Ping timeout: 260 seconds]
goatish has quit [Quit: bye]
n008f4g_ has quit [Ping timeout: 276 seconds]
Cavallari has quit [Quit: Cavallari]
aufi_ has quit [Remote host closed the connection]
raynold has quit [Quit: Connection closed for inactivity]
mzo has joined #ruby
aufi has joined #ruby
rafik has joined #ruby
oetjenj has joined #ruby
SteenJobs has joined #ruby
ixti has joined #ruby
mzo has quit [Quit: :*]
rafik has quit [Ping timeout: 240 seconds]
mzo has joined #ruby
pastorinni has joined #ruby
mzo has quit [Client Quit]
mzo has joined #ruby
synthroi_ has quit [Remote host closed the connection]
n0m4d1c has quit [Read error: Connection reset by peer]
jottr has joined #ruby
mzo has quit [Quit: awoo :3]
mzo has joined #ruby
synthroid has joined #ruby
lytol has joined #ruby
rafik has joined #ruby
benharri has joined #ruby
morfin60 has quit [Remote host closed the connection]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
rafik has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ineb>
X-Jester: no, what instance would do the content-type checking? in http, you make a request and get a response (commonly via tcp)
cdg has quit [Ping timeout: 276 seconds]
rafik has joined #ruby
ryandv has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
tolerablyjake has joined #ruby
rafik has quit [Ping timeout: 246 seconds]
tomphp has quit [Client Quit]
fribmendes is now known as fribmendes_away
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
troys has joined #ruby
rabajaj has joined #ruby
schneider has quit [Ping timeout: 256 seconds]
cagomez has joined #ruby
solocshaw has joined #ruby
alfiemax has quit [Remote host closed the connection]
rafik has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Asher1 has joined #ruby
kn-928 has quit [Ping timeout: 240 seconds]
rabajaj has quit [Remote host closed the connection]
Asher has quit [Ping timeout: 246 seconds]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has quit [Quit: conta]
conta has joined #ruby
raynold has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
rippa has joined #ruby
ltt has joined #ruby
conta has quit [Client Quit]
mikecmpbll has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
roca has joined #ruby
<X-Jester>
is there any break between the MIME type being sent and the download continuing, or does it all come together?
KeyJoo has joined #ruby
fiachetti has quit [Remote host closed the connection]
fiachetti has joined #ruby
oetjenj has joined #ruby
remix2000 has quit [Quit: WeeChat 1.6]
remix2000 has joined #ruby
benharri has quit [Quit: benharri]
benharri has joined #ruby
nowhereman_ has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
nowhere_man has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
rafik has quit [Ping timeout: 248 seconds]
n0m4d1c has joined #ruby
luminous has quit [Quit: Connection closed for inactivity]
karapetyan has quit [Remote host closed the connection]
pilne has joined #ruby
Burgestrand has quit [Quit: Closing time!]
tomphp has joined #ruby
karapetyan has joined #ruby
John_Ivan has quit [Ping timeout: 264 seconds]
jcarl43 has joined #ruby
RougeR has quit [Ping timeout: 240 seconds]
solocshaw has quit [Ping timeout: 246 seconds]
darkhanb has joined #ruby
cdg has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
[Butch] has joined #ruby
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mzo has quit [Ping timeout: 264 seconds]
cdg has quit [Ping timeout: 276 seconds]
nachoman has joined #ruby
aufi has quit [Quit: Leaving]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mgraf>
I'll avoid a long-winded retort – about how Rails is written in ruby, and that this channel should be open to those questions too, and just say: thanks. :-)
ramfjord has joined #ruby
<apeiros>
mgraf: good decision :-p
<apeiros>
mgraf: anyway, you had a question, and you got help. that help was getting directed at a better place.
<mgraf>
I disagree, I got an answer, an answer is not _nesessarly_ help, but an answer none the less
<apeiros>
*necessarily
<mgraf>
so, thank you.
<mgraf>
If it's not a method name, I may mispell it
<mgraf>
:)
<apeiros>
you may also misspell a method name
<apeiros>
the world won't end either
<elomatreb>
But your script probably wil
<elomatreb>
(I'll claim that was an intentional mistake)
s1detracking has quit [Remote host closed the connection]
nadir has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
dr3w_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marius has joined #ruby
cdg has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
rafik has quit [Read error: Connection reset by peer]
duckpuppy has quit [Ping timeout: 248 seconds]
mgraf has quit [Ping timeout: 264 seconds]
ltt has joined #ruby
cdg has quit [Ping timeout: 276 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
softpedia_webapp has joined #ruby
schneider has joined #ruby
rafik has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
pavelz has joined #ruby
guacamole has joined #ruby
connor_goodwolf has quit [Ping timeout: 255 seconds]
connor_goodwolf has joined #ruby
rafik has quit [Ping timeout: 256 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
rafik has joined #ruby
synthroid has quit []
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
softpedia_webapp has quit [Remote host closed the connection]
Strepsils has quit [Ping timeout: 276 seconds]
willmichael has quit [Ping timeout: 264 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
John_Ivan has quit [Ping timeout: 264 seconds]
mgraf has joined #ruby
workmad3_ has quit [Ping timeout: 276 seconds]
Dimik has joined #ruby
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conta has quit [Remote host closed the connection]
CrazyEddy has quit [Ping timeout: 245 seconds]
alex`` has joined #ruby
anisha has quit [Ping timeout: 256 seconds]
Yzguy has joined #ruby
cagomez has quit [Remote host closed the connection]
duckpuppy has joined #ruby
cagomez has joined #ruby
suukim has quit [Quit: Konversation terminated!]
mgraf has quit [Ping timeout: 240 seconds]
aufi has joined #ruby
dionysus69 has joined #ruby
rafik has quit [Ping timeout: 276 seconds]
dr3w_ has joined #ruby
cagomez has quit [Ping timeout: 260 seconds]
duckpuppy has quit [Ping timeout: 246 seconds]
rafik has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sameerynho has joined #ruby
mgraf has joined #ruby
eckhardt_ has joined #ruby
kn-928 has joined #ruby
duckpuppy has joined #ruby
axsuul has quit [Ping timeout: 264 seconds]
mgraf has quit [Ping timeout: 264 seconds]
anisha has joined #ruby
kn-928 has quit [Ping timeout: 246 seconds]
axsuul has joined #ruby
karapetyan has joined #ruby
c0ncealed has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 260 seconds]
c0ncealed has joined #ruby
schneider has quit [Ping timeout: 246 seconds]
karapetyan has quit [Ping timeout: 276 seconds]
schneider has joined #ruby
dviola has quit [Quit: WeeChat 2.0.1]
am55 has quit [Quit: am55]
RougeR has quit [Ping timeout: 276 seconds]
memo1 has joined #ruby
am55 has joined #ruby
tolerablyjake has joined #ruby
RougeR has joined #ruby
cdg has joined #ruby
solocshaw has joined #ruby
cagomez has joined #ruby
roshanavand has quit [Ping timeout: 256 seconds]
orbyt_ has joined #ruby
cdg has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
cagomez has quit [Ping timeout: 276 seconds]
pastorinni has quit [Remote host closed the connection]
solocshaw has quit [Ping timeout: 248 seconds]
marxarelli is now known as marxarelli|afk
tvw has quit []
marxarelli|afk is now known as marxarelli
mgraf has joined #ruby
pavelz has quit [Quit: leaving]
dionysus69 has quit [Ping timeout: 276 seconds]
Psybur has quit [Ping timeout: 263 seconds]
netherwolfe has quit [Ping timeout: 256 seconds]
schneider has quit [Ping timeout: 240 seconds]
duckpuppy has joined #ruby
mgraf has quit [Ping timeout: 276 seconds]
n0m4d1c has quit [Remote host closed the connection]
Mike11 has joined #ruby
sidx64 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duckpuppy has quit [Ping timeout: 246 seconds]
anisha has quit [Quit: This computer has gone to sleep]
Mike11 has quit [Quit: Leaving.]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mike11 has joined #ruby
sidx64 has joined #ruby
cagomez has joined #ruby
ryandv has quit [Ping timeout: 246 seconds]
volix has quit [Ping timeout: 240 seconds]
ryandv has joined #ruby
mgraf has joined #ruby
weaksauce has joined #ruby
orbyt_ has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
schneider has joined #ruby
p0p0pr37 has joined #ruby
nor_ has joined #ruby
nor_ has left #ruby [#ruby]
solocshaw has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ryandv has quit [Ping timeout: 256 seconds]
schneider has quit [Ping timeout: 246 seconds]
solocshaw has quit [Client Quit]
karapetyan has joined #ruby
duckpuppy has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
schneider has joined #ruby
Tempesta has quit [Quit: See ya!]
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
karapetyan has quit [Ping timeout: 246 seconds]
duckpuppy has quit [Ping timeout: 246 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
schneider has quit [Ping timeout: 264 seconds]
karapetyan has joined #ruby
Tempesta has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
deathwishdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lytol has quit [Remote host closed the connection]
ramfjord has quit [Quit: Lost terminal]
<zenspider>
hah
schneider has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<zenspider>
mgraf: dude. please upgrade. Pay someone to do just that if you have to.
<mgraf>
Yeah, I'm at a coffee shop. I'll log off
<mgraf>
see ya guys :)
<zenspider>
I am too? How is that relevant? I'm just saying that being on rails 3.2 these days doesn't make sense
<mgraf>
Oh, you're talking about [redacted] - I thought you were talking about my crappy internet
<mgraf>
Yes... we need to, we're going to move to 5 by Q4
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mgraf>
We had a candidate tell us in some really kind words that we needed to upgrade _badly_ (we are aware) - on top of everything, it looks poor to potential canidates...
pastorinni has joined #ruby
schneider has quit [Ping timeout: 264 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
schneider has joined #ruby
rafik has quit [Ping timeout: 264 seconds]
cdg has joined #ruby
guille-moe has quit [Ping timeout: 260 seconds]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
reber has quit [Remote host closed the connection]
ltt has joined #ruby
netherwolfe has joined #ruby
tolerablyjake has quit [Ping timeout: 276 seconds]
<mgraf>
@zenspider, where does Unit testing fall, #ruby or #rails?
schneider has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 276 seconds]
<zenspider>
it doesn't just look poor to candidates... the longer you go, the harder it'll be to upgrade.
schneider has joined #ruby
<zenspider>
mgraf: we're happy to answer unit testing questions here... but not rails questions. If you're gonna ask things like "how do I test my controller action when it does X", then that really isn't a testing question and is more of a rails question
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
<mgraf>
of course... It's insult to injury when we have people turn us down because of it...
<zenspider>
I was going to offer my consulting services for said upgrade... but you're also hinting you don't have test coverage... THAT also looks bad to candidates
sanscoeu_ has joined #ruby
jottr has joined #ruby
<zenspider>
like you're carrying a lit match walking through the middle of a gassy swamp
<mgraf>
Huh, we actually _do_ have the test coverage. We're rocking 94%
<zenspider>
that means nothing
jcalla has quit [Quit: Leaving]
<zenspider>
less than nothing. if you think that means something, THAT means something, but the number is meaningless at this point.
workmad3 has joined #ruby
<mgraf>
How else could I convey that our test coverage is nearly the entire monolith ?
<mgraf>
In this light conversation :)
<mgraf>
I'd be interested to hear about your services, though. We could actually use it.
sanscoeur has quit [Ping timeout: 245 seconds]
<zenspider>
it doesn't say anything about the quality of your tests nor does it say that it is accurate. test coverage tools are a lie. You could have one controller test that winds up hitting all your models and you'll think that they're actually tested. That's a lie.
dr3w_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duckpuppy has joined #ruby
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
ryandv has joined #ruby
KeyJoo has quit [Read error: Connection reset by peer]
Zaab1t has quit [Quit: Zaab1t]
<mgraf>
I completely agree. Our recent (past 1.5 years) - have been very explicit. We're hitting every exception, both red and green path testing. We do have some code that is very old (when we were a scrapy start-up), that covers depricated controllers and models. Our clients are still using (some) of the old endpoints, but we're in the process of yanking them. It just takes time...
dr3w_ has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
alex`` has quit [Quit: WeeChat 2.0.1]
dmitriy_ has joined #ruby
dmitriy_ has quit [Read error: Connection reset by peer]
memo1 has quit [Ping timeout: 276 seconds]
duckpuppy has quit [Ping timeout: 264 seconds]
<desperek>
hi
dmitriy_ has joined #ruby
<desperek>
how can i do something in .each only if it's not last element?
dmitriy_ has quit [Read error: Connection reset by peer]
<mgraf>
can you give an example?
rafik has joined #ruby
<desperek>
mgraf, [1,2,3].each do |n| \- n.capitalize (something that's quite logic here) \- if not last -> ',' \ end
<ruby[bot]>
mgraf: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duckpuppy has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xorgnak has joined #ruby
RedNifre has joined #ruby
<RedNifre>
Hello #ruby !
marxarelli is now known as marxarelli|afk
eckhardt_ has joined #ruby
<havenwood>
RedNifre: hi!
<dminuoso>
havenwood: bye.
<havenwood>
o/
<RedNifre>
My joke project is nearing completion, I just have to create the command line inferface for it. Is there something in the standard library for this or should I just handle ARGV myself?
<RedNifre>
(I'm aware of good cli gems, but I want this to be one tiny self contained script)