houhoulis has quit [Remote host closed the connection]
jinie_ has quit [Ping timeout: 260 seconds]
AOSGm has joined #ruby
jinie_ has joined #ruby
<AOSGm>
Hi guys anyone up for a newb qn? I'm tryin setup`http://opensourcebilling.org on my Debian8x64. By all accounts it looks fine and running but when i loaded the site on the browser it says not found. Firewall set to accept all over port but it cannot be loaded. Any ideas why?
<teatime>
AOSGm: are you running "rails server" or did you setup a nginx/apache/etc. ?
<AOSGm>
teatime: Im runnin rails server
<teatime>
it only listens on localhost (127.0.0.1 and ::1)
alfiemax has joined #ruby
<AOSGm>
it listens to port 3000
<teatime>
on localhost.
<AOSGm>
Yup
<teatime>
You can't access localhost remotely.
<teatime>
You can tell `rails server` to not just listen on localhost, but `rails server` is not meant for production or public access.
<AOSGm>
i can access domain.com just not domain.com:3000
cdg has quit [Remote host closed the connection]
Joufflu has quit [Quit: Leaving]
<AOSGm>
It is meant for tinkering
<teatime>
it's listening on 127.0.0.1:3000 not on the public IP addr, you can't access it remotely that way.
<AOSGm>
So i'll just specify the public IP in -h?
cdg has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cadillac_ has joined #ruby
<teatime>
something you can do, which is super helpful to know about, is use SSH port forwarding. if you 'ssh -L 2000:127.0.0.1:3000 username@webserver.example.com' (from your local machine) you can then go to http://127.0.0.1:2000/ (on your local machine) and the traffic will be tunneled through the SSH connection to the remote machine (where it will go to 127.0.0.1:3000.) note that these two localhosts are
<teatime>
different.
<teatime>
AOSGm: it's -b, but be aware 1) that will make it available to everyone on the internet, and 2) your traffic to it, including passwords and such, will be sent in plaintext and not encrypted.
<teatime>
it is not recommended.
cdg has quit [Ping timeout: 258 seconds]
mokiwis has joined #ruby
jinie has quit [Ping timeout: 248 seconds]
mokiwis has quit [Client Quit]
jinie has joined #ruby
hahuang65 has joined #ruby
<AOSGm>
teatime: I should run it on ssl?
hahuang65 has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
gix has quit [Ping timeout: 258 seconds]
yitsushi has quit [Ping timeout: 264 seconds]
yitsushi has joined #ruby
Zimsky has quit [Ping timeout: 246 seconds]
gix has joined #ruby
AOSGm has quit [Ping timeout: 248 seconds]
bronson has quit [Ping timeout: 240 seconds]
Zimsky has joined #ruby
whin0r-mimimi is now known as haxx0r
tamouse__ has joined #ruby
Cyrus has quit [Quit: WeeChat 1.9.1]
Cyrus has joined #ruby
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mahlon_ is now known as mahlon
csk has quit [Quit: Bye]
LastWhisper____ has joined #ruby
Cohedrin_ has joined #ruby
Dimik has joined #ruby
stan has quit [Quit: No Ping reply in 180 seconds.]
cdg has joined #ruby
stan has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
stan has quit [Quit: No Ping reply in 180 seconds.]
jphase has joined #ruby
stan has joined #ruby
_whitelogger has joined #ruby
xco has joined #ruby
stan has quit [Quit: No Ping reply in 180 seconds.]
stan has joined #ruby
stan has quit [Read error: Connection reset by peer]
stan has joined #ruby
stan has quit [Read error: Connection reset by peer]
bastilian has joined #ruby
xco has quit [Quit: xco]
stan has joined #ruby
xco has joined #ruby
Azure has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
cgfbee has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
harai has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
stan has quit [Quit: No Ping reply in 180 seconds.]
alfiemax has quit [Remote host closed the connection]
stan has quit [Quit: No Ping reply in 180 seconds.]
alfiemax has joined #ruby
stan has joined #ruby
stan has quit [Read error: Connection reset by peer]
mjolnird has joined #ruby
pr0ton has quit [Quit: pr0ton]
dionysus69 has quit [Ping timeout: 258 seconds]
stan has joined #ruby
stan has quit [Read error: Connection reset by peer]
aupadhye has joined #ruby
alfiemax has quit [Ping timeout: 255 seconds]
cdg has joined #ruby
<al2o3-cr>
xco: that code works.
<xco>
yeah just found out. Sentry is catching it :/
harai has joined #ruby
<al2o3-cr>
ah.
cdg has quit [Ping timeout: 258 seconds]
stan has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
cdg has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
djbkd has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
oetjenj has joined #ruby
tonini has joined #ruby
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
DoubleMalt has joined #ruby
zautomata has joined #ruby
claudiuinberlin has joined #ruby
shime has joined #ruby
conta has joined #ruby
hs366 has joined #ruby
shime has quit [Client Quit]
gusrub has quit [Remote host closed the connection]
Silthias has joined #ruby
dn` has joined #ruby
xco has quit [Quit: xco]
Silthias1 has quit [Ping timeout: 248 seconds]
Cohedrin_ has joined #ruby
morfin has joined #ruby
<morfin>
i guess better upgrade an application because i had so many problems with old gems
<morfin>
but upgrading can create even more issues
ana_ has joined #ruby
<morfin>
i am wondering does JRuby work with OpenJDK?
mim1k has joined #ruby
<morfin>
or it's recommended to use Oracle JDK
hahuang65 has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
harfangk has joined #ruby
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 240 seconds]
Cohedrin_ has joined #ruby
mim1k has joined #ruby
cdg has joined #ruby
ShalokShalom has joined #ruby
bronson has joined #ruby
voiceftp has quit [Remote host closed the connection]
mathys has joined #ruby
unshadow has joined #ruby
sysvalve has joined #ruby
unshadow has quit [Client Quit]
cdg has quit [Ping timeout: 258 seconds]
voiceftp has joined #ruby
xuanrui has quit [Quit: Leaving]
enterprisey has joined #ruby
bronson has quit [Ping timeout: 255 seconds]
alex`` has joined #ruby
tobiasvl has quit [Ping timeout: 255 seconds]
biberu has joined #ruby
dionysus69 has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
mim1k has quit [Ping timeout: 248 seconds]
alex`` has quit [Ping timeout: 248 seconds]
alex`` has joined #ruby
harai has quit [Ping timeout: 240 seconds]
stan has quit [Quit: No Ping reply in 180 seconds.]
SHyx0rmZ has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby
Burgestrand has joined #ruby
alex`` is now known as alexherbo2
tvl has joined #ruby
alexherbo2 is now known as alex``
tvl is now known as tobiasvl
r7c has joined #ruby
shime has joined #ruby
dionysus69 has joined #ruby
djbkd has quit [Remote host closed the connection]
stan has joined #ruby
Mon_Ouie has joined #ruby
uZiel has joined #ruby
ta has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta has quit [Remote host closed the connection]
Mon_Ouie has quit [Quit: WeeChat 1.9]
phaul has joined #ruby
FastJack has joined #ruby
FastJack_ has quit [Read error: Connection reset by peer]
ta has joined #ruby
ta has quit [Remote host closed the connection]
cadillac_ has quit [Read error: Connection reset by peer]
Mon_Ouie has joined #ruby
mark_66 has joined #ruby
ta has joined #ruby
cadillac_ has joined #ruby
imode has quit [Ping timeout: 264 seconds]
stan has quit [Quit: No Ping reply in 180 seconds.]
ta has quit [Remote host closed the connection]
blackmesa has joined #ruby
stan has joined #ruby
stan has quit [Read error: Connection reset by peer]
marr has joined #ruby
ta has joined #ruby
stan has joined #ruby
cdg has joined #ruby
stan has quit [Read error: Connection reset by peer]
ta has quit [Remote host closed the connection]
jaruga has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
ta has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
stan has joined #ruby
ldepandis has joined #ruby
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has joined #ruby
ldepandis is now known as ldepandis|away
xco has joined #ruby
stan has quit [Quit: No Ping reply in 180 seconds.]
ldepandis|away has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MyMind has joined #ruby
simmaniac has joined #ruby
stan has joined #ruby
ldepandis has joined #ruby
DoubleMalt has quit [Ping timeout: 246 seconds]
Sembei has quit [Ping timeout: 248 seconds]
simmaniac is now known as syslvalve
tonini has quit [Quit: Connection closed for inactivity]
sysvalve has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
mim1k has joined #ruby
ldepandis has quit [Ping timeout: 240 seconds]
stan has quit [Ping timeout: 255 seconds]
simmaniac has joined #ruby
ldepandis has joined #ruby
ldepandis is now known as ldepandis|away
DoubleMalt has joined #ruby
syslvalve has quit [Ping timeout: 240 seconds]
stan has joined #ruby
nahra has quit [Remote host closed the connection]
agimenez has joined #ruby
govg has joined #ruby
ur5us has quit [Remote host closed the connection]
nahra has joined #ruby
simmaniac has quit [Ping timeout: 255 seconds]
ur5us has joined #ruby
sysvalve has joined #ruby
stan has quit [Quit: No Ping reply in 180 seconds.]
agimenez has quit [Ping timeout: 240 seconds]
stan has joined #ruby
ur5us has quit [Ping timeout: 255 seconds]
simmaniac has joined #ruby
ta__ has joined #ruby
mr_foto has joined #ruby
stan has quit [Read error: Connection reset by peer]
Burgestrand has quit [Quit: Closing time!]
sysvalve has quit [Ping timeout: 246 seconds]
ta has quit [Ping timeout: 258 seconds]
stan has joined #ruby
stan has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
stan has joined #ruby
al2o3-cr has quit [Ping timeout: 246 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
Mon_Ouie has quit [Ping timeout: 255 seconds]
ldepandis|away has quit [Ping timeout: 240 seconds]
drcode has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
enterprisey has quit [Remote host closed the connection]
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
cdg has joined #ruby
oetjenj has quit [Client Quit]
Burgestrand has joined #ruby
bronson has joined #ruby
MarkBilk has quit [Ping timeout: 258 seconds]
r3kz has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
MarkBilk has joined #ruby
workmad3 has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
charliesome has joined #ruby
al2o3-cr has joined #ruby
drcode has quit [Ping timeout: 260 seconds]
InfinityFye has joined #ruby
stan has quit [Read error: Connection reset by peer]
al2o3-cr has quit [Ping timeout: 240 seconds]
irick has quit [Ping timeout: 255 seconds]
mr_foto has quit [Remote host closed the connection]
irick has joined #ruby
Silthias1 has joined #ruby
mr_foto has joined #ruby
Silthias has quit [Ping timeout: 258 seconds]
marr has quit [Remote host closed the connection]
claudiuinberlin has quit [Read error: Connection reset by peer]
marr has joined #ruby
rgr has joined #ruby
stan__ has joined #ruby
stan__ has quit [Read error: Connection reset by peer]
mr_foto has quit [Remote host closed the connection]
mr_foto has joined #ruby
jphase has quit [Remote host closed the connection]
stan__ has joined #ruby
jphase has joined #ruby
stan__ has quit [Read error: Connection reset by peer]
uZiel has quit [Ping timeout: 248 seconds]
stan__ has joined #ruby
stan__ has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby
mim1k has quit [Disconnected by services]
mim1k_ has joined #ruby
stan__ has joined #ruby
al2o3-cr has joined #ruby
ldepandis has joined #ruby
rgr_ has joined #ruby
rgr has quit [Ping timeout: 246 seconds]
postmodern has quit [Quit: Leaving]
ldepandis is now known as ldepandis|away
stan__ has quit [Quit: No Ping reply in 180 seconds.]
drcode has joined #ruby
cdg has joined #ruby
DoubleMalt has quit [Ping timeout: 240 seconds]
stan__ has joined #ruby
cdg has quit [Ping timeout: 255 seconds]
stan__ has quit [Read error: Connection reset by peer]
stan___ has joined #ruby
stan___ has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tamouse__ has quit [Ping timeout: 248 seconds]
stan__ has joined #ruby
harfangk has quit [Ping timeout: 258 seconds]
zautomata has quit [Ping timeout: 258 seconds]
DoubleMalt has joined #ruby
tamouse__ has joined #ruby
ur5us has joined #ruby
Alina-malina has quit [Excess Flood]
Alina-malina has joined #ruby
mr_foto has quit []
tamouse__ has quit [Ping timeout: 260 seconds]
alex`` has quit [Quit: WeeChat 1.9]
tcopeland has quit [Quit: tcopeland]
ldepandis|away has quit [Read error: Connection reset by peer]
MarkBilk_ has joined #ruby
ur5us has quit [Ping timeout: 260 seconds]
MarkBilk has quit [Ping timeout: 248 seconds]
stan__ has quit [Quit: No Ping reply in 180 seconds.]
Paraxial has quit [Remote host closed the connection]
alex`` has joined #ruby
alex`` is now known as alexherbo2
alexherbo2 is now known as alex``
Paraxial has joined #ruby
stan has joined #ruby
Paraxial has quit [Remote host closed the connection]
Paraxial has joined #ruby
lexruee has quit [Ping timeout: 260 seconds]
alex`` has quit [Ping timeout: 258 seconds]
lexruee has joined #ruby
alex`` has joined #ruby
<jokke>
hi
<jokke>
can someone explain what's going on here? There was an error while loading `spawning_logger.gemspec`: uninitialized constant SimpleDelegator. Bundler cannot continue.
mim1k_ has quit [Read error: Connection reset by peer]
<jokke>
i don't have the usual structure that my main namespace is a module but rather that it's a class
<jokke>
and its superclass is SimpleDelegator
stan has quit [Remote host closed the connection]
<jokke>
so in my version file i have class SpawningLogger < SimpleDelegator; VERSION = ... end
<jokke>
my tests work fine, there's no problem with a missing constant there
stan has joined #ruby
jaruga has quit [Quit: jaruga]
stan has quit [Read error: Connection reset by peer]
stan has joined #ruby
Alina-malina has quit [Ping timeout: 258 seconds]
hahuang65 has joined #ruby
Alina-malina has joined #ruby
charliesome has joined #ruby
stan has quit [Quit: No Ping reply in 180 seconds.]
ta__ has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 248 seconds]
mim1k has joined #ruby
stan has joined #ruby
bronson has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
stan has quit [Quit: No Ping reply in 180 seconds.]
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
kapil___ has joined #ruby
stan has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
stan_ has joined #ruby
jphase has quit [Ping timeout: 246 seconds]
mim1k has quit [Ping timeout: 255 seconds]
stan has quit [Ping timeout: 240 seconds]
stan_ has quit [Ping timeout: 240 seconds]
stan has joined #ruby
stan_ has joined #ruby
stan_ has quit [Read error: Connection reset by peer]
stan has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
ShalokShalom is now known as ShalokShalom2
hs366 has quit [Quit: Leaving]
ta has joined #ruby
harfangk has joined #ruby
ta has quit [Ping timeout: 258 seconds]
thinkpad has quit [Ping timeout: 246 seconds]
rwb has quit [Ping timeout: 260 seconds]
jaruga has joined #ruby
tcopeland has joined #ruby
shinnya has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
ldnunes has joined #ruby
thinkpad has joined #ruby
jphase has joined #ruby
j0rdj0rd_ has quit [Remote host closed the connection]
<darix>
jokke: require the file that provides SimpleDelegator in the file that defines the version
<elomatreb>
The problem with that is that you can't just run "simple" functions, code execution is code execution
John__ has joined #ruby
<workboy>
elomatreb, I agree, so my idea is that there might be some resp api services out there for code evaluation
hahuang65 has quit [Ping timeout: 264 seconds]
<elomatreb>
The eval bot in this channel uses https://eval.in/ as a backend
DaniG2k has quit [Ping timeout: 248 seconds]
Paraxial has quit [Remote host closed the connection]
LastWhisper____ has joined #ruby
cdg has joined #ruby
<workboy>
elomatreb, i found the website before but can't see to find any api docs or anything to suggest i could use it like that
<elomatreb>
I'm not sure it's intended for that either, I don't know any services that officially offer something like this
Paraxial has joined #ruby
<workboy>
elomatreb, myea, think one of my most solid options is to pipe the code sample to a docker container run and return it
<jokke>
is it possible to stub out `require` in rspec?
<jokke>
(not via allow(Kernel).to receive(:require)
cdg_ has joined #ruby
Paraxial has quit [Remote host closed the connection]
DLSteve_ has joined #ruby
cabotto has joined #ruby
bronson has joined #ruby
p0p0pr37 has quit [Ping timeout: 258 seconds]
Paraxial has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
cdg has quit [Ping timeout: 240 seconds]
Paraxial has quit [Remote host closed the connection]
Paraxial has joined #ruby
<Mon_Ouie>
workboy: There's no real API for eval.in, you just send the same POST request that would be sent if you were to fill out the form on the web page
bronson has quit [Ping timeout: 240 seconds]
DaniG2k has joined #ruby
DaniG2k has quit [Client Quit]
aupadhye has quit [Ping timeout: 258 seconds]
tamouse__ has joined #ruby
John__ has quit [Ping timeout: 260 seconds]
FrostCandy has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jokke>
i'm trying to test a lib which will prepend a class with a module depending on a class level setting. is there a possibility to remove all prepended module (and class methods) from the tested class?
cabotto has left #ruby [#ruby]
cabotto has joined #ruby
workboy has quit [Remote host closed the connection]
p0p0pr37 has joined #ruby
p0p0pr37 has quit [Changing host]
p0p0pr37 has joined #ruby
<jokke>
somehow to reload the original definition of the class?
mikecmpbll has quit [Ping timeout: 258 seconds]
mikecmpbll has joined #ruby
ElDoggo has joined #ruby
yeticry has joined #ruby
jphase has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yeticry_ has quit [Read error: Connection reset by peer]
tamouse__ has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
Rapture has joined #ruby
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 240 seconds]
truenito has quit [Ping timeout: 248 seconds]
ResidentBiscuit has joined #ruby
ElDoggo has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: inabit. zz.]
ElDoggo has joined #ruby
mikecmpbll has joined #ruby
tamouse__ has joined #ruby
_aeris_ has quit [Ping timeout: 248 seconds]
griffindy has joined #ruby
griffindy has quit [Client Quit]
griffindy has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
rabajaj has quit [Quit: Leaving]
rwb has joined #ruby
_aeris_ has joined #ruby
p0p0pr37_ has joined #ruby
p0p0pr37_ has quit [Changing host]
p0p0pr37_ has joined #ruby
tamouse__ has quit [Read error: Connection reset by peer]
<chriscarpenter12>
Running all or find should return some results, but I want to be able to chain another method to augment the results from the first set. Not sure if this is possible.
<ycyclist>
I would like a spec which gives the entire range of possible return values from Socket.gethostname external of exceptions.
chouhoulis has quit [Remote host closed the connection]
gusrub has joined #ruby
leah2 has quit [Ping timeout: 248 seconds]
brian_penguin has joined #ruby
brian_penguin has quit [Remote host closed the connection]
DmitryBochkarev has quit [Quit: Leaving]
roswell has joined #ruby
<roswell>
hi folks. if anyone using rfuse, is there a way to set the readdir operation to nonblocking mode?
paranoicsan has joined #ruby
FastJack has quit [Read error: Connection reset by peer]
vdl has quit [Quit: WeeChat 1.6]
someuser has joined #ruby
vdl has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FastJack has joined #ruby
Paraxial has quit [Remote host closed the connection]
Paraxial has joined #ruby
ldepandis|away is now known as ldepandis
ldepandis is now known as ldepandis|away
ldepandis|away is now known as ldepandis
ldepandis is now known as ldepandis|away
ldepandis|away is now known as ldepandis
leah2 has joined #ruby
whippythellama has joined #ruby
bmurt has joined #ruby
bronson has joined #ruby
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
shaman42 has quit [Quit: Lost terminal]
lxsameer has joined #ruby
shaman42 has joined #ruby
alfiemax has joined #ruby
gusrub has quit [Remote host closed the connection]
bmurt has quit [Client Quit]
bronson has quit [Ping timeout: 246 seconds]
spheric has joined #ruby
paranoicsan has quit [Quit: paranoicsan]
paranoicsan has joined #ruby
Cohedrin_ has joined #ruby
mson has joined #ruby
dionysus69 has joined #ruby
leah2 has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kies has joined #ruby
jrabe has quit [Ping timeout: 264 seconds]
<FrostCandy>
field_array = [], field_array.push[{:fn => 'f', :count => 1}] that produces the error no implicit conversion of Hash into Integer but I don't see why. Does the number need a quote around it in :count => 1?
Mon_Ouie has joined #ruby
Algebr` has joined #ruby
<centrx>
FrostCandy: you're using brackets instead of parens for the push method
<FrostCandy>
centrx: gah thanks. switching languages error heh
jrabe has joined #ruby
bmurt has joined #ruby
blackmesa has quit [Ping timeout: 258 seconds]
Mon_Ouie has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
conta1 has quit [Ping timeout: 240 seconds]
leah2 has joined #ruby
xco has quit [Quit: xco]
xco has joined #ruby
xco has quit [Client Quit]
xco has joined #ruby
xco has quit [Client Quit]
xco has joined #ruby
xco has quit [Client Quit]
xco has joined #ruby
xco has quit [Client Quit]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xco has joined #ruby
_Andres has joined #ruby
xco has quit [Client Quit]
xco has joined #ruby
xco has quit [Client Quit]
xco has joined #ruby
xco has quit [Client Quit]
xco has joined #ruby
xco has quit [Client Quit]
pr0ton has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
orbyt_ has joined #ruby
gusrub has joined #ruby
milardovich has quit [Remote host closed the connection]
postmodern has joined #ruby
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
rrichardsr3 has joined #ruby
s3nd1v0g1us has joined #ruby
mikecmpbll has joined #ruby
zachk has joined #ruby
Mon_Ouie has joined #ruby
imode has quit [Ping timeout: 258 seconds]
gusrub has quit [Remote host closed the connection]
jphase has joined #ruby
gusrub has joined #ruby
gusrub has quit [Remote host closed the connection]
tcopeland has quit [Quit: tcopeland]
ramfjord has joined #ruby
dinfuehr has quit [Ping timeout: 260 seconds]
dinfuehr has joined #ruby
paranoicsan has quit [Quit: paranoicsan]
jphase has quit [Ping timeout: 246 seconds]
s3nd1v0g1us has quit [Quit: tempusfugit]
conta1 has joined #ruby
tcopeland has joined #ruby
marcux has quit [Ping timeout: 255 seconds]
cdg_ has joined #ruby
piotrj has joined #ruby
imode has joined #ruby
piotrj has quit [Client Quit]
conta1 has quit [Ping timeout: 260 seconds]
leah2 has quit [Ping timeout: 240 seconds]
jphase has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
[Butch] has joined #ruby
charliesome has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
cdg_ has quit [Ping timeout: 246 seconds]
jphase has quit [Ping timeout: 255 seconds]
^mtkd has quit [Ping timeout: 246 seconds]
csk has joined #ruby
troys is now known as troys_
mtkd has joined #ruby
csk_ has joined #ruby
ta has quit [Remote host closed the connection]
gusrub has joined #ruby
ur5us has joined #ruby
xuanrui has joined #ruby
xuanrui has quit [Remote host closed the connection]
ldepandis is now known as ldepandis|away
ldepandis|away is now known as ldepandis
ldepandis is now known as ldepandis|away
ldepandis|away is now known as ldepandis
ur5us has quit [Ping timeout: 240 seconds]
ldepandis is now known as ldepandis|away
ldepandis|away is now known as ldepandis
dionysus70 has joined #ruby
csk has quit [Quit: Bye]
dionysus69 has quit [Ping timeout: 248 seconds]
dionysus70 is now known as dionysus69
centrx has quit [Remote host closed the connection]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
csk_ has quit [Ping timeout: 258 seconds]
mahlon has quit [Read error: Connection reset by peer]
mahlon has joined #ruby
ta has joined #ruby
ben_ has joined #ruby
ben_ is now known as Guest77567
Dimik has joined #ruby
jaruga has joined #ruby
Guest29443 has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
alfiemax has quit [Remote host closed the connection]
marcux has joined #ruby
csk has joined #ruby
gusrub has quit [Read error: Connection reset by peer]
Algebr` has quit [Remote host closed the connection]
gusrub has joined #ruby
csk has quit [Disconnected by services]
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
rrichardsr3 has quit [Quit: He who dares .... wins.]
morfin has quit [Ping timeout: 264 seconds]
milardovich has joined #ruby
centrx has quit [Client Quit]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
morfin has joined #ruby
_aeris_ has quit [Ping timeout: 248 seconds]
SeepingN has joined #ruby
Guest77567 has quit [Remote host closed the connection]
coderphive has joined #ruby
coderphive has quit [Client Quit]
coderphive has joined #ruby
yqt has joined #ruby
bronson has joined #ruby
yqt has quit [Client Quit]
jphase has joined #ruby
bronson has quit [Ping timeout: 258 seconds]
slackR has joined #ruby
jphase has quit [Ping timeout: 258 seconds]
_aeris_ has joined #ruby
<ycyclist>
I thought I recall being able to put each additional or at the start of a new line, but it doesn't work now.
<roswell>
ycyclist, as in a conditional expression?
orbyt_ has joined #ruby
slackR has quit [Quit: Leaving]
<ycyclist>
Yes. So I thought I used to be able to do if true <return><tab>or not false then
<ycyclist>
But that fails now. I may be going back to 1.87
mson has quit [Quit: Connection closed for inactivity]
<roswell>
ycyclist, append the line break with backslash
<ycyclist>
No, that's not worth it. Better to put it on one line for the trouble.
<roswell>
ycyclist, up to you )
<matthewd>
Or just put the 'or' on the end of the previous line
<ycyclist>
Okay, but I would like to know why that changed, or if I am thinking of another language.
<matthewd>
It didn't change
<ycyclist>
Ok. Thanks.
<roswell>
ycyclist, shell perharps
gusrub has quit [Read error: Connection reset by peer]
cagomez has quit [Remote host closed the connection]
gusrub has joined #ruby
agimenez is now known as sysvalve
Mon_Ouie has quit [Ping timeout: 248 seconds]
enterprisey has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ben_ has joined #ruby
ben_ is now known as Guest35707
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
elnner has joined #ruby
tamouse__ has joined #ruby
cdg has joined #ruby
<elnner>
hello, anyone knows why Symbol#to_proc doesn't seem to work in this example? `%w(foo barz).min(&:length)`
<elnner>
> ArgumentError: wrong number of arguments (given 1, expected 0)
jenrzzz has quit [Ping timeout: 240 seconds]
biberu has quit []
quobo has quit [Quit: Connection closed for inactivity]
<elomatreb>
min with a block does comparison in the block
<elnner>
it does an incorrect thing, yes. What I don't understand is why the error message is different when using &:length vs a real block, shouldn't it behave in the same way?
jamesaxl has quit [Read error: Connection reset by peer]
<havenwood>
ModusPwnens: What are you trying? Do you really need a class variable or would a class instance variable suffice?
<matthewd>
elnner: And the block is called with two parameters, so length gets passed the second one -- which it's not expecting
mtkd has quit [Ping timeout: 258 seconds]
<matthewd>
>> "foo".length("barz")
<ruby[bot]>
matthewd: # => wrong number of arguments (given 1, expected 0) (ArgumentError) ...check link for more (https://eval.in/872406)
nofxxx has quit [Ping timeout: 258 seconds]
<ModusPwnens>
havenwood: I just have some complex initialization logic in a self method and I want to initialize a common variable using that logic instead of initializing it in two places. I use a class variable because this entire class is essentially a series of self methods
<matthewd>
ModusPwnens: gist what you're doing, and what's not working?
cadillac_ has quit [Read error: Connection reset by peer]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<elnner>
matthewd: I understand, #to_proc gives you a proc which checks number of arguments, meanwhile normal block usage would not complain about that, thanks!
<ModusPwnens>
self.initialized_nested_hash and ClassName.initialize_nested_hash, but neither work.
<matthewd>
ModusPwnens: Oh, you're just calling the method before you define it. Move the method above the call.
<ModusPwnens>
matthewd: oh. Maybe it's because i come from javaland, but seems like that would mess with the organization of this file as one lone method would be above some field and constant declarations
<ModusPwnens>
or is that just ruby style?
cadillac_ has joined #ruby
<matthewd>
It's certainly "ruby style" that you can't call a method you haven't defined yet ¯\_(ツ)_/¯
roswell has left #ruby ["Leaving"]
<matthewd>
For a more convention-based definition of style, I'd say it's not ruby style to use class variables in the first place
<ModusPwnens>
Obviously. My question is more: is it considered conventional or otherwise unremarkable to have variable and constant definitions sandwiched between method definitions?
pawnbox has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
_Andres has quit [Quit: jazz]
<ModusPwnens>
Or is there a way that using instance variables can avoid that type of sandwiching?
bronson has joined #ruby
tamouse__ has quit [Ping timeout: 248 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
<matthewd>
We're really getting into "it depends" territory. Could be as simple as `def self.monitors_hash; @monitors_hash ||= initialize_nested_hash; end` (or even with the class variable)... or setting it up in an initialize on an actual instance of a class instead.
mtkd has joined #ruby
<matthewd>
I can identify "that physically cannot work" without further context, but it's harder to suggest the most 'conventional' way to approach something without understanding more context of what you're doing.
<ModusPwnens>
oh i forgot about that. you can initialize a ruby variable in its getter method, which would eliminate that issue, wouldn't it?
cdg_ has joined #ruby
<ModusPwnens>
this class is never initialized, unfortunately.
<ModusPwnens>
the only entry point into the class is from a self method.
<morfin>
matthewd, i like this more than "magical" methods
<matthewd>
ModusPwnens: But maybe it should be
<matthewd>
e.g. maybe it should be a singleton instance, instead of having all the methods as class methods
<ModusPwnens>
matthewd: I'm not a ruby expert, so you probably know more than me on this. The reason that it currently isn't is because it just does one thing and the object would never be re-used. There's also no state associated with the object really.
<matthewd>
Well what's the variable for, then? ;)
eputnam is now known as ephantasm
<ModusPwnens>
It gets modified during the execution.
pawnbox has joined #ruby
<ModusPwnens>
but it needs to be initialized to something
<matthewd>
Sounds like state to me
<matthewd>
But yeah.. I can only offer general possibilities without knowing what you're doing
jrabe has quit [Ping timeout: 258 seconds]
jamesaxl has joined #ruby
cdg has quit [Ping timeout: 258 seconds]
<ModusPwnens>
well, its state that needs to be maintained during execution. Once execution is over and the method returns, none of that state is needed anymore.
tamouse__ has joined #ruby
rwb has quit [Ping timeout: 240 seconds]
<matthewd>
That seems like a very good reason not to store it in a global, IMO
<ModusPwnens>
and the reason i'm making it a class variable is that there are actually two entry points, but they are both self methods and i wanted to save the duplication of initialization
ur5us has joined #ruby
<lagweezle>
Perhaps have a method that does the actual work, and those two entry points merely arrange things enough to make sense so the information can be passed to the method doing the actual work, and everything which is state is instead kept as a variable local to that 'work' method.
pawnbox has quit [Ping timeout: 240 seconds]
marcux has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<matthewd>
If there's state that only lasts as long as the method call, then it sounds like it should be creating a new instance of the class for each invocation
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
raynold has joined #ruby
rrichardsr3 has joined #ruby
fChanX has joined #ruby
<fChanX>
Hello
enterprisey has joined #ruby
leah2 has joined #ruby
tamouse__ has joined #ruby
fChanX has left #ruby [#ruby]
__Yiota has joined #ruby
naprimer has joined #ruby
GodFather has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 258 seconds]
troulouliou_dev has quit [Quit: Leaving]
s3nd1v0g1us has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
pwnd_nsfw` is now known as pwnd_nsfw
jrabe has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
jrabe has joined #ruby
govg has quit [Ping timeout: 255 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 248 seconds]
govg has joined #ruby
thinkpad has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
leah2 has quit [Ping timeout: 258 seconds]
jphase has quit [Remote host closed the connection]
pawnbox has joined #ruby
govg has quit [Ping timeout: 240 seconds]
gusrub_ has quit [Remote host closed the connection]
amirite has joined #ruby
cdg_ has quit [Ping timeout: 248 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GodFather has joined #ruby
milardovich has joined #ruby
bruno- has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
orbyt_ has joined #ruby
__Yiota has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
bronson has joined #ruby
jrabe has quit [Ping timeout: 255 seconds]
jrabe has joined #ruby
spt0 has quit [Ping timeout: 258 seconds]
mim1k has joined #ruby
ozcanesen has joined #ruby
<amirite>
I want to add some code to a module that says if somehash[:suchandsuchCallback] != nil then call it, but I'm a lot of confusion from my google search results telling me the idiomatic way to implement callbacks in ruby is by using &blocks
<amirite>
so my problem is that I can't envision how I would implement this using a block -- I want to set somehash[:suchandsuchCallback] = whatever from another method
<amirite>
how would I assign a block as a value to a hash?
<baweaver>
What are you trying to do specifically?
<baweaver>
ignoring callbacks for the moment
ElDoggo has quit [Remote host closed the connection]
<amirite>
implement an optional "hook" that runs after a certain action happens
<amirite>
i.e. a post-destroy hook
mim1k has quit [Ping timeout: 258 seconds]
<baweaver>
Those would just be lambda or proc or method
<amirite>
because that's how this thing is implemented, it's a vagrant plugin -- i am setting the callback in the config hash
<amirite>
it will get called later
<amirite>
javascript is straightforward
<teatime>
lol
<amirite>
except es6 or whatever is magical
<lagweezle>
Procs and lambdas can be stored "as a variable" kind of, and assigned to things.
<matthewd>
Oh, this is vagrant-ruby, not ruby-ruby
<lagweezle>
So what baweaver pointed out, pretty much. Except you can also directly use Proc as well.
<matthewd>
I would advise against searching for ruby-idiomatic ways of doing things in vagrant. Everything I've seen of it suggests you'll be better off just following any existing nearby precedent.
<matthewd>
IOW: do the thing you first intended to do, and don't worry about what would be "more right" in a proper ruby application
<baweaver>
DSLs are their own special breed of magic.
amirite has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
John__ has quit [Read error: Connection reset by peer]
motstgo has joined #ruby
spt0 has joined #ruby
hndk has joined #ruby
tamouse__ has quit [Ping timeout: 240 seconds]
spt0 has quit [Ping timeout: 260 seconds]
marr has quit [Ping timeout: 248 seconds]
polishdub has quit [Quit: leaving]
neachdainn has joined #ruby
Azure has joined #ruby
<neachdainn>
Hey all. Anyone know of a good C extension tutorial that doesn't require using gem/rake? Or are the two intimately tied?