eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
houhoulis has joined #ruby
darkhanb has joined #ruby
themsay has joined #ruby
mroutis_ has joined #ruby
esrse has joined #ruby
jetchisel has quit [Ping timeout: 246 seconds]
mroutis has quit [Ping timeout: 272 seconds]
jetchisel has joined #ruby
za1b1tsu has joined #ruby
mangold has joined #ruby
za1b1tsu has quit [Ping timeout: 244 seconds]
za1b1tsu has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lukelukeluke has joined #ruby
mangold has joined #ruby
lukelukeluke has quit [Ping timeout: 268 seconds]
arescorpio has joined #ruby
houhoulis has quit [Remote host closed the connection]
mroutis_ has quit [Read error: Connection reset by peer]
mroutis has joined #ruby
c0ncealed4 has quit [Remote host closed the connection]
sanscoeu_ has joined #ruby
c0ncealed4 has joined #ruby
sanscoeur has quit [Ping timeout: 252 seconds]
cthulchu has quit [Remote host closed the connection]
cthulchu has joined #ruby
sanscoeu_ has quit [Ping timeout: 244 seconds]
arescorpio has quit [Quit: Leaving.]
braincrash has quit [Quit: bye bye]
braincrash has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
exchgr has joined #ruby
eckhardt_ has joined #ruby
Inline has quit [Ping timeout: 264 seconds]
mroutis has quit [Read error: Connection reset by peer]
mroutis has joined #ruby
patr0clus has joined #ruby
Inside has quit [Disconnected by services]
cd has quit [Quit: cd]
Sauvin has joined #ruby
Guest53511 has joined #ruby
nicesignal has quit [Quit: WeeChat 1.9.1]
nicesignal has joined #ruby
Guest53511 has quit [Ping timeout: 268 seconds]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
SeepingN has quit [Disconnected by services]
SeepingN_ has joined #ruby
SeepingN_ has quit [Client Quit]
marz_d`ghostman has joined #ruby
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
exchgr has quit [Ping timeout: 252 seconds]
exchgr has joined #ruby
DTZUZU has joined #ruby
<marz_d`ghostman>
I have a test in rspec: https://gist.github.com/marzdgzmn/b3d8ec6e60bc700a5fd1c8b58247ff8d I'm just quite confused if I intentionally make the first expect to fail, it doesn't give me an error that that expects fails instead it gives me an error that the second expect failed.
patr0clus has quit [Ping timeout: 240 seconds]
DTZUZU has quit [Quit: WeeChat 2.2]
dellavg_ has joined #ruby
mroutis has quit [Remote host closed the connection]
DTZUZU has joined #ruby
apparition has joined #ruby
madhatter has quit [Remote host closed the connection]
madhatter has joined #ruby
gigetoo has quit [Ping timeout: 252 seconds]
gigetoo has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
im0nde has joined #ruby
mangold has joined #ruby
edwardly has quit [Ping timeout: 244 seconds]
kapil____ has quit [Quit: Connection closed for inactivity]
prestorium has joined #ruby
im0nde has quit [Quit: im0nde]
conta has joined #ruby
prestorium has quit [Quit: prestorium]
mangold has quit [Quit: This computer has gone to sleep]
Guest70792 has joined #ruby
clemens3_ has joined #ruby
prestorium has joined #ruby
venmx has joined #ruby
Guest70792 has quit [Ping timeout: 268 seconds]
postmodern_ has joined #ruby
postmodern has quit [Ping timeout: 252 seconds]
Fernando-Basso has joined #ruby
postmodern has joined #ruby
postmodern_ has quit [Ping timeout: 268 seconds]
venmx has quit [Ping timeout: 252 seconds]
phaul has joined #ruby
edwardly has joined #ruby
drale2k_ has joined #ruby
ansraliant has quit [Quit: My planet needs me]
aufi has joined #ruby
Fernando-Basso has quit [Remote host closed the connection]
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Guest70792 has joined #ruby
drale2k_ has joined #ruby
scott4000 has quit [Ping timeout: 250 seconds]
DTZUZO has quit [Ping timeout: 252 seconds]
postmodern has quit [Quit: Leaving]
esrse has quit [Ping timeout: 272 seconds]
prestorium has quit [Quit: prestorium]
<marz_d`ghostman>
does system/backticks wait for the child process to finish or does it do it asynchronously?
blackmesa1 has joined #ruby
<tbuehlmann>
they wait
<marz_d`ghostman>
tbuehlmann: oh so the only additional feature Open3 gives is the capturing of stdout and stderr
<marz_d`ghostman>
Is there a way I could capture stderr using plain old backticks though?
themsay has quit [Ping timeout: 240 seconds]
donofrio has quit [Remote host closed the connection]
<tbuehlmann>
I don't think so
mangold has joined #ruby
Burgestrand has joined #ruby
aufi has quit [Ping timeout: 252 seconds]
venmx has joined #ruby
Guest53511 has joined #ruby
kaleido has quit [Remote host closed the connection]
apparition has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rubydoc has quit [Remote host closed the connection]
<Cork>
is it possible to pack to alphanumeric? [0, 10, "TI00021"] => "0010TI00021 "
<Cork>
i know the last part pack("? ? A12") but what about the first two values?
drbrain has joined #ruby
apparition has joined #ruby
jamied has joined #ruby
dhollinger has joined #ruby
<phaul>
Cork: I'm no packspert, but I don't think so. You can't tel what to pack to, you can only tell what to pack from. (exceptions apply)
<Cork>
hmm pitty; will have to mangle the array before hand then; thx!
gix has joined #ruby
im0nde has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cd has joined #ruby
whysthatso has joined #ruby
blackmesa1 has quit [Ping timeout: 252 seconds]
Guest70792 has quit [Ping timeout: 244 seconds]
drale2k_ has joined #ruby
AJA4350 has joined #ruby
supergeek has joined #ruby
venmx has joined #ruby
Burgestrand has quit [Quit: Closing time!]
supergeek has quit [Quit: Goodbye cruel world...]
meinside has joined #ruby
za1b1tsu has quit [Ping timeout: 252 seconds]
Nicmavr has quit [Read error: Connection reset by peer]
GodFather has joined #ruby
Nicmavr has joined #ruby
<marz_d`ghostman>
Is it a good practice for a constructer of an object to assign the properties of an argument(object) as its own properties? Or will it be better to just immediately access the argument/object's properties?
Azure has quit [Ping timeout: 252 seconds]
<marz_d`ghostman>
E.g. Job.new(name: 'job-name', type: 'job-type) then you pass this object to Task.new(name: Job.name, type: Job.type)? or just immediately use Job.name inside Task?
<phaul>
I would store Job in Task
<marz_d`ghostman>
phaul: so Task.new(job: Job)? WHy?
<phaul>
then Job can implement Job things.. single responsibility principle
<phaul>
Altough this is a bit vague at this moment to form a design, but that's my immediate first reaction
<phaul>
on the other hand just for the sake of argument passing I wouldn't introduce new types. Only if they are actual proper types of the design
<phaul>
so either 1. Task.new(name: name, type: type) or if Job exists anyway Task.new(job: job)
cabotto has joined #ruby
<marz_d`ghostman>
job: job seems simple for me too. Perhaps I'll just put in the documentation what job properties is required before it gets passed in to task
whysthatso has quit [Quit: whysthatso]
GodFather has quit [Ping timeout: 252 seconds]
<phaul>
marz_d`ghostman: you need to think about whether you already have Job and Task class. what's the diffrence between them. Is Task an extended version of Job? => inheritance. Does Task contain Jobs => delegate. Is Job needed at all or always have Tasks. Is name & type the sole attributes of Job and if not is there an intersection between Tasks & Jobs that's yet to be discovered as a new type
za1b1tsu has joined #ruby
cabotto has quit [Remote host closed the connection]
cabotto has joined #ruby
djellemah_ is now known as djellemah
za1b1tsu has quit [Ping timeout: 245 seconds]
elphe has joined #ruby
lukelukeluke has joined #ruby
GodFather has joined #ruby
AJA4350 has quit [Quit: AJA4350]
za1b1tsu has joined #ruby
ua has joined #ruby
Guest70792 has joined #ruby
dabedoc has joined #ruby
asphyxia has quit [Ping timeout: 272 seconds]
dabedoc has left #ruby [#ruby]
roshanavand has joined #ruby
lukelukeluke has quit [Ping timeout: 252 seconds]
whysthatso has joined #ruby
<marz_d`ghostman>
phaul: Yeah, thanks for the suggestion. Guess tasks just executes job, so having job inside task makes sense.
Burgestrand has joined #ruby
Burgestr_ has joined #ruby
Burgestrand has quit [Ping timeout: 252 seconds]
jamied has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aufi has quit [Ping timeout: 252 seconds]
apparition has quit [Quit: Bye]
rwb has quit [Ping timeout: 246 seconds]
whysthatso has quit [Quit: whysthatso]
cabotto has quit []
za1b1tsu has quit [Ping timeout: 246 seconds]
Burgestrand has joined #ruby
Burgestr_ has quit [Ping timeout: 245 seconds]
phaul has quit [Quit: bye]
phaul has joined #ruby
blackmesa1 has joined #ruby
phaul has quit [Quit: bye]
phaul has joined #ruby
fluxAeon has joined #ruby
aufi has joined #ruby
phaul has quit [*.net *.split]
roshanavand has quit [*.net *.split]
GodFather has quit [*.net *.split]
ua has quit [*.net *.split]
venmx has quit [*.net *.split]
drale2k_ has quit [*.net *.split]
cd has quit [*.net *.split]
dhollinger has quit [*.net *.split]
edwardly has quit [*.net *.split]
dellavg_ has quit [*.net *.split]
c0ncealed4 has quit [*.net *.split]
cthulchu has quit [*.net *.split]
Sembei has quit [*.net *.split]
mr_rich101 has quit [*.net *.split]
BTRE has quit [*.net *.split]
weaksauce has quit [*.net *.split]
lytol has quit [*.net *.split]
nofxx has quit [*.net *.split]
dionysus69 has quit [*.net *.split]
Xeago has quit [*.net *.split]
stooj has quit [*.net *.split]
xuanrui has quit [*.net *.split]
jtdowney has quit [*.net *.split]
paraxial has quit [*.net *.split]
ged has quit [*.net *.split]
segy has quit [*.net *.split]
dachi has quit [*.net *.split]
Flonk has quit [*.net *.split]
Bish has quit [*.net *.split]
Tempesta has quit [*.net *.split]
SuperL4g has quit [*.net *.split]
Miron has quit [*.net *.split]
salasrod has quit [*.net *.split]
cranq has quit [*.net *.split]
lightstalker has quit [*.net *.split]
cliluw has quit [*.net *.split]
livcd has quit [*.net *.split]
camilasan has quit [*.net *.split]
nickjj has quit [*.net *.split]
ohcibi has quit [*.net *.split]
jidar has quit [*.net *.split]
dysfigured has quit [*.net *.split]
Cyrus has quit [*.net *.split]
trif has quit [*.net *.split]
pabs has quit [*.net *.split]
Flonk has joined #ruby
dysfigured has joined #ruby
cranq has joined #ruby
Tempesta has joined #ruby
Sembei has joined #ruby
ohcibi has joined #ruby
jtdowney has joined #ruby
dachi has joined #ruby
BTRE has joined #ruby
livcd has joined #ruby
mr_rich101 has joined #ruby
Cyrus has joined #ruby
cthulchu has joined #ruby
lightstalker has joined #ruby
gsingh93 has quit [Ping timeout: 246 seconds]
cliluw has joined #ruby
Xeago has joined #ruby
dellavg_ has joined #ruby
xuanrui has joined #ruby
stooj has joined #ruby
dionysus69 has joined #ruby
nickjj has joined #ruby
Miron has joined #ruby
houhoulis has joined #ruby
edwardly has joined #ruby
cd has joined #ruby
c0ncealed4 has joined #ruby
rokumatsumoto has joined #ruby
gsingh93 has joined #ruby
venmx has joined #ruby
salasrod has joined #ruby
rokumatsumoto has quit [Client Quit]
jamied has joined #ruby
Guest53511 has quit [Ping timeout: 246 seconds]
segy has joined #ruby
jetchisel has quit [Ping timeout: 252 seconds]
roshanavand has joined #ruby
phaul has joined #ruby
SeepingN has joined #ruby
paraxial has joined #ruby
conta has quit [Ping timeout: 252 seconds]
za1b1tsu has joined #ruby
za1b1tsu has quit [Ping timeout: 250 seconds]
jetchisel has joined #ruby
kaleido has joined #ruby
rippa has joined #ruby
rwb has joined #ruby
Rapture has joined #ruby
Rapture has quit [Read error: Connection reset by peer]
elphe has quit [Ping timeout: 268 seconds]
Inside has joined #ruby
<Inside>
\o
jesfre has joined #ruby
jesfre has quit [Client Quit]
cow[moo] has joined #ruby
mangold has quit [Quit: This computer has gone to sleep]
orbyt_ has joined #ruby
blackmesa1 has quit [Ping timeout: 250 seconds]
donofrio has joined #ruby
ged has joined #ruby
Sup3rLurk has joined #ruby
tpendragon has quit [Ping timeout: 250 seconds]
ellcs has joined #ruby
mahlon has quit [Ping timeout: 252 seconds]
tpendragon has joined #ruby
mahlon has joined #ruby
houhoulis has quit [Remote host closed the connection]
Burgestrand has quit [Ping timeout: 252 seconds]
aufi has quit [Ping timeout: 244 seconds]
irdr has joined #ruby
renlo has joined #ruby
meinside has quit [Quit: Connection closed for inactivity]
irdr has quit [Max SendQ exceeded]
irdr has joined #ruby
conta has joined #ruby
irdr has quit [Remote host closed the connection]
jamied has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gigetoo has quit [Ping timeout: 268 seconds]
gigetoo has joined #ruby
renlo has quit [Ping timeout: 252 seconds]
jcarl43 has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marz_d`ghostman has quit [Ping timeout: 256 seconds]
blackmesa1 has joined #ruby
ellcs has quit [Ping timeout: 264 seconds]
mangold has joined #ruby
whathappens has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
clemens3_ has quit [Ping timeout: 252 seconds]
ivanskie has joined #ruby
whathappens has quit [Remote host closed the connection]
jamied has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
al2o3-cr has joined #ruby
blackmesa1 has quit [Ping timeout: 264 seconds]
venmx has quit [Remote host closed the connection]
alem0lars has joined #ruby
alem0lars has quit [Read error: Connection reset by peer]
venmx has joined #ruby
alwyn has quit [Quit: WeeChat 2.3]
blackmesa1 has joined #ruby
<phaul>
al2o3-cr: the code is from ruby[bot] so everything works the same way, ast>> asm>> tok>> and versions. 20>> 21>>. It's all a bit of a hack, and I had to hammer it into rubydoc, but it runs for now