orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
facest has joined #ruby
helpa has quit [Ping timeout: 248 seconds]
MonicleLewinsky has quit [Ping timeout: 248 seconds]
pppktz has quit [Ping timeout: 248 seconds]
CBebop has quit [Ping timeout: 248 seconds]
valkyr2e has quit [Ping timeout: 248 seconds]
faces has quit [Ping timeout: 248 seconds]
esObe has quit [Ping timeout: 248 seconds]
vircung has quit [Ping timeout: 248 seconds]
csaunders has quit [Ping timeout: 248 seconds]
irick has quit [Ping timeout: 248 seconds]
sonOfRa has quit [Quit: Bye!]
m4rCsi has quit [Quit: No Ping reply in 180 seconds.]
Gabemo has quit [Ping timeout: 248 seconds]
sonOfRa has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
m4rCsi has joined #ruby
esObe has joined #ruby
vircung has joined #ruby
MonicleLewinsky has joined #ruby
irick has joined #ruby
CBebop has joined #ruby
csaunders has joined #ruby
Gabemo has joined #ruby
cdg has joined #ruby
valkyr2e has joined #ruby
konsolebox has quit [Ping timeout: 260 seconds]
pppktz has joined #ruby
konsolebox has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
rexan has quit [Read error: Connection reset by peer]
rexan has joined #ruby
yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
yxhuvud has joined #ruby
rexan has quit [Ping timeout: 268 seconds]
rexan has joined #ruby
workmad3 has joined #ruby
eljimmy has quit [Quit: Leaving]
rshetty has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
jyaworski has quit [Ping timeout: 264 seconds]
dviola has quit [Quit: WeeChat 2.1]
Asher has joined #ruby
rshetty has quit [Ping timeout: 260 seconds]
troys has quit [Ping timeout: 240 seconds]
p4tch3s has quit [Ping timeout: 276 seconds]
ramfjord has joined #ruby
rshetty has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
trautwein has quit [Quit: ZNC 1.6.6 - http://znc.in]
trautwein has joined #ruby
p4tch3s has joined #ruby
jyaworski has joined #ruby
znz_jp has joined #ruby
b100s has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
kapil___ has quit [Quit: Connection closed for inactivity]
cschneid has quit [Remote host closed the connection]
jyaworski has quit [Ping timeout: 260 seconds]
cschneid has joined #ruby
rshetty has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has joined #ruby
redlegion has quit [Read error: Connection reset by peer]
jnollette has quit [Read error: Connection reset by peer]
cschneid has quit [Remote host closed the connection]
Azure has quit [Read error: Connection reset by peer]
redlegion has joined #ruby
Azure has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
iMadper has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
vondruch has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
Code4Dopamine has quit [Ping timeout: 260 seconds]
nowhere_man has quit [Ping timeout: 240 seconds]
venmx has joined #ruby
reber has joined #ruby
jyaworski has joined #ruby
anisha_ has joined #ruby
rexan has quit [Ping timeout: 240 seconds]
sauvin has joined #ruby
rexan has joined #ruby
jyaworski has quit [Ping timeout: 276 seconds]
jcarl43 has joined #ruby
armyriad has quit [Ping timeout: 260 seconds]
_zach has quit [Ping timeout: 245 seconds]
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
armyriad has joined #ruby
erlend has quit [Ping timeout: 260 seconds]
erlend has joined #ruby
aupadhye has joined #ruby
upinspace has joined #ruby
rshetty has quit [Remote host closed the connection]
upinspace has quit [Client Quit]
rshetty has joined #ruby
upinspace has joined #ruby
upinspace has quit [Client Quit]
venmx has quit [Ping timeout: 246 seconds]
live__ has quit [Quit: Leaving]
alfiemax has joined #ruby
Fenix has joined #ruby
apeiros has quit [Remote host closed the connection]
workmad3 has joined #ruby
pelmenoid has joined #ruby
cdg has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
jyaworski has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
ledestin has joined #ruby
cdg has joined #ruby
detectiveaoi has quit [Read error: Connection reset by peer]
morfin60 is now known as morfin
rshetty has quit [Remote host closed the connection]
<morfin>
hmm
rshetty has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
<morfin>
how do i check some remote resource is available in rspec? I am checking when it's available instance of DaemonCrawler::Client should be yielded when not an exception will be raised(DaemonCrawler::CrawlerError)
ramfjord has joined #ruby
<morfin>
basically i do not want to start daemon i check(because usually i just use best one from list with minimal ping) and it consume too many resources
rshetty has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
ramfjord has quit [Ping timeout: 240 seconds]
Fenix has quit [Ping timeout: 260 seconds]
zenspider_ has joined #ruby
conta has joined #ruby
cdg has quit [Ping timeout: 256 seconds]
rshetty has joined #ruby
zenspider has quit [Read error: Connection reset by peer]
armyriad has quit [Ping timeout: 240 seconds]
jyaworski has quit [Ping timeout: 276 seconds]
armyriad has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
sundhell_away is now known as sundhell
ledestin has quit [Read error: Connection reset by peer]
reber__ has joined #ruby
reber has quit [Ping timeout: 268 seconds]
jcarl43 has quit [Quit: WeeChat 2.1]
rexan has quit [Ping timeout: 240 seconds]
reber__ has quit [Remote host closed the connection]
reber__ has joined #ruby
ryzokuken has quit [Quit: Connection closed for inactivity]
Azure has quit [Read error: Connection reset by peer]
dionysus69 has joined #ruby
Azure has joined #ruby
dionysus69 has quit [Client Quit]
clemens3 has joined #ruby
_rshetty_ has joined #ruby
rahul_bajaj has joined #ruby
aupadhye_ has joined #ruby
Emmanuel_Chanel has quit [Remote host closed the connection]
rabajaj has quit [Read error: Connection reset by peer]
aupadhye has quit [Read error: Connection reset by peer]
<zenspider_>
Radar: no new tool that I know of
dionysus69 has joined #ruby
aufi has joined #ruby
<zenspider_>
morfin: usually you don't test remote resources at all. Are you using rspec for some non-testing purpose?
rshetty has quit [Ping timeout: 256 seconds]
<zenspider_>
I guess, either way, my followup question would be "what's rspec got to do with it?"
zenspider_ is now known as zenspider
zenspider has quit [Changing host]
zenspider has joined #ruby
rabajaj has joined #ruby
aupadhye_ has quit [Ping timeout: 264 seconds]
rahul_bajaj has quit [Ping timeout: 240 seconds]
rexan has joined #ruby
ptx0 has quit [Ping timeout: 240 seconds]
yohji has joined #ruby
andikr has joined #ruby
aupadhye_ has joined #ruby
GJdan has quit [Quit: WeeChat 2.1-dev]
suukim has joined #ruby
claudiuinberlin has joined #ruby
apeiros has joined #ruby
dionysus69 has quit [Ping timeout: 276 seconds]
venmx has joined #ruby
dionysus69 has joined #ruby
schneider has joined #ruby
TvL2386 has joined #ruby
TvL2386_ has quit [Ping timeout: 256 seconds]
reber__ has quit [Remote host closed the connection]
reber has joined #ruby
sylario has joined #ruby
crankharder has quit [Ping timeout: 264 seconds]
_rshetty_ has quit [Remote host closed the connection]
crankharder has joined #ruby
erlend has quit [Ping timeout: 264 seconds]
erlend has joined #ruby
sameerynho has joined #ruby
arekushi has quit [Quit: Gateway shutdown]
dr3w_ has joined #ruby
ta_ has quit [Remote host closed the connection]
dr3w_ has quit [Client Quit]
suukim has quit [Quit: Konversation terminated!]
tomphp has joined #ruby
dr3w_ has joined #ruby
dr3w_ has quit [Client Quit]
workmad3 has joined #ruby
phaul has joined #ruby
arekushi has joined #ruby
n008f4g_ has joined #ruby
Silthias has quit [Read error: Connection reset by peer]
cschneid has joined #ruby
suukim has joined #ruby
venmx has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 240 seconds]
rshetty has joined #ruby
cschneid has quit [Ping timeout: 240 seconds]
ryzokuken has joined #ruby
yohji has quit [Ping timeout: 256 seconds]
rshetty has quit [Remote host closed the connection]
ramfjord has joined #ruby
rshetty has joined #ruby
yohji has joined #ruby
rshetty has quit [Remote host closed the connection]
cdg has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Emmanuel_Chanel has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
dr3w_ has joined #ruby
dr3w_ has quit [Client Quit]
nowhere_man has joined #ruby
rexan has quit [Read error: Connection reset by peer]
rexan has joined #ruby
alfiemax has quit [Remote host closed the connection]
rshetty has joined #ruby
nowhereman_ has joined #ruby
nowhere_man has quit [Read error: Connection reset by peer]
guille-moe has joined #ruby
alfiemax has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has joined #ruby
nowhereman_ has quit [Ping timeout: 252 seconds]
tvw has quit [Remote host closed the connection]
guille-moe has quit [Ping timeout: 268 seconds]
shpoont has joined #ruby
qba73 has joined #ruby
amatas_ has joined #ruby
Serpent7776 has joined #ruby
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
riotjones has joined #ruby
cjs226 has quit [Ping timeout: 256 seconds]
alfiemax has quit [Remote host closed the connection]
venmx has joined #ruby
alfiemax has joined #ruby
claudiuinberlin has joined #ruby
WhereIsMySpoon_ has joined #ruby
cjs226 has joined #ruby
vondruch has quit [Ping timeout: 246 seconds]
jyaworski has joined #ruby
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
Beams has joined #ruby
za1b1tsu has joined #ruby
amatas_ has quit [Ping timeout: 248 seconds]
Psybur has quit [Ping timeout: 268 seconds]
exchgr has quit [Ping timeout: 256 seconds]
jyaworski has quit [Ping timeout: 248 seconds]
exchgr has joined #ruby
Beams has quit [Quit: .]
WhereIsMySpoon_ has quit [Quit: WhereIsMySpoon_]
tomphp has joined #ruby
zapata_ has joined #ruby
zapata has quit [Ping timeout: 256 seconds]
ellcs has joined #ruby
WhereIsMySpoon_ has joined #ruby
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
jyaworski has joined #ruby
rshetty has quit [Remote host closed the connection]
marr has joined #ruby
venmx has quit [Ping timeout: 260 seconds]
rshetty has joined #ruby
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
rshetty has quit [Remote host closed the connection]
jyaworski has quit [Ping timeout: 240 seconds]
venmx has joined #ruby
shpoont has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
venmx has quit [Client Quit]
venmx has joined #ruby
dr3w_ has joined #ruby
Beams has joined #ruby
vondruch has joined #ruby
cdg has joined #ruby
Mosselman has joined #ruby
sameerynho has quit [Ping timeout: 248 seconds]
dionysus69 has quit [Quit: dionysus69]
kapil___ has joined #ruby
konsolebox has joined #ruby
dionysus69 has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
tvw has joined #ruby
cdg has quit [Ping timeout: 256 seconds]
stormpack has joined #ruby
conta has quit [Ping timeout: 246 seconds]
shpoont has joined #ruby
conta has joined #ruby
rshetty has joined #ruby
adgtl has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby
conta has quit [Ping timeout: 276 seconds]
erlend has quit [Ping timeout: 240 seconds]
npgm has quit [Quit: Connection closed for inactivity]
erlend has joined #ruby
AJA4350 has joined #ruby
conta has joined #ruby
ged has quit [Read error: Connection reset by peer]
sundhell is now known as sundhell_away
ged has joined #ruby
Serpent7776 has quit [Ping timeout: 260 seconds]
ericmathison has quit [Ping timeout: 264 seconds]
MonicleLewinsky has quit [Ping timeout: 256 seconds]
ericmathison has joined #ruby
conta has quit [Remote host closed the connection]
conta has joined #ruby
ellcs has quit [Ping timeout: 248 seconds]
MonicleLewinsky has joined #ruby
DTZUZO has quit [Ping timeout: 264 seconds]
marius has quit [Quit: Ping timeout (120 seconds)]
AJA4350 has quit [Remote host closed the connection]
marius has joined #ruby
arekushi has quit [Ping timeout: 276 seconds]
qba73 has quit [Ping timeout: 240 seconds]
AJA4350 has joined #ruby
znz_jp has quit [Ping timeout: 276 seconds]
ged_ has joined #ruby
znz_jp has joined #ruby
ged has quit [Ping timeout: 256 seconds]
ged_ is now known as ged
plexigras has joined #ruby
qba73 has joined #ruby
imode has quit [Ping timeout: 268 seconds]
ronensh has joined #ruby
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
amatas_ has joined #ruby
<ronensh>
Hey all, I'm trying to create seed for a ruby project (not Rails). I'm using the standalone-migrations gem, but the model is not really defined in the project. Anyone have any idea how I can run seeds without relying on model objects?
ramfjord has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
ramfjord has quit [Ping timeout: 260 seconds]
jyaworski has joined #ruby
InfinityFye has joined #ruby
InfinityFye has left #ruby [#ruby]
lightstalker has joined #ruby
Serpent7776 has joined #ruby
Strepsils has joined #ruby
adgtl has joined #ruby
adgtl has joined #ruby
adgtl has joined #ruby
shpoont has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jyaworski has quit [Ping timeout: 240 seconds]
amatas_ has quit [Ping timeout: 240 seconds]
rshetty has quit [Remote host closed the connection]
shpoont has joined #ruby
<apeiros>
ronensh: why'd you need a model? all you need to know is the target table. then use whichever loading mechanism your db provides.
<apeiros>
e.g. with pg, I prefer streaming data directly as csv. it's extremely fast.
hfp_work has quit [Quit: bye]
rshetty has joined #ruby
hfp_work has joined #ruby
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
Azure has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
rshetty has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 248 seconds]
ecuanaso has joined #ruby
<dminuoso>
apeiros: Yes. CSV is the best format since the choice of newline and separator as well as the text encoding is well defined..
<dminuoso>
Oh wait.
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
inoperable has quit [Quit: ZNC 1.6.6 - http://znc.in]
inoperable has joined #ruby
inoperable has quit [Remote host closed the connection]
inoperable has joined #ruby
postmodern has quit [Quit: Leaving]
* apeiros
slaps dminuoso around a bit with a large trout
alfiemax has quit [Remote host closed the connection]
shpoont has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ellcs has joined #ruby
hfp_work has quit [Ping timeout: 264 seconds]
ltt has joined #ruby
Mosselman has quit [Ping timeout: 256 seconds]
lightstalker has quit [Ping timeout: 264 seconds]
Mosselman has joined #ruby
<dminuoso>
schneider: Does performance matter?
<dminuoso>
schneider: Also can you provide more context? It's possible a better solutions can be found if we know how this thing is produced or consumed.
hfp_work has joined #ruby
<apeiros>
he's dead, jim
<dminuoso>
jim's also dead :(
n008f4g_ has quit [Ping timeout: 248 seconds]
VladGh_ has quit [Quit: Lost terminal]
<dminuoso>
oh wait, different channel.
Dimik has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
RougeR has quit [Ping timeout: 260 seconds]
VladGh has joined #ruby
ledestin has joined #ruby
jeffreylevesque has quit [Read error: Connection reset by peer]
arekushi has joined #ruby
<apeiros>
why? it's the right channel. and yeah, jim's dead and that's so sad :(
<dminuoso>
apeiros: mm well this has just gone -ot :P
<dminuoso>
but I guess it depends on how you define jim
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rshetty has joined #ruby
rabajaj has quit [Remote host closed the connection]
rabajaj has joined #ruby
lightstalker has joined #ruby
SanguineAnomaly has quit [Ping timeout: 240 seconds]
rshetty has quit [Remote host closed the connection]
qba73 has quit [Ping timeout: 240 seconds]
shinnya has joined #ruby
Papierkorb has joined #ruby
rshetty has joined #ruby
zapata_ has quit [Quit: WeeChat 2.1]
zapata has joined #ruby
Papierkorb has left #ruby ["Konversation terminated!"]
rshetty has quit [Remote host closed the connection]
erlend has quit [Ping timeout: 252 seconds]
rshetty has joined #ruby
rshetty has quit [Remote host closed the connection]
erlend has joined #ruby
bmurt has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anisha_ has quit [Ping timeout: 246 seconds]
NingaLeaf has joined #ruby
Dimik has quit [Ping timeout: 248 seconds]
ecuanaso has joined #ruby
ramfjord has joined #ruby
ltt has joined #ruby
stormpack has quit [Quit: Leaving]
ramfjord has quit [Ping timeout: 260 seconds]
wickedbloodfart has joined #ruby
ldnunes has joined #ruby
Psybur has joined #ruby
_ros_| has joined #ruby
lele has quit [Ping timeout: 256 seconds]
lele has joined #ruby
<kapil___>
Can I use two yield in one function? How it would work?
NingaLeaf has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gnugnugnu has joined #ruby
jcalla has joined #ruby
<gnugnugnu>
Hi, where can I submit a bug in a ruby package.
<dminuoso>
gnugnugnu: That depends on the ruby package.
<apeiros>
beat me to it… (I wrote *exactly* the same)
<gnugnugnu>
probleme found in file: rbreadline.rb
alex`` has joined #ruby
<dminuoso>
gnugnugnu: If you check https://rubygems.org/gems/rb-readline/versions/0.5.3 you will see links on the right side, that will (hopefully) point you to the correct homepage/bug tracker of the project.
alex`` has quit [Client Quit]
jyaworski has quit [Ping timeout: 248 seconds]
Londino has joined #ruby
roshanavand has quit [Ping timeout: 256 seconds]
<gnugnugnu>
Thanks found the actual repo. I can do much better that just say there is a bug I have a patch. :)
ltt has joined #ruby
WhereIsMySpoon_ has quit [Ping timeout: 248 seconds]
NingaLeaf has joined #ruby
qba73 has quit [Remote host closed the connection]
NingaLeaf has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
qba73 has joined #ruby
Toledo is now known as croberts
gnugnugnu has quit [Quit: WeeChat 2.0.1]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has quit [Remote host closed the connection]
krawchyk has joined #ruby
roshanavand has joined #ruby
ltt has joined #ruby
tomphp_ has joined #ruby
tomphp has quit [Ping timeout: 260 seconds]
shpoont has joined #ruby
jyaworski has joined #ruby
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ltt has joined #ruby
c0ncealed has quit [Remote host closed the connection]
rippa has joined #ruby
zaka has joined #ruby
c0ncealed has joined #ruby
<zaka>
Hello. Someone use Ruby and imageMagick or graphicsMagick?
ltt has quit [Client Quit]
<apeiros>
yeah, but I think someone just left the channel
<zaka>
ehh :)
<dminuoso>
?seen someone
<ruby[bot]>
dminuoso: I don't see no someone, whom should I tell about seen?
NingaLeaf has joined #ruby
<apeiros>
?someone
<ruby[bot]>
apeiros: I don't know anything about someone
<apeiros>
:( bad bot
jyaworski has quit [Ping timeout: 264 seconds]
NingaLeaf has quit [Client Quit]
synthroi_ has joined #ruby
zaka has quit [Ping timeout: 264 seconds]
synthroid has quit [Ping timeout: 276 seconds]
anisha has joined #ruby
rshetty has joined #ruby
<Londino>
Hello! I am using watir in conjuction with Rspec. Can i ask a question here?
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
zaka has joined #ruby
ltt has joined #ruby
konsolebox has quit [Ping timeout: 264 seconds]
<phaul>
Londino: you just did :)
ramfjord has joined #ruby
n008f4g_ has joined #ruby
rshetty has quit [Remote host closed the connection]
<zaka>
im trying use that gem https://github.com/minimagick/minimagick and when i trying convert my image with -distort Perspective i got error Invalid Parameter - -distort, but this exist on that website
anisha has quit [Ping timeout: 268 seconds]
<r3my>
hi, is Gemnasium really shutdown now?
shpoont has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 264 seconds]
konsolebox has joined #ruby
<Londino>
@phaul: i have a line of code that works in irb but not when run inside a script. In particular, it's an assertion that returns true in irb but false in a script....
<ruby[bot]>
Londino: 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
pastorinni has joined #ruby
<apeiros>
Londino: `@browser.text.include? 'Fleet traffic' && "#{@month} #{YEAR}"` does not work the way you think it does
<Londino>
That assertions actually works fine, both in irb and inside a script.
<Londino>
It's the second assertion that's causing the problem.
<apeiros>
it doesn't do what you think it does in irb either
<Londino>
ok...
<apeiros>
what do you think it does?
rshetty has joined #ruby
jeffreylevesque has joined #ruby
upinspace has joined #ruby
jyaworski has joined #ruby
jrafanie has joined #ruby
rshetty has quit [Remote host closed the connection]
suukim has quit [Quit: Konversation terminated!]
yeticry has quit [Ping timeout: 256 seconds]
rsh has joined #ruby
yeticry has joined #ruby
<apeiros>
Londino: you wrote this code, no? I'd assume you had an idea of what it was supposed to do?
<Londino>
i think it checks for the string Fleet traffic and the global variable month as well as the constant YEAR that are also assigned to string values.
matchaw has joined #ruby
Serpent7776 has quit [Ping timeout: 276 seconds]
ahuman has quit [Remote host closed the connection]
<apeiros>
I'll paraphrase: you mean it tests whether @browser.text includes both, 'fleet traffic' and '#{@month} #{YEAR}"
voxxit has quit [Quit: Follow me at: github.com/voxxit]
<Londino>
yes!
<Londino>
am i wrong in my assumption?
<apeiros>
you're mistaken. ruby does not expand `some.expression.with.a.method arg1 && arg2` to `some.expression.with.a.method(arg1) && some.expression.with.a.method(arg2)`
matchaw_ has quit [Ping timeout: 256 seconds]
guille-moe has joined #ruby
<apeiros>
you call a method with one argument, and due to how precedence works, that one argument is `arg1 && arg2`
<apeiros>
(the result of that expression)
<apeiros>
so what happens first here is `'Fleet traffic' && "#{@month} #{YEAR}"`, what do you think that evaluates to?
erlend has quit [Ping timeout: 248 seconds]
upinspace has quit [Quit: I’m out]
erlend has joined #ruby
redlegion has quit [Remote host closed the connection]
dionysus69 has joined #ruby
ahuman has joined #ruby
redlegion has joined #ruby
voxxit has joined #ruby
pelmenoid has quit [Ping timeout: 240 seconds]
<Londino>
it evaluates whether BOTH 'Fleet traffic' AND the string values assigned to @month and YEAR are included in the text of the web page under testing, no?
pelmenoid has joined #ruby
chocoelho has joined #ruby
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
<apeiros>
no. as said, you only invoke include? once. with one argument. and that argument is the result of `'Fleet traffic' && "#{@month} #{YEAR}"`
samort7 has joined #ruby
<apeiros>
so again, what do you think this piece of code on its own evaluates to?
<apeiros>
in other words: `puts "hi" && "there"` is not the same as `(puts "hi") && (puts "there")` (which it'd need to be for your assumption to work). it's the same as `puts("hi" && "there")`, and that means ruby has to figure out what `"hi" && "there"` evaluates to before passing that to `puts`.
chocoelho has joined #ruby
Serpent7776 has joined #ruby
ahuman has quit [Ping timeout: 264 seconds]
thejoecarroll has joined #ruby
ahuman has joined #ruby
jrafanie_ has joined #ruby
<Londino>
apeiros: brb in 15'!
Londino has quit [Quit: Page closed]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
Londino: no, you didn't try to pass it two arguments
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
your intention was to perform 2 tests for inclusion
<apeiros>
but you only did 1
RougeR has joined #ruby
RougeR has joined #ruby
RougeR has quit [Changing host]
cthulchu has joined #ruby
SteenJobs_ has joined #ruby
<Londino>
so i should split the offending line of code into 2 separate assertions, one for 'Fleet traffic' and one for "#{@month} #{YEAR}"?
<apeiros>
you thought for some reason that by using `&&`, there'd be 2 inclusion tests performed. but that's not how && works (and gladly so, it makes little sense other than that it matches natural speaking)
<apeiros>
you can have it in one assertion. but you need to do .include? for each thing you want to test whether it's in the string
* apeiros
afk for ~20min
tomphp has joined #ruby
troys has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
qba73 has quit [Remote host closed the connection]
qba73 has joined #ruby
amar has quit [Remote host closed the connection]
<Londino>
OK, so something like this then: `expect(@browser.text.include? 'Fleet traffic' && @browser.text.include?"#{@month} #{YEAR}").to be true`
mattwr18 has joined #ruby
jds_ has joined #ruby
amar has joined #ruby
<phaul>
that should work, but also you should be using rspec matchers to check for inclusion, unless you want true != false reported in your rspec runs rather than a more relevant "some blah" not included "stuff" error.
wickedbloodfart has quit [Ping timeout: 264 seconds]
amar has quit [Remote host closed the connection]
_ros_| has left #ruby ["Leaving"]
amar has joined #ruby
rexan has quit [Ping timeout: 276 seconds]
<phaul>
as a side note, then matchers are also composable with & :)
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rshetty has joined #ruby
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
Mosselman has joined #ruby
schneider has quit [Ping timeout: 260 seconds]
<Londino>
since this is my first attempt at web automation, a simple true or false will suffice. Once i'm done writing the script, i will research rspec matchers to polish it some more :-)
frem has joined #ruby
Mosselman has quit [Ping timeout: 260 seconds]
amar has quit [Remote host closed the connection]
schneider has joined #ruby
pastorinni has quit [Remote host closed the connection]
ldnunes has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
pastorinni has joined #ruby
ghormoon has quit [Ping timeout: 264 seconds]
schneider has quit [Ping timeout: 248 seconds]
<apeiros>
Londino, phaul: no, that won't work due to how precedence works
<apeiros>
`foo a && foo b` is read as: `foo(a && foo(b))`
<apeiros>
you need parens here: `foo(a) && foo(b)`
ghormoon has joined #ruby
<phaul>
I missed that :(
<apeiros>
phaul: a couple more years of helping people in irc will rectify that ;-p
noobineer has joined #ruby
<phaul>
expect('that will happen at some point').to include('hopefully') & include('blah')
[Butch] has joined #ruby
<phaul>
:)
<apeiros>
^^
tcopeland has quit [Quit: tcopeland]
pastorinni has quit [Ping timeout: 260 seconds]
baweaver has quit [Quit: Off to do something important-sounding]
synthroi_ has quit [Remote host closed the connection]
lypsis has joined #ruby
dan64 has quit [Ping timeout: 245 seconds]
cthulchu has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
<Londino>
I will experiment with it a bit more tomorrow at work but my original question still puzzles me: why would this line `expect(@browser.text.include? 'All vessels' && "MARAN ATLAS - #{@month} #{YEAR}").to be true` return true in irb but false when run inside a script???
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ltt has joined #ruby
ltt has quit [Remote host closed the connection]
dan64 has joined #ruby
jyaworski has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rshetty has quit [Remote host closed the connection]
mistergibson has quit [Remote host closed the connection]
FastJack has quit [Ping timeout: 265 seconds]
jyaworski has quit [Ping timeout: 263 seconds]
synthroid has joined #ruby
eckhardt_ has joined #ruby
imode has joined #ruby
<phaul>
Londino: you can use my code above as a template, by not using the right matchers and expectations, you are actually getting less information about your failure. I bet your irb question would also be answered if you actually saw what the contents of those strings were
SteenJobs_ is now known as SteenJobs
erlend has quit [Ping timeout: 240 seconds]
amar has quit [Ping timeout: 256 seconds]
guacamole has joined #ruby
guacamole has joined #ruby
<Londino>
alright thanks
erlend has joined #ruby
herbmillerjr has quit [Quit: Konversation terminated!]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yohji has quit [Remote host closed the connection]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
amar has quit [Remote host closed the connection]
ramfjord has joined #ruby
FastJack has joined #ruby
amar has joined #ruby
mattwr18 has quit [Quit: Page closed]
venmx has quit [Ping timeout: 248 seconds]
guille-moe has quit [Ping timeout: 248 seconds]
rexan has joined #ruby
Asher has quit [Read error: Connection reset by peer]
pilne has joined #ruby
Asher has joined #ruby
amar has quit [Ping timeout: 240 seconds]
FastJack has quit [Ping timeout: 265 seconds]
claudiuinberlin has joined #ruby
rahul_bajaj has joined #ruby
rabajaj has quit [Read error: Connection reset by peer]
alfiemax has quit [Remote host closed the connection]
synthroi_ has joined #ruby
kn1ght has quit [Remote host closed the connection]
knight_ has quit [Remote host closed the connection]
synthroi_ has quit [Read error: Connection reset by peer]
rabajaj has joined #ruby
synthroid has quit [Read error: No route to host]
synthroid has joined #ruby
rahul_bajaj has quit [Ping timeout: 246 seconds]
memo1 has quit [Ping timeout: 246 seconds]
ldnunes has quit [Ping timeout: 256 seconds]
SeepingN has joined #ruby
alex`` has joined #ruby
knight_ has joined #ruby
jyaworski has joined #ruby
dr3w_ has joined #ruby
Alayde has joined #ruby
suukim has joined #ruby
nme13 has joined #ruby
<nme13>
hi
<nme13>
please need help
synthroi_ has joined #ruby
memo1 has joined #ruby
<nme13>
Is it possible to make a sql-like request on an array ?
jyaworski has quit [Ping timeout: 240 seconds]
einarj has joined #ruby
<phaul>
>> [1,2,3].select(&:odd?)
<nme13>
I have an array that contains arrays, I want to make a request to find the sub-arrays where first field match "LIKE" (as in SQL SELECT * from xxx where field LIKE value)
<Alayde>
hey gang, hoping someone can help me when it comes to comparison between multiple arrays. context: getting common AD groups between a variable range of users passed in as command line arguments (currently working with 9 users). I've *technically* got working code, but it only works for 9 users- I can't seem to think up a clever way to dynamically do what I've currently statically written:
<nme13>
if I have an array of hashes, how to read the value of first "field" of every hash ? (I have the .each do |k,v| working, but need a comparison with the first field of each hash)
frem has quit [Quit: Connection closed for inactivity]
<nme13>
tried v[:fullname], v['fullname'] but it doesn't work
<nme13>
with this > [{"fullname":"Nicolas NMWare","conv_id":1,"dest_id":8},{"fullname":"Utilisateur Test","conv_id":2,"dest_id":9},{"fullname":"dor lab","conv_id":4,"dest_id":7}]
<phaul>
what's your expected output?
synthroid has joined #ruby
<phaul>
in this example
Zaab1t has joined #ruby
<nme13>
I want to compare a regex to the fullname value : if match do nothing, else delete hash
<nme13>
the final array must keep only the hashes where fullname math the regex
<nme13>
match
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<phaul>
this is also non desctructive, it doesn't modify the array but creates a new filtered one. Non desctrucive is good practise most of the time
synthroid has quit [Ping timeout: 256 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
<nme13>
it doesn't work
synthroi_ has quit [Ping timeout: 264 seconds]
synthroid has joined #ruby
<phaul>
ruby bot has just returned the correct result
workmad3 has quit [Ping timeout: 260 seconds]
<nme13>
I see
<nme13>
okok its good
synthroid has quit [Read error: No route to host]
synthro__ has quit [Read error: Connection reset by peer]
<nme13>
do you know how I can put a variable in a regex ?
Cavallari has quit [Quit: Cavallari]
<phaul>
sorry I have to go.
synthroid has joined #ruby
<nme13>
ok
<nme13>
thank you a lot
<nme13>
great help :)
synthroi_ has joined #ruby
marr has quit [Remote host closed the connection]
sauvin has quit [Remote host closed the connection]
Code4Dopamine has joined #ruby
synthroid has quit [Ping timeout: 248 seconds]
<Alayde>
jeffy spaghetti
<Alayde>
inject is amazing
harrycs has joined #ruby
synthroi_ has quit [Remote host closed the connection]
physicist__ has quit [Read error: Connection reset by peer]
synthroid has joined #ruby
conta has quit [Remote host closed the connection]
baweaver has joined #ruby
baweaver has joined #ruby
baweaver has quit [Changing host]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
nme13 has quit [Quit: Leaving]
<weaksauce>
Alayde inject is also known as reduce just in case you see it in the wild
jeffreylevesque has quit [Ping timeout: 260 seconds]
suukim has quit [Quit: Konversation terminated!]
sameerynho has joined #ruby
erlend has quit [Ping timeout: 240 seconds]
cdg_ has joined #ruby
cdg_ has quit [Remote host closed the connection]
physicist__ has joined #ruby
cdg_ has joined #ruby
erlend has joined #ruby
postmodern has joined #ruby
synthroi_ has joined #ruby
cdg has quit [Ping timeout: 268 seconds]
c0mrad3 has joined #ruby
samort7_ has joined #ruby
cdg_ has quit [Ping timeout: 240 seconds]
synthroid has quit [Ping timeout: 264 seconds]
stormpack has quit [Quit: Leaving]
samort7 has quit [Ping timeout: 264 seconds]
RougeR has quit [Ping timeout: 240 seconds]
synthroid has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gnotc has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
synthroi_ has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
agent_white has quit [Quit: brb]
ramfjord has joined #ruby
guacamole has quit [Client Quit]
<Alayde>
weaksauce: awesome, yeah I read that they were aliases for one another. I just can't believe that you can call .inject(&:&) on a multi dimensional array and as a result get back the common elements
<Alayde>
talk about blowing my mind
<weaksauce>
ruby is great :D
<Alayde>
haha, great and magic. But you won't hear me complain
jds_ has quit [Quit: Connection closed for inactivity]
<Alayde>
Wrote my first API in rails recently, nothing complex just mostly dealing with storing data in postgres and returning JSON when requested. Anyways, tl;dr rails is great too
riotjones has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
<weaksauce>
one thing to keep in mind with rails is that there is "magic" going on but it's all just functions that get written for you when you write something in a class and that pretty much every statement inside a class gets run from top to bottom. something like has_many :users is just a method that writes a few methods on your behalf.
ramfjord has quit [Ping timeout: 268 seconds]
<weaksauce>
for instance you can put a bare puts "something" inside a class and it will output "something" to the stdout when that file is loaded
<Alayde>
Oh, definitely. I ended up delving into a lot of rails documentation, and even some source here and there, along with reading a book on it (hartl's rails tutorial)
InfinityFye has quit [Ping timeout: 260 seconds]
lypsis has quit [Quit: lypsis]
John_Ivan has joined #ruby
John_Ivan has joined #ruby
John_Ivan has quit [Changing host]
InfinityFye has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
KeyJoo has joined #ruby
tomphp has joined #ruby
sepp2k has quit [Quit: Leaving.]
_seanc_ has joined #ruby
synthroi_ has joined #ruby
synthroi_ has quit [Read error: Connection reset by peer]
_seanc_ has quit [Client Quit]
synthroi_ has joined #ruby
synthroi_ has quit [Read error: No route to host]
samort7_ has quit [Remote host closed the connection]
synthroid has quit [Read error: No route to host]
ramfjord has joined #ruby
samort7 has joined #ruby
synthroid has joined #ruby
synthroi_ has joined #ruby
synthroi_ has quit [Read error: Connection reset by peer]
synthroid has quit [Read error: Connection reset by peer]
synthroid has joined #ruby
rexan has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
anisha has joined #ruby
anisha has quit [Client Quit]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroid has quit [Read error: No route to host]
_seanc_ has joined #ruby
rsh has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 268 seconds]
rsh has joined #ruby
ivanskie has joined #ruby
tdy has quit [Ping timeout: 264 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
rexan has quit [Ping timeout: 260 seconds]
cthu| has joined #ruby
cthulchu_ has quit [Ping timeout: 248 seconds]
raynold has quit [Quit: Connection closed for inactivity]
harrycs has quit [Ping timeout: 276 seconds]
tdy has joined #ruby
jottr_ has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
avo has joined #ruby
cagomez has quit [Ping timeout: 260 seconds]
avo has quit [Remote host closed the connection]
duderonomy has joined #ruby
ndfsdff has joined #ruby
al2o3-cr has quit [Quit: WeeChat 2.1]
rexan has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
rsh has quit [Ping timeout: 264 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
ldepandis has joined #ruby
ndfsdff has quit [Quit: Page closed]
ramfjord has joined #ruby
bmurt has joined #ruby
reber has quit [Remote host closed the connection]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
rsh has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ramfjord has quit [Ping timeout: 264 seconds]
eckhardt_ has joined #ruby
rsh has quit [Ping timeout: 268 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
rsh has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
jottr_ has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 268 seconds]
coderphive has joined #ruby
rexan has quit [Ping timeout: 246 seconds]
n008f4g_ has quit [Ping timeout: 268 seconds]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
InfinityFye has quit [Read error: Connection reset by peer]