havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.2, 2.3.5 & 2.2.8: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
cdg has joined #ruby
jinie_ has quit [Ping timeout: 240 seconds]
tpendragon has quit [Remote host closed the connection]
Guest431 has quit [Remote host closed the connection]
hahuang65 has joined #ruby
<teatime> with .reduce the memo object can't be arbitrary objects?
<teatime> (I found .each_with_object, but still curious)
jinie_ has joined #ruby
milardovich has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
orbyt_ has joined #ruby
milardovich has quit [Ping timeout: 248 seconds]
shinnya has quit [Ping timeout: 258 seconds]
tfitts has quit [Quit: Connection closed for inactivity]
BubonicPestilenc has joined #ruby
<BubonicPestilenc> Hey all
<BubonicPestilenc> using something new to me: == ?.
<BubonicPestilenc> i tested `p ?.` #=> "."
<BubonicPestilenc> can somebody tell me what is this called to find description ?
<BubonicPestilenc> i definitely missed this "string" syntax
<BubonicPestilenc> (new for me)
<matthewd> BubonicPestilenc: It's a character literal
<BubonicPestilenc> oh... ascii/ord
<BubonicPestilenc> why they used it in example?
<BubonicPestilenc> why not compare to == "."
<BubonicPestilenc> Are they preventing utf-8 issues?
<matthewd> As you've already seen, they're the same
<matthewd> ?. is another way of spelling ".", just like '.'
mjolnird has joined #ruby
mjolnird has quit [Max SendQ exceeded]
<BubonicPestilenc> k, tyvm :)
mjolnird has joined #ruby
halt has joined #ruby
BubonicPestilenc has quit [Quit: Textual IRC Client: www.textualapp.com]
<teatime> BubonicPestilenc: it stopped working like ord---nevermind.
orbyt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
mjolnird has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
tamouse__ has joined #ruby
mjolnird has joined #ruby
mjolnird has quit [Client Quit]
adampants has joined #ruby
tamouse__ has quit [Read error: Connection reset by peer]
statelesscode has joined #ruby
Vivekananda has quit [Remote host closed the connection]
Vivekananda has joined #ruby
adampants has left #ruby [#ruby]
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
al2o3-cr has joined #ruby
harai has quit [Ping timeout: 248 seconds]
enterprisey has joined #ruby
marr has quit [Ping timeout: 248 seconds]
gizmore|2 has joined #ruby
gizmore has quit [Ping timeout: 260 seconds]
nankyoku_ has joined #ruby
swills has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
cjs226 has quit [Quit: Textual IRC Client: www.textualapp.com]
nankyokusei has joined #ruby
jinie_ has quit [Ping timeout: 240 seconds]
Morrolan has quit [Ping timeout: 252 seconds]
Phage has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
nankyoku_ has quit [Ping timeout: 258 seconds]
milardovich has quit [Ping timeout: 258 seconds]
MarkBilk_ has quit [Ping timeout: 240 seconds]
swills has joined #ruby
swills has joined #ruby
MarkBilk has joined #ruby
d^sh has quit [Ping timeout: 248 seconds]
bronson has joined #ruby
d^sh has joined #ruby
bronson has quit [Ping timeout: 248 seconds]
tamouse__ has joined #ruby
bmurt has joined #ruby
stan has quit [Quit: No Ping reply in 180 seconds.]
tamouse__ has quit [Ping timeout: 240 seconds]
stan has joined #ruby
jphase has quit [Remote host closed the connection]
xcortexinx has joined #ruby
giraffe has joined #ruby
giraffe is now known as Guest21598
tpendragon has joined #ruby
tamouse__ has joined #ruby
tamouse__ has quit [Read error: Connection reset by peer]
xcortexinx has quit [Quit: Leaving]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
gizmore has joined #ruby
gizmore|2 has quit [Ping timeout: 258 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit [Remote host closed the connection]
nowhereman has quit [Remote host closed the connection]
cdg has joined #ruby
milardovich has joined #ruby
nowhereman has joined #ruby
hahuang65 has joined #ruby
minimalism has quit [Quit: minimalism]
eventpuddle has quit [Quit: Leaving]
bkulbida has joined #ruby
harai has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
bkulbida has quit [Client Quit]
tamouse__ has joined #ruby
bmurt has joined #ruby
consti has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tamouse__ has quit [Ping timeout: 248 seconds]
MarkBilk has quit [Ping timeout: 258 seconds]
MarkBilk has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
naprimer has quit [Quit: Leaving]
bmurt has joined #ruby
consti has quit [Quit: consti]
Phage has joined #ruby
Phage has quit [Changing host]
Phage has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
jphase has joined #ruby
jinie_ has joined #ruby
stan has quit [Quit: No Ping reply in 180 seconds.]
Morrolan has joined #ruby
stan has joined #ruby
jphase has quit [Ping timeout: 258 seconds]
milardovich has quit []
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
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.]
dn` has quit [Ping timeout: 255 seconds]
<xco> hi on line 6 here: https://gist.github.com/xcobar/1aee27b48599e0add7a40df35cbc5d38 i have an error comparison of String with String failed. this can be reproduced when #<=> is overwritten like here https://eval.in/870733. problem is, i haven’t overwritten that anywhere in my code.
<xco> any tips?
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has joined #ruby
stan has joined #ruby
<Radar> xco: what is words? what is str?
<Radar> show us the values for those and we can probably tell you what's going wrong
bronson has quit [Ping timeout: 240 seconds]
ta has quit [Remote host closed the connection]
nunchuck has quit [Ping timeout: 258 seconds]
deduped has quit [Ping timeout: 258 seconds]
Cohedrin_ has joined #ruby
<xco> ok few mins
Cohedrin_ has quit [Client Quit]
haxx0r has left #ruby [#ruby]
aupadhye has joined #ruby
aupadhye has quit [Ping timeout: 240 seconds]
pr0ton has joined #ruby
uZiel has joined #ruby
aufi has joined #ruby
<xco> Radar: the values of words = ["nike", "sho", "nike sho"] and str = "nike sho"
<Radar> xco: and what is word_indexes
Mon_Ouie has quit [Ping timeout: 240 seconds]
<xco> locations = {"nike"=>0, "sho"=>5, "nike sho"=>0}
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
jphase has quit [Ping timeout: 246 seconds]
jphase has joined #ruby
stan__ has joined #ruby
ta has joined #ruby
jphase has quit [Ping timeout: 246 seconds]
<jokke> darix: SimpleDelegator ist stdlib
fmcgeough has joined #ruby
fmcgeough has quit [Client Quit]
<darix> jokke: you still need to require it
<darix> i also have to do "require 'openssl'" if i want to use that stdlib module
<jokke> ok
<jokke> nice. requiring 'delegate' did the trick
<jokke> thanks
minimalism has joined #ruby
bmurt has joined #ruby
Mon_Ouie has joined #ruby
rabajaj has joined #ruby
ShalokShalom has joined #ruby
ShalokShalom2 has quit [Ping timeout: 258 seconds]
bruno-_ has quit [Ping timeout: 258 seconds]
lxsameer has quit [Quit: WeeChat 1.7]
DaniG2k has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
stan__ has quit [Quit: No Ping reply in 180 seconds.]
milardovich has joined #ruby
stan has joined #ruby
milardovich has quit [Remote host closed the connection]
stan has quit [Remote host closed the connection]
workboy has joined #ruby
<workboy> Hey guys, what's the best way to validate ruby online in a web page?
bmurt has joined #ruby
<workboy> I want to crate a simple text editor page where ppl can validate very simple scripts (couple of functions)
<workboy> just a single file
zhunting has left #ruby ["WeeChat 1.9"]
Paraxial has quit [Remote host closed the connection]
fmcgeough has joined #ruby
truenito has joined #ruby
simmaniac has quit [Read error: Connection reset by peer]
Paraxial has joined #ruby
sysvalve has joined #ruby
fmcgeough_ has joined #ruby
fmcgeough has quit [Ping timeout: 264 seconds]
fmcgeough_ is now known as fmcgeough
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<elomatreb> Validate as in syntax?
mim1k has joined #ruby
Burgestrand has quit [Quit: Closing time!]
harfangk has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
FastJack has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby
FastJack has joined #ruby
mson has joined #ruby
<workboy> elomatreb, more like evaluate this simple function that returns a string and if string match to a specific return then you "pass"
<workboy> elomatreb, sort of exercise like, if you'd like
<workboy> electrostat, i'd like to make something similar to this
<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]
cdg has joined #ruby
tamouse__ has joined #ruby
jphase has quit [Ping timeout: 246 seconds]
p0p0pr37 has quit [Ping timeout: 246 seconds]
p0p0pr37_ is now known as p0p0pr37
InfinityFye has quit [Quit: Leaving]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
cdg_ has quit [Ping timeout: 248 seconds]
chriscarpenter12 has joined #ruby
cdg_ has joined #ruby
truenito has joined #ruby
griffindy has quit [Quit: Textual IRC Client: www.textualapp.com]
jinie has quit [Ping timeout: 240 seconds]
Burgestrand has joined #ruby
heftig has quit [Remote host closed the connection]
heftig has joined #ruby
cdg has quit [Ping timeout: 248 seconds]
jinie has joined #ruby
shime has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
truenito has quit [Ping timeout: 255 seconds]
ldepandis has joined #ruby
simmaniac has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<chriscarpenter12> I am in the process of creating an API wrapper for an internal API. I am struggling to figure out how to create method chaining in a class. Here's a gist of what I'm trying: https://gist.github.com/chriscarpenter12/e7974d4144c0723a54eb009f6efbbf5a
<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.
<chriscarpenter12> First results in google search goes to a sitepoint article: https://www.sitepoint.com/a-guide-to-method-chaining/
<chriscarpenter12> It says to return self on the methods, but how do you get results if you don't chain something else on them?
ElDoggo has quit [Remote host closed the connection]
sysvalve has quit [Ping timeout: 264 seconds]
jphase has joined #ruby
<darix> chriscarpenter12: look at arel maybe
<darix> chriscarpenter12: or activerecord
<darix> chriscarpenter12: those basically implement the pattern you want.
<chriscarpenter12> darix: Thanks I'll look. I was skimming Active Record, but didn't know if there was a simpler way
jphase has quit [Ping timeout: 246 seconds]
<darix> chriscarpenter12: arel is the backend to AR
ana_ has quit [Ping timeout: 255 seconds]
polishdub has joined #ruby
oetjenj has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
Burgestrand has quit [Quit: Closing time!]
iHmD has joined #ruby
ldepandis is now known as ldepandis|away
tamouse__ has quit [Read error: Connection reset by peer]
cdg_ has quit [Remote host closed the connection]
MrBismuth has quit [Ping timeout: 255 seconds]
iHmD has left #ruby ["Good Bye"]
kapil___ has quit [Quit: Connection closed for inactivity]
rippa has joined #ruby
milardovich has joined #ruby
cdg has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
truenito has joined #ruby
charliesome has joined #ruby
alfiemax has joined #ruby
r7c has quit [Quit: Leaving]
truenito has quit [Ping timeout: 258 seconds]
smelnicki has joined #ruby
hahuang65 has joined #ruby
sysvalve has joined #ruby
mim1k has joined #ruby
agimenez has joined #ruby
jphase has joined #ruby
ElDoggo has joined #ruby
simmaniac has quit [Ping timeout: 240 seconds]
mathys has quit [Quit: Leaving]
sysvalve has quit [Ping timeout: 246 seconds]
jphase_ has joined #ruby
hahuang65 has quit [Ping timeout: 246 seconds]
ElDoggo has quit [Remote host closed the connection]
ElDoggo has joined #ruby
jphase has quit [Ping timeout: 258 seconds]
rabajaj has joined #ruby
jphase_ has quit [Ping timeout: 255 seconds]
rgr_ has quit [Quit: rgr_]
mson has quit [Quit: Connection closed for inactivity]
John__ has joined #ruby
bronson has joined #ruby
conta has quit [Ping timeout: 240 seconds]
pr0ton has joined #ruby
__Yiota has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
gizmore has quit [Remote host closed the connection]
cabotto has quit []
gusrub has quit [Remote host closed the connection]
alex`` has quit [Ping timeout: 240 seconds]
troys has joined #ruby
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
klaas has joined #ruby
cagomez has joined #ruby
DoubleMalt has quit [Quit: Leaving]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
[Butch] has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
marxarelli has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
[Butch] has joined #ruby
gizmore has joined #ruby
mostlybadfly has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Remote host closed the connection]
jaruga has quit [Quit: jaruga]
nofxxx has joined #ruby
pr0ton has quit [Ping timeout: 255 seconds]
nofxxx has quit [Ping timeout: 248 seconds]
rabajaj has quit [Quit: Leaving]
bmurt has joined #ruby
cpruitt has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
marcux has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase has joined #ruby
kies has quit [Ping timeout: 258 seconds]
gusrub has joined #ruby
pr0ton has joined #ruby
pr0ton has left #ruby [#ruby]
bmurt has joined #ruby
jphase has quit [Ping timeout: 258 seconds]
Keytap has joined #ruby
<Keytap> Hey guys, quick question, is there a way to source a script so that it executes in the current scope/environment?
<Keytap> load/require seems to act similar to calling a script from bash vs source'ing the script
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
thinkpad has quit [Ping timeout: 248 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
aufi has quit [Quit: Leaving]
eckhardt has joined #ruby
selim has quit [Ping timeout: 248 seconds]
orbyt_ has joined #ruby
conta1 has joined #ruby
selim has joined #ruby
<Papierkorb> Keytap: Not that I recommend doing it, but check out `Binding#eval`: `a = 1; binding.eval("a = 2"); p a`
<matthewd> That's only partially true though.. you really want to define classes and methods and then call them, instead
cdg has quit [Remote host closed the connection]
<Keytap> Papierkorb: You familiar with Compass by any chance?
<havenwood> Keytap: #load takes a second argument for whether to wrap the loaded code in an anonymous module
<havenwood> Keytap: it's best to use explicit namespaces
<Keytap> havenwood: I can't really here, as far as I'm aware.
<Keytap> The rb file serves as a configuration for an application we use to compile our scss scripts
<Keytap> I'm trying to extend this file and add additional import directories
mark_66 has quit [Remote host closed the connection]
blackmesa has joined #ruby
leah2 has quit [Ping timeout: 258 seconds]
cdg has joined #ruby
chouhoulis has joined #ruby
ldepandis|away is now known as ldepandis
ldepandis is now known as ldepandis|away
hahuang65 has joined #ruby
__Yiota has quit [Quit: Textual IRC Client: www.textualapp.com]
__Yiota has joined #ruby
brendan- has quit [Quit: Textual IRC Client: www.textualapp.com]
brendan- has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
centrx has joined #ruby
nankyoku_ has joined #ruby
imode has joined #ruby
zautomata has joined #ruby
alex`` has joined #ruby
nankyokusei has quit [Ping timeout: 248 seconds]
DmitryBochkarev has joined #ruby
alfiemax has joined #ruby
gusrub has quit [Remote host closed the connection]
ycyclist has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
lagweezle_away is now known as lagweezle
LastWhisper____ has quit [Quit: Textual IRC Client: www.textualapp.com]
leah2 has joined #ruby
<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]
jenrzzz has joined #ruby
<havenwood> elnner: You want #min_by
<havenwood> >> %w[foo bar].min_by &:size # elnner
<ruby[bot]> havenwood: # => "foo" (https://eval.in/872403)
ModusPwnens has joined #ruby
<ModusPwnens> How do I initialize a class variable from a self method in ruby?
<ModusPwnens> my googlefu appears to be failing me
nofxxx has joined #ruby
<matthewd> I'm slightly puzzled at the 1-for-0 error, but ¯\_(ツ)_/¯
<elnner> @havenwood you're right, thanks. It's a weird thing, however, since `%w(foo barz).min {|x| x.length }` do work
eckhardt has joined #ruby
<havenwood> >> %w(not-working foo bar).min {|x| x.length } # elnner
<ruby[bot]> havenwood: # => "not-working" (https://eval.in/872405)
<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]
<matthewd> elnner: to_proc gives you: ary.min {|a,*x| a.length(*x) }
<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> I've also tried doing:
<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
pr0ton has quit [Quit: pr0ton]
ldepandis has quit [Quit: Textual IRC Client: www.textualapp.com]
<matthewd> I really need a better idea of what we're doing, to flesh that thought out, though
paddy_ has joined #ruby
paddy_ has quit [Client Quit]
shime has joined #ruby
tvw has joined #ruby
jrabe has joined #ruby
troulouliou_dev has joined #ruby
kapil___ has joined #ruby
marxarelli is now known as marxarelli|afk
DaniG2k has joined #ruby
gusrub has quit [Remote host closed the connection]
shime has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
quobo has joined #ruby
gusrub has joined #ruby
Guest35707 is now known as kanobt61
mostlybadfly has quit [Quit: Connection closed for inactivity]
s3nd1v0g1us has joined #ruby
alex`` has quit [Ping timeout: 258 seconds]
ElDoggo has quit [Remote host closed the connection]
ElDoggo has joined #ruby
cagomez has joined #ruby
ElDoggo has quit [Remote host closed the connection]
ElDoggo has joined #ruby
cdg_ has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
someuser has quit [Ping timeout: 240 seconds]
bronson has quit [Remote host closed the connection]
cdg_ has joined #ruby
cdg has quit [Read error: Connection reset by peer]
gusrub has quit [Remote host closed the connection]
fmcgeough has quit [Quit: fmcgeough]
knight33 has joined #ruby
gusrub has joined #ruby
tvw has quit []
__Yiota has joined #ruby
mtkd has quit [Read error: Connection reset by peer]
tvw has joined #ruby
mtkd has joined #ruby
chrisco has joined #ruby
zapata has quit [Ping timeout: 240 seconds]
sysvalve has quit [Ping timeout: 246 seconds]
spheric has quit [Ping timeout: 258 seconds]
ldnunes has quit [Quit: Leaving]
setient has joined #ruby
spt0 has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tvw has quit []
tvw has joined #ruby
zapata has joined #ruby
tcopeland has quit [Quit: tcopeland]
__Yiota has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
mim1k has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
morfin has quit []
mim1k has quit [Ping timeout: 248 seconds]
knight33 has quit [Quit: Textual IRC Client: www.textualapp.com]
gusrub has quit [Read error: Connection reset by peer]
milardovich has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
orbyt_ has joined #ruby
jphase has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
chrisco has quit [Remote host closed the connection]
jphase_ has joined #ruby
phaul has quit [Ping timeout: 255 seconds]
jphase has quit [Ping timeout: 246 seconds]
jphase has joined #ruby
FrostCandy has quit []
dionysus69 has quit [Ping timeout: 258 seconds]
jphase_ has quit [Ping timeout: 258 seconds]
halt has quit [Quit: ZNC 1.6.5 - http://znc.in]
shinnya has joined #ruby
ramfjord has quit [Ping timeout: 260 seconds]
jphase has quit [Ping timeout: 258 seconds]
ramfjord has joined #ruby
halt has joined #ruby
weaksauce has joined #ruby
oded has joined #ruby
dar123 has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dar123 has quit [Read error: Connection reset by peer]
DaniG2k has quit [Quit: leaving]
troys_ is now known as troys
gusrub_ has joined #ruby
naquad has quit [Quit: ZNC - http://znc.in]
oded has quit [Quit: Konversation terminated!]
emulator3 has joined #ruby
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
Bock has quit [Ping timeout: 246 seconds]
gusrub has quit [Ping timeout: 248 seconds]
Bock has joined #ruby
Bock has quit [Remote host closed the connection]
Bock has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
FastJack_ has joined #ruby
FastJack has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
naquad has joined #ruby
zautomata has quit [Ping timeout: 255 seconds]
lagweezle is now known as lagweezle_away
ElDoggo has quit [Remote host closed the connection]
ElDoggo has joined #ruby
tamouse__ has quit [Ping timeout: 240 seconds]
mtkd has quit [Read error: Connection reset by peer]
mtkd has joined #ruby
bmurt has quit [Client Quit]
ElDoggo has quit [Remote host closed the connection]
nofxxx has joined #ruby
ElDoggo has joined #ruby
pawnbox has joined #ruby
lagweezle_away is now known as lagweezle
marxarelli|afk is now known as marxarelli
DLSteve_ has quit [Quit: All rise, the honorable DLSteve has left the channel.]
pawnbox has quit [Ping timeout: 240 seconds]
nofxxx has quit [Ping timeout: 240 seconds]
jphase has joined #ruby
rwb has joined #ruby
jphase has quit [Ping timeout: 258 seconds]
psmolen has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
psmolen has joined #ruby
jphase has joined #ruby
Keytap has quit [Ping timeout: 260 seconds]
eckhardt has quit [Quit: Textual IRC Client: www.textualapp.com]
tcopeland has joined #ruby
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> why is ruby so confusing
<amirite> thanks
<teatime> lol
nofxxx has joined #ruby
<baweaver> Any new language is confusing.
<baweaver> It's not an exclusive trait
<amirite> yeah but this one is extra magical
xco has joined #ruby
<matthewd> Why the hash? :/
<baweaver> Just wait until you try Javascript
<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?
jrabe has quit [Ping timeout: 255 seconds]
<neachdainn> I would prefer FFI, but having it be an extension is a requirement (it's for a class)