apeiros_ changed the topic of #ruby-lang to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste code on http://gist.github.com
diegoviola has joined #ruby-lang
cmisenas has quit [Quit: cmisenas]
lytol has quit [Read error: Connection reset by peer]
_br_ has quit [Ping timeout: 245 seconds]
lytol has joined #ruby-lang
Musashi007 has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
mando_ has quit [Ping timeout: 246 seconds]
nathanstitt has joined #ruby-lang
diegoviola has quit [Remote host closed the connection]
Averna has joined #ruby-lang
diegoviola has joined #ruby-lang
djbkd has joined #ruby-lang
caseypatrickdris has joined #ruby-lang
caseypatrickdris is now known as caseydriscoll
tunaCanBruh has quit [Ping timeout: 246 seconds]
djbkd has quit [Ping timeout: 256 seconds]
imperator has quit [Quit: Valete!]
taylorrf has joined #ruby-lang
roamingdog has joined #ruby-lang
gwendall has quit []
malconis has joined #ruby-lang
taylorrf has quit [Ping timeout: 264 seconds]
__butch__ has quit [Quit: Leaving.]
djbkd has joined #ruby-lang
postmodern has quit [Quit: Leaving]
matrisking has quit [Quit: leaving]
roamingdog has quit [Remote host closed the connection]
|jemc| has quit [Ping timeout: 245 seconds]
ghostpl_ has joined #ruby-lang
fujimura has joined #ruby-lang
<DynamicMetaFlow> Hello everyone I'm back
centrx has quit [Quit: Shutting down, Please wait...]
maso has joined #ruby-lang
ghostpl_ has quit [Ping timeout: 264 seconds]
smoitra has quit [Remote host closed the connection]
riotjones has joined #ruby-lang
maso has quit [Remote host closed the connection]
Chaotix has joined #ruby-lang
Chaotix has left #ruby-lang [#ruby-lang]
maso has joined #ruby-lang
DynamicMetaFlow has quit [Quit: Page closed]
DynamicMetaFlow has joined #ruby-lang
riotjones has quit [Ping timeout: 250 seconds]
fujimura has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
auzty has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
bruno- has joined #ruby-lang
LMity has joined #ruby-lang
chouhoulis has joined #ruby-lang
yellowgh0st has quit [Quit: yellowgh0st]
tunaCanBruh has quit [Ping timeout: 256 seconds]
bruno- has quit [Ping timeout: 252 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SuMo_D has joined #ruby-lang
marr has quit []
shinnya has quit [Ping timeout: 245 seconds]
chouhoulis has quit [Remote host closed the connection]
LMity has quit [Ping timeout: 245 seconds]
roamingdog has joined #ruby-lang
yfeldblu_ has quit [Remote host closed the connection]
jefus has quit [Ping timeout: 250 seconds]
Musashi007 has quit [Quit: Musashi007]
arBmind1 has quit [Quit: Leaving.]
Miphix has joined #ruby-lang
diegoviola has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
fujimura has joined #ruby-lang
nathanstitt has quit [Read error: Connection reset by peer]
nathanstitt has joined #ruby-lang
bruno- has joined #ruby-lang
jefus has joined #ruby-lang
amsi has quit [Quit: Leaving]
kfpratt has quit [Remote host closed the connection]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tenderlove has quit [Quit: Leaving...]
mando_ has joined #ruby-lang
yfeldblum has joined #ruby-lang
lytol has quit [Remote host closed the connection]
auzty has quit [Quit: Leaving]
auzty has joined #ruby-lang
Sirupsen has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
fujimura has quit [Remote host closed the connection]
roamingdog has joined #ruby-lang
|jemc| has joined #ruby-lang
mmoretti has quit []
Musashi007 has joined #ruby-lang
taylorrf has joined #ruby-lang
deg_ has joined #ruby-lang
jefus has quit [Ping timeout: 252 seconds]
deg has quit [Ping timeout: 276 seconds]
taylorrf has quit [Ping timeout: 252 seconds]
deryl has joined #ruby-lang
deryl is now known as ddd
charliesome has quit [Quit: zzz]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby-lang
amclain has joined #ruby-lang
unreal_ has joined #ruby-lang
cytomich has left #ruby-lang [#ruby-lang]
unreal has quit [Ping timeout: 250 seconds]
taylorrf has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
mando_ has quit [Ping timeout: 265 seconds]
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
roamingdog has quit [Remote host closed the connection]
ghostpl_ has joined #ruby-lang
chouhoulis has joined #ruby-lang
roamingdog has joined #ruby-lang
jefus has joined #ruby-lang
mando_ has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
roamingdog has quit [Read error: No route to host]
roamingdog has joined #ruby-lang
ghostpl_ has quit [Ping timeout: 245 seconds]
chouhoulis has quit [Ping timeout: 250 seconds]
bruno- has quit [Ping timeout: 245 seconds]
cmisenas has joined #ruby-lang
postmodern has joined #ruby-lang
taylorrf has quit [Remote host closed the connection]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
mattyohe has quit [Quit: Connection closed for inactivity]
unreal has joined #ruby-lang
unreal has quit [Changing host]
unreal has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
unreal_ has quit [Ping timeout: 244 seconds]
djbkd has quit [Remote host closed the connection]
tunaCanBruh has joined #ruby-lang
dik_dak has quit [Quit: Textual IRC Client: www.textualapp.com]
tunaCanBruh has quit [Ping timeout: 245 seconds]
lytol has joined #ruby-lang
wallerdev has joined #ruby-lang
wallerdev has quit [Client Quit]
lytol has quit [Ping timeout: 246 seconds]
yfeldblu_ has joined #ruby-lang
mando_ has quit [Quit: WeeChat 1.0.1]
yfeldblum has quit [Ping timeout: 265 seconds]
havenwoo_ has quit []
cmisenas has quit [Quit: cmisenas]
Musashi007 has joined #ruby-lang
x0f has quit [Ping timeout: 250 seconds]
wallerdev has joined #ruby-lang
wallerdev has quit [Client Quit]
oleo is now known as Guest88958
oleo__ has joined #ruby-lang
wallerdev has joined #ruby-lang
Guest88958 has quit [Ping timeout: 245 seconds]
bruno- has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
bruno- has quit [Ping timeout: 256 seconds]
amystephen has quit [Quit: amystephen]
ddd has quit [Quit: leaving]
postmodern has quit [Quit: Leaving]
spuk has quit [Ping timeout: 246 seconds]
shtirlic has quit [Ping timeout: 252 seconds]
spuk has joined #ruby-lang
lytol has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
shtirlic has joined #ruby-lang
SuMo_D has joined #ruby-lang
SuMo_D has quit [Ping timeout: 250 seconds]
DynamicMetaFlow has quit [Quit: Leaving]
slawrence00 has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
mattyohe has joined #ruby-lang
kyb3r_ has joined #ruby-lang
anonymousMAC has quit [Quit: later]
<jdecuirm> Hey guys, good night!
<jdecuirm> for debugging do you recommend pry?
ghostpl_ has joined #ruby-lang
Miphix has quit [Ping timeout: 265 seconds]
caseydriscoll has quit [Remote host closed the connection]
Thecrazylumberja has joined #ruby-lang
ghostpl_ has quit [Ping timeout: 265 seconds]
<bnagy> pry is awesome
<bnagy> but you can do everything you need with 'p val' and irb
<jhass> yup, add pry-byebug and pry-stack_explorer and maybe pry-rescue to the mix
<jdecuirm> thanks guys!
<bnagy> also $@ is your friend in rescue clauses
<jdecuirm> i'm checking the api doc of pry, i want to know some states of the objects in several points of the code!
banister has joined #ruby-lang
<jdecuirm> i have tried the p debugging, but it's kinda weird when a lot of objects gets printed and i lose the method sequence lol
ur5us has quit [Remote host closed the connection]
<jhass> you can call binding.pry as many times as you want btw
<jhass> just use c w/ pry-byebug or just Ctrl+D to jump to the next one
Thecrazylumberja has quit [Quit: Leaving]
Thecrazylumberja has joined #ruby-lang
Thecrazylumberja has quit [Client Quit]
Thecrazylumberja has joined #ruby-lang
<jdecuirm> thanks jhass!
Thecrazylumberja has quit [Client Quit]
<jhass> oh, it's next not c. Too much gdb in the recent days I guess :/
Thecrazylumberja has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
Thecrazylumberja has quit [Client Quit]
Thecrazylumberja has joined #ruby-lang
Thecrazylumberja has quit [Client Quit]
Thecrazylumberja has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
gix has quit [Ping timeout: 250 seconds]
AKASkip has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 255 seconds]
<jdecuirm> sorry guys to bother again, i'm struggling like three days to understand this exercise, and i want a second opinion about this
<jdecuirm> i generally understand the methods, but, there is one that it's driving me crazy!
<jdecuirm> i have a method called skip, it gets an array of arrays with tuples, and a second parameter to get compared
<jdecuirm> but, it goes in a while loop and there i lose the logic
gix has joined #ruby-lang
lytol has quit [Remote host closed the connection]
<jhass> jdecuirm: the comment already explains it pretty accurately
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby-lang
clllns has quit [Quit: clllns]
hahuang62 has quit [Ping timeout: 252 seconds]
tkuchiki_ has joined #ruby-lang
tkuchiki has quit [Ping timeout: 255 seconds]
lytol has joined #ruby-lang
micmus has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby-lang
postmodern has joined #ruby-lang
r0bby_ is now known as robbyoconnor
bruno- has quit [Ping timeout: 264 seconds]
Thecrazylumberja has quit [Quit: Leaving]
nathanstitt has quit [Quit: I growing sleepy]
tkuchiki has joined #ruby-lang
allomov has joined #ruby-lang
tkuchiki_ has quit [Ping timeout: 252 seconds]
_Mon_Ouie_ is now known as Mon_Ouie
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby-lang
ur5us has joined #ruby-lang
roamingdog has joined #ruby-lang
ur5us has quit [Ping timeout: 245 seconds]
roamingdog has quit [Ping timeout: 252 seconds]
symm- has quit [Ping timeout: 264 seconds]
dellavg_ has joined #ruby-lang
AKASkip has quit [Ping timeout: 246 seconds]
wallerdev has quit [Quit: wallerdev]
ghostpl_ has joined #ruby-lang
amclain has quit [Quit: Leaving]
futilegames has joined #ruby-lang
ghostpl_ has quit [Ping timeout: 250 seconds]
riotjones has joined #ruby-lang
Xzanron has joined #ruby-lang
riotjones has quit [Ping timeout: 264 seconds]
<bnagy> jdecuirm: this code is... verbose
<jdecuirm> lol
<jdecuirm> sorry bnagy!, finally i got it
<jdecuirm> it was at my nose all the time
<bnagy> I would write, eg, match as return nil unless word_list; word_list.shift[0]==expecting; end
<jdecuirm> and, verbose? like i'm repeating a lot?
<bnagy> except with newlines instead of semicolons
<jdecuirm> oh, is that like syntactic sugar?
<jdecuirm> or something like that?
<bnagy> probably return false unless word_list is better for match, I'd personally expect it to return a bool
<jdecuirm> thanks bnagy, i'll look in to that!
<jdecuirm> pry, pry-nav and pry-stack_explorer is a killer combo!
mattyohe has quit [Quit: Connection closed for inactivity]
<jdecuirm> i just tried them and wow, it's cool debugging with them!
tunaCanBruh has joined #ruby-lang
riffraff has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 245 seconds]
riotjones has joined #ruby-lang
duderonomy has joined #ruby-lang
charliesome has quit [Quit: zzz]
AKASkip has joined #ruby-lang
yellowgh0st has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 255 seconds]
Averna has quit [Quit: Leaving.]
riffraff has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 250 seconds]
ur5us has joined #ruby-lang
ur5us has quit [Read error: Connection reset by peer]
ur5us_ has joined #ruby-lang
cornerman has joined #ruby-lang
igalic has quit [Changing host]
igalic has joined #ruby-lang
cornerma1 has quit [Ping timeout: 246 seconds]
hahuang65 has joined #ruby-lang
iffyuva has joined #ruby-lang
LMity has joined #ruby-lang
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mkaesz has joined #ruby-lang
|jemc| has quit [Ping timeout: 252 seconds]
mathie has joined #ruby-lang
LMity has quit [Ping timeout: 252 seconds]
wallerdev has joined #ruby-lang
mkaesz has quit [Read error: Connection reset by peer]
charliesome has joined #ruby-lang
mkaesz has joined #ruby-lang
strixd has joined #ruby-lang
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mathie has joined #ruby-lang
bzalasky has joined #ruby-lang
ghostpl_ has joined #ruby-lang
lytol has quit [Remote host closed the connection]
matp has quit [Remote host closed the connection]
matp has joined #ruby-lang
ghostpl_ has quit [Ping timeout: 250 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mnilsson has joined #ruby-lang
mkaesz has quit [Read error: Connection reset by peer]
mkaesz has joined #ruby-lang
bruno- has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
tunaCanBruh has joined #ruby-lang
bruno- has quit [Ping timeout: 256 seconds]
cryo28 has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
Thecrazylumberja has joined #ruby-lang
yellowgh0st has quit [Quit: yellowgh0st]
riotjone_ has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: zzz]
AlexAltea has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby-lang
crazysim has quit [Excess Flood]
crazysim has joined #ruby-lang
jkyle1 has quit [Ping timeout: 265 seconds]
riotjones has quit [Ping timeout: 246 seconds]
badeball has quit [Ping timeout: 244 seconds]
badeball has joined #ruby-lang
kyb3r_ has quit [Quit: Leaving]
mnilsson has quit [Ping timeout: 250 seconds]
iffyuva has quit [Ping timeout: 240 seconds]
yellowgh0st has joined #ruby-lang
yellowgh0st has quit [Client Quit]
mkaesz has quit [Read error: Connection reset by peer]
mnilsson has joined #ruby-lang
symm- has joined #ruby-lang
kr3ssh has joined #ruby-lang
yfeldblum has joined #ruby-lang
mkaesz has joined #ruby-lang
jkyle1 has joined #ruby-lang
elia has joined #ruby-lang
yfeldblu_ has joined #ruby-lang
mikecmpbll has joined #ruby-lang
yfeldblum has quit [Ping timeout: 252 seconds]
pepperbreath has quit [Ping timeout: 246 seconds]
pepperbreath has joined #ruby-lang
Thecrazylumberja has quit [Quit: Leaving]
arBmind has joined #ruby-lang
ghostpl_ has joined #ruby-lang
cycorld2 has quit [Ping timeout: 246 seconds]
lytol has joined #ruby-lang
sirfilip has joined #ruby-lang
terabytest has joined #ruby-lang
ghostpl_ has quit [Ping timeout: 246 seconds]
lytol has quit [Ping timeout: 255 seconds]
mkaesz has quit [Read error: Connection reset by peer]
mkaesz has joined #ruby-lang
<yorickpeterse> morning
cryo28 has quit [Quit: leaving]
cryo28 has joined #ruby-lang
mikecmpbll has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby-lang
Musashi007 has joined #ruby-lang
cryo28 has quit [Quit: leaving]
cryo28 has joined #ruby-lang
futilegames_ has joined #ruby-lang
yellowgh0st has joined #ruby-lang
yellowgh0st has quit [Client Quit]
yellowgh0st has joined #ruby-lang
futilegames has quit [Ping timeout: 264 seconds]
futilegames_ is now known as futilegames
hahuang62 has joined #ruby-lang
Musashi007 has quit [Quit: Musashi007]
wallerdev has quit [Quit: wallerdev]
hahuang62 has quit [Ping timeout: 252 seconds]
cryo28 has quit [Quit: leaving]
cryo28 has joined #ruby-lang
Musashi007 has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
terpo has joined #ruby-lang
mnilsson has quit [Ping timeout: 252 seconds]
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mnilsson has joined #ruby-lang
yellowgh0st_ has joined #ruby-lang
yellowgh0st_ has quit [Client Quit]
yellowgh0st_ has joined #ruby-lang
yellowgh0st has quit [Ping timeout: 250 seconds]
yellowgh0st_ is now known as yellowgh0st
yellowgh0st has quit [Client Quit]
cryo28 has quit [Quit: Lost terminal]
mathie has joined #ruby-lang
_br_ has joined #ruby-lang
Xzanron_ has joined #ruby-lang
cryo28 has joined #ruby-lang
Xzanron has quit [Ping timeout: 264 seconds]
arBmind has quit [Quit: Leaving.]
mkaesz has quit [Read error: Connection reset by peer]
yellowgh0st has joined #ruby-lang
mkaesz has joined #ruby-lang
mnilsson has quit [Ping timeout: 250 seconds]
mnilsson has joined #ruby-lang
AKASkip1 has joined #ruby-lang
auzty has quit [Quit: Leaving]
bb010g has quit [Quit: Connection closed for inactivity]
AKASkip has quit [Ping timeout: 244 seconds]
Musashi007 has quit [Quit: Musashi007]
yellowgh0st has quit [Ping timeout: 252 seconds]
arBmind has joined #ruby-lang
yellowgh0st has joined #ruby-lang
cryo28 has quit [Quit: leaving]
cryo28 has joined #ruby-lang
cryo28 has quit [Client Quit]
cryo28 has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 245 seconds]
levifig has quit [Ping timeout: 272 seconds]
levifig has joined #ruby-lang
ldnunes has joined #ruby-lang
maso has quit [Remote host closed the connection]
ArchRogem has joined #ruby-lang
yellowgh0st has quit [Quit: yellowgh0st]
isale-eko has joined #ruby-lang
micmus has joined #ruby-lang
yellowgh0st has joined #ruby-lang
yellowgh0st_ has joined #ruby-lang
yellowgh0st has quit [Ping timeout: 256 seconds]
roamingdog has joined #ruby-lang
yellowgh0st_ has quit [Ping timeout: 252 seconds]
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
<yorickpeterse> https://coderwall.com/p/benm4w/adding-time-interval-to-timestamp-column and this is why I don't trust websites such as coderwall
<yorickpeterse> lets just inject "10.days.ago" into a SQL query
<yorickpeterse> becuase why not
<yorickpeterse> surely that will _always_ return valid SQL
Musashi007 has joined #ruby-lang
ledestin has quit [Quit: ledestin]
Musashi007 has quit [Quit: Musashi007]
<darix> yorickpeterse: "#{10.days}" gives 864000. if pgsql handles adding seconds to a date. that example is totally fine.
terabytest has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
intinig has joined #ruby-lang
<apeiros_> doesn't .ago return a date?
<darix> apeiros_: there was no .ago in the article he referenced
<apeiros_> ah, ok
stamina has joined #ruby-lang
ghostpl_ has joined #ruby-lang
lytol has joined #ruby-lang
<yorickpeterse> darix: when cast to a string yes
<darix> yorickpeterse: which was what they did ;)
<yorickpeterse> However, you can't do something like `timestamp + integer`
<yorickpeterse> in Pg
<yorickpeterse> e.g.
<yorickpeterse> select now() + 86400; is invalid
Musashi007 has joined #ruby-lang
Musashi007 has quit [Client Quit]
<yorickpeterse> and if it's a `date` it would evaluate the 86400 as a number of days, not seconds
<yorickpeterse> select cast(now() as date) + 86400; => select cast(now() as date) + 86400;
<yorickpeterse> errr
<yorickpeterse> 2251-09-09
<yorickpeterse> copy paste fail
<yorickpeterse> So either that code is fucked or they're doing something I'm missing
<darix> yorickpeterse: he missed to mention the datatype of the column he adds to :)
<yorickpeterse> well, I can't think of any time/date types working here
<yorickpeterse> So maybe they're using unix timestamps
<darix> yorickpeterse: what does select cast(now() as time) + 86400;
<darix> yorickpeterse: what does select cast(now() as timestamp) + 86400;
<yorickpeterse> ec
ghostpl_ has quit [Ping timeout: 246 seconds]
<yorickpeterse> both give operator errors
lytol has quit [Ping timeout: 252 seconds]
<yorickpeterse> related, I would really love to have relative time types :/.
<yorickpeterse> as in, some type where you could say "when queried, spit out a date N days in the past relative to the current point in time"
mkaesz has quit [Read error: No route to host]
<darix> should be doable with a postgresql view no?
centrx has joined #ruby-lang
<yorickpeterse> eh, not in the case where I need it
<yorickpeterse> I can't store it standalone sadly
<yorickpeterse> Plus views are slow :/
mkaesz has joined #ruby-lang
terabytest has joined #ruby-lang
cryo28 has quit [Quit: leaving]
cryo28 has joined #ruby-lang
ur5us_ has quit [Remote host closed the connection]
terabytest has quit [Quit: Textual IRC Client: www.textualapp.com]
marr has joined #ruby-lang
AlexAltea has joined #ruby-lang
stamina has quit [Quit: WeeChat 1.1.1]
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
iamninja has quit [Ping timeout: 240 seconds]
t_ has quit [Ping timeout: 250 seconds]
apeiros_ has quit [Ping timeout: 250 seconds]
lguardiola has joined #ruby-lang
tcopeland has quit [Quit: Leaving.]
mkaesz has quit [Read error: Connection reset by peer]
iffyuva has joined #ruby-lang
mkaesz has joined #ruby-lang
tkuchiki has quit [Ping timeout: 246 seconds]
oleo__ has quit [Quit: Verlassend]
ruby-lang420 has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
hhatch has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
mahmoudmahfouz has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
allomov has quit [Remote host closed the connection]
tunaCanBruh has quit [Ping timeout: 255 seconds]
allomov_ has joined #ruby-lang
mahmoudmahfouz has quit [Client Quit]
Bwild has quit [Quit: leaving]
t_ has joined #ruby-lang
mkaesz has quit [Read error: No route to host]
JohnBat26 has joined #ruby-lang
ruby-lang420 has quit [Quit: Page closed]
sirfilip_ has joined #ruby-lang
cryo28 has quit [Quit: leaving]
bruno- has joined #ruby-lang
intinig has quit [Remote host closed the connection]
sirfilip has quit [Ping timeout: 265 seconds]
intinig has joined #ruby-lang
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mkaesz has joined #ruby-lang
oleo has joined #ruby-lang
intinig has quit [Ping timeout: 250 seconds]
roamingdog has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
banister has joined #ruby-lang
ghostpl_ has joined #ruby-lang
maso has joined #ruby-lang
lytol has joined #ruby-lang
iffyuva has quit [Ping timeout: 245 seconds]
Mon_Ouie has quit [Ping timeout: 255 seconds]
elia has quit [Ping timeout: 240 seconds]
roamingdog has joined #ruby-lang
yfeldblu_ has quit [Ping timeout: 252 seconds]
mkaesz has quit [Read error: Connection reset by peer]
mkaesz has joined #ruby-lang
ghostpl_ has quit [Ping timeout: 246 seconds]
lytol has quit [Ping timeout: 240 seconds]
cryo28 has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mathie has joined #ruby-lang
rindolf has joined #ruby-lang
<rindolf> Hi all.
<centrx> You sure are in a lot of channels
<rindolf> centrx: who? I?
<centrx> thy
<rindolf> centrx: what?
<centrx> chicken butt
elia has joined #ruby-lang
<rindolf> :-(
<jhass> ignore him, just bored ;)
postmodern has quit [Remote host closed the connection]
kotay has joined #ruby-lang
iffyuva has joined #ruby-lang
mnilsson has quit [Ping timeout: 252 seconds]
mnilsson has joined #ruby-lang
taylorrf has joined #ruby-lang
isale-eko has quit [Ping timeout: 255 seconds]
isale-eko has joined #ruby-lang
allomov_ has quit [Remote host closed the connection]
allomov has joined #ruby-lang
roamingdog has joined #ruby-lang
tkuchiki has joined #ruby-lang
tcopeland has joined #ruby-lang
nathanstitt has joined #ruby-lang
intinig has joined #ruby-lang
caseydriscoll has joined #ruby-lang
isale-eko has quit [Ping timeout: 244 seconds]
isale-eko has joined #ruby-lang
allomov has quit [Remote host closed the connection]
allomov has joined #ruby-lang
mkaesz has quit [Read error: Connection reset by peer]
mnilsson has quit [Ping timeout: 264 seconds]
intinig has quit [Remote host closed the connection]
intinig has joined #ruby-lang
mkaesz has joined #ruby-lang
gacekjk has joined #ruby-lang
LMity has joined #ruby-lang
yfeldblum has joined #ruby-lang
bruno- has quit [Read error: Connection reset by peer]
billy_ran_away has quit [Ping timeout: 246 seconds]
bruno- has joined #ruby-lang
mnilsson has joined #ruby-lang
workmad3 has joined #ruby-lang
vlad_the_impaler has joined #ruby-lang
billy_ran_away has joined #ruby-lang
bruno- has quit [Read error: Connection reset by peer]
strixd has quit [Quit: 500]
yfeldblum has quit [Ping timeout: 252 seconds]
bruno- has joined #ruby-lang
sankaber has joined #ruby-lang
<vlad_the_impaler> hey all, need some help with using a single partial or form across multiple scaffolds
SuMo_D has joined #ruby-lang
vlad_the_impaler has left #ruby-lang [#ruby-lang]
tunaCanBruh has joined #ruby-lang
chouhoulis has joined #ruby-lang
hplar_ is now known as hplar
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
LMity has quit [Ping timeout: 252 seconds]
ruby-beth has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 252 seconds]
caseydriscoll has quit [Remote host closed the connection]
caseydriscoll has joined #ruby-lang
AKASkip1 has quit [Ping timeout: 240 seconds]
<ruby-beth> I am new to Sinatra / erb and having issue with routes. details and code herehttps://github.com/beth-str/2015-02-13-week4-lodge/issues/1
rsl has joined #ruby-lang
rsl has quit [Client Quit]
taylorrf_ has joined #ruby-lang
<tbuehlmann> ruby-beth, you might miss a / on the links: /admin/add_reservation instead of admin/add_reservation
rsl has joined #ruby-lang
sirfilip_ has quit [Quit: Leaving]
<ruby-beth> thanks @tbuehlmann - not sure how this works - never used it before!
taylorrf has quit [Ping timeout: 252 seconds]
malconis has joined #ruby-lang
b_hoffman has joined #ruby-lang
mkaesz has quit [Read error: No route to host]
amystephen has joined #ruby-lang
mkaesz has joined #ruby-lang
bruno- has quit [Quit: Lost terminal]
ruby-beth has quit [Ping timeout: 246 seconds]
iffyuva has quit [Ping timeout: 252 seconds]
shinnya has joined #ruby-lang
gacekjk has quit [Quit: leaving]
x0f has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
taylorrf_ has quit [Remote host closed the connection]
taylorrf has joined #ruby-lang
tkuchiki_ has joined #ruby-lang
terpo has quit []
taylorrf has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Ping timeout: 250 seconds]
banister has joined #ruby-lang
tmpo has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
micmus has quit [Ping timeout: 264 seconds]
iamninja has joined #ruby-lang
ghostpl_ has joined #ruby-lang
iamninja has quit [Client Quit]
intinig has quit [Remote host closed the connection]
iamninja has joined #ruby-lang
lytol has joined #ruby-lang
intinig has joined #ruby-lang
iamninja has quit [Client Quit]
mkaesz has quit [Read error: No route to host]
mkaesz has joined #ruby-lang
iamninja has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ghostpl_ has quit [Ping timeout: 256 seconds]
lytol has quit [Ping timeout: 264 seconds]
taylorrf has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
tkuchiki_ has quit [Remote host closed the connection]
iamninja has quit [Quit: WeeChat 1.1.1]
tkuchiki has joined #ruby-lang
donovan has joined #ruby-lang
taylorrf has quit [Ping timeout: 265 seconds]
iamninja has joined #ruby-lang
tkuchiki has quit [Ping timeout: 265 seconds]
allomov has quit [Remote host closed the connection]
nathanstitt has joined #ruby-lang
nathanstitt has quit [Client Quit]
iamninja has quit [Client Quit]
mathie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cryo28 has quit [Quit: leaving]
tkuchiki has joined #ruby-lang
Xzanron_ has quit [Quit: Leaving]
roamingdog has quit [Remote host closed the connection]
iamninja has joined #ruby-lang
allomov has joined #ruby-lang
iamninja has quit [Client Quit]
iamninja has joined #ruby-lang
tmpo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamninja has quit [Client Quit]
iamninja has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
iamninja has quit [Client Quit]
nathanstitt has joined #ruby-lang
fujimura has joined #ruby-lang
fujimura has quit [Remote host closed the connection]
fujimura has joined #ruby-lang
sarkyniin has joined #ruby-lang
mattyohe has joined #ruby-lang
sarkyniin has quit [Remote host closed the connection]
b_hoffman has joined #ruby-lang
ruby-beth has joined #ruby-lang
banister has joined #ruby-lang
charliesome has quit [Quit: zzz]
charliesome has joined #ruby-lang
maso has quit [Remote host closed the connection]
roamingdog has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
charliesome has quit [Client Quit]
iamninja has joined #ruby-lang
b_hoffman has joined #ruby-lang
iamninja has quit [Client Quit]
iamninja has joined #ruby-lang
btiefert2 has quit [Read error: Connection reset by peer]
mnilsson has quit [Ping timeout: 245 seconds]
shinnya has quit [Ping timeout: 246 seconds]
rindolf has quit [Quit: http://www.shlomifish.org/ ; It takes Summer Glau exactly a minute to write a rebuttal like in xkcd: “Venting”, and she would sign it as Chuck Norris. ( http://is.gd/U2VvJt )]
slawrence00 has joined #ruby-lang
concernedcitizen has joined #ruby-lang
mkaesz has quit [Read error: No route to host]
b_hoffman has quit [Quit: b_hoffman]
rippa has joined #ruby-lang
b_hoffman has joined #ruby-lang
mkaesz has joined #ruby-lang
micmus has joined #ruby-lang
iamninja has quit [Quit: WeeChat 1.1.1]
ghostpl_ has joined #ruby-lang
b_hoffman has quit [Client Quit]
lsegal` has joined #ruby-lang
iamninja has joined #ruby-lang
concernedcitizen has quit [Remote host closed the connection]
ghostpl_ has quit [Ping timeout: 264 seconds]
tunaCanBruh has quit [Ping timeout: 240 seconds]
iamninja has quit [Quit: WeeChat 1.1.1]
iamninja has joined #ruby-lang
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tkuchiki has quit [Remote host closed the connection]
iamninja has quit [Client Quit]
iamninja has joined #ruby-lang
iamninja has quit [Client Quit]
iamninja has joined #ruby-lang
iamninja has quit [Client Quit]
iamninja has joined #ruby-lang
iamninja has quit [Client Quit]
tunaCanBruh has joined #ruby-lang
allomov has quit [Remote host closed the connection]
DivineEntity has quit [Quit: Lost terminal]
iamninja has joined #ruby-lang
mkaesz has quit [Read error: No route to host]
iamninja has quit [Client Quit]
mkaesz has joined #ruby-lang
DivineEntity has joined #ruby-lang
<yorickpeterse> Aha
<yorickpeterse> derp wrong channel
mathie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
hahuang62 has joined #ruby-lang
<darix> yorickpeterse: at least it was just "aha" and nothing worse ;)
havenwood has joined #ruby-lang
jgpawletko has joined #ruby-lang
chouhoul_ has joined #ruby-lang
roamingdog has quit [Remote host closed the connection]
<yorickpeterse> Hey I don't use hunter2 as my password
_whitelogger has joined #ruby-lang
micmus has quit [Ping timeout: 265 seconds]
chouhoulis has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby-lang
chouhoul_ has quit [Ping timeout: 240 seconds]
<darix> anymore?
chouhoulis has joined #ruby-lang
LMity has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
iamninja has joined #ruby-lang
b_hoffman has joined #ruby-lang
momomomomo has joined #ruby-lang
iamninja has quit [Client Quit]
|jemc| has joined #ruby-lang
<yorickpeterse> maybe
b_hoffman has quit [Quit: b_hoffman]
lytol has joined #ruby-lang
mkaesz has quit [Read error: No route to host]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
b_hoffman has joined #ruby-lang
stef204 has joined #ruby-lang
mkaesz has joined #ruby-lang
kfpratt has joined #ruby-lang
lytol has quit [Ping timeout: 255 seconds]
bzalasky has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
piotrj has joined #ruby-lang
bzalasky has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
intinig has quit [Remote host closed the connection]
iamninja has joined #ruby-lang
intinig has joined #ruby-lang
iamninja has quit [Client Quit]
iamninja has joined #ruby-lang
momomomomo has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby-lang
momomomomo has quit [Client Quit]
tunaCanBruh has quit [Ping timeout: 252 seconds]
iamninja has quit [Quit: WeeChat 1.1.1]
arBmind has quit [Quit: Leaving.]
iamninja has joined #ruby-lang
riotjone_ has quit [Remote host closed the connection]
concernedcitizen has joined #ruby-lang
mathie has quit [Quit: Textual IRC Client: www.textualapp.com]
mathie has joined #ruby-lang
intinig has quit [Remote host closed the connection]
hahuang62 has quit [Ping timeout: 252 seconds]
amsi has joined #ruby-lang
momomomomo has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Voker57 has quit []
kr3ssh has quit [Ping timeout: 265 seconds]
Voker57 has joined #ruby-lang
b_hoffman has quit [Quit: b_hoffman]
jkyle1 has quit [Ping timeout: 255 seconds]
Voker57 has quit [Read error: Connection reset by peer]
taylorrf has joined #ruby-lang
b_hoffman has joined #ruby-lang
mkaesz has quit [Read error: Connection reset by peer]
mkaesz has joined #ruby-lang
mathie has quit [Quit: Quitting...]
stef204 has joined #ruby-lang
mathie has joined #ruby-lang
isale-eko has quit [Remote host closed the connection]
b_hoffman has quit [Quit: b_hoffman]
arBmind has joined #ruby-lang
wallerdev has joined #ruby-lang
mathie has quit [Client Quit]
ghostpl_ has joined #ruby-lang
javm has joined #ruby-lang
ghostpl_ has quit [Ping timeout: 250 seconds]
mathie has joined #ruby-lang
deol has joined #ruby-lang
piotrj has quit [Read error: Connection reset by peer]
fusillicode has quit [Ping timeout: 246 seconds]
piotrj has joined #ruby-lang
roamingdog has joined #ruby-lang
mikecmpbll has quit [Ping timeout: 245 seconds]
<Donovan> your password is 'Aha'?
<Donovan> you should probably change that
<centrx> Aha!
<Donovan> heh
wallerdev has quit [Quit: wallerdev]
lytol has joined #ruby-lang
Donovan has quit [Quit: MOM! HANG UP THE PHON^*&$%*!@#... NO CARRIER]
donovanC has joined #ruby-lang
AKASkip has joined #ruby-lang
donovanC is now known as Donovan
<workmad3> my password is *******
<Senjai> workmad3: my password is **********
<Senjai> gotta make yours longer man
<workmad3> Senjai: it's not the size, it's how you use it!
<Senjai> workmad3: http://bash.org/?244321 :P
<Senjai> in case anyone else is silly enough to fall for the same thing xD
<workmad3> Senjai: also, I only use 7 characters for services that allow the entire range of unicode characters in passwords ;)
elia has quit [Quit: Computer has gone to sleep.]
lytol has quit [Ping timeout: 250 seconds]
shazaum has joined #ruby-lang
<Senjai> I use http://www.passwordstore.org/ to manage all my passwords
<Senjai> I also have them in a git repo.
<Senjai> >_> <_<
banister has joined #ruby-lang
mkaesz has quit [Read error: Connection reset by peer]
<Senjai> I'm pretty sure I could make it public 4tehlolz, but I'm not going to test my luck
<Senjai> They'd be more likely to steal my private key than break the encryption :P
mkaesz has joined #ruby-lang
hahuang62 has joined #ruby-lang
riotjones has joined #ruby-lang
kr3ssh has joined #ruby-lang
mnilsson has joined #ruby-lang
iamninja has quit [Quit: WeeChat 1.1.1]
concernedcitizen has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
Voker57 has joined #ruby-lang
hahuang62 has quit [Ping timeout: 252 seconds]
riotjones has quit [Ping timeout: 244 seconds]
wallerdev has joined #ruby-lang
ruby-lang876 has joined #ruby-lang
Voker57 has quit [Ping timeout: 252 seconds]
<ruby-lang876> I'm using rvm. I need to use a particular gemset when i try to run a particular ruby script. I want to run the script from any folder
<ruby-lang876> How to set the rvm gemset inside the ruby script
<ruby-lang876> ?
iamninja has joined #ruby-lang
<ruby-lang876> How to set the rvm gemset inside a ruby script?
ruby-beth has quit [Ping timeout: 246 seconds]
momomomomo has quit [Quit: momomomomo]
djbkd has joined #ruby-lang
mnilsson has quit [Ping timeout: 246 seconds]
lytol has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 255 seconds]
pixman has joined #ruby-lang
djbkd has quit [Ping timeout: 264 seconds]
skade has joined #ruby-lang
djbkd has joined #ruby-lang
jkyle1 has joined #ruby-lang
ruby-lang876 has quit [Ping timeout: 246 seconds]
ghostpl_ has joined #ruby-lang
futilegames has quit [Quit: futilegames]
ghostpl_ has quit [Ping timeout: 246 seconds]
centrx has quit [Quit: Shutting down, Please wait...]
hahuang61 has joined #ruby-lang
kr3ssh has quit [Ping timeout: 265 seconds]
setanta_ has joined #ruby-lang
mkaesz has quit [Read error: Connection reset by peer]
mkaesz has joined #ruby-lang
workmad3 has quit [Ping timeout: 245 seconds]
jkyle1 has quit [Quit: WeeChat 1.0.1]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby-lang
momomomomo has joined #ruby-lang
skade has quit [Ping timeout: 255 seconds]
<bougyman> it's too late once you're in ruby
skade has joined #ruby-lang
<bougyman> rvm use 2.2.0@gemset_name before you start the ruby interpreter.
yfeldblum has quit [Ping timeout: 244 seconds]
<bougyman> Assume you have 'thescript.rb', you can use rvm wrapper to create the proper wrapper for it.
marr has quit [Ping timeout: 252 seconds]
<bougyman> or just write thescript.sh containing "#!/bin/bash\nrvm use 2.2.0@gemset_name && exec ruby thescript.rb"
Mon_Ouie has quit [Ping timeout: 245 seconds]
chacmool has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
kotay has quit [Quit: Connection closed for inactivity]
kr3ssh has joined #ruby-lang
iamninja has quit [Ping timeout: 252 seconds]
daneoke has joined #ruby-lang
daneoke is now known as Daneo
pixman has quit [Quit: Ухожу я от вас]
riotjones has joined #ruby-lang
<Daneo> Anyone that would be able to explain the following to me ?
__butch__ has joined #ruby-lang
<Daneo> The line ' @publication.title = 'Derpie'' fails to compile when running the tests, while the line above it works as expected. Probably something I don't know as I'm not that familiar with Ruby. But I'm curious to the cause of this.
solars has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
riotjones has quit [Ping timeout: 252 seconds]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
mkaesz has quit [Read error: No route to host]
mkaesz has joined #ruby-lang
<|jemc|> Daneo: it has to do with how RSpec works
<|jemc|> Daneo: `before` blocks and `it` blocks are executed later by the test runner as tests/examples, with the example object as `self`
<|jemc|> Daneo: `describe` blocks and `context` blocks are executed "immediately" when your file loads, with what you can think of as the example 'class' as `self`
mikecmpbll has joined #ruby-lang
<|jemc|> so `@publication` in your `before` block is an instance variable of your example object, so it is not accessible in the example 'class' in the `context` block
<Daneo> Because it has yet to be initialised
<|jemc|> in short, an easy way to make your code work is to put your `@publication.title = ...` in a `before` block inside of your `context`
<|jemc|> Daneo: there are two reasons you can't reach it from there
<|jemc|> what you said is true, it is not yet initialized, but the biggest reason is its not executed on the same `self`
<|jemc|> so it's not even getting stored/retrieved in the same object
lytol has quit [Remote host closed the connection]
lytol has joined #ruby-lang
lytol has quit [Remote host closed the connection]
<Daneo> Hmm. Okey.
<|jemc|> Daneo: also, take a look at `let` blocks in rspec
allomov has joined #ruby-lang
<|jemc|> they are preferred by many over using instance variables in the example object
<pipework> They also behave radically differently.
<|jemc|> yes
<|jemc|> which is why they are preferred by many
<Daneo> The 'self' part is kind of confusing. But basically, as nearly everything is considered an object, the 'class' self creates the object's 'self', and after that are considered two different things ?
<|jemc|> Daneo: they are always two different objects
<pipework> Daneo: Actually, everything is an object except keywords.
<Daneo> I'll do. Came across that somewhere.
<|jemc|> an instance of Class is an object that can create an instance of itself with the `new` method
benanne has joined #ruby-lang
<|jemc|> so they are two separate objects, they just have the relation that one created the other
<Daneo> Alright, got that.
<|jemc|> rspec 'hides' the kinds of objects you're dealing with and their relationship because it assumes you know the relation implicitly
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 250 seconds]
<|jemc|> that's why some prefer tests frameworks like minitest or test/unit because it's more obvious you are dealing with
<|jemc|> however, rspec's features are very powerful and useful once you master them
<pipework> Mmmm minitest
<pipework> rspec is a pretty usually good kitchen sink for BDD and testing in general.
piotrj has quit [Ping timeout: 252 seconds]
piotrj has joined #ruby-lang
21WABDYLI has joined #ruby-lang
<Senjai> People say minitest is the best
<Senjai> and I tend to agree with them
<Senjai> but I still use rspec
<Senjai> even though sometimes it beats me, and abuses me
<Senjai> simple prefer it <3
<bougyman> I choose simpler.
<Senjai> not every relationship is pefect
<bougyman> bacon does everything I want without too much magic.
<Daneo> And the behaviour of rspec, the initialisation sequence. how could I've known that? Is that specific to the framework? Or is it more common than that ?
<Senjai> After you use rspec for a bajillion years, it's not magic anymore :P
<bougyman> and it supports tap output, which is great for CI.
<|jemc|> Daneo: it's specific to the framework - it's just something you learn and get used to
<Senjai> Daneo: Im not sure what point |jemc| was trying to make
<Senjai> |jemc|: Are you talking about stubbing?
matrisking has joined #ruby-lang
<|jemc|> Senjai: no
<Senjai> Oh
<Senjai> Daneo: With rspec, the goal is to never set instance variables in before blocks..
<Senjai> if you're doing that, you're not rspecing properly
<|jemc|> Daneo: if you're looking for a general lesson here, just know that any time you pass a block to a method, the receiver could choose to execute that block at any time and from within any context it chooses
<Senjai> Even though its valid, and is the right way of doing it in minitest
<pipework> Yeah, I mean, if you need references to objects, lets are what you need.
<Senjai> ^
<|jemc|> that is, blocks are not always executed immediately, or with the same self as the context you wrote them in
<Senjai> Daneo: I enjoy rspec, but honestly, even thought I started with it, I would advise against starting with it
<pipework> Senjai: Egh, the 'right' way in minitest tend to be either locals, lets, or methods from your ineherited testcase class.
lapide_viridi has joined #ruby-lang
<Senjai> Because it is essentially its own little language
<pipework> err, not lets, instance variables.
<|jemc|> Daneo: so you have to read the documentation or the source code to find out how the block is being used
<Senjai> pipework: Is there the equivilant of let(:symbol) { ... } in minitest?
<pipework> Senjai: Not in minitest proper, but there is in extensions.
<pipework> It's in MiniTest::Spec
<Daneo> Senjai: The 'goal' ? :)
<Senjai> Ah, yeah
<Senjai> Without the "extension" assigning instance variables in before blocks
<Senjai> err
<Senjai> "setup"
<Senjai> functions
<Senjai> is the way to go
roamingdog has quit [Remote host closed the connection]
shinnya has joined #ruby-lang
<Daneo> |jemc|: Okey. Thank you for the explanation
<Daneo> |jemc|: It is a bit more clear now
<Daneo> Senjai: And those setup methods are then called in their respective cases ?
<Senjai> Daneo: With minitest, you can infer that it will do the things properly. That setup is called before every test, and teardown is called after every test
<Senjai> But I would stick with VANILLA minitest, maybe extended with mocha for stubbing/mocking
<Senjai> Until your rails/ruby foo is better, then try rspec if you want. It will be easier to understand the 'magic' then, but you might just end up sticking with minitest :P
<waxjar> minitest runs its test in a random order doesn't it?
<pipework> By default, yes.
<Senjai> So does rspec, and every other decent frameowkr
<Senjai> framework*
<Senjai> tests should always run randomly
<pipework> You have to call an embarrassingly named method to get it to run sequentially.
<pipework> Though it has seeds, so you can reproduce.
<Senjai> pipework: lol, what one is that
<Senjai> No test should ever depend on another test. ergo, running them in any order should always work
<waxjar> agree, i think it's neat that it does that
<Senjai> pipework: Is it #run_my_tests_sequentially_because_im_obviously_doing_something_wrong ?
<Senjai> :P
futilegames has joined #ruby-lang
<Senjai> HAHAHAAHAHAAHAHAHAA
<Senjai> pipework: YOU JUST MADE MY DAY
<pipework> minitest is pretty nice, for the enlightened few.
<Senjai> I will forever use rspec
<Daneo> lol
<Senjai> but thats because i know WAYYY too much about it
<Daneo> Awesome naming
<Senjai> and the language feels like english now.
<Senjai> to me
<Senjai> but it really is kinda terrible
cornerman has quit [Read error: Connection reset by peer]
cornerman has joined #ruby-lang
TTilus has quit [Ping timeout: 264 seconds]
<waxjar> i really like cutest, not randomized tho :(
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
21WABDYLI has quit [Read error: Connection reset by peer]
djbkd has joined #ruby-lang
chacmool has quit [Remote host closed the connection]
javm has quit [Remote host closed the connection]
<|jemc|> if you write your tests correctly, they won't depend on eachother anyway
ur5us has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
<|jemc|> having your tests run in order often makes it easy to pinpoint failures, especially with tests that hang or race conditions
ur5us has joined #ruby-lang
<|jemc|> doing CI in a random order is okay, but while actively working on tests I always prefer to have them run in the order declared
<Senjai> |jemc|: When debugging test order dependencies yes
<Senjai> Nah, you only run them in a specified order (with a specified seed) when its obvious that there is a test order dependency
ghostpl_ has joined #ruby-lang
<|jemc|> my tests are never order-dependent
<|jemc|> my brain is
<pipework> |jemc|: I just have tests be random everywhere.
<pipework> If something's off, I use the seed from that run to find the problem.
<pipework> ETERNAL VIGILANCE!
<|jemc|> I've literally never had a problem caused by or covered up by the order of my tests
<pipework> I have.
<waxjar> haven't run into it yet either, but maybe thats *because* my tests run in order :P
<pipework> There's not much benefit to having them run order dependent. Like, I can't see much value in warm fuzzies. The only time I run tests in the declared order is with the documentation formatter for rspec. And even then just to read the output once and then I got back to random order.
marr has joined #ruby-lang
isale-eko has joined #ruby-lang
<|jemc|> pipework: the benefit is merely aesthetic and for my workflow efficiency, but with proper encapsulation of tests, randomized test order doesn't solve an actual need for me
ghostpl_ has quit [Ping timeout: 246 seconds]
mkaesz has quit [Read error: Connection reset by peer]
<|jemc|> so the small benefits are worth it
<pipework> It's hard to see that your order dependent tests are bad until you run them randomly. You might only see a problem every 1000 runs, but you won't see that unless you run them in random order. I can write tests that work in order 100% of the time and then fail legitimately when ran in random order.
<pipework> I disagree, but I'd just override your settings on my machine if we worked together.
mkaesz has joined #ruby-lang
<|jemc|> pipework: on my team we have an analogous disagreement about "failing fast" and that's what we do - just override settings on the local dev's machine
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
TTilus has joined #ruby-lang
lytol has joined #ruby-lang
<pipework> |jemc|: Yeah, I do that, but then call out authors that author bad things because their settings didn't suss out the issue in the commit that fixes it.
<|jemc|> fair enough
<waxjar> |jemc|: what benefits do you get by running them order-dependent?
<pipework> waxjar: The order is always the same, so he can read the output in a consistent manner, is my guess.
yfeldblum has joined #ruby-lang
shazaum has quit [Quit: This computer has gone to sleep]
<|jemc|> waxjar: I don't run them "order-dependent", I just run them in order
<waxjar> heh, *in order
<|jemc|> but as I said above, it's mostly aesthetic, with small workflow efficiency gains by being able to make a visual map of what's churning beneath those dots
<|jemc|> I also use the Fivemat formatter, which groups tests by toplevel `describe` name
<waxjar> ah, i see. fair enough
<pipework> So your tests don't run fast enough that you have time to think? :D
<|jemc|> heh
<|jemc|> I'm glad we had this discussion though - currently working on a little test framework for my toy language and I didn't realize randomized test order was so widely used
<|jemc|> I'll have to add a setting for it
<waxjar> now that i think of it, i suppose if cutest ran its tests in a randomized order it would get annoying quickly. it's stops running tests after the first failing test
<waxjar> that could be another test for every run :P
<|jemc|> waxjar: yes, in-order and fail-fast is my preference
<|jemc|> I only want to see one backtrace at a time
<|jemc|> (except in CI)
roamingdog has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
ldnunes has quit [Quit: Leaving]
whippythellama has quit [Quit: whippythellama]
<pipework> I usually just use random order with seeds, sometimes fail-fast when working on one thing, but when running the whole suite, I don't use fail-fast.
jefus has quit [Ping timeout: 265 seconds]
banister has joined #ruby-lang
wprice has joined #ruby-lang
Musashi007 has joined #ruby-lang
jds has quit [Quit: Connection closed for inactivity]
Daneo has quit [Ping timeout: 246 seconds]
wallerdev has quit [Quit: wallerdev]
futilegames has quit [Quit: futilegames]
yfeldblum has quit [Remote host closed the connection]
<banister> yorickpeterse love the slogan for KFC in holland "more spice than in some garden"
taylorrf has quit [Remote host closed the connection]
jefus has joined #ruby-lang
spuk has quit [Changing host]
spuk has joined #ruby-lang
solars has quit [Ping timeout: 246 seconds]
duderonomy has joined #ruby-lang
skade has joined #ruby-lang
skade has quit [Client Quit]
tunaCanBruh has quit [Ping timeout: 265 seconds]
fusillicode has joined #ruby-lang
tunaCanBruh has joined #ruby-lang
taylorrf has joined #ruby-lang
mnilsson has joined #ruby-lang
riotjones has joined #ruby-lang
zoo-zed has joined #ruby-lang
riotjones has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby-lang
lytol has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
postmodern has joined #ruby-lang
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
bb010g has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
mnilsson has quit [Ping timeout: 250 seconds]
isale-eko has quit [Read error: No route to host]
momomomomo has quit [Quit: momomomomo]
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
havenwood has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
dagda1 has joined #ruby-lang
havenwood has joined #ruby-lang
j4cknewt has joined #ruby-lang
wallerdev has joined #ruby-lang
lytol has joined #ruby-lang
havenwood has quit [Ping timeout: 264 seconds]
djbkd has joined #ruby-lang
allomov has quit [Remote host closed the connection]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
ghostpl_ has joined #ruby-lang
iamninja has joined #ruby-lang
momomomomo has joined #ruby-lang
duderonomy has joined #ruby-lang
ghostpl_ has quit [Ping timeout: 255 seconds]
rkowalick has joined #ruby-lang
dellavg_ has quit [Ping timeout: 264 seconds]
deol has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mkaesz has quit [Remote host closed the connection]
AKASkip has quit [Ping timeout: 240 seconds]
stardiviner has quit [Ping timeout: 244 seconds]
zoo-zed has quit [Quit: Leaving.]
momomomomo has quit [Quit: momomomomo]
Bwild has joined #ruby-lang
tcopeland has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby-lang
isale-eko has joined #ruby-lang
deol has joined #ruby-lang
Thecrazylumberja has joined #ruby-lang
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stardiviner has joined #ruby-lang
kr3ssh has quit [Ping timeout: 250 seconds]
lapide_viridi has quit [Quit: Leaving]
Musashi007 has quit [Quit: Musashi007]
nathanstitt has quit [Ping timeout: 256 seconds]
jgpawletko has quit [Quit: jgpawletko]
dik_dak has joined #ruby-lang
yfeldblum has joined #ruby-lang
havenwood has joined #ruby-lang
TeuflischEinhorn has quit [Ping timeout: 252 seconds]
iamninja_ has joined #ruby-lang
lsegal` has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
lsegal has joined #ruby-lang
allomov has joined #ruby-lang
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamninja_ has quit [Quit: WeeChat 1.1.1]
skade has joined #ruby-lang
elia has joined #ruby-lang
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby-lang
micmus has joined #ruby-lang
workmad3 has quit [Remote host closed the connection]
caseydriscoll has quit [Remote host closed the connection]
jibaly has joined #ruby-lang
havenwood has quit []
dagda1_ has joined #ruby-lang
allomov has quit [Remote host closed the connection]
Averna has joined #ruby-lang
fusillicode has quit [Ping timeout: 246 seconds]
fusillicode has joined #ruby-lang
TeuflischEinhorn has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 240 seconds]
rkowalick has quit [Quit: leaving]
chadwtaylor has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
tunaCanBruh has joined #ruby-lang
benanne has quit [Quit: kbai]
TeuflischEinhorn has quit [Ping timeout: 264 seconds]
ghostpl_ has joined #ruby-lang
fusillicode has quit [Ping timeout: 252 seconds]
elia has joined #ruby-lang
elia has quit [Client Quit]
Mon_Ouie has joined #ruby-lang
nathanstitt has joined #ruby-lang
ghostpl_ has quit [Ping timeout: 244 seconds]
Swappticon has joined #ruby-lang
nikky has joined #ruby-lang
fusillicode has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
malconis has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
shazaum has joined #ruby-lang
shazaum has quit [Changing host]
shazaum has joined #ruby-lang
jacecore has joined #ruby-lang
Bwild has quit [Ping timeout: 250 seconds]
Bwild has joined #ruby-lang
isale-eko has quit [Ping timeout: 244 seconds]
hhatch has quit [Ping timeout: 264 seconds]
deol has joined #ruby-lang
TeuflischEinhorn has joined #ruby-lang
isale-eko has joined #ruby-lang
mattyohe has quit [Quit: Connection closed for inactivity]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
micmus has quit [Quit: Leaving]
maso has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
test24502 has joined #ruby-lang
matrisking has quit [Ping timeout: 244 seconds]
tcopeland has joined #ruby-lang
tunaCanBruh has quit [Ping timeout: 246 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Swappticon has quit [Quit: Textual IRC Client: www.textualapp.com]
meschi has joined #ruby-lang
charliesome has joined #ruby-lang
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fusillicode has quit [Ping timeout: 265 seconds]
nathanstitt has quit [Quit: I growing sleepy]
fclausen has joined #ruby-lang
chadwtaylor has quit [Remote host closed the connection]
nathanstitt has joined #ruby-lang
elia has joined #ruby-lang
yfeldblum has joined #ruby-lang