<learningruby>
@havenwood mmm ok... I don't mean just in terms of syntax (I should've stated the question better, sorry)—but in terms of the concept of object orientation... but if I place an instance variable in a class outside a method, how can an instance of that class access it?
stupidsenpai has quit [Client Quit]
Cohedrin has joined #ruby
mgorbach has quit [Remote host closed the connection]
mgorbach has joined #ruby
ecuanaso has joined #ruby
SuperTaz has joined #ruby
brent__ has quit []
<_moep_>
havenwood: do you have still an idea because of unicorn?
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cjhowe has quit [Client Quit]
rc48 has quit [Read error: Connection reset by peer]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
cjhowe has joined #ruby
cjhowe has quit [Client Quit]
cjhowe has joined #ruby
oleo has quit [Quit: irc client terminated!]
cjhowe has quit [Client Quit]
sneakerhax has quit [Ping timeout: 246 seconds]
enterprisey has quit [Remote host closed the connection]
Cohedri__ has quit [Ping timeout: 258 seconds]
__Yiota has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
roamingdog has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
govg has quit [Ping timeout: 240 seconds]
cgibsonmm has joined #ruby
cgibsonmm has quit [Ping timeout: 260 seconds]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
Cohedrin has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
pb122 has joined #ruby
_whitelogger has joined #ruby
pb122-two has quit [Ping timeout: 240 seconds]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
<uZiel>
I want to run either of the two different loops depending on the value of a boolean
<uZiel>
can/should I use yield?
<uZiel>
how will it be any different from using an if condition "bool ? loop1 : loop2"
<uZiel>
by yield I meant block
olivi____ has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olivi____ has joined #ruby
mim1k has joined #ruby
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
conta has joined #ruby
<baweaver>
uZiel: what's the problem you're trying to solve for?
<baweaver>
the short answer is to put the loops in different methods, but you may be solving for the wrong problem here depending on what you're using this for
Kug3lis_off is now known as Kug3lis
mim1k has quit [Ping timeout: 240 seconds]
tristanp has joined #ruby
aupadhye_ has joined #ruby
cam27 has joined #ruby
pb122-two has joined #ruby
aupadhye has quit [Ping timeout: 272 seconds]
gothicsouth has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
oliv_____ has quit [Remote host closed the connection]
keyjoo has joined #ruby
olivi____ has joined #ruby
olivi____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
pb122 has quit [Ping timeout: 240 seconds]
BTRE has quit [Quit: Leaving]
Kug3lis is now known as Kug3lis_off
BTRE has joined #ruby
last_staff has joined #ruby
eightlimbed has joined #ruby
renchan has quit [Remote host closed the connection]
renchan has joined #ruby
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
uZiel has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
benjen has joined #ruby
johnnytao has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
johnny_ has joined #ruby
johnnytao has quit [Ping timeout: 260 seconds]
johnny_ has quit [Remote host closed the connection]
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
nobitanobi has joined #ruby
dhollinger has quit [Ping timeout: 255 seconds]
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
mmasaki has quit [Quit: bye]
agent_white has quit [Ping timeout: 240 seconds]
mmasaki has joined #ruby
dionysus69 has joined #ruby
govg has joined #ruby
jgnagy has quit [Remote host closed the connection]
jgnagy has joined #ruby
mim1k has joined #ruby
PatrikasZvaigzde has joined #ruby
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
relyks has quit [Quit: Leaving]
eightlimbed has quit [Ping timeout: 258 seconds]
nofxxxx has joined #ruby
<dionysus69>
when I do Phantomjs.run('/home/user/test.js') irb just hangs
<dionysus69>
test.js contains just console.log(123);
etehtsea has joined #ruby
biberu has joined #ruby
dhollinger has joined #ruby
nofxxx has quit [Ping timeout: 240 seconds]
mark_66 has joined #ruby
nicesignal has quit [Remote host closed the connection]
olivi____ has quit [Remote host closed the connection]
nicesignal has joined #ruby
<dionysus69>
my bad, gem readme example didn't mention anything about phantom.exit()...
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
aupadhye_ has quit [Quit: Leaving]
aupadhye has joined #ruby
Kug3lis_off is now known as Kug3lis
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
djbkd has joined #ruby
oliv_____ has quit [Remote host closed the connection]
govg has quit [Quit: leaving]
oliv_____ has joined #ruby
rc48 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
rc48 has quit [Read error: Connection reset by peer]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
roamingdog has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
cgibsonmm has joined #ruby
roamingdog has quit [Remote host closed the connection]
vali has joined #ruby
agent_white has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
cgibsonmm has quit [Ping timeout: 240 seconds]
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
nanoz has quit [Quit: <3]
Dimik has quit [Ping timeout: 260 seconds]
aufi has joined #ruby
biberu has quit []
nertzy has quit [Ping timeout: 240 seconds]
nobitanobi has joined #ruby
bsartek has joined #ruby
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
cam27 has quit [Quit: cam27]
oliv_____ has quit [Remote host closed the connection]
Kug3lis is now known as Kug3lis_off
Kug3lis_off is now known as Kug3lis
oliv_____ has joined #ruby
Kug3lis is now known as Kug3lis_off
bsartek has quit [Ping timeout: 272 seconds]
mitt3ns has joined #ruby
agent_white has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
vali has quit [Quit: vali]
cschneid_ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
bathtub_shark has quit [Quit: WeeChat 1.8]
bathtub_shark has joined #ruby
oliv_____ has joined #ruby
vali has joined #ruby
oliv_____ has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
oliv_____ has joined #ruby
cdg has joined #ruby
Jason has left #ruby [#ruby]
cschneid_ has quit [Ping timeout: 246 seconds]
Zarthus is now known as Guest4293
bathtub_shark is now known as Zarthus
Guest4293 has quit [Killed (moon.freenode.net (Nickname regained by services))]
mikecmpbll has quit [Client Quit]
Zarthus_ has joined #ruby
bsartek has joined #ruby
bsartek has quit [Client Quit]
ecuanaso has joined #ruby
vali has quit [Remote host closed the connection]
vali has joined #ruby
demio has quit [Quit: Computer has gone to sleep.]
mim1k has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
mikecmpbll has joined #ruby
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bsartek has joined #ruby
bsartek has quit [Client Quit]
wuyin has joined #ruby
cschneid_ has joined #ruby
vali has quit [Remote host closed the connection]
_DanN_ has quit [Ping timeout: 240 seconds]
_DanN_ has joined #ruby
vali has joined #ruby
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
t0d0r has quit [Quit: leaving]
uZiel has joined #ruby
cschneid_ has quit [Ping timeout: 255 seconds]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
<kke>
what kind of pattern/composition would you use for something like Food.new(state: :ordered) that requires several steps before reaching state == :finished, such as obtain_ingredients, cook, put_on_a_plate, etc? the steps can take some time and are performed by some background workers.
cgibsonmm has joined #ruby
DoubleMalt has joined #ruby
DoubleMalt has quit [Read error: Connection reset by peer]
cgibsonmm has quit [Ping timeout: 240 seconds]
tomphp has joined #ruby
roamingdog has joined #ruby
Cohedrin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sonOfRa has quit [Ping timeout: 260 seconds]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
mim1k has quit [Read error: Connection reset by peer]
mim1k has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
roamingdog has quit [Ping timeout: 258 seconds]
patarr has joined #ruby
bmurt has joined #ruby
aupadhye has quit [Ping timeout: 260 seconds]
sonOfRa has joined #ruby
<Bish>
Cannot link to a non running container: /pg_main AS /console/pg_main
<Bish>
ah, sorry
<ljarvis>
kke: just update the state inside those methods? unsure exactly what you're looking for
bmurt has quit [Ping timeout: 258 seconds]
<ljarvis>
e.g. the last step updates the state assuming the state is correct (the state returned by the penultimate step)
patarr has quit [Ping timeout: 260 seconds]
<ljarvis>
if state == :cooked; put_on_a_plate; state = :finished etc
lxsameer has joined #ruby
marr has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
chichou has joined #ruby
postmodern has quit [Quit: Leaving]
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
mim1k has quit [Read error: Connection reset by peer]
bsartek has joined #ruby
bkxd has joined #ruby
aupadhye has joined #ruby
Snickers has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
olivi____ has quit [Remote host closed the connection]
tristanp has quit [Ping timeout: 268 seconds]
oliv_____ has joined #ruby
tomphp has joined #ruby
cdg_ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
<kke>
that's what i'm trying to avoid. i think i'm going to use AASM or statesman, but i think what i actually would like is a workflow engine, but seems like there aren't any good candidates
mim1k has joined #ruby
cschneid_ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
<ljarvis>
sounds overly complicated, but im sure your example was just heavily simplified
tristanp has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
cdg_ has quit [Ping timeout: 240 seconds]
cfec0b8d has quit [Remote host closed the connection]
cyphase has quit [Ping timeout: 240 seconds]
cfec0b8d has joined #ruby
cgibsonmm has joined #ruby
workmad3 has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cgibsonmm has quit [Ping timeout: 255 seconds]
cyphase has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
sonOfRa has quit [Ping timeout: 246 seconds]
rc48 has joined #ruby
sonOfRa has joined #ruby
last_staff has quit [Quit: last_staff]
bkxd has quit [Ping timeout: 260 seconds]
rc48 has quit [Read error: Connection reset by peer]
wuyin has quit [Quit: leaving]
im0nde has joined #ruby
roamingdog has joined #ruby
oliv_____ has quit [Remote host closed the connection]
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has quit [Remote host closed the connection]
uZiel has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
ur5us has joined #ruby
minimalism has quit [Quit: minimalism]
chichou has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
chichou has joined #ruby
aupadhye has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
xall has joined #ruby
patarr has joined #ruby
ikopico has quit [Quit: Imma make like traffic and jam]
Azure|dc has joined #ruby
ikopico has joined #ruby
Azure has quit [Ping timeout: 260 seconds]
t-recx has joined #ruby
ur5us has quit [Remote host closed the connection]
tomphp has joined #ruby
xall has quit [Quit: xall]
olivi____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
tomphp has quit [Client Quit]
patarr has quit [Ping timeout: 255 seconds]
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
cgibsonmm has joined #ruby
aupadhye has joined #ruby
rc48 has joined #ruby
cgibsonmm has quit [Ping timeout: 240 seconds]
rc48 has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
gregf_ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
charliesome has quit [Client Quit]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
ferr has joined #ruby
jamesaxl has joined #ruby
ur5us has joined #ruby
ikopico has quit [Quit: Imma make like traffic and jam]
ikopico has joined #ruby
zylo has joined #ruby
olivi____ has quit [Remote host closed the connection]
roamingdog has joined #ruby
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
tomphp has joined #ruby
roamingdog has quit [Ping timeout: 255 seconds]
pb122 has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
bsartek has quit [Quit: This computer has gone to sleep]
pb122-two has quit [Ping timeout: 246 seconds]
bkxd has joined #ruby
qba73 has joined #ruby
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
etehtsea has quit [Ping timeout: 240 seconds]
Exhiled has quit [Quit: Connection closed for inactivity]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
teclator has joined #ruby
ikopico has quit [Quit: Imma make like traffic and jam]
Fernando-Basso has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
ikopico has joined #ruby
GinoMan has quit [Ping timeout: 255 seconds]
pb122-two has joined #ruby
roshanavand has left #ruby [#ruby]
cschneid_ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
pb122 has quit [Ping timeout: 255 seconds]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
olivi____ has joined #ruby
qba73 has quit [Read error: Connection reset by peer]
cschneid_ has quit [Ping timeout: 255 seconds]
qba73 has joined #ruby
pb122-two has quit [Read error: Connection reset by peer]
pb122 has joined #ruby
im0nde has joined #ruby
cgibsonmm has joined #ruby
polysics has joined #ruby
ur5us has quit [Remote host closed the connection]
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
cgibsonmm has quit [Ping timeout: 255 seconds]
oliv_____ has joined #ruby
withasmile has joined #ruby
pb122 has quit [Read error: Connection reset by peer]
pb122 has joined #ruby
kthibodeaux has joined #ruby
rc48 has joined #ruby
TheBrayn is now known as schnurpsi
schnurpsi is now known as TheBrayn
LukyCZ has joined #ruby
rc48 has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
ecuanaso has joined #ruby
qba73 has quit [Remote host closed the connection]
oliv_____ has quit [Remote host closed the connection]
qba73 has joined #ruby
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
kthibodeaux has quit [Quit: WeeChat 1.5]
oliv_____ has joined #ruby
qba73 has quit [Ping timeout: 240 seconds]
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
teclator has quit [Remote host closed the connection]
bsartek has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
oliv_____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
kthibodeaux has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
t-recx has quit [Quit: t-recx]
jaruga has joined #ruby
GodFather has joined #ruby
bkxd has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
romank has joined #ruby
bkxd has joined #ruby
<kke>
looks like i don't like AASM or statesman either
gnufied has joined #ruby
jaruga________ has joined #ruby
ohcibi_ is now known as ohcibi
qba73 has joined #ruby
hashrocket has joined #ruby
cgibsonmm has joined #ruby
jaruga has quit [Ping timeout: 268 seconds]
Vile` has joined #ruby
oliv_____ has quit [Remote host closed the connection]
nhhc has joined #ruby
oliv_____ has joined #ruby
<apeiros>
I think my znc's time is off… did ljarvis reply to that 9h ago or just 2h?
uZiel has joined #ruby
roamingdog has joined #ruby
nertzy has joined #ruby
<apeiros>
kke: using threads for those background workers? if so, make sure either AASM/statesman is thread safe, or how to properly use them with threads.
<kke>
aasm readme claims it's thread safe
<kke>
i was planning to use sucker_punch to run concurrent-ruby based workers
vali has quit [Quit: vali]
pupsicle has joined #ruby
<kke>
i thought it would be a pretty common problem and would have been solved a zillion times already
oliv_____ has quit [Ping timeout: 272 seconds]
cgibsonmm has quit [Ping timeout: 246 seconds]
roamingdog has quit [Ping timeout: 272 seconds]
<apeiros>
I'd say it is
<apeiros>
I only glossed over what you asked, though.
<apeiros>
but state machines + worker queues are a common recipe.
<kke>
something to script a multi stage job
olivi____ has joined #ruby
withasmile has quit [Remote host closed the connection]
<dionysus69>
I am unable to pass command line argument to this script starting up firefox, in gist i provided 3 examples with comments, I am trying to pass headless command line argument to the selenium driver starting up firefox, but I am unable to :\ please any hints appreciated
ecuanaso has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 246 seconds]
rc48 has joined #ruby
yqt has joined #ruby
Vile` has quit [Remote host closed the connection]
anisha has quit [Read error: Connection reset by peer]
ntt has joined #ruby
anisha has joined #ruby
oleo has joined #ruby
<ntt>
Hi, I'm searching a way to read the name of interfaces on a linux centos 7 box with ruby 1.9. Someone can help me? I'm able to read IP with Socket::getaddrinfo(Socket.gethostname, "echo", Socket::AF_INET).map { |x| x[3] } but I don't understand how to read the interface name
haylon has joined #ruby
Mon_Ouie has joined #ruby
anisha_ has joined #ruby
mim1k has joined #ruby
anisha has quit [Ping timeout: 245 seconds]
Snickers has quit [Quit: Snickers]
qba73 has quit [Read error: Connection reset by peer]
qba73 has joined #ruby
dlitvak has quit [Quit: Connection closed for inactivity]
uZiel has quit [Ping timeout: 240 seconds]
ddffg has joined #ruby
cdg has joined #ruby
uZiel has joined #ruby
<uZiel>
can I pass a function as a parameter?
<adam12>
uZiel: kinda?
roamingdog has joined #ruby
<adam12>
uZiel: you'd pass a lambda or proc, or get a reference to a method using the `method` method and then passing that.
<apeiros>
uZiel: you can use Object#method to create an object from a method (no functions in ruby, sorry), you can pass the name of a method as a Symbol (or String) and invoke it using Object#send
<apeiros>
uZiel: additionally methods take a special argument, the block argument, which is similar to a function
<apeiros>
oh, and you can always create procs/lambdas using Kernel#proc and Kernel#lambda and pass those (they're objects)
<apeiros>
so pick your poison :)
ghormoon has quit [Ping timeout: 240 seconds]
ghormoon has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
TheBrayn has quit [Quit: WeeChat 1.5]
roamingdog has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
<uZiel>
will look into the options
<uZiel>
thanks adam12 apeiros
<apeiros>
uZiel: you can always put your code on gist.github.com and ask again. will make it easier to give a sensible answer.
houhoulis has joined #ruby
pb122-two has joined #ruby
<dionysus69>
btw I figured out.
pb122 has quit [Ping timeout: 240 seconds]
<dionysus69>
anyone who wants to know how to run <real>headless firefox with selenium webdriver gem, ask me ;) (without xvfb package)
olivi____ has quit [Remote host closed the connection]
oliv_____ has joined #ruby
cgibsonmm has joined #ruby
DLSteve has joined #ruby
cam27 has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 246 seconds]
TheBrayn has joined #ruby
qba73 has quit []
mim1k has joined #ruby
railswebdev has joined #ruby
biberu has quit []
houhoulis has quit [Remote host closed the connection]
jaruga________ has quit [Ping timeout: 268 seconds]
renchan has quit [Quit: Leaving...]
spheric has joined #ruby
__Yiota has joined #ruby
anisha_ has quit [Quit: This computer has gone to sleep]
bsartek has quit [Quit: This computer has gone to sleep]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoulis has joined #ruby
MrBusiness has quit [Ping timeout: 246 seconds]
cgibsonmm has quit []
houhoulis has joined #ruby
psmolen has quit [Ping timeout: 240 seconds]
jrafanie has joined #ruby
psmolen has joined #ruby
bsartek has joined #ruby
polysics has quit [Remote host closed the connection]
polysics has joined #ruby
__Yiota has joined #ruby
patarr has joined #ruby
jaruga________ has joined #ruby
polysics has quit [Ping timeout: 240 seconds]
jaruga________ has quit [Remote host closed the connection]
jaruga________ has joined #ruby
bkxd has quit [Ping timeout: 268 seconds]
etehtsea has joined #ruby
apparition has joined #ruby
MrBusiness has joined #ruby
sepp2k has joined #ruby
kelseynz__ has joined #ruby
<kelseynz__>
Is there a way to specify (as a gem author) which file should be required by default by Bundler, in place of GEMNAME.rb (on the gem side)?
shakes has joined #ruby
ascheel has left #ruby [#ruby]
dionysus69 has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 260 seconds]
etehtsea has quit [Ping timeout: 240 seconds]
polysics has joined #ruby
bkxd has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
aupadhye has quit [Ping timeout: 268 seconds]
mim1k has joined #ruby
etehtsea has joined #ruby
polysics has quit []
LukyCZ has quit [Quit: Connection closed for inactivity]
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
shakes has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
houhoulis has quit [Remote host closed the connection]
theunraveler has joined #ruby
mark_66 has left #ruby ["PART #elixir-lang :PART #crystal-lang :PONG :wolfe.freenode.net"]
centrx has quit [Remote host closed the connection]
cbyrda has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
conta has quit [Ping timeout: 240 seconds]
uZiel has quit [Ping timeout: 255 seconds]
djbkd has quit [Remote host closed the connection]
jgnagy has quit [Remote host closed the connection]
jgnagy has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
raspado has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roamingdog has joined #ruby
uZiel has joined #ruby
mdw has joined #ruby
cjhowe has joined #ruby
roamingdog has quit [Ping timeout: 260 seconds]
mitt3ns has quit [Remote host closed the connection]
uZiel has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
ruby-lang457 has joined #ruby
etehtsea has quit [Ping timeout: 246 seconds]
aufi has quit [Quit: Leaving]
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kug3lis_off is now known as Kug3lis
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ruby-lang457 has quit [Quit: Page closed]
duderonomy has quit [Ping timeout: 246 seconds]
__Yiota has quit [Read error: Connection reset by peer]
cdg has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
bgray has joined #ruby
bgray has left #ruby [#ruby]
djbkd has quit [Remote host closed the connection]
tomphp has joined #ruby
jaruga________ has quit [Quit: jaruga________]
tomphp has quit [Client Quit]
shinnya has joined #ruby
Kug3lis is now known as Kug3lis_off
brent__ has joined #ruby
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
centrx has quit [Client Quit]
tomphp has joined #ruby
tomphp has quit [Client Quit]
Kug3lis_off is now known as Kug3lis
mdw has quit [Quit: Sleeping Zzzzz]
shakes has quit [Quit: Leaving]
mim1k has quit [Ping timeout: 240 seconds]
kthibodeaux has quit [Quit: WeeChat 1.5]
nhhc has quit [Remote host closed the connection]
Guest35378 has joined #ruby
HoierM_ has joined #ruby
gusrub has joined #ruby
konsolebox has joined #ruby
hobodave has joined #ruby
dionysus69 has joined #ruby
mim1k has joined #ruby
ddffg has quit [Ping timeout: 240 seconds]
nitric has joined #ruby
danman has joined #ruby
chouhoulis has quit [Remote host closed the connection]
hplar has quit [Remote host closed the connection]
hplar has joined #ruby
kelseynz__ has quit [Quit: Lost terminal]
mim1k has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
HoierM_ has quit [Ping timeout: 260 seconds]
nadir has joined #ruby
rgr has joined #ruby
HoierM has joined #ruby
ddffg has joined #ruby
rgr_ has quit [Ping timeout: 240 seconds]
roamingdog has joined #ruby
jrafanie has joined #ruby
roamingdog has quit [Ping timeout: 240 seconds]
HoierM has quit [Ping timeout: 272 seconds]
kies has quit [Ping timeout: 246 seconds]
postmodern has joined #ruby
LastWhisper____ has joined #ruby
MetaMutt has joined #ruby
Cohedrin has joined #ruby
lxsameer has quit [Quit: WeeChat 1.7]
MrBusiness has quit [Ping timeout: 272 seconds]
gothicsouth has joined #ruby
<stormbytes>
probably not the right place to ask but if I already have curl installed on a system and run apt-get install curl will it just install the uprgraded version?
SeepingN has joined #ruby
nicoulaj has quit [Remote host closed the connection]
<Mon_Ouie>
Calling a subprocess, executing a shell command. System calls are the interface applications use to interact with the operating system (e.g. to open a file, to allocate memory, etc.)
gusrub has quit [Ping timeout: 268 seconds]
<benlieb>
Recently saw this question in prep for job interviews:
<benlieb>
What is the return value for:
<benlieb>
ABC::new::xyz
<benlieb>
ABC::new.xyz
<benlieb>
ABC.new::xyz
<benlieb>
ABC.new.xyz
<benlieb>
apparently they're all the same?
<benlieb>
I've never seen this syntax used for the 1st 3...
Cohedrin has quit [Read error: Connection reset by peer]
brent__ has quit [Remote host closed the connection]
<havenwood>
benlieb: You see some of that syntax in things like _why's poignant guide to Ruby, but it's dated. Of course just use: ABC.new.xyz
beyonder has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
alveric1 has joined #ruby
alveric1 is now known as lordalveric
Cohedri__ has joined #ruby
Bock has quit [Read error: Connection reset by peer]
<dionysus69>
thing is it is not reaching second rescue block at all
<dionysus69>
or else puts lines would execute
gusrub has joined #ruby
<havenwood>
I'm just pointing out warn and abort as an aside.
<havenwood>
dionysus69: the second rescue would rescue only from within the first
<dionysus69>
ohh
<dionysus69>
now i get it stupid me
<dionysus69>
i thought it would go like if else if else
ur5us has quit [Remote host closed the connection]
<havenwood>
dionysus69: you can nest begin within begin, but think about whether you need to
<havenwood>
keep it as simple as you can
<dionysus69>
now i get that if first block fails it jumps to the end
mim1k has joined #ruby
govg has quit [Ping timeout: 260 seconds]
<zenspider>
fucking hell... does rspec really do their own bullshit inspect code to introspect a failing expect/to/eq ???
<zenspider>
it isn't using my inspect method OR my pretty_print method
chouhoulis has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 268 seconds]
kies has quit [Ping timeout: 268 seconds]
MetaQED has joined #ruby
gusrub has quit [Remote host closed the connection]
ResidentBiscuit has quit [Quit: Critical Miss]
MrBusiness has joined #ruby
weathermaker has joined #ruby
cfec0b8d has quit [Remote host closed the connection]
<zenspider>
holy hell... they do. So if you subclass array or hash, you're just screwed
MetaQED has left #ruby ["Be back later..."]
bsartek has quit [Quit: This computer has gone to sleep]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
benlieb has quit [Quit: benlieb]
tenderlove has joined #ruby
flaf has joined #ruby
_sfiguser has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
ColeHub has joined #ruby
cschneid_ has quit [Remote host closed the connection]
Str|ker has joined #ruby
Str|ker has left #ruby [#ruby]
<Yxhuvud>
that is true in many situations as calling methods on a subsclassed array or hash is more or less a tombola when it comes to what class the instance you get back is. hence few people do it and hence rspec can get away with it
ecuanaso has joined #ruby
jrm has quit [Quit: ciao]
Rich_Morin has quit [Ping timeout: 240 seconds]
Dimik has joined #ruby
<zenspider>
Yxhuvud: no. just no. they implemented their own inspect, hardcoded 2 classes, and fall back to walking through INSPECTOR_CLASSES to see if any are applicable
<zenspider>
you know what they could have done? not hardcoded any classes and put 2 more inspectors in the collection.
gothicsouth has joined #ruby
<zenspider>
and WHY THE HELL DO THEY REIMPLEMENT (and externalize?!?) #inspect?!?
jrm has joined #ruby
<zenspider>
(answer: because they *have* to reinvent the wheel)
Rich_Morin_ has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]