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
Sightes has quit [Quit: WeeChat 1.9.1]
edwardly has quit [Ping timeout: 240 seconds]
guardianx has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
enterprisey has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
guardianx has left #ruby [#ruby]
jameser has joined #ruby
alfiemax has quit [Ping timeout: 252 seconds]
lxsameer has quit [Quit: WeeChat 1.9.1]
workmad3 has joined #ruby
ahrs has quit [Remote host closed the connection]
jrafanie has joined #ruby
hahuang65 has joined #ruby
ahrs has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
hahuang65 has quit [Ping timeout: 248 seconds]
triston has joined #ruby
triston has quit [Max SendQ exceeded]
PaulCapestany has quit [Read error: Connection reset by peer]
cschneid_ has joined #ruby
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
jxv has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Remote host closed the connection]
ogres has joined #ruby
cschneid_ has joined #ruby
PaulCapestany has joined #ruby
marr has quit [Ping timeout: 260 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CrazyEddy has joined #ruby
swills has quit [Remote host closed the connection]
cschneid_ has quit [Ping timeout: 255 seconds]
moei has quit [Read error: Connection reset by peer]
moei has joined #ruby
Sammichmaker has quit [Read error: Connection reset by peer]
orbyt_ has joined #ruby
cdg has joined #ruby
neo95 has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 248 seconds]
cschneid_ has joined #ruby
oetjenj has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
duckpuppy has quit [Ping timeout: 240 seconds]
sepp2k1 has quit [Read error: Connection reset by peer]
kapil___ has joined #ruby
zautomata has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
apeiros has quit [Remote host closed the connection]
Azure has quit [Read error: Connection reset by peer]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Azure has joined #ruby
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
QualityAddict has joined #ruby
hahuang65 has joined #ruby
uneeb has joined #ruby
enterprisey has quit [Read error: Connection reset by peer]
enterprisey has joined #ruby
enterprisey has quit [Remote host closed the connection]
John___ has quit [Read error: Connection reset by peer]
gizmore has joined #ruby
astrobunny has joined #ruby
hahuang65 has quit [Ping timeout: 248 seconds]
gizmore|2 has quit [Ping timeout: 240 seconds]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guardianx has joined #ruby
DTZUZO has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
csk157 has joined #ruby
houhoulis has joined #ruby
d^sh has quit [Ping timeout: 255 seconds]
d^sh has joined #ruby
csk157 has quit [Ping timeout: 240 seconds]
enterprisey has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid_ has quit [Remote host closed the connection]
minimalism has quit [Quit: minimalism]
jxv has joined #ruby
tastytf has joined #ruby
Heph_ has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
cschneid_ has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
alfiemax has joined #ruby
benjen has quit [Ping timeout: 252 seconds]
cdg has joined #ruby
benjen has joined #ruby
DebianUser_ has quit [Quit: DebianUser_]
_whitelogger has joined #ruby
cadillac_ has quit [Quit: I quit]
cadillac_ has joined #ruby
alfiemax has quit [Remote host closed the connection]
Immune has joined #ruby
alfiemax has joined #ruby
alfiemax_ has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
dviola has quit [Quit: WeeChat 1.9.1]
zanoni has quit [Ping timeout: 240 seconds]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jottr has joined #ruby
cschneid_ has joined #ruby
jottr has quit [Ping timeout: 258 seconds]
cdg has quit [Remote host closed the connection]
DebianUser_ has joined #ruby
guacamole has joined #ruby
DebianUser_ has quit [Quit: DebianUser_]
Cyrus has joined #ruby
alex`` has joined #ruby
cschneid_ has quit [Remote host closed the connection]
ap4y has quit [Quit: WeeChat 1.9.1]
ap4y has joined #ruby
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros has joined #ruby
jxv has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
uZiel_ has joined #ruby
goyox86_ has quit [Quit: goyox86_]
sightes has joined #ruby
uZiel_ has quit [Client Quit]
apeiros has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros has quit [Ping timeout: 252 seconds]
skinkitten has quit [Remote host closed the connection]
apeiros has joined #ruby
uZiel has joined #ruby
uZiel has quit [Client Quit]
uZiel has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
CrazyEddy has quit [Remote host closed the connection]
Technodrome has joined #ruby
hndk has quit [Quit: Leaving]
skinkitten_ has joined #ruby
CrazyEddy has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros has joined #ruby
csk157 has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apeiros has quit [Ping timeout: 240 seconds]
my-nick has quit [Ping timeout: 240 seconds]
csk157 has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
sightes has quit [Quit: WeeChat 1.9.1]
apeiros has quit [Ping timeout: 255 seconds]
guardianx has quit []
workmad3 has joined #ruby
ShekharReddy has joined #ruby
mson has quit [Quit: Connection closed for inactivity]
quobo has quit [Quit: Connection closed for inactivity]
guacamole has quit [Quit: My face has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 252 seconds]
duderonomy has quit [Ping timeout: 246 seconds]
houhoulis has quit [Remote host closed the connection]
duderonomy has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
knight33 has joined #ruby
Technodrome has joined #ruby
uneeb has quit [Remote host closed the connection]
alex`` has quit [Ping timeout: 246 seconds]
tastytf has quit [Ping timeout: 260 seconds]
faces has quit [Read error: No route to host]
jottr has joined #ruby
csk157 has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cdg has joined #ruby
tastytf has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
latemus is now known as waveprop
csk157 has quit [Ping timeout: 248 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 255 seconds]
Patrick__ has joined #ruby
Patrick__ has left #ruby [#ruby]
apeiros has joined #ruby
Technodrome has joined #ruby
s2013 has joined #ruby
enterprisey has quit [Ping timeout: 255 seconds]
apeiros has quit [Ping timeout: 255 seconds]
dinfuehr has quit [Ping timeout: 246 seconds]
faces has joined #ruby
dinfuehr has joined #ruby
skinkitten_ has quit [Quit: Leaving]
ur5us has quit [Remote host closed the connection]
ogres has quit [Quit: Connection closed for inactivity]
alfiemax_ has quit [Remote host closed the connection]
nicesignal has quit [Remote host closed the connection]
nicesignal has joined #ruby
k3rn31 has joined #ruby
enterprisey has joined #ruby
anisha has joined #ruby
cschneid_ has joined #ruby
mkroman has quit [Ping timeout: 240 seconds]
aupadhye has joined #ruby
cschneid_ has quit [Ping timeout: 246 seconds]
apeiros has joined #ruby
rabajaj has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
ta has joined #ruby
aldodelgado has joined #ruby
aldodelgado has quit [Client Quit]
govg has joined #ruby
apeiros has joined #ruby
mkroman has joined #ruby
[[thufir]] has quit [Remote host closed the connection]
enterprisey has quit [Quit: Leaving]
apeiros has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
apeiros has joined #ruby
alfiemax has joined #ruby
Heph_ has joined #ruby
ta has quit [Remote host closed the connection]
alfiemax has quit [Read error: Connection reset by peer]
alfiemax has joined #ruby
alex`` has joined #ruby
banisterfiend has joined #ruby
jxv has quit [Ping timeout: 255 seconds]
Heph_ has quit [Quit: Leaving]
Heph_ has joined #ruby
Heph_ has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Dimik has quit [Ping timeout: 255 seconds]
quobo has joined #ruby
apeiros has quit [Remote host closed the connection]
mjolnird has joined #ruby
zautomata has joined #ruby
banisterfiend has joined #ruby
banisterfiend has quit [Client Quit]
exchgr has quit [Ping timeout: 258 seconds]
oleo has quit [Quit: Leaving]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
biberu has joined #ruby
apeiros has joined #ruby
kculpis has quit [Ping timeout: 240 seconds]
Defenestrate has joined #ruby
exchgr has joined #ruby
nahra has quit [Quit: ERC (IRC client for Emacs 25.1.1)]
Technodrome has joined #ruby
ap4y has quit [Quit: WeeChat 1.9.1]
apeiros has quit [Ping timeout: 246 seconds]
Immune has quit [Ping timeout: 248 seconds]
robnester has quit [Ping timeout: 240 seconds]
michael1 has joined #ruby
apeiros has joined #ruby
djbkd has joined #ruby
alfiemax_ has joined #ruby
apeiros has quit [Ping timeout: 255 seconds]
alfiemax has quit [Ping timeout: 240 seconds]
djbkd_ has joined #ruby
csk157 has joined #ruby
robnester has joined #ruby
djbkd has quit [Ping timeout: 258 seconds]
reber has joined #ruby
jottr has joined #ruby
csk157 has quit [Ping timeout: 260 seconds]
[[thufir]] has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
mikecmpbll has joined #ruby
snickers has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Client Quit]
astrobunny has quit [Ping timeout: 252 seconds]
sneep has joined #ruby
milardovich has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
<sneep> Anyone going to Ruby World Conference in Matsue?
alfiemax has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 248 seconds]
<sneep> I'll be there. Mostly because I live in Matsue though
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
exchgr has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
djbkd_ has quit [Remote host closed the connection]
djbkd has joined #ruby
aufi has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
conta has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
volix has quit [Ping timeout: 240 seconds]
volix has joined #ruby
milardovich has quit [Remote host closed the connection]
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
Technodrome has joined #ruby
astrobunny has joined #ruby
exchgr has joined #ruby
mark_66 has joined #ruby
uZiel has quit [Ping timeout: 240 seconds]
uZiel has joined #ruby
apeiros has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 260 seconds]
Technodrome has joined #ruby
doublemalt_ has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
csk157 has joined #ruby
apeiros has joined #ruby
sysvalve has joined #ruby
LocaMocha is now known as Sauvin
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
csk157 has quit [Ping timeout: 248 seconds]
ta has joined #ruby
apeiros has quit [Ping timeout: 264 seconds]
cdg has joined #ruby
Sembei has joined #ruby
Pisuke has quit [Ping timeout: 248 seconds]
cdg has quit [Ping timeout: 240 seconds]
[[thufir]] has quit [Remote host closed the connection]
cschneid_ has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<dionysus69> what's are ways I can deduce what exceptions might happen on an operation?
<dionysus69> say I have json parse Net get, if net gets nil it will be an error I know, but which one specifically is there a smart/short way to know?
cschneid_ has quit [Ping timeout: 258 seconds]
<matthewd> dionysus69: Not really
Burgestrand has joined #ruby
<dionysus69> JSON(Net::HTTP.get(URI.parse("uri"))["key"] rescue nil
oetjenj has joined #ruby
vondruch has joined #ruby
<dionysus69> rubocop tells me not to use inline rescue nil
<dionysus69> just curious why, I am avoiding just one potential failure here
vondruch has quit [Client Quit]
vondruch has joined #ruby
jottr has joined #ruby
workmad3 has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
CrazyEddy has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
atmosx has joined #ruby
<matthewd> dionysus69: There are a lot of things that could go wrong in that expression, and you're rescuing all of them
marr has joined #ruby
<dionysus69> ok I got it thanks :)
<matthewd> dionysus69: That's not necessarily a bad thing to do -- but I think rubocop's opinion is that if you're going to do that, it's worth a begin/rescue/end block, and not just an afterthought on the end of the line
postmodern has joined #ruby
tomphp has joined #ruby
<dminuoso> Also keep in mind, that by using `rescue nil` you are effectively forced to check whether what you have gotten is nil anyway.
<dminuoso> And suddenly error handling has turned into nil handling, hiding whats going on.
<dminuoso> I'd rather have `begin; rescue; end` than a sudden myriad of &.
<waveprop> i wrote a method called .str_or_regexp? which returs true if called on a string and false if called on a regexp. if self is niether string or regexp, i want to raise an error. Would it be better to just test twice, with .is_a? string and .is_a? regexp ?
<matthewd> waveprop: You said method and 'called on', but if that were true, the default behaviour would give you an error
<dminuoso> waveprop: Though it smells a bit. How do you intend to use this?
shinnya has joined #ruby
jottr has quit [Ping timeout: 246 seconds]
Sembei has quit [Ping timeout: 240 seconds]
MyMind has joined #ruby
dhollinger has quit [Ping timeout: 240 seconds]
imode has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
tomphp_ has joined #ruby
csk157 has joined #ruby
tomphp has quit [Ping timeout: 240 seconds]
guille-moe has joined #ruby
claudiuinberlin has joined #ruby
csk157 has quit [Ping timeout: 258 seconds]
ur5us has quit [Remote host closed the connection]
tomphp_ has quit [Ping timeout: 255 seconds]
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vondruch has quit [Read error: Connection reset by peer]
guardianx has joined #ruby
stan has joined #ruby
vondruch has joined #ruby
apeiros has joined #ruby
dhollinger has joined #ruby
cabotto has joined #ruby
astrobunny has quit [Ping timeout: 246 seconds]
apeiros has quit [Ping timeout: 248 seconds]
<waveprop> im implementing input validation
stan has quit [Remote host closed the connection]
stan has joined #ruby
<waveprop> matthewd: that's what i was trying to determine, thx
<matthewd> waveprop: That sounds like a pretty bad/surprising method name for the behaviour you described, fwiw
milardovich has joined #ruby
apeiros has joined #ruby
guardianx has quit [Remote host closed the connection]
guardianx has joined #ruby
jaruga has joined #ruby
Beams has joined #ruby
apeiros has quit [Ping timeout: 255 seconds]
jottr has joined #ruby
Serpent7776 has joined #ruby
_cabotto has joined #ruby
cabotto has quit [Ping timeout: 248 seconds]
FahmeF_ has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
FahmeF has joined #ruby
apeiros has quit [Ping timeout: 248 seconds]
Defenestrate has quit [Quit: Leaving]
jottr has quit [Ping timeout: 248 seconds]
CrazyEddy has quit [Ping timeout: 240 seconds]
CrazyEddy has joined #ruby
FahmeF_ has joined #ruby
banisterfiend has joined #ruby
FahmeF has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
cadillac_ has quit [Ping timeout: 248 seconds]
jottr has joined #ruby
cadillac_ has joined #ruby
apeiros has joined #ruby
FahmeF has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
zanoni has joined #ruby
FahmeF_ has quit [Ping timeout: 258 seconds]
apeiros has quit [Ping timeout: 246 seconds]
FahmeF_ has joined #ruby
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
Freshnuts has quit [Quit: Leaving]
FahmeF has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
guardianx has quit []
raynold has quit [Quit: Connection closed for inactivity]
postmodern has quit [Quit: Leaving]
kristofferR has joined #ruby
lxsameer has joined #ruby
apeiros has quit [Ping timeout: 255 seconds]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
tcopeland has quit [Quit: tcopeland]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
vondruch has quit [Quit: vondruch]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
cabotto has joined #ruby
workmad3 has quit [Ping timeout: 248 seconds]
_cabotto has quit [Ping timeout: 255 seconds]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
TomyWork has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
apeiros has joined #ruby
banisterfiend has joined #ruby
vondruch has joined #ruby
workmad3 has joined #ruby
rahul_bajaj has joined #ruby
rabajaj has quit [Ping timeout: 255 seconds]
nowhere_man has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
nahra has joined #ruby
apeiros has quit [Ping timeout: 264 seconds]
mn3m has joined #ruby
Technodrome has joined #ruby
ldnunes has joined #ruby
apeiros has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
hogetaro has quit [Quit: Leaving...]
shinnya has quit [Ping timeout: 255 seconds]
rahul_bajaj has quit [Quit: Leaving]
blackmesa has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
csk157 has joined #ruby
blackmesa has joined #ruby
jottr has joined #ruby
moei has quit [Ping timeout: 255 seconds]
csk157 has quit [Ping timeout: 255 seconds]
tvw has joined #ruby
cdg has quit [Remote host closed the connection]
banisterfiend has joined #ruby
apeiros has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
jottr has quit [Ping timeout: 260 seconds]
coderphive has quit [Ping timeout: 248 seconds]
coderphive has joined #ruby
alex`` has quit [Ping timeout: 246 seconds]
catphish has joined #ruby
<catphish> is there a use case for rescue/else? i just found it and it seems absurd
halt has quit [Ping timeout: 240 seconds]
halt has joined #ruby
apeiros has joined #ruby
<canton7> catphish, sure. When you want to do "try operation A. If it succeeds, do operation B. If it fails, do this recovery. If operation B fails, don't try and recover"
<canton7> you could just put operations A and B in the same block with the same 'rescue' statements, but then A's error handling also applies to B
<catphish> ah i see, makes sense if you're rescuing everything and don't want another wrapper
blackmesa has quit [Ping timeout: 255 seconds]
moei has joined #ruby
tcopeland has joined #ruby
cgfbee has joined #ruby
sionronin has joined #ruby
apeiros has quit [Ping timeout: 248 seconds]
jphase has joined #ruby
Burgestrand has quit [Quit: Closing time!]
jphase_ has joined #ruby
synthroid has joined #ruby
jphase has quit [Ping timeout: 240 seconds]
infernix has quit [Ping timeout: 258 seconds]
apeiros has joined #ruby
apparition has joined #ruby
skawa has joined #ruby
<skawa> i want to install ruby 2.2.6, but rbenv doesn't show that it can install that version. it shows that i can install 2.2.2 and 2.3.0-dev
jphase_ has quit [Remote host closed the connection]
<skawa> it actually shows 2.3.0-dev as being the latest. it should be showing at least 2.4.0, yea ?
apeiros has quit [Ping timeout: 240 seconds]
<skawa> brew upgrade ruby-build doesn't change the list of available versions at all
jphase has joined #ruby
<matthewd> skawa: My guess would be you have ruby-build installed locally in ~/.rbenv, and that's being used in preference to the brew installed version
jphase_ has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
huyderman has joined #ruby
bmurt has joined #ruby
<skawa> matthewd: its possible. i have no idea how to delete the non-brew copy, if that is the case. https://gist.github.com/anonymous/e027b66c15f2054a4512a092350c9c21
<matthewd> Oh, you have ruby-build HEAD installed, not a released version
csk157 has joined #ruby
jphase has quit [Ping timeout: 255 seconds]
cabotto has quit []
<matthewd> brew upgrade won't automatically get a newer revision of HEAD, IIRC.. you have to force it
coderphive has quit [Ping timeout: 240 seconds]
brendan- has joined #ruby
apeiros has joined #ruby
coderphive has joined #ruby
jphase_ has quit [Ping timeout: 255 seconds]
<matthewd> (or just uninstall it and go back to numbered releases, assuming whatever you went to head for is now published)
conta has quit [Quit: conta]
alnewkirk has joined #ruby
charliesome has joined #ruby
jphase has joined #ruby
csk157 has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<skawa> matthewd: that's better. thanks
apeiros has quit [Ping timeout: 240 seconds]
rabajaj has joined #ruby
jphase has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
conta has joined #ruby
gnufied has joined #ruby
apeiros has joined #ruby
cschneid_ has joined #ruby
rabajaj has quit [Remote host closed the connection]
mson has joined #ruby
apeiros has quit [Ping timeout: 248 seconds]
banisterfiend has quit [Changing host]
banisterfiend has joined #ruby
cschneid_ has quit [Ping timeout: 252 seconds]
nertzy2 has joined #ruby
cadillac_ has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
tlaxkit has joined #ruby
apeiros has joined #ruby
nertzy has quit [Ping timeout: 260 seconds]
tsglove has quit [Ping timeout: 246 seconds]
apeiros has quit [Ping timeout: 240 seconds]
milardovich has quit []
tastytf has quit [Ping timeout: 260 seconds]
shinnya has joined #ruby
tvw has quit [Ping timeout: 255 seconds]
charliesome has quit [Ping timeout: 260 seconds]
milardovich has joined #ruby
jottr has joined #ruby
Psybur has joined #ruby
jphase has joined #ruby
TvL2386_ has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
TvL2386 has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
apeiros has joined #ruby
cgfbee has quit [Read error: No route to host]
s2013 has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
s2013 has quit [Client Quit]
s2013 has joined #ruby
Hexafox[I] has joined #ruby
<Hexafox[I]> HI
nertzy3 has joined #ruby
nertzy2 has quit [Ping timeout: 240 seconds]
<Hexafox[I]> Ruby has basic multithreading support right? I was just wondering if it would be possible to create a new thread, put it in an infinite loop and have it sleep for a few minutes after each loop run.
apeiros has quit [Ping timeout: 240 seconds]
<dminuoso> Hexafox[I]: Ruby has not just basic multithreading support, it has full native threads.
jameser has joined #ruby
<dminuoso> With just a little twist called the GVL.
<dminuoso> Which essentially gives you concurrency, but not necessarily parallelism.
<matthewd> Hexafox[I]: Yes, you can do that.
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Hexafox[I]> dminuoso, What does that mean?
ledestin has joined #ruby
<dminuoso> Hexafox[I]: It's generally not possible for two threads to be executing ruby code at the same time. If you just need the behavior of two threads overlapping, you're good. If you mean to process data in parallel, you have to either use processes or JRuby.
cdg has joined #ruby
jordanm has joined #ruby
ledestin has quit [Ping timeout: 240 seconds]
rabajaj has joined #ruby
knightblader has joined #ruby
<Hexafox[I]> The threads will hardly be doing anything, I just want one watching a chat room for messages and anther one grabbing a RSS feed every few minutes.
<Hexafox[I]> So if I sleep one the other one can continue uninterrupted?
<dminuoso> Absolutely yes.
dionysus69 has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
knight33 has joined #ruby
Burgestrand has joined #ruby
alfiemax_ has joined #ruby
eblip has quit [Read error: Connection reset by peer]
<matthewd> They'll run concurrently even without any explicit sleeping
eb0t has quit [Ping timeout: 246 seconds]
alfiemax has quit [Ping timeout: 260 seconds]
hexchat_ has joined #ruby
hexchat_ has quit [Client Quit]
sightes has joined #ruby
impermanence13 has joined #ruby
<impermanence13> What is the ruby way to iterate over a string char-by-char and mutate specific chars on match? Are there particular String functions I should use?
tlaxkit has quit [Ping timeout: 248 seconds]
<havenwood> impermanence13: It depends on what you're doing. What's the mutation? Look at #gsub, #tr and #each_char/#map/#join.
<matthewd> impermanence13: What do you want to do?
thomasv314 has joined #ruby
<mtkd> .map { |x| new_char if x == match_char }
<mtkd> something like that?
sepp2k has joined #ruby
<impermanence13> yes. multiple different chars.
<mtkd> maybe map with a case else?
<impermanence13> I am asking because I guess I would just iterate over the string against a case statement. But then I wondered if there were some nice wrapper methods Ruby offered to do so.
<matthewd> As havenwood said, there are a lot of related-but-distinct options. You'll need to be more specific about what your string / replacements look like for more idiomatic advice.
<mtkd> looks like .gsub takes multiple
<impermanence13> matthewd: one sec.
aupadhye has quit [Ping timeout: 240 seconds]
<impermanence13> "GGCTTAA" => "CCGAAU" so G => C, C => G, T => A, A => U. That's it. I know how I would do it, but was just curious if there was a sexy Ruby way, honestly. Maybe gsub...
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<impermanence13> But see, that's why I want to ask...because in this case...it's almost like just using plain iteration and a case is all that would happening under the hood anyway
DLSteve has joined #ruby
<impermanence13> matthewd: ^
duckpuppy has joined #ruby
<havenwood> >> 'GATTACO'.tr 'GCTA', 'CGAU'
<ruby[bot]> havenwood: # => "CUAAUGO" (https://eval.in/889474)
<havenwood> impermanence13: Use #tr.
<impermanence13> havenwood: it has to be char-by-char though, because it has to apply to any possible sequence of As, Ts, Gs and Cs.
<havenwood> Hexafox[I]: Or if you want to manually transfer back and forth, you could also use Fibers.
<havenwood> impermanence13: How is #tr not char by char? Show an example of its shortcoming?
<impermanence13> Hexafox[I]: I guess it is. I'll try that and gsub.
<elomatreb> tr is a bit unintuitive, it replaces the character from the first list with the character at that index in the second list
<impermanence13> elomatreb: yeah...I though it was looking for a substring.
<impermanence13> as usual havenwood is exactly right, sorry.
GodFather has joined #ruby
chouhoulis has joined #ruby
<impermanence13> tr is *exactly* the type of method that prompted me to ask my question in the first place.
<havenwood> Hexafox[I]: e.g.: chat_room = Fiber.new { loop { sleep 1; puts 'chatting'; Fiber.yield } }; rss_feed = Fiber.new { loop { sleep 1; puts 'rss fed'; chat_room.resume } }; rss_feed.resume
<matthewd> impermanence13: Right -- and thus the need for a specific question: it's a perfect method.. for a fairly narrow use case
<elomatreb> The main benefit of the built-in methods like #tr over manual iteration is that the former are implemented in native C, and thus usually much faster than the manual iterator code would be, even if it does the same in concept
jrafanie has joined #ruby
Rapture has joined #ruby
<impermanence13> elomatreb: ha, see that's why I thought to come here and ask. bc that was mainly what was on my mind.
<impermanence13> tr is literally exactly what I was looking for, dang.
<impermanence13> small tangent: is there a way to require two classes from one module in one "require" line?
<elomatreb> If you really want you can do something like `%w[module/class1 module/class2].each {|c| require c }`
danielg__ has joined #ruby
<elomatreb> But usually people just have the two lines, or require the entire module
<impermanence13> k
<Hexafox[I]> what does it mean when a class has both the methods `run()` and `self.run()`? Which one gets used?
<elomatreb> The first one is an instance method, the latter a class/module method
<elomatreb> I.e. `Class.new.run` is the first, `Class.run` is the second
<Hexafox[I]> Never heard of an instance method before. Will have to look that up. But yeah that matches exactly how it's used in this code.
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
John___ has joined #ruby
<impermanence13> What is the best way to check if a string is made up of only a specific set of characters? in other words, I need to check if a string only contains As, Ts, Cs and Gs. If not then "false
<impermanence13> "false"
eb0t has joined #ruby
<impermanence13> I think maybe there is a slick way I can use tr?
milardovich has quit [Ping timeout: 240 seconds]
<ccooke> You're probably best off using a regex
<havenwood> impermanence13: What version of Ruby?
<havenwood> (Not #tr.)
<impermanence13> 2.4.1p111
alfiemax has quit [Ping timeout: 240 seconds]
<ccooke> impermanence13: when you say "best way", what are you trying to optimise for? Speed? Readability? Maintainability?
<havenwood> impermanence13: 'bacon'.match? Regexp.union 'a', 'b', 'c'
<havenwood> #=> true
<matthewd> havenwood: "only"
Hexafox[I] has quit [Ping timeout: 258 seconds]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> >> %w[a b c].any? { |char| 'bacon'.include? char }
<ruby[bot]> havenwood: # => true (https://eval.in/889489)
tsglove has joined #ruby
<havenwood> matthewd: Oops!
eb0t has quit [Client Quit]
<impermanence13> the n, lol?
<havenwood> impermanence13: I did "any" not "only".
<impermanence13> ah.
cschneid_ has joined #ruby
shinnya has quit [Ping timeout: 246 seconds]
cschnei__ has joined #ruby
eb0t has joined #ruby
<elomatreb> .match?(/\A[ATCG]*\z/) would be another way
<havenwood> impermanence13: 'bacon'.match? /\A[abc]+\z/
FahmeF_ has quit [Ping timeout: 246 seconds]
<ccooke> I'd use a + there
<ccooke> not *
<elomatreb> If you want to not match the empty string, yeah
<havenwood> I dunno, but my record for having read the question is bad.
* havenwood goes in search of coffee
apeiros has joined #ruby
cschneid_ has quit [Ping timeout: 258 seconds]
jrafanie has joined #ruby
vondruch has quit [Read error: Connection reset by peer]
vondruch has joined #ruby
csk157 has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thomasv314 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
catphish has left #ruby ["Leaving"]
swills has joined #ruby
swills has quit [Changing host]
swills has joined #ruby
csk157 has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
impermanence13 has quit [Ping timeout: 258 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
apparition has quit [Quit: Bye]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
troys has joined #ruby
ResidentBiscuit has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
apeiros has joined #ruby
hs366 has joined #ruby
tsglove2 has joined #ruby
<jokke> hi
<jokke> i'm having a weird problem: i have a gem listed in my gemfile and it installs just fine with bundle
<jokke> however: when i try to run bundle exec anything it complains about the gem missing
tsglove has quit [Ping timeout: 258 seconds]
impermanence13 has joined #ruby
<jokke> could not find gem bson-4.2.2 in any of the sources
apeiros has quit [Ping timeout: 240 seconds]
thomasv314 has joined #ruby
<jokke> i've set BUNDLE_PATH to be relative to the Gemfile (vendor/bundle)
milardovich has joined #ruby
<jokke> any ideas what might be going wrong
Sauvin has quit [Ping timeout: 248 seconds]
apeiros has joined #ruby
<matthewd> jokke: Maybe compare `ruby -v`, `gem env`, and `bundle env`?
Caius has quit [Ping timeout: 240 seconds]
tristanp has joined #ruby
Caius has joined #ruby
Caius has quit [Changing host]
Caius has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
Technodrome has joined #ruby
apeiros has quit [Ping timeout: 260 seconds]
TvL2386 has joined #ruby
<jokke> matthewd: ^
banisterfiend has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
TvL2386_ has quit [Ping timeout: 240 seconds]
FahmeF has joined #ruby
dionysus69 has quit [Quit: dionysus69]
banisterfiend has quit [Read error: Connection reset by peer]
ski7777 has quit [Ping timeout: 264 seconds]
<jokke> anything weird there?
beccamorgan has quit [Quit: WeeChat 1.4]
michael1 has quit [Ping timeout: 240 seconds]
beccamorgan has joined #ruby
impermanence13 has quit [Ping timeout: 240 seconds]
synthroid has quit [Remote host closed the connection]
synthroid has joined #ruby
<matthewd> Nothing obvious to me.. but I don't have much experience with disable_shared_gems / vendoring, sorry
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
jrafanie has joined #ruby
cdg has quit [Remote host closed the connection]
<jokke> mmh ok
tsglove3 has joined #ruby
snickers has quit [Ping timeout: 240 seconds]
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
thomasv314 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tsglove2 has quit [Ping timeout: 240 seconds]
ta has quit [Remote host closed the connection]
ski7777 has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
hhffppff has joined #ruby
apeiros has joined #ruby
mostlybadfly has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
michael1 has joined #ruby
milardovich has joined #ruby
TvL2386_ has joined #ruby
hhffppff has quit [Client Quit]
thomasv314 has joined #ruby
jrafanie_ has joined #ruby
knight33 has joined #ruby
chouhoulis has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 248 seconds]
chouhoulis has joined #ruby
houhoulis has joined #ruby
jrafanie has quit [Ping timeout: 255 seconds]
tlaxkit has joined #ruby
hhffppff has joined #ruby
TvL2386 has quit [Ping timeout: 255 seconds]
guacamole has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
apeiros has joined #ruby
chouhoulis has quit [Ping timeout: 258 seconds]
apeiros has quit [Ping timeout: 240 seconds]
DTZUZO has quit [Ping timeout: 240 seconds]
hs366 has quit [Quit: Leaving]
milardovich has quit [Remote host closed the connection]
bruno- has joined #ruby
rippa has joined #ruby
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
polishdub has joined #ruby
<jokke> matthewd: okay, super weird
milardovich has joined #ruby
<jokke> if i remove .ruby-version everything works
<jokke> and rbenv uses system ruby
<jokke> which is also 2.4.2
danielg__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
michael1 has quit [Ping timeout: 252 seconds]
danielgl_ has joined #ruby
vipaca has joined #ruby
danielgl_ has quit [Client Quit]
danielgl_ has joined #ruby
danielgl_ has quit [Client Quit]
apeiros has joined #ruby
tsglove3 has quit [Ping timeout: 255 seconds]
my-nick has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
alan_w has joined #ruby
danielgl_ has joined #ruby
alan_w has left #ruby [#ruby]
danielgl_ has quit [Client Quit]
whippythellama has joined #ruby
vipaca has quit [Client Quit]
tsglove3 has joined #ruby
tsglove3 has quit [Remote host closed the connection]
tsglove3 has joined #ruby
vipaca has joined #ruby
danielgl_ has joined #ruby
danielgl_ has quit [Client Quit]
tsglove2 has joined #ruby
danielgl_ has joined #ruby
danielgl_ has quit [Client Quit]
apeiros has quit [Ping timeout: 248 seconds]
vipaca has quit [Client Quit]
synthroid has quit [Remote host closed the connection]
tsglove3 has quit [Ping timeout: 240 seconds]
tsglove3 has joined #ruby
oleo has joined #ruby
tsglove2 has quit [Ping timeout: 248 seconds]
milardovich has quit [Remote host closed the connection]
tsglove3 has quit [Read error: Connection reset by peer]
tsglove3 has joined #ruby
tsglove2 has joined #ruby
tsglove3 has quit [Ping timeout: 248 seconds]
alnewkirk has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
synthroid has joined #ruby
danielgl_ has joined #ruby
danielgl_ has quit [Client Quit]
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has joined #ruby
milardovich has quit [Remote host closed the connection]
apeiros has joined #ruby
milardovich has joined #ruby
uZiel has joined #ruby
alnewkirk has joined #ruby
rabajaj has quit [Quit: Leaving]
DTZUZO has joined #ruby
milardovich has quit [Remote host closed the connection]
apeiros has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
tsglove3 has joined #ruby
thomasv314 has quit [Quit: Textual IRC Client: www.textualapp.com]
apeiros has joined #ruby
tsglove2 has quit [Ping timeout: 260 seconds]
lexruee has quit [Ping timeout: 258 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lexruee has joined #ruby
[Butch] has joined #ruby
marxarelli has joined #ruby
byte512 has quit [Read error: Connection reset by peer]
apeiros has quit [Ping timeout: 252 seconds]
[Butch] has quit [Client Quit]
[Butch] has joined #ruby
byte512 has joined #ruby
cagomez has joined #ruby
allcentury has joined #ruby
conta has quit [Ping timeout: 255 seconds]
<cagomez> can I define a method with a question mark in a `tap block`? something like obj.tap { |o| o.active? = true }
<dminuoso> cagomez: What do you mean by "define" ?
guacamole has joined #ruby
impermanence13 has joined #ruby
impermanence13 is now known as impermanence
<cagomez> dminuoso: for example, `obj` can't receive obj.active? . I'd like to add the `active?` method onto obj. It's an openstruct, if that matters
apeiros has joined #ruby
Burgestrand has quit [Quit: Closing time!]
bruno- has quit [Read error: No route to host]
br0d1n has joined #ruby
<dminuoso> cagomez: You absolutely can. Do you want the method as a singleton method for that object, or the entire class?
<cagomez> dminuoso: I'm using it in an rspec so I don't think it matters? either one is fine
<dminuoso> cagomez: Then define a singleton method. You probably have done this many times in fact. :-)
<dminuoso> Remember how you do "class methods" ?
<Papierkorb> cagomez: Are you actually looking to add a mock on your class?
csk157 has joined #ruby
<Papierkorb> (Or your instance)
<dminuoso> Oh well, there's that of course.
<dminuoso> But lets at least teach how to do singleton methods, then you teach him the right way in rspec :P
govg has quit [Ping timeout: 260 seconds]
raynold has joined #ruby
vipaca has joined #ruby
imode has joined #ruby
knight33 has joined #ruby
<cagomez> so this is what I have and what I'd like to achieve: https://hastebin.com/gopedoruvo.rb
apeiros has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
jxv has joined #ruby
csk157 has quit [Ping timeout: 240 seconds]
<dminuoso> cagomez: Two things. Please use the . on the next line, if you want to use multiple lines for chaining
impermanence has quit [Remote host closed the connection]
<dminuoso> Secondly, you can use []= to set an identifier ending in ?
impermanence has joined #ruby
<dminuoso> Also note that this does not *define a method*
eblip has joined #ruby
<cagomez> dminuoso: 1) sorry, that's the way my rubocop is setup. i thought that was convention. 2) what is the syntax or docs for this? Ive never seen that before 3) what is this doing? I just want to return a simple value
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<cagomez> got #2 down :)
<dminuoso> cagomez: https://gist.github.com/dminuoso/76bcf294847504612e08f6109333a765 these two would be common styles.
<cagomez> ah i see, much better
cdg has joined #ruby
<dminuoso> I use the first if foo itself is a method, and the second if foo is some lvar object.
mark_66 has quit [Remote host closed the connection]
<dminuoso> cagomez: as for 2) and 3)
<dminuoso> &ri OpenStruct#[]=
uZiel has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
<cagomez> is `member` = `atribute` = `property`?
jenrzzz has quit [Ping timeout: 264 seconds]
<dminuoso> cagomez: Seems like OpenStruct uses all these three synonymously.
<dminuoso> It also sometimes uses `field`
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<matthewd> > Please use the . on the next line, if you want to use multiple lines for chaining
<cagomez> interesting. I usually use Javascript so all these terms are starting to mesh together
<matthewd> orly?
<matthewd> Looks like JavaScript to me :/
<dminuoso> matthewd: https://gist.github.com/dminuoso/bd85f7fe0a75cfdb56b5e069aff91df9 are you telling me this is in any way better?
<Papierkorb> Leading dots all the way
<matthewd> With an indent on the second line, and hopefully putting it across three lines, yes
tristanp has quit []
<matthewd> For one thing, (IIRC?) it won't break if you insert a comment
<dminuoso> "putting it across three lines" ?
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uZiel has joined #ruby
apeiros has quit [Ping timeout: 248 seconds]
<dminuoso> matthewd: I never knew there was an opposing school of thought.
thinkpad has quit [Ping timeout: 248 seconds]
tsglove2 has joined #ruby
jrafanie_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<matthewd> I think I mostly just dislike the ambiguity, being unable to tell whether the expression ends on the line I'm looking at
<matthewd> i.e., the same reason I'm pro-semicolons in JS
tsglove3 has quit [Ping timeout: 252 seconds]
<dminuoso> matthewd: Well to me the indention on the next line gives an immediate visual clue. Looking at discussions on the ruby style guides there seem to be a bunch of arguments for both sides.
<dminuoso> But I can see the benefit of being able to comment in between.
<dminuoso> Though I do think if you have the need to comment in between that, there might be something questionable about your code.
orbyt_ has joined #ruby
<dminuoso> But I do mean this as a smell that could entirely be justified.
cdg_ has joined #ruby
vipaca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has joined #ruby
<matthewd> Personally I'd generally avoid chaining enough for it to matter... but the new-hotness wisdom seems to be that if your method is more than a single chain of calls, you're basically drowning kittens -- at that point, comments do seem potentially relevant
cdg has quit [Ping timeout: 240 seconds]
vipaca has joined #ruby
hhffppff has quit [Quit: Leaving]
apeiros has joined #ruby
<dminuoso> This style has become quite predominant in my code ever since I started Haskell..
blackmesa has joined #ruby
<Papierkorb> dminuoso: I didn't need haskell to do it basically like that *hides*
<Papierkorb> No really, how else would one do that?
<matthewd> The rest I can live with, but the camelcase is killing me :P
<Papierkorb> ^
<dminuoso> matthewd: Heh, I've seen you making these remarks about my code a few times now. ;-)
<dminuoso> Call it JS/Haskellism
<dminuoso> Just cant help it :(
alnewkirk has quit [Ping timeout: 240 seconds]
<matthewd> I'd complain just as much about JS with underscores, if that's any consolation ;)
alnewkirk has joined #ruby
<matthewd> It's the fact that core/stdlib methods are spelled one way and app methods are the other, that gets me
<dminuoso> matthewd: For a while this was a serious problem when I started writing a React frontend with a transparent middleware that baked the JSON:API data from the rails into redux.
<dminuoso> matthewd: It basically infested JS with Rails world underscores from attributes.
apeiros has quit [Ping timeout: 240 seconds]
<dminuoso> You had this user(1).email_address shenanigans everywhere. :(
nahra has quit [Remote host closed the connection]
<dminuoso> Or I did rather.
<matthewd> Yeah. In my head-canon, JSON is JS and should therefore be camelcase, just as HTML/XML should be kebab-case. But all that translation can be problematic too.
guacamole has joined #ruby
<dminuoso> matthewd: I think to a degree the reason to avoid underscores in Haskell stems from the fact that there's so many operators, so apart from "'" which is mathematically well understood to just read "a prime" for "a'", characters have meaning.
<dminuoso> But then again just like in Ruby identifiers can have UTF8 characters...
<matthewd> Isn't the Haskell stdlib camelcase?
<dminuoso> matthewd: yup.
dviola has joined #ruby
<dminuoso> Though they make liberal usage of things like foo = ..., foo' = ..., foo'' = ...
<matthewd> Right, so that's what you should use too™
ldnunes has quit [Ping timeout: 264 seconds]
hahuang65 has joined #ruby
Immune has joined #ruby
apeiros has joined #ruby
sysvalve has quit [Quit: Leaving]
guille-moe has quit [Ping timeout: 240 seconds]
alfiemax has joined #ruby
tsglove3 has joined #ruby
cdg_ has quit [Remote host closed the connection]
LocaMocha has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has joined #ruby
milardovich has quit [Remote host closed the connection]
tsglove2 has quit [Ping timeout: 240 seconds]
conta has joined #ruby
SeepingN has joined #ruby
ldnunes has joined #ruby
Technodrome has joined #ruby
tsglove2 has joined #ruby
TomyWork has quit [Remote host closed the connection]
conta has quit [Ping timeout: 252 seconds]
tomphp has joined #ruby
tsglove3 has quit [Ping timeout: 240 seconds]
csk157 has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Serpent7776 has quit [Quit: Leaving]
APag96 has joined #ruby
ledestin has joined #ruby
anisha has quit [Read error: Connection reset by peer]
csk157 has quit [Ping timeout: 248 seconds]
alex`` has joined #ruby
tsglove3 has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
guacamol_ has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<APag96> Hello all! I'm having some issues with making HTTP requests. I'm trying to change the 'host' header for the request. This would be useful in making requests to vhosts that don't have DNS set up. In this code, I'm requesting the 'test.com' vhost on 192.241.XX.XX Here's my code: https://pastebin.com/Fn76R3Yi I'm running 'nc -l 80' on the IP and see that the 'Host' header is '192.241.XX.XX' and not 'test.com', like it should be. Thanks f
<ruby[bot]> APag96: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/85a44bb7ae96451412b7080183bb4c4f
<ruby[bot]> APag96: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
awwaiid has quit [Ping timeout: 258 seconds]
tsglove2 has quit [Ping timeout: 240 seconds]
banisterfiend has joined #ruby
anisha has joined #ruby
enterprisey has joined #ruby
Beams has quit [Quit: .]
sspreitz has quit [Ping timeout: 255 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 252 seconds]
troulouliou_dev has joined #ruby
aufi has quit [Quit: Leaving]
blackmesa has joined #ruby
banisterfiend has quit [Changing host]
banisterfiend has joined #ruby
jaequery has joined #ruby
guacamol_ has quit [Quit: My face has gone to sleep. ZZZzzz…]
postmodern has joined #ruby
minimalism has joined #ruby
mikecmpbll has quit [Ping timeout: 248 seconds]
TvL2386_ has quit [Ping timeout: 260 seconds]
jrafanie has joined #ruby
milardovich has joined #ruby
sspreitz has joined #ruby
RougeR has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldnunes has quit [Read error: Connection reset by peer]
ldnunes has joined #ruby
Quentinius has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
TvL2386 has joined #ruby
tsglove2 has joined #ruby
cagomez has quit [Remote host closed the connection]
tsglove2 has quit [Max SendQ exceeded]
tsglove2 has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
milardovich has quit [Remote host closed the connection]
imode has quit [Ping timeout: 240 seconds]
tlaxkit has quit [Quit: ¡Adiós!]
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
tsglove3 has quit [Ping timeout: 248 seconds]
jaruga has quit [Quit: jaruga]
troys is now known as troys_
Quentinius has quit [Quit: Mutter: www.mutterirc.com]
tsglove3 has joined #ruby
troulouliou_dev has quit [Ping timeout: 255 seconds]
tsglove2 has quit [Ping timeout: 252 seconds]
doublemalt_ has quit [Ping timeout: 248 seconds]
alfiemax has joined #ruby
cagomez has joined #ruby
ams__ has joined #ruby
milardovich has joined #ruby
mn3m has quit [Ping timeout: 240 seconds]
orbyt_ has joined #ruby
troulouliou_dev has joined #ruby
cdg has quit [Remote host closed the connection]
jxv has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<banisterfiend> anyone here familiar with autotools?
cdg has joined #ruby
cdg has quit [Remote host closed the connection]
nofxx has quit [Ping timeout: 255 seconds]
cdg has joined #ruby
mikecmpbll has joined #ruby
troys_ is now known as troys
nofxx has joined #ruby
ShekharReddy has quit [Quit: Connection closed for inactivity]
s2013 has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
nofxx has quit [Read error: Connection reset by peer]
<dminuoso> banisterfiend: Might I also suggest #osdev ?
<dminuoso> Some of them are autotools users.
<dostoyevsky> Too many interesting channels...
jxv has joined #ruby
conta1 has joined #ruby
imode has joined #ruby
alnewkirk has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
dionysus69 has joined #ruby
unreal has quit [Quit: Very funny Scotty. Now beam down my clothes!]
jenrzzz has quit [Ping timeout: 246 seconds]
br0d1n has quit [Quit: Leaving]
goyox86_ has joined #ruby
alfiemax has quit [Remote host closed the connection]
alnewkirk has joined #ruby
tsglove2 has joined #ruby
mjolnird has quit [Quit: Leaving]
mostlybadfly has joined #ruby
tsglove3 has quit [Ping timeout: 248 seconds]
tomphp has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has quit [Client Quit]
alfiemax has joined #ruby
cschnei__ has quit [Remote host closed the connection]
mn3m has joined #ruby
guacamole has joined #ruby
tomphp has joined #ruby
tsglove3 has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
blackmesa1 has joined #ruby
blackmesa1 has quit [Client Quit]
tsglove2 has quit [Ping timeout: 248 seconds]
alfiemax has quit [Ping timeout: 264 seconds]
blackmesa has quit [Ping timeout: 255 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
FrostCandy has joined #ruby
csk157 has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knightblader has quit [Ping timeout: 252 seconds]
guacamole has joined #ruby
waveprop has quit [Ping timeout: 248 seconds]
waveprop has joined #ruby
waveprop is now known as Guest72603
alnewkirk has quit [Ping timeout: 264 seconds]
troulouliou_dev has quit [Quit: Leaving]
alnewkirk has joined #ruby
APag96 has quit [Ping timeout: 260 seconds]
knightblader has joined #ruby
NikolausK has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 240 seconds]
conta1 has quit [Ping timeout: 240 seconds]
alnewkirk has quit [Ping timeout: 248 seconds]
d5sx43 has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ElDoggo has joined #ruby
ldnunes has quit [Quit: Leaving]
nahra has joined #ruby
dionysus69 has quit [Ping timeout: 248 seconds]
Ltem has joined #ruby
jrafanie has joined #ruby
gheegh has joined #ruby
dionysus69 has joined #ruby
tomphp has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has quit [Client Quit]
knight33 has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.9.1]
jaequery has joined #ruby
jaequery has quit [Client Quit]
Quentinius has joined #ruby
jaequery has joined #ruby
jaequery has quit [Client Quit]
jaequery has joined #ruby
jaequery has quit [Client Quit]
jaequery has joined #ruby
whippythellama has quit [Ping timeout: 246 seconds]
jaequery has quit [Client Quit]
Quentinius has quit [Client Quit]
jaequery has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
cagomez has quit [Remote host closed the connection]
troys is now known as troys_
jaequery has quit [Ping timeout: 246 seconds]
tsglove3 has quit [Read error: Connection reset by peer]
tsglove3 has joined #ruby
jenrzzz has joined #ruby
infernix has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shinnya has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
knight33 has joined #ruby
milardovich has joined #ruby
knight33 has quit [Read error: Connection reset by peer]
Dimik has joined #ruby
whippythellama has joined #ruby
tomphp has joined #ruby
dinfuehr has quit [Ping timeout: 252 seconds]
milardovich has quit [Remote host closed the connection]
jenrzzz_ has joined #ruby
s2013 has joined #ruby
ta has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
jrafanie has joined #ruby
dinfuehr has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
duckpuppy has quit [Ping timeout: 240 seconds]
alnewkirk has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
vipaca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
goyox86_ has quit [Quit: goyox86_]
cdg has quit [Ping timeout: 248 seconds]
ur5us has quit [Ping timeout: 240 seconds]
s2013 has quit [Ping timeout: 260 seconds]
goyox86_ has joined #ruby
guacamol_ has joined #ruby
troys_ is now known as troys
alnewkir1 has joined #ruby
synthroi_ has joined #ruby
alnewkirk has quit [Ping timeout: 258 seconds]
vipaca has joined #ruby
bitcycle has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
synthroid has quit [Ping timeout: 240 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tsglove2 has joined #ruby
tsglove3 has quit [Ping timeout: 248 seconds]
nowhere_man has joined #ruby
aphelion has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 255 seconds]
troulouliou_dev has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
guacamol_ has quit [Quit: My face has gone to sleep. ZZZzzz…]
guacamole has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
zanoni has quit [Ping timeout: 240 seconds]
mn3m has quit [Ping timeout: 248 seconds]
MrBusiness has joined #ruby
houhouli_ has joined #ruby
php_newbie has joined #ruby
<php_newbie> Hello there, I'm a php developer starting to learn ruby, I have stumble upon RVM and rubyenv
hahuang65 has joined #ruby
<matthewd> php_newbie: This channel generally recommends rbenv or chruby, over RVM, if that's your question
<php_newbie> Just tuo understand what's the most idiomatic way to manage the installation of a ruby interpeter? It seems like RVM should not be a tool i would have on production server, and I use to create my environment trougth containerization
houhoulis has quit [Ping timeout: 248 seconds]
cagomez has joined #ruby
<php_newbie> what does effectively rubyenv gives the user?
<matthewd> Production choices vary.. some use system ruby, if their OS is sufficiently up to date; others use ruby-build or ruby-install (the part of rbenv/chruby, respectively, that actually gets it onto your machine); still others do use a full version manager in production, even inside a container
<matthewd> A version manager ensures you're using the same ruby version in your development environment and in production, and gives you the ability to easily change that, either for upgrades, or to work with an older version if that's what your production app is using.
<php_newbie> ok please understand I don't come from an ecosystem with a native env definition tool, how is the ruby community reacting to containers? Why prefer a ruby env instead of of a container with the ruby interpeter?
<apeiros> version managers existed before containers. some people just stuck with them. some move on to containers. some mix.
<php_newbie> If i would have start I would have been set up a container with a ruby interpeter
<php_newbie> ok
selim has quit [Ping timeout: 248 seconds]
mn3m has joined #ruby
<php_newbie> So just to understand If I moove to Ruby and start to work on Ruby project would I be like found developers using containers or the sentiment is to stuck with ruby env?
<matthewd> Personally, I think containers are a valuable option for production, but for local development, I prefer the flexibility of working on bare metal -- the isolation a container provides can occasionally get in the way, and IME it provides few advantages to make up for that (again, in development)
Mia has quit [Read error: Connection reset by peer]
<Papierkorb> ^
RickHull has joined #ruby
<php_newbie> Containers are almost bare metal
<matthewd> I'd say container-based development environments are also somewhat popular, though. Just not my cup of tea.
<php_newbie> Understood
<Papierkorb> php_newbie: You also have to consider that for many, using bare ruby (with or without a version manager) have served many well for over a decade
<RickHull> havenwood (etc) - I'm looking for some guidance with Matrix and Vector from stdlib
selim has joined #ruby
<php_newbie> for my point of view I do not care about what to use, I care about what community use, because software is more about people than code
<RickHull> specifically: https://github.com/rickhull/simplex/blob/modernize/lib/simplex.rb -- why does Vector not allow []= and why does this lib want to do that?
<apeiros> I think at this point, version managers are more widely used. but I think that's mostly due to masses moving slowly.
<php_newbie> so I tend to adhere to comunity sentiment
<RickHull> also, where @a is an array of Vectors, is this more naturally represented as a Matrix?
<Papierkorb> php_newbie: It's just infinitely easier to interact with the actual software without having to mess with docker (or w/e) while dev'ing. Being able to write "bundle exec pry" will just work and have the environment you know: That of your host. On production, use whatever suits you best: If that's containers, use them!
<apeiros> RickHull: probably matrix.rb considers vectors to be immutable.
<RickHull> and are Vectors actually doing something useful in this lib?
<RickHull> apeiros: so why might this lib be wanting to mutate?
<matthewd> If you want to go with the currently-more-popular choice, I'd say go with a local version manager and run ruby locally. If you have container-based experience and would prefer to go that way, you won't be super unusual.
<RickHull> is there a more canonical procedure?
<apeiros> RickHull: because the dev was lazy?
<RickHull> i wonder why choose Vector at all
d5sx43 has quit [Quit: Leaving...]
<php_newbie> Acutally I'm playing around with RVM and simple bare metal env
<php_newbie> where I will be able how to configure everything on its full potential
<apeiros> RickHull: the standard way is to create a new vector with the modified values
<php_newbie> I will moove to containerization
<apeiros> and it probably uses a vector because it needs vector calculations
Immune has quit [Read error: Connection reset by peer]
tsglove3 has joined #ruby
<apeiros> though I'm not seeing any at a glance
mn3m has quit [Ping timeout: 240 seconds]
<RickHull> here is where the vector mutation happens: https://github.com/rickhull/simplex/blob/modernize/lib/simplex.rb#L113
<RickHull> i think arrays suffice here
<RickHull> but I'd be interested in a performance benefit
<RickHull> and playing by the rules
Immune has joined #ruby
<php_newbie> thanks to all, for informations
ur5us has joined #ruby
<RickHull> i'm wondering if using a Matrix can speed things up or express them more naturally
<RickHull> but I'm very much a matrix novice and also to simplex and linear programming
<RickHull> so this is kind of a deep dive exercise
<apeiros> RickHull: vector isn't native, so there isn't any.
<apeiros> neither is matrix. at least they weren't in 1.9. haven't checked since. but I doubt they are now.
<RickHull> i'd be interested in more natural expression as long as there is no performance regression
<RickHull> i think either mutable arrays or immutable Vector / Matrix
tsglove2 has quit [Ping timeout: 248 seconds]
<RickHull> i'll start with the first but not sure how fruitful the latter approach would be
<apeiros> 21:31 RickHull: also, where @a is an array of Vectors, is this more naturally represented as a Matrix?
cschneid_ has joined #ruby
<apeiros> re ^: if all vectors have the same length, yes
<RickHull> they do
<RickHull> i have to enforce this with raise
Immune has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
<apeiros> and I'm pretty sure the formal description of whatever solver this is uses matrix too to describe the process.
php_newbie has quit [Quit: Page closed]
<RickHull> yeah
<apeiros> that doesn't mean matrix.rb is the ideal way to solve it in ruby.
jottr has joined #ruby
sightes has quit [Quit: WeeChat 1.9.1]
<RickHull> yeah
<RickHull> i'm going to add some benchmarks and s/Vector/Array/
<RickHull> and then investigate the Matrix portion. seems like a good application for numpy
<havenwood> That reminds me, there's an exercism problem named "matrix.rb" that can be solved with the stdlib "matrix.rb": http://exercism.io/submissions/13bf325853cc44f7bd42c64bd2d9e5a9
<apeiros> certainly is the kind of problems numpy is strong in. not sure how well narray is developed in ruby.
<havenwood> haha, epitron upvoted it
<havenwood> this is not the solution you are looking for...
<havenwood> >.>
<RickHull> havenwood: what is the point of this?
<havenwood> RickHull: Just silliness. I was annoyed they stomped on a stdlib namespace so I unstomped it and used it.
ozcanesen has joined #ruby
<RickHull> oh I see
<havenwood> I like Matrix.
<RickHull> i still haven't unpacked Fibonacci.matrix
<apeiros> havenwood: :D
<RickHull> it's just magic(tm) for now
<havenwood> RickHull: :-)
ur5us has quit [Read error: No route to host]
enterprisey has quit [Remote host closed the connection]
ur5us_ has joined #ruby
raynold has quit [Quit: Connection closed for inactivity]
ur5us_ has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
alex`` has quit [Ping timeout: 264 seconds]
tsglove2 has joined #ruby
ur5us_ has joined #ruby
cadillac_ has quit [Ping timeout: 240 seconds]
cadillac_ has joined #ruby
<zer0python> anyone in here have experience with axlsx?
tsglove2 has quit [Read error: Connection reset by peer]
rirc_BE17 has joined #ruby
tsglove3 has quit [Ping timeout: 246 seconds]
ur5us has quit [Ping timeout: 252 seconds]
rirc_BE17 has quit [Client Quit]
<zer0python> I'm following an example for creating a pivot table where they do pivot_table.data = [{:ref => "Member ID", :subtotal => "count"}]. I basically am doing the same thing but using more applicable values to what I'm working on, but I'm getting this validation error that says {:ref => "...", :subtotal => "count"} must be [String]
tcopeland has quit [Quit: tcopeland]
Immune has joined #ruby
cdg has joined #ruby
workmad3 has joined #ruby
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
synthroi_ has quit []
Guest95018 has quit [Read error: Connection reset by peer]
enterprisey has joined #ruby
chmurifree has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
cadillac_ has quit [Ping timeout: 248 seconds]
troulouliou_dev has quit [Quit: Leaving]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cadillac_ has joined #ruby
allcentury has quit [Remote host closed the connection]
allcentury has joined #ruby
troulouliou_dev has joined #ruby
chmurifree has joined #ruby
guacamole has joined #ruby
ap4y has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz_ has quit [Ping timeout: 258 seconds]
<dminuoso> zer0python: What part about that error escapes you?
<dminuoso> zer0python: Oh, perhaps the phrasing might be weird. [String] reads to be: Array of strings. ;-)
<zer0python> the part where I'm doing the same thing as the example and the example works
<zer0python> that's what escapes me
<dminuoso> zer0python: gist your code and the example
<zer0python> can't gist my code
<dminuoso> zer0python: make a testcase.
<dminuoso> !nda
<dminuoso> ?nda
<ruby[bot]> If you cannot share your code, we cannot help you. Create a complete, executable example that you can share and that reproduces your issue, or hire a consultant.
allcentury has quit [Ping timeout: 240 seconds]
cdg_ has joined #ruby
<RickHull> it's always a good exercise to distill your buggy behavior to minimal example
<zer0python> dminuoso: yeah I get it. Was hoping for an expert though.
<RickHull> half the time you find the bug is on your side :)
<zer0python> dminuoso: don't concern yourself with it, I'll figure it out.
<dminuoso> zer0python: We dont have crystal balls. No expert can predict what you did wrong without seeing your code.
<dminuoso> But suit yourself.
* RickHull has ruby balls
<zenspider> zer0python: was hoping for a psychic expert?
<zer0python> dminuoso: I am literally doing the same thing as the example, only different fields.
cdg has quit [Ping timeout: 240 seconds]
<zer0python> and the example is just the pivottable example you can find on google.
<RickHull> zer0python: if you can distill it to a working example, paste that example
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<RickHull> or file an issue with the project
<dminuoso> If you cant produce code that exhibits the problem, I doubt very much they will bother.
<zenspider> how is it you can't paste us an example if this is "just the example" and "you can find on google"???
<zenspider> this smells bad
troulouliou_dev has quit [Quit: Leaving]
ozcanesen has quit [Quit: ozcanesen]
<dminuoso> zer0python: Based on the code, it appears that the array around [String] rather means "any of". So it would follow that you are not always passing in strings.
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> zenspider: in particular this validation is applied to the values of the hash. so some values in your hash are not strings.
<dminuoso> But what do I know. Perhaps an expert will pop up.
* baweaver wanders in
* baweaver wanders back out
<zenspider> not me...
<setient> does anyone here do unit testing on rails without relying on a database or whatnot?
<setient> you know, actual unit testing of the ruby code
allcentury has joined #ruby
<baweaver> Fixtures
<baweaver> though you probably want #RubyOnRails
<dminuoso> baweaver: so much effort.
<zenspider> "actual"? as in... if there's a db involved it isn't real testing?
<dminuoso> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<dminuoso> Look!
<dminuoso> dminuoso. making fun of baweaver since 2016.
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta has quit [Remote host closed the connection]
<zenspider> some do... check out corey haines and... um... the destroy all software guy. both have given talks on it
guacamole has joined #ruby
<setient> thank you baweaver
<zenspider> gary bernhart
<setient> thanks dminuoso
<zenspider> but if my tests are fast enough w/ a db, I'm not going to put effort into removing it
<baweaver> most of it is just using factory_girl poorly honestly
<baweaver> or factory_bot now I guess
GodFather has quit [Ping timeout: 248 seconds]
<dminuoso> baweaver: That refactoring was so painful, I was so close to just rm -rf spec/
<zenspider> hah! was it renamed finally?
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<dminuoso> Yeah.
jenrzzz has joined #ruby
guacamole has quit [Client Quit]
<baweaver> Looks like it
allcentury has quit [Ping timeout: 240 seconds]
<dminuoso> I can barely write a spec without at least getting an uninitialized const error.
<dminuoso> FactoryGirl. That muscle memory is burned in.
guacamole has joined #ruby
<zenspider> I never saw the point in those libs
ta has joined #ruby
<dminuoso> zenspider: It's somewhat useful if you use traits to quickly construct a hierarchy of objects.
csk157 has quit [Ping timeout: 240 seconds]
<zenspider> def is my factory framework
<dminuoso> def?
<zenspider> def
Psybur has quit [Ping timeout: 240 seconds]
<dminuoso> as in keyword_def?
milardovich has joined #ruby
GodFather has joined #ruby
Rapture has quit [Ping timeout: 240 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit [Ping timeout: 252 seconds]
enterprisey has quit [Ping timeout: 248 seconds]
weaksauce has joined #ruby
Puffball has quit [Remote host closed the connection]
raynold has joined #ruby
troys is now known as troys_
FrostCandy has quit []
Puffball has joined #ruby
guacamole has joined #ruby
biberu has quit []
nadir has joined #ruby
alnewkir1 has quit [Ping timeout: 255 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
beerich has joined #ruby
claudiuinberlin has joined #ruby
tcopeland has joined #ruby
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
<beerich> Anybody available for a novice chat on modules?
<dminuoso> Shoot.
my-nick has quit [Ping timeout: 240 seconds]
jrafanie has joined #ruby
impermanence has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
<beerich> Trying to get my head around how to do this. I have two files, where one uses require_relative to a file that has a module in it, and a plain methods for tests
<beerich> I set a variable (instance, as I'm in Sinatra) to the outside method, and it works
<beerich> the Module variable set, gives me an ISE
<beerich> I need to use `include Modulename` correct?
jphase has quit [Remote host closed the connection]
<beerich> even though I've required it?
jphase has joined #ruby
<dminuoso> beerich: `require` is basically just `execute that file` (with the constraint that it will only execute any file once)
<ruby[bot]> beerich: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/60687d9819c7658e5d5d50fad28e9481
<ruby[bot]> beerich: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<beerich> ok then lol
alnewkirk has joined #ruby
jrafanie has quit [Ping timeout: 260 seconds]
tcopeland has quit [Quit: tcopeland]
<dminuoso> beerich: what is "ISE" ?
<beerich> Internal Server Error
sarbs has joined #ruby
<dminuoso> Oh I see what you mean.
<beerich> the outer methods demonstrates the file is read and things are fine
<dminuoso> beerich: My opinion is, get a good book.
<beerich> hah they're all going in different directions
<dminuoso> Perhaps you are in need of a good book recommendation then.
<beerich> shoot
jphase has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<baweaver> There's a book list in the channel topic
<baweaver> Though generally I like Eloquent Ruby for people who have programmed a bit before in another language.
alnewkirk has quit [Ping timeout: 258 seconds]
<beerich> ya modules are new to me.
<beerich> been in another language for years
<beerich> ok thanks for the guidance
<dminuoso> Eloquent Ruby is frequently recommended and highly praised. I can't speak for the quality itself, but I've heard only good things.
<baweaver> Eloquent Ruby is entirely how to Ruby like a Rubyist
jenrzzz has quit [Ping timeout: 260 seconds]
Ltem has quit [Quit: Leaving]
sammi` has joined #ruby
conta2 has joined #ruby
charliesome has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
* dminuoso thinks that second Ruby should be lowercase.
<baweaver> I choose to capitalize on the opportunity
<dminuoso> But your opportunity was not capitalized?
conta2 has quit [Ping timeout: 240 seconds]
sarbs has quit [Quit: ZNC - 1.6.0 - http://znc.in]
cadillac_ has quit [Ping timeout: 248 seconds]
<baweaver> mmmm
<baweaver> you win this round
lxsameer has quit [Quit: WeeChat 1.9.1]
cadillac_ has joined #ruby
<baweaver> in any case there are normally a few of us around at most hours if you have questions beerich, so ask away
mn3m has joined #ruby
<beerich> thanks, I appreciate it. I'll be chasing up some texts
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
orbyt_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
alnewkirk has joined #ruby
darkmorph has joined #ruby
mn3m has quit [Ping timeout: 255 seconds]
sarbs has joined #ruby
Nicmavr has joined #ruby
Nicmavr is now known as Guest37705
sarbs has quit [Read error: Connection reset by peer]
[Butch] has quit [Quit: I'm out . . .]
jenrzzz has joined #ruby
goyox86_ has quit [Quit: goyox86_]
goyox86_ has joined #ruby
alnewkirk has quit [Ping timeout: 240 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has joined #ruby
tsglove2 has joined #ruby
milardovich has joined #ruby
jphase has joined #ruby
cagomez has quit [Remote host closed the connection]
tomphp has joined #ruby
workmad3 has joined #ruby
cagomez has joined #ruby
mtkd has quit [Ping timeout: 248 seconds]
pior has quit [Quit: Connection closed for inactivity]
milardovich has quit [Ping timeout: 248 seconds]
milardovich has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
knightblader has quit [Quit: WeeChat 1.9.1]
cagomez has quit [Ping timeout: 248 seconds]
workmad3 has quit [Ping timeout: 252 seconds]
darkmorph has quit [Ping timeout: 240 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jphase has quit [Ping timeout: 248 seconds]
milardovich has quit []
jphase has joined #ruby
milardovich has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
cagomez has joined #ruby
tcopeland has joined #ruby
jphase has quit [Ping timeout: 246 seconds]
dstrunk has joined #ruby
thinkpad has joined #ruby
orbyt_ has joined #ruby
jphase has joined #ruby
goyox86_ has quit [Ping timeout: 248 seconds]
apeiros has quit [Remote host closed the connection]
reber has quit [Quit: Leaving]
troys_ is now known as troys
goyox86_ has joined #ruby
ElDoggo has quit [Remote host closed the connection]
goyox86_ is now known as goyox86
k3rn31 has quit [Ping timeout: 248 seconds]
knight33 has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
polishdub has quit [Quit: leaving]
darkmorph has joined #ruby
ElDoggo has joined #ruby
weaksauce has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 264 seconds]
bitcycle has quit [Quit: WeeChat 1.7]
milardovich has quit []
vipaca has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
mtkd has joined #ruby
cschneid_ has quit [Read error: Connection reset by peer]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
cschneid_ has joined #ruby
csk157 has joined #ruby
guardianx has joined #ruby
marr has quit [Ping timeout: 260 seconds]
rhyselsmore has joined #ruby
mkroman has quit [Ping timeout: 248 seconds]
csk157 has quit [Ping timeout: 258 seconds]
moei has quit [Quit: Leaving...]
mkroman has joined #ruby
mkroman has quit [Changing host]
mkroman has joined #ruby
ElDoggo has quit [Remote host closed the connection]
goyox86 has quit [Quit: goyox86]
agent_white has quit [Read error: Connection reset by peer]
mkroman has quit [Ping timeout: 248 seconds]
cdg has joined #ruby
mkroman has joined #ruby
tvw has joined #ruby
cdg_ has quit [Ping timeout: 246 seconds]
marxarelli is now known as marxarelli|afk
SeepingN has quit [Ping timeout: 260 seconds]
Technodrome has joined #ruby
cdg has quit [Ping timeout: 264 seconds]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dalitom has joined #ruby
<dalitom> hey all
<dalitom> can you guys please help me
<dalitom> how can I split this string
<dalitom> string = "/home/eail\r\n/home/dtomic/"
<baweaver> define split
<baweaver> what have you tried?
<dalitom> to create array ... arry = ["/home/eail", "/home/dtomic/"]
<baweaver> I'd assume you mean by \r\n
<dalitom> yeah
<baweaver> What have you tried?
<dalitom> split("\r\n")
<baweaver> and what did it give you?
<dalitom> I am tired :(
<dalitom> LOl