havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: 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 quit [Remote host closed the connection]
_sfiguser has quit [Quit: Leaving]
ozcanesen has quit [Quit: Textual IRC Client: www.textualapp.com]
jusa has joined #ruby
hahuang61 has joined #ruby
esObe_ has joined #ruby
Xiti has quit [Quit: Xiti]
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jusa has quit [Ping timeout: 240 seconds]
nitric has quit [Ping timeout: 268 seconds]
hahuang61 has quit [Ping timeout: 264 seconds]
esObe_ has quit [Ping timeout: 260 seconds]
rakm has joined #ruby
gusrub has joined #ruby
bkxd has joined #ruby
GodFather has joined #ruby
Channel6 has joined #ruby
gusrub has quit [Ping timeout: 240 seconds]
BabyMario has quit [Quit: bye]
bkxd has quit [Ping timeout: 240 seconds]
tolerablyjake has joined #ruby
skweek has quit [Remote host closed the connection]
<j416> hekin: I tried a bit more, but I'm still lost.
pickle_ has joined #ruby
<j416> no idea about that encoding :/
<j416> do ping me if you should happen to find what it is!
<hekin> @j416 thank you for you help :)
<hekin> @j416 will do
skweek has joined #ruby
TheMainFrame has quit [Ping timeout: 264 seconds]
ncthom91 has joined #ruby
ncthom91 has quit [Client Quit]
cow[baby] has joined #ruby
cow[baby] has quit [Client Quit]
binaryplease has quit [Quit: binaryplease]
binaryplease has joined #ruby
gloscombe_ has quit [Quit: gloscombe_]
marr has quit [Ping timeout: 240 seconds]
volix has quit [Ping timeout: 260 seconds]
kobain has joined #ruby
johnzorn has quit [Read error: Connection reset by peer]
johnzorn has joined #ruby
cyphase has quit [Ping timeout: 260 seconds]
ski4x7 has joined #ruby
ski7777 has quit [Ping timeout: 258 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
coatezy has quit [Ping timeout: 260 seconds]
s1kx has quit [Quit: s1kx]
HoierM has quit [Remote host closed the connection]
Channel6 has quit [Ping timeout: 246 seconds]
enterprisey has joined #ruby
ozcanesen has joined #ruby
johnzorn has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
johnzorn has joined #ruby
marxarelli is now known as marxarelli|afk
CloCkWeRX has quit [Client Quit]
coatezy has joined #ruby
CloCkWeRX has joined #ruby
LuckyABA has joined #ruby
binaryplease has quit [Ping timeout: 260 seconds]
cyphase has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
ozcanesen has quit [Quit: Textual IRC Client: www.textualapp.com]
ResidentBiscuit has joined #ruby
GodFather has quit [Remote host closed the connection]
ColeHub has quit [Quit: Bye.]
GodFather has joined #ruby
duderonomy has quit [Ping timeout: 246 seconds]
esObe_ has joined #ruby
Vile` has joined #ruby
Candido has joined #ruby
Candido has quit [Client Quit]
esObe_ has quit [Ping timeout: 256 seconds]
cow[baby] has joined #ruby
Channel6 has joined #ruby
pickle_ has quit [Ping timeout: 260 seconds]
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ResidentBiscuit has quit [Remote host closed the connection]
ResidentBiscuit has joined #ruby
br0d1n has quit [Quit: Leaving]
cam27 has joined #ruby
zipace has joined #ruby
<cam27> Have people been talking about Jason Seifer’s passing on here?
ResidentBiscuit has quit [Ping timeout: 246 seconds]
harrycee has quit [Quit: Connection closed for inactivity]
ziprar has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ruby
mim1k has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
Rodya_ has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 256 seconds]
astrobunny has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
astrobunny has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
cow[baby] has quit [Quit: cow[baby]]
baweaver is now known as baweaver_away
Rodya_ has quit [Ping timeout: 246 seconds]
cam27 has quit [Quit: cam27]
duderonomy has joined #ruby
cow[baby] has joined #ruby
houhoulis has joined #ruby
baweaver_away is now known as baweaver
hahuang61 has joined #ruby
Channel6 has quit [Ping timeout: 260 seconds]
Marc- has quit [Ping timeout: 245 seconds]
RealMarc has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jcao219 has joined #ruby
jaegerca has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 256 seconds]
d^sh has quit [Ping timeout: 260 seconds]
bsartek has quit [Quit: This computer has gone to sleep]
d^sh has joined #ruby
cow[baby] has quit [Quit: cow[baby]]
cow[baby] has joined #ruby
kellyann has joined #ruby
libastral has quit [Ping timeout: 260 seconds]
jusa has joined #ruby
kellyann has quit [Client Quit]
esObe_ has joined #ruby
jusa has quit [Ping timeout: 258 seconds]
csaunders has quit [Quit: later tater]
libastral has joined #ruby
cow[baby] has quit [Quit: cow[baby]]
t-recx has quit [Quit: t-recx]
esObe_ has quit [Ping timeout: 264 seconds]
enterprisey has quit [Quit: Leaving]
bkxd has joined #ruby
noneofthisnonsen has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
genpaku has quit [Remote host closed the connection]
HoierM has joined #ruby
genpaku has joined #ruby
StoneCypher has quit [Ping timeout: 240 seconds]
jcao219 has quit [Ping timeout: 256 seconds]
bruce_lee has quit [Ping timeout: 260 seconds]
bruce_lee has joined #ruby
jcao219 has joined #ruby
__Yiota has joined #ruby
jenrzzz has joined #ruby
gnufied has quit [Ping timeout: 246 seconds]
hndk has joined #ruby
csaunders has joined #ruby
Rodya_ has joined #ruby
thistle has quit [Remote host closed the connection]
thistle has joined #ruby
thistle has quit [Remote host closed the connection]
astrobunny has joined #ruby
thistle has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
al2o3-cr has quit [Ping timeout: 240 seconds]
thistle has quit [Remote host closed the connection]
thistle has joined #ruby
Rodya_ has quit [Ping timeout: 246 seconds]
thistle has quit [Ping timeout: 264 seconds]
d^sh has quit [Ping timeout: 240 seconds]
crankharder has joined #ruby
d^sh has joined #ruby
HoierM has quit [Ping timeout: 256 seconds]
antoniobeyah has quit [Quit: Connection closed for inactivity]
<crankharder> Kernel#exec replaces the current process with the given command, so it keeps the current environment. Is there a way to exit and start a new process such that the env gets blown away and/or reset?
zipace has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
hekin has quit [Quit: hekin]
CrazEd__ is now known as CrazEd
jcao219 has quit [Ping timeout: 260 seconds]
CrazEd is now known as Guest1792
hndk has quit [Remote host closed the connection]
hndk has joined #ruby
HoierM has joined #ruby
jcao219 has joined #ruby
Guest96 has quit [Quit: Guest96]
mim1k has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
mkillebrew has left #ruby [#ruby]
hutch34 has joined #ruby
shortdudey123 has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 268 seconds]
thistle has joined #ruby
<havenwood> crankharder: Try it preceded with 'env -i' like: exec 'env', '-i', 'printenv'
jcao219 has quit [Ping timeout: 260 seconds]
houhoulis has quit [Remote host closed the connection]
hahuang61 has joined #ruby
mim1k has joined #ruby
rgtk has quit [Ping timeout: 258 seconds]
jusa has joined #ruby
mazeinmaze_ has joined #ruby
hahuang61 has quit [Ping timeout: 264 seconds]
HoierM has quit [Ping timeout: 264 seconds]
mim1k has quit [Ping timeout: 240 seconds]
Guest916 has quit []
shortdudey123 has joined #ruby
djbkd has joined #ruby
rgtk has joined #ruby
Guest1792 is now known as CrazEd
CrazEd is now known as Guest26609
thistle has quit [Ping timeout: 256 seconds]
esObe_ has joined #ruby
Vile` has quit [Ping timeout: 240 seconds]
hndk has quit [Quit: Leaving]
esObe_ has quit [Ping timeout: 246 seconds]
bkxd has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
bkxd has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
hanmac has quit [Ping timeout: 258 seconds]
ski4x7 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
ski7777 has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
mim1k has joined #ruby
patarr has joined #ruby
Rodya_ has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
cfec0b8d has quit [Ping timeout: 240 seconds]
cfec0b8d has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
JoshS has joined #ruby
renchan has joined #ruby
hanmac has joined #ruby
StoneCypher has joined #ruby
StoneCypher has quit [Ping timeout: 260 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
rgtk has quit [Ping timeout: 240 seconds]
thistle has joined #ruby
pupsicle1 has joined #ruby
dn`_ has joined #ruby
atom3_ has joined #ruby
Guest26609 is now known as CrazEd
joaomdmoura___ has joined #ruby
CrazEd is now known as Guest16044
Brak____________ has joined #ruby
Yonk__ has joined #ruby
Asher1 has joined #ruby
tfitts_ has joined #ruby
daxroc_ has joined #ruby
jxf_ has joined #ruby
LyndsySimon_ has joined #ruby
peteretep_ has joined #ruby
skmp_ has joined #ruby
pelegreno__ has joined #ruby
ggherdov_ has joined #ruby
stan_ has joined #ruby
boshhead_ has joined #ruby
rflot_ has joined #ruby
Asher1 has quit [Read error: No route to host]
hayden____ has joined #ruby
youmu_ has joined #ruby
Sp4rKy_ has joined #ruby
xsdg_ has joined #ruby
j has joined #ruby
csk_ has joined #ruby
pabs has joined #ruby
azwieg104 has joined #ruby
LambdaSi1 has joined #ruby
awk_ has joined #ruby
ejnahc_ has joined #ruby
j is now known as Guest52078
Raboo_ has joined #ruby
xall has joined #ruby
Asher1 has joined #ruby
jgt has joined #ruby
Asher has quit [Disconnected by services]
Asher1 is now known as Asher
Bock has joined #ruby
mnem has joined #ruby
\13k_ has joined #ruby
tjvc_ has joined #ruby
mlehrer_ has joined #ruby
Tralin_ has joined #ruby
ghormoon_ has joined #ruby
Armand has joined #ruby
redondos_ has joined #ruby
shortdudey123_ has joined #ruby
Armand is now known as Guest28368
SirCmpwn_ has joined #ruby
shortdudey123 has quit [*.net *.split]
VladGh has quit [*.net *.split]
mlehrer has quit [*.net *.split]
kies has quit [*.net *.split]
pupsicle has quit [*.net *.split]
anekos has quit [*.net *.split]
stan has quit [*.net *.split]
scorphus has quit [*.net *.split]
danielpclark has quit [*.net *.split]
Sammichmaker has quit [*.net *.split]
tjvc has quit [*.net *.split]
ElSif has quit [*.net *.split]
azwieg103 has quit [*.net *.split]
youmu has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
NightMonkey has quit [*.net *.split]
tfitts has quit [*.net *.split]
mnemon has quit [*.net *.split]
redondos has quit [*.net *.split]
ghormoon has quit [*.net *.split]
rflot has quit [*.net *.split]
jxf has quit [*.net *.split]
joaomdmoura__ has quit [*.net *.split]
dn` has quit [*.net *.split]
dman[m] has quit [*.net *.split]
M107262[m] has quit [*.net *.split]
daveyboi[m] has quit [*.net *.split]
Giphy[m] has quit [*.net *.split]
Tagami[m] has quit [*.net *.split]
pelegreno_ has quit [*.net *.split]
pabs_ has quit [*.net *.split]
csk has quit [*.net *.split]
awk has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
ejnahc has quit [*.net *.split]
atom3 has quit [*.net *.split]
Apocalypse has quit [*.net *.split]
ggherdov has quit [*.net *.split]
peteretep has quit [*.net *.split]
spectra has quit [*.net *.split]
sonne has quit [*.net *.split]
Yonk_ has quit [*.net *.split]
Brak___________ has quit [*.net *.split]
iceden has quit [*.net *.split]
Tralin has quit [*.net *.split]
daxroc has quit [*.net *.split]
skmp has quit [*.net *.split]
alamar has quit [*.net *.split]
rt has quit [*.net *.split]
LyndsySimon has quit [*.net *.split]
xsdg has quit [*.net *.split]
boshhead has quit [*.net *.split]
Raboo has quit [*.net *.split]
SirCmpwn has quit [*.net *.split]
LambdaSix has quit [*.net *.split]
\13k has quit [*.net *.split]
xybr_ has quit [*.net *.split]
g3funk has quit [*.net *.split]
jokester has quit [*.net *.split]
hayden___ has quit [*.net *.split]
amitchellbullard has quit [*.net *.split]
malcolmva has quit [*.net *.split]
majoh has quit [*.net *.split]
Guest28368 is now known as Apocalypse
dn`_ is now known as dn`
Sp4rKy_ is now known as Sp4rKy
Raboo_ is now known as Raboo
pupsicle1 is now known as pupsicle
\13k_ is now known as \13k
joaomdmoura___ is now known as joaomdmoura__
shortdudey123_ is now known as shortdudey123
sonne_ has joined #ruby
Sp4rKy is now known as Guest94753
braidn_ has joined #ruby
tfitts_ is now known as tfitts
rflot_ is now known as rflot
hayden____ is now known as hayden___
peteretep_ is now known as peteretep
VladGh has joined #ruby
jxf_ is now known as jxf
daxroc_ is now known as daxroc
skmp_ is now known as skmp
youmu_ has quit [Ping timeout: 246 seconds]
ggherdov_ is now known as ggherdov
shaman42 has quit [Ping timeout: 260 seconds]
youmu_ has joined #ruby
NightMonkey has joined #ruby
LyndsySimon_ is now known as LyndsySimon
shaman42 has joined #ruby
daveyboi[m] has joined #ruby
M107262[m] has joined #ruby
Emmanuel_Chanel has joined #ruby
Giphy[m] has joined #ruby
hahuang61 has joined #ruby
jokester has joined #ruby
kies has joined #ruby
danielpclark has joined #ruby
xybr_ has joined #ruby
majoh has joined #ruby
Tagami[m] has joined #ruby
spectra has joined #ruby
Pumukel has joined #ruby
dman[m] has joined #ruby
iceden has joined #ruby
anekos has joined #ruby
hahuang61 has quit [Client Quit]
Pumukel has quit [Read error: Connection reset by peer]
cyphase has quit [Ping timeout: 264 seconds]
Pumukel has joined #ruby
amclain has quit [Quit: Leaving]
cyphase has joined #ruby
jeyraof^mbpr has joined #ruby
djbkd has quit [Quit: My people need me...]
madgoat has joined #ruby
madgoat has left #ruby [#ruby]
hutch34 has joined #ruby
hutch34 has quit [Ping timeout: 268 seconds]
johnzorn has quit [Ping timeout: 260 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cyphase has quit [Ping timeout: 246 seconds]
anisha has joined #ruby
cyphase has joined #ruby
xall_ has joined #ruby
xall has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Quit: WeeChat 1.7]
xall_ has quit [Ping timeout: 268 seconds]
thistle has quit [Ping timeout: 240 seconds]
spyder55 has joined #ruby
spyder55 has quit [Max SendQ exceeded]
spyder55 has joined #ruby
xall_ has joined #ruby
Guest16044 is now known as CrazEd
tildes has joined #ruby
CrazEd is now known as Guest7776
roshanavand has joined #ruby
xall_ has quit [Client Quit]
xall has joined #ruby
esObe_ has joined #ruby
volix has joined #ruby
esObe_ has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
ResidentBiscuit has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
dlitvak has quit [Quit: Connection closed for inactivity]
ResidentBiscuit has quit [Ping timeout: 246 seconds]
ta_ has quit [Remote host closed the connection]
PaulePanter has joined #ruby
patarr has joined #ruby
bsartek has joined #ruby
patarr has quit [Ping timeout: 240 seconds]
acalycine has joined #ruby
<acalycine> Hey. Is there any problem with having spaces in a string that is being interpolated into a regexp?
<acalycine> In #match.
<acalycine> Because my regexp is working perfectly, except when the string "GWS Giants" is put into it via #{}.
conta has joined #ruby
akkad has quit [Quit: Emacs must have died]
spyder55 has quit []
boz_ has joined #ruby
blackwind_123 has quit [Ping timeout: 256 seconds]
gloscombe_ has joined #ruby
gloscombe_ has quit [Read error: Connection reset by peer]
Rodya_ has quit [Remote host closed the connection]
agit0 has quit [Quit: zzzZZZ….]
uncertainty has quit [Ping timeout: 240 seconds]
JoshS has quit [Ping timeout: 268 seconds]
Rodya_ has joined #ruby
Mortomes|Work has joined #ruby
tildes has quit [Ping timeout: 246 seconds]
Pumukel has quit [Read error: Connection reset by peer]
thistle has joined #ruby
Pumukel has joined #ruby
last_staff has joined #ruby
last_staff has quit [Client Quit]
antgel has joined #ruby
Guest7776 is now known as CrazEd
esObe_ has joined #ruby
CrazEd is now known as Guest79175
nadir has quit [Quit: Connection closed for inactivity]
thistle has quit [Ping timeout: 240 seconds]
jgnagy has quit [Remote host closed the connection]
dionysus69 has joined #ruby
TomyWork has joined #ruby
Papierkorb has quit [Ping timeout: 264 seconds]
aufi has joined #ruby
Arpanet69 has joined #ruby
jameser has joined #ruby
amitchellbullard has joined #ruby
mark_66 has joined #ruby
andikr has joined #ruby
MrBusiness has quit [Read error: Connection reset by peer]
jameser has quit [Client Quit]
aganov has joined #ruby
mazeinmaze_ has quit [Ping timeout: 260 seconds]
ta_ has joined #ruby
MrBusiness has joined #ruby
agit0 has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
agent_white has quit [Read error: Connection reset by peer]
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
agit0 has quit [Ping timeout: 246 seconds]
<acalycine> Anybody?
<matthewd> acalycine: No, there is no problem with having spaces in a regexp. (Though their meaning can be changed by the /x flag)
Rodya_ has quit [Remote host closed the connection]
uncertainty has joined #ruby
croberts has quit [Ping timeout: 240 seconds]
hutch34 has joined #ruby
JoshS has joined #ruby
Toledo has joined #ruby
vuoto has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
cicppi has joined #ruby
Qchmqs has joined #ruby
jamesaxl has joined #ruby
jshjsh has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JoshS has quit [Ping timeout: 260 seconds]
uncertainty has quit [Ping timeout: 260 seconds]
papillon_ has joined #ruby
kassav_ has joined #ruby
cfec0b8d has quit [Quit: Leaving.]
mim1k has joined #ruby
cfec0b8d has joined #ruby
cfec0b8d has quit [Client Quit]
cfec0b8d has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
uncertainty has joined #ruby
cfec0b8d has quit [Client Quit]
lenwood has joined #ruby
cfec0b8d has joined #ruby
cfec0b8d has quit [Client Quit]
Burgestrand has joined #ruby
Silthias1 has quit [Ping timeout: 240 seconds]
cfec0b8d has joined #ruby
cfec0b8d has quit [Client Quit]
thistle has joined #ruby
harfangk has joined #ruby
blackmesa has joined #ruby
cfec0b8d has joined #ruby
boshhead_ is now known as boshhead
Silthias has joined #ruby
Guest79175 is now known as CrazEd
vali has joined #ruby
CrazEd is now known as Guest39925
cfec0b8d has quit [Remote host closed the connection]
thistle has quit [Ping timeout: 256 seconds]
cfec0b8d has joined #ruby
bkxd has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
vali has quit [Ping timeout: 256 seconds]
mim1k has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 256 seconds]
mim1k has joined #ruby
Guest96 has joined #ruby
jaruga has joined #ruby
tlaxkit has joined #ruby
biberu has joined #ruby
patarr has joined #ruby
jsrn_ has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
boz_ has quit [Ping timeout: 260 seconds]
boz_ has joined #ruby
boz_ has quit [Remote host closed the connection]
<ij> Is there a method to make both :a and :c into [2], [5] respectively, while retaining :b as is?
<ij> => {:a=>2, :b=>[3, 4], :c=>5}
<ij> irb(main):001:0> {a: 2, b: 3}.merge({b: 4, c: 5}) { |k, *vs| vs }
<ij> I guess not with stdlib alone.
<Mon_Ouie> Make values in both hashes arrays first, then merge with Array#+
_sfiguser has joined #ruby
cfec0b8d has quit [Remote host closed the connection]
naftilos76 has joined #ruby
cicppi has quit [Read error: Connection reset by peer]
lenwood has quit [Remote host closed the connection]
cgfbee has quit [Remote host closed the connection]
uncertainty has quit [Ping timeout: 240 seconds]
lenwood has joined #ruby
_sfiguser has quit [Ping timeout: 240 seconds]
uncertainty has joined #ruby
dionysus69 has joined #ruby
ammar__ has joined #ruby
gusrub has joined #ruby
cgfbee has joined #ruby
Pisuke has quit [Read error: Connection reset by peer]
govg has quit [Ping timeout: 240 seconds]
Pisuke has joined #ruby
_sfiguser has joined #ruby
euphoriaa has quit [Ping timeout: 240 seconds]
jasondotstar has quit [Ping timeout: 240 seconds]
lofkhs has joined #ruby
gusrub has quit [Ping timeout: 240 seconds]
jasondotstar has joined #ruby
hetleq has joined #ruby
cschneid has quit [Ping timeout: 246 seconds]
euphoriaa has joined #ruby
hetleq has quit [Remote host closed the connection]
binaryplease has joined #ruby
thistle has joined #ruby
jgnagy has joined #ruby
SirCmpwn_ is now known as SirCmpwn
nowhere_man has quit [Ping timeout: 260 seconds]
gdonald has quit [Read error: Connection reset by peer]
jgnagy has quit [Ping timeout: 240 seconds]
gdonald has joined #ruby
Silthias has quit [Ping timeout: 256 seconds]
StoneCypher has joined #ruby
jaruga has quit [Quit: jaruga]
LambdaSi1 is now known as LambdaSix
StoneCypher has quit [Ping timeout: 240 seconds]
astrobunny has quit [Remote host closed the connection]
tvw has joined #ruby
terens_ has joined #ruby
astrobunny has joined #ruby
terens has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
minimalism has quit [Quit: minimalism]
cschneid has joined #ruby
workmad3 has joined #ruby
last_staff has joined #ruby
hutch34 has joined #ruby
kassav_ has quit [Quit: kassav_]
kassav_ has joined #ruby
bkxd has joined #ruby
GodFather has quit [Ping timeout: 256 seconds]
thistle has quit [Ping timeout: 246 seconds]
rt has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
GodFather has joined #ruby
etehtsea has joined #ruby
_2easy has quit [Remote host closed the connection]
kassav_ has quit [Read error: Connection reset by peer]
kassav_ has joined #ruby
xenops has joined #ruby
uncertainty has quit [Ping timeout: 260 seconds]
etehtsea has quit [Ping timeout: 240 seconds]
vuoto has quit [Quit: Lost terminal]
vuoto has joined #ruby
cout has quit [Remote host closed the connection]
vuoto has quit [Client Quit]
vuoto has joined #ruby
papillon_ has quit [Quit: Mutter: www.mutterirc.com]
CloCkWeRX has joined #ruby
jeyraof^mbpr has quit [Quit: This computer has gone to sleep]
xall has quit [Ping timeout: 240 seconds]
Guest94753 is now known as Sp4rKy
Sp4rKy is now known as Guest57576
lofkhs has quit [Remote host closed the connection]
plantfood has joined #ruby
noneofthisnonsen has quit [Quit: Leaving]
mim1k has quit [Ping timeout: 268 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
ResidentBiscuit has joined #ruby
Papierkorb has joined #ruby
al2o3-cr has joined #ruby
ResidentBiscuit has quit [Ping timeout: 246 seconds]
mim1k has joined #ruby
charliesome has joined #ruby
araujo has joined #ruby
jshjsh has quit [Read error: Connection reset by peer]
lenwood has quit [Ping timeout: 264 seconds]
patarr has joined #ruby
etehtsea has joined #ruby
Guest57576 is now known as Sp4rKy
Sp4rKy has quit [Changing host]
Sp4rKy has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 240 seconds]
jaruga has joined #ruby
jaruga has quit [Remote host closed the connection]
jaruga has joined #ruby
etehtsea has quit [Quit: Computer has gone to sleep.]
arup_r has joined #ruby
arup_r has quit [Remote host closed the connection]
vali has joined #ruby
thistle has joined #ruby
mikeiniowa has quit [Remote host closed the connection]
roshanavand has quit [Ping timeout: 264 seconds]
mikeiniowa has joined #ruby
uncertainty has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
jusa has quit [Ping timeout: 246 seconds]
bsartek has quit [Quit: This computer has gone to sleep]
maloik has quit [Remote host closed the connection]
byte512 has quit [Ping timeout: 240 seconds]
maloik has joined #ruby
Guest96 has quit [Remote host closed the connection]
thistle has quit [Ping timeout: 256 seconds]
Guest96 has joined #ruby
byte512 has joined #ruby
Kug3lis has joined #ruby
patarr has joined #ruby
tia has joined #ruby
shoutsid has joined #ruby
jaruga has quit [Quit: jaruga]
SegFaultAX has quit [Quit: ZNC - http://znc.in]
patarr has quit [Ping timeout: 268 seconds]
<tia> str = "hello ____ how are you?" I want to replace the underscores with the person name. if the occurrence of underscore is more than 3 times. please help
naftilos76 has quit [Quit: Αποχώρησε]
<tobiasvl> tia: what do you mean, "if the occurence of underscore is more than 3 times"
<tobiasvl> if there are more than three _ in a row in a string, you want to substitute it with a variable?
<tia> yes correct
<tobiasvl> tia: str.gsub!(/___/, person_name)
<tobiasvl> ?
<tobiasvl> or without the bang. at any rate: https://ruby-doc.org/core-2.1.4/String.html#method-i-gsub
Kug3lis is now known as Kug3lis_off
Kug3lis_off is now known as Kug3lis
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 240 seconds]
<tia> thanks @tobiasvl letme try this
blackmesa has joined #ruby
flying has joined #ruby
<tobiasvl> tia: oh, "more than 3 times", I forgot that part, sorry
etehtsea has joined #ruby
<tia> yeah,already tried this solution
Kug3lis has joined #ruby
SCHAAP137 is now known as SCHAPiE
<tobiasvl> str.gsub(/_{3,}/, person_name)
<herwin> that is "more than 2" ;)
<tobiasvl> _{4,} !!!!!!!!!
Fernando-Basso has joined #ruby
<tobiasvl> I'll get more coffee
nadir has joined #ruby
<tia> @tobiasvl thanks you so much. its working
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jgnagy has joined #ruby
xall has joined #ruby
astrobunny has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 258 seconds]
nowhere_man has quit [Ping timeout: 240 seconds]
etehtsea has quit [Ping timeout: 240 seconds]
jgnagy has quit [Ping timeout: 240 seconds]
acalycine has quit [Quit: bye]
StoneCypher has joined #ruby
etehtsea has joined #ruby
etehtsea has quit [Client Quit]
StoneCypher has quit [Ping timeout: 260 seconds]
etehtsea has joined #ruby
blackmesa has joined #ruby
xall has quit [Ping timeout: 240 seconds]
GodFather has quit [Ping timeout: 256 seconds]
govg has joined #ruby
mnem is now known as mnemon
mnemon has quit [Changing host]
mnemon has joined #ruby
Kug3lis has quit [Quit: Textual IRC Client: www.textualapp.com]
Silthias has joined #ruby
armyriad has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 260 seconds]
armyriad has joined #ruby
toretore has joined #ruby
gnufied has joined #ruby
lhambley has joined #ruby
GodFather has joined #ruby
ldnunes has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
etehtsea has quit [Quit: Textual IRC Client: www.textualapp.com]
thistle has joined #ruby
Qommand0r has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
bsartek has joined #ruby
galeido has joined #ruby
sepp2k has joined #ruby
xall has joined #ruby
thistle has quit [Ping timeout: 246 seconds]
binaryplease1 has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
binaryplease has quit [Ping timeout: 256 seconds]
synthroid has joined #ruby
xall has quit [Ping timeout: 260 seconds]
marr has joined #ruby
binaryplease1 is now known as binaryplease
xall has joined #ruby
Guest96 has quit [Remote host closed the connection]
Guest96 has joined #ruby
hutch34 has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
xall has quit [Ping timeout: 240 seconds]
hutch34_ has joined #ruby
cow[baby] has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
synthroi_ has joined #ruby
hutch34 has joined #ruby
ruby-lang396 has joined #ruby
synthroid has quit [Ping timeout: 240 seconds]
<ruby-lang396> Ищем разработчка RoR
hutch34_ has quit [Ping timeout: 240 seconds]
t-recx has joined #ruby
rwb has quit [Ping timeout: 264 seconds]
hanmac has quit [Ping timeout: 256 seconds]
sts has joined #ruby
<sts> hello folks. whats the best way to provide a clean interface to a method to be called from both, class and instance methods?
HoierM has joined #ruby
loechel has joined #ruby
Pumukel has quit [Remote host closed the connection]
mim1k has joined #ruby
<sts> the constructor of Puppet::Puppet_X::Checkmk::Wato also does some file operations, which could be cut in case it doesn't create a new instance everytime the class is called.
hutch34 has quit [Ping timeout: 260 seconds]
ruby-lang396 has quit [Ping timeout: 260 seconds]
loechel has quit [Remote host closed the connection]
Pumukel has joined #ruby
vuoto has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
govg has quit [Ping timeout: 260 seconds]
hanmac has joined #ruby
tia has quit [Quit: Leaving]
hutch34 has joined #ruby
mr_foto has joined #ruby
lenwood has joined #ruby
nowhere_man has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
jusa has joined #ruby
jaruga has joined #ruby
xall has joined #ruby
Pumukel has quit [Remote host closed the connection]
mr_foto has quit []
Pumukel has joined #ruby
IRCFrEAK has joined #ruby
lenwood has quit [Ping timeout: 268 seconds]
IRCFrEAK has left #ruby [#ruby]
jusa has quit [Ping timeout: 260 seconds]
papillon has joined #ruby
Pumukel has quit [Ping timeout: 260 seconds]
xall has quit [Ping timeout: 260 seconds]
aryaching has quit [Ping timeout: 240 seconds]
aupadhye has joined #ruby
cfec0b8d has joined #ruby
hutch34 has joined #ruby
__Yiota has joined #ruby
Hz has joined #ruby
duckpupp1 has joined #ruby
erlend has quit [Read error: Connection reset by peer]
My_Hearing has joined #ruby
scottj has joined #ruby
<Burgestrand> sts Your situation is slightly complicated by, from my understanding, the fact that you wish to keep the new Wato instance around?
Mon_Ouie has quit [Read error: Connection reset by peer]
__Yiota has quit [Client Quit]
hutch34 has quit [Ping timeout: 260 seconds]
__Yiota has joined #ruby
__Yiota has quit [Client Quit]
erlend has joined #ruby
KnownSyntax has quit [Read error: Connection reset by peer]
My_Hearing is now known as Mon_Ouie
Hz has quit [Quit: 离开]
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cfec0b8d has quit [Ping timeout: 256 seconds]
cfec0b8d has joined #ruby
cdg has joined #ruby
KnownSyntax has joined #ruby
ResidentBiscuit has joined #ruby
StoneCypher has joined #ruby
ResidentBiscuit has quit [Ping timeout: 246 seconds]
electrostat has quit [Read error: Connection reset by peer]
electrostat has joined #ruby
uncertainty has quit [Ping timeout: 264 seconds]
StoneCypher has quit [Ping timeout: 240 seconds]
blackmesa has joined #ruby
vali has quit [Quit: vali]
thistle has joined #ruby
uncertainty has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
ramortegui has joined #ruby
DLSteve has joined #ruby
Pumukel has joined #ruby
blackmesa has joined #ruby
rwb has joined #ruby
libastral has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
hutch34 has joined #ruby
Mon_Ouie has quit [Read error: No route to host]
Mon_Ouie has joined #ruby
uncertainty has quit [Ping timeout: 264 seconds]
libastral has joined #ruby
papillon has quit [Quit: Mutter: www.mutterirc.com]
binaryplease has quit [Ping timeout: 240 seconds]
jaruga has quit [Ping timeout: 260 seconds]
uncertainty has joined #ruby
gdonald has quit [Ping timeout: 240 seconds]
binaryplease has joined #ruby
arooni has quit [Quit: ZNC - http://znc.in]
electrostat has quit [Quit: uwotm8]
gdonald has joined #ruby
bkxd has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
arooni has joined #ruby
houhoulis has joined #ruby
Pumukel has quit []
catphish has joined #ruby
electrostat has joined #ruby
<catphish> would anyone be able to explain this error to me: Errno::EPERM Operation not permitted - sendto(2) for "udp.apalyze.io" port 13443
bkxd has quit [Ping timeout: 240 seconds]
<catphish> you'd think that error would be self-explanatory, but there's a snag, EPERM is not an error in sendto(2)
Pumukel has joined #ruby
chouhoulis has joined #ruby
kill_init has joined #ruby
hutch34_ has joined #ruby
jgnagy has joined #ruby
kill_init has quit [Read error: Connection reset by peer]
acalycine has joined #ruby
xall has joined #ruby
hutch34 has quit [Ping timeout: 260 seconds]
<catphish> i think it means a buffer got full
Exagone313 has joined #ruby
jamesaxl has quit [Quit: WeeChat 1.6]
xall has quit [Ping timeout: 240 seconds]
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
shinnya has joined #ruby
hutch34_ has quit [Ping timeout: 260 seconds]
jamesaxl has joined #ruby
Qchmqs has quit [Ping timeout: 240 seconds]
xall has joined #ruby
fuzzyhorns has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ozcanesen has joined #ruby
Qchmqs has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
millerti has joined #ruby
xall has quit [Ping timeout: 256 seconds]
<Verity> ruby works well
<Verity> that's why it's often silent in here for extended periods
ta_ has quit [Remote host closed the connection]
zipace has joined #ruby
Rodya_ has joined #ruby
aufi has quit [Quit: Leaving]
aglorei has quit [Ping timeout: 240 seconds]
hxegon_afk is now known as hxegon
StoneCypher has joined #ruby
jamesaxl has quit [Ping timeout: 258 seconds]
jamesaxl has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aryaching has joined #ruby
JoshS has joined #ruby
StoneCypher has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Remote host closed the connection]
cpruitt has joined #ruby
<catphish> Verity: true story
ResidentBiscuit has joined #ruby
<ResidentBiscuit> /j #rubyonrails
<bougyman> /part
chouhoulis has joined #ruby
<ResidentBiscuit> shhh
chouhoulis has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
anisha has quit [Quit: Leaving]
GodFather has quit [Ping timeout: 256 seconds]
aglorei has joined #ruby
__Yiota has joined #ruby
last_staff has quit [Quit: last_staff]
Qchmqs has quit [Ping timeout: 260 seconds]
__Yiota has quit [Client Quit]
gdonald has quit [Read error: Connection reset by peer]
DroidBurgundy has joined #ruby
Qchmqs has joined #ruby
gdonald has joined #ruby
__Yiota has joined #ruby
hutch34_ has joined #ruby
uncertainty has quit [Ping timeout: 256 seconds]
houhoulis has quit [Remote host closed the connection]
azwieg104 has quit [Quit: leaving]
uncertainty has joined #ruby
azwieg103 has joined #ruby
jgnagy has quit [Remote host closed the connection]
jgnagy has joined #ruby
uncertainty has quit [Ping timeout: 240 seconds]
armando has quit [Remote host closed the connection]
ltem has joined #ruby
plantfood has quit [Ping timeout: 256 seconds]
armando1 has joined #ruby
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jusa has joined #ruby
catphish has left #ruby ["Leaving"]
jgnagy has quit [Ping timeout: 264 seconds]
TomyWork has quit [Ping timeout: 240 seconds]
yurikoles has joined #ruby
aupadhye_ has joined #ruby
electrostat has quit [Quit: uwotm8]
electrostat has joined #ruby
jusa has quit [Ping timeout: 246 seconds]
aupadhye has quit [Ping timeout: 268 seconds]
tvw has quit [Read error: Connection reset by peer]
cow[baby] has left #ruby [#ruby]
BTRE has quit [Quit: Leaving]
georgie has joined #ruby
patarr has joined #ruby
rippa has joined #ruby
aganov has quit [Remote host closed the connection]
kazo has joined #ruby
gusrub has joined #ruby
plantfood has joined #ruby
fuzzyhorns has left #ruby [#ruby]
bkxd has joined #ruby
LuckyABA has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
acalycine has quit [Quit: bye]
electrostat has quit [Quit: uwotm8]
gusrub has quit [Ping timeout: 240 seconds]
electrostat has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
mark_66 has quit [Remote host closed the connection]
bkxd has joined #ruby
agent_white has joined #ruby
<agent_white> Mornin' folks
antgel has quit [Ping timeout: 246 seconds]
jacobshaw has joined #ruby
Lord_of_Life has joined #ruby
BTRE has joined #ruby
minimalism has joined #ruby
<Verity> 'afternoon
* Verity goes to lunch
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
ResidentBiscuit has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Burgestrand has quit [Quit: Closing time!]
bkxd has quit [Ping timeout: 268 seconds]
zipace has quit [Disconnected by services]
ziprar has joined #ruby
Mon_Ouie has quit [Read error: No route to host]
uncertainty has joined #ruby
mazeinmaze_ has joined #ruby
StoneCypher has joined #ruby
TomyLobo has joined #ruby
Rodya_ has quit [Remote host closed the connection]
BTRE has quit [Quit: Leaving]
mazeinmaze_ has quit [Ping timeout: 260 seconds]
nowhere_man has quit [Read error: Connection reset by peer]
kallisti5 has joined #ruby
kallisti5 has left #ruby [#ruby]
nowhere_man has joined #ruby
ResidentBiscuit has joined #ruby
Mon_Ouie has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
ixti has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
conta has quit [Ping timeout: 240 seconds]
gregf_ has joined #ruby
jgnagy has joined #ruby
electrostat has quit [Quit: uwotm8]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
electrostat has joined #ruby
BTRE has joined #ruby
uncertainty has quit [Ping timeout: 246 seconds]
uncertainty has joined #ruby
amclain has joined #ruby
JoshS has quit [Quit: Leaving]
dionysus69 has joined #ruby
__Yiota has joined #ruby
electrostat has quit [Client Quit]
DroidBur_ has joined #ruby
Lord_of_Life has quit [Excess Flood]
dionysus69 has quit [Client Quit]
uncertainty has quit [Ping timeout: 240 seconds]
tristanp has quit [Ping timeout: 264 seconds]
electrostat has joined #ruby
DroidBurgundy has quit [Ping timeout: 264 seconds]
uncertainty has joined #ruby
Lord_of_Life has joined #ruby
aufi has joined #ruby
synthroid has joined #ruby
antoniobeyah has joined #ruby
uncertainty has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
juggler has joined #ruby
tristanp has joined #ruby
synthroi_ has quit [Ping timeout: 268 seconds]
cout has joined #ruby
tolerablyjake has joined #ruby
gigetoo has joined #ruby
jsrn_ has quit [Quit: Leaving]
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
kazo has quit [Quit: Page closed]
marxarelli has joined #ruby
FoX_77 has joined #ruby
<FoX_77> hi
<FoX_77> puts "How is everyone?"
blackmesa has quit [Ping timeout: 246 seconds]
<apeiros> hi FoX_77, I'm fine, leaving in a minute to do some exercises - how are you?
<FoX_77> if Ruby_Channel == nil ; puts "To Bad So Sad... :-( "; else puts "Sweet" ; end
<FoX_77> Good
<FoX_77> i was thinking about going to gym to
<FoX_77> i just finished Codeacademy segment one
<havenwood> g'mornin'
tau has quit [Ping timeout: 240 seconds]
synthroid has quit []
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
tlaxkit has quit [Quit: tlaxkit]
scottj has quit [Quit: leaving]
cagomez has joined #ruby
blackmesa has joined #ruby
glyfrp has joined #ruby
bkxd has joined #ruby
tau has joined #ruby
Pumukel has quit [Ping timeout: 258 seconds]
mim1k has quit [Ping timeout: 260 seconds]
synthroid has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
jacobshaw has quit [Ping timeout: 260 seconds]
glyfrp has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 264 seconds]
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
nitric has joined #ruby
<hxegon> seems to be a pretty thorough series
Qchmqs has quit [Ping timeout: 256 seconds]
ta_ has joined #ruby
synthroid has quit []
dcluna has quit [Ping timeout: 240 seconds]
dcluna has joined #ruby
jcao219 has joined #ruby
synthroid has joined #ruby
electrostat has quit [Quit: uwotm8]
hahuang65 has joined #ruby
electrostat has joined #ruby
shinnya has quit [Ping timeout: 258 seconds]
mim1k has joined #ruby
rakm has joined #ruby
juggler has quit [Ping timeout: 246 seconds]
synthroi_ has joined #ruby
kassav_ has quit [Ping timeout: 260 seconds]
synthroid has quit [Ping timeout: 240 seconds]
Yxhuvud has quit [Read error: Connection reset by peer]
mim1k has quit [Ping timeout: 240 seconds]
Yxhuvud has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
tildes has joined #ruby
uncertainty has joined #ruby
kies has quit [Ping timeout: 240 seconds]
bsartek has quit [Quit: This computer has gone to sleep]
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
binaryplease has quit [Ping timeout: 264 seconds]
gusrub has joined #ruby
gusrub has quit [Client Quit]
mim1k has joined #ruby
osliusar has joined #ruby
nowhere_man has joined #ruby
gusrub has joined #ruby
_sfiguser has quit [Ping timeout: 260 seconds]
bsartek has joined #ruby
renchan has quit [Quit: Leaving...]
knight33 has joined #ruby
MasterNayru has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 256 seconds]
MasterNayru has joined #ruby
kies has joined #ruby
aufi has quit [Quit: Leaving]
[Butch] has joined #ruby
blackmesa has joined #ruby
Arpanet69 has quit [Ping timeout: 260 seconds]
Ishido has joined #ruby
_sfiguser has joined #ruby
kiltzman has quit [Ping timeout: 240 seconds]
binaryplease has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
bsartek has quit [Ping timeout: 240 seconds]
flying has quit []
thistle has quit [Read error: Connection reset by peer]
duderonomy has quit [Ping timeout: 268 seconds]
kiltzman has joined #ruby
kiltzman has quit [Max SendQ exceeded]
thistle has joined #ruby
kiltzman has joined #ruby
andikr has quit [Remote host closed the connection]
osliusar has quit [Remote host closed the connection]
thistle has quit [Read error: Connection reset by peer]
bsartek has joined #ruby
thistle has joined #ruby
Xiti has joined #ruby
jusa has joined #ruby
thistle has quit [Read error: Connection reset by peer]
thistle has joined #ruby
tildes has quit [Ping timeout: 240 seconds]
nowhere_man has quit [Quit: Konversation terminated!]
nowhere_man has joined #ruby
Sweetlie has quit [Quit: leaving]
Sweetlie has joined #ruby
mello has joined #ruby
flujan has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has joined #ruby
vuoto has joined #ruby
shoutsid has quit [Remote host closed the connection]
duderonomy has joined #ruby
vuoto has quit [Client Quit]
AndBobsYourUncle has joined #ruby
nowhere_man has quit [Remote host closed the connection]
<Phage> Hey guys. IS Ruby pre-installed on linux these days?
Robtop__ has joined #ruby
<baweaver> in most cases it seems so
<baweaver> depends on the distro really
zipace has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 246 seconds]
ziprar has quit [Ping timeout: 240 seconds]
solocshaw has joined #ruby
<adam12> It is on openSUSE, as Yast2 is built in Ruby.
<FoX_77> yea it is
<Phage> All right... I’m mostly interested in Debian and RPM based distros
<baweaver> though if you're doing Ruby dev chances are high you don't want system or package ruby
<FoX_77> sorry was trying to figure out why nil and empty? and present? was and not working
<KevinMGranger> Even if it's not present by default, it's easy to get.
<baweaver> that one tends to be fairly standard
<Phage> I’m not looking to install it
<Phage> I’m simply trying to figure out if I should use Python or Ruby for this
<Phage> Sadly it seems Python will win this time, since it’s pre-installed on mostly everything
gdonald has quit [Read error: Connection reset by peer]
<Phage> Just sad that I can’t use Ruby :(
<Phage> ‘cause screw Python’s OOP implementation
gdonald has joined #ruby
<FoX_77> you should be !!! Ruby is better :-) lol
<baweaver> Ruby is in RHEL by default, and probably Ubuntu
<FoX_77> Fox_77 earns.. 100 Points !!!
solocshaw has quit [Ping timeout: 246 seconds]
hxegon is now known as hxegon_afk
__Yiota has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
__Yiota has joined #ruby
vuoto has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
<FoX_77> this is madness ... im bored
chouhoulis has joined #ruby
gigetoo has joined #ruby
<FoX_77> that came from one present? method i was woundering about
__Yiota has quit [Read error: Connection reset by peer]
<FoX_77> require 'rails'
<FoX_77> would of helped lol
pulkit4tech has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
tolerablyjake has joined #ruby
__Yiota has joined #ruby
vuoto has quit [Remote host closed the connection]
xzhao_ has quit [Quit: No Ping reply in 180 seconds.]
xzhao_ has joined #ruby
<apeiros> what's up with people saying "would of" instead of "would have"?
HoierM has quit [Ping timeout: 258 seconds]
<baweaver> would it of mattered?
<apeiros> it reads weird, and I don't think it's correct. but I see it often and I'm not a native speaker…
ozcanesen has joined #ruby
HoierM has joined #ruby
<apeiros> now I wonder whether it's an outright mistake, a slang, a meme or something else even
<havenwood> apeiros: the contraction "could've" sounds like "could of"
<havenwood> coulda
<dminuoso> havenwood: And is just proof that those folks are idiots. No time or keystrokes are saved by typing could of.
<dminuoso> All it does it make people look like idiots.
Guest52078 is now known as alamar
<apeiros> dminuoso: that's not nice
<apeiros> there's plenty of intelligent people who fail badly at grammar and orthography
<apeiros> even more so in foreign languages
jusa has quit [Ping timeout: 258 seconds]
<dminuoso> apeiros: We should do a case study.
<apeiros> meh, conducting studies is boring af :)
<havenwood> FoX_77: You don't even need to require all of Rails, you can just cherry pick the part you need: require 'active_support/core_ext/object/blank'
<havenwood> FoX_77: Woof!
<havenwood> FoX_77: That's a good use of Array#sample, nice.
<dminuoso> apeiros: Yeah, it's kind've boring.
<apeiros> lol
<havenwood> FoX_77: You should avoid `true == true` like on like 13. Just `if dog_say.empty?` will already return `true` or `false`.
<havenwood> FoX_77: Same with line 31.
<havenwood> etc
<havenwood> On line 43 you can drop the #to_s, since #puts will #to_s for you.
Xiti has quit [Quit: Xiti]
Bock has quit [Remote host closed the connection]
cdg has quit [Ping timeout: 268 seconds]
<herwin> we had a discussion at my work today about the best code review tool, looks like we forgot to include irc ;)
workmad3 has quit [Ping timeout: 260 seconds]
<StoneCypher> how do i step in pry
<jhass> get pry-byebug and then say step ;)
toretore has quit [Ping timeout: 246 seconds]
<StoneCypher> what?
<StoneCypher> i'm already in a pry console
<StoneCypher> is there no stepping?
<jhass> pry is a REPL, pry-byebug adds debugger features
binaryplease has quit [Ping timeout: 246 seconds]
<StoneCypher> but the repl already has debugger features and none of the tutorials mention that >:(
<StoneCypher> ok cool
<baweaver> StoneCypher === DreamInCode astonecipher ?
toretore has joined #ruby
<StoneCypher> baweaver: no. it's a semi-common british last name; a specific kind of druid.
<baweaver> Ah
<StoneCypher> jhass: that seems to have been what i wanted. thanks
FoX_77 has quit [Quit: Leaving...]
jaruga has joined #ruby
jaruga has quit [Remote host closed the connection]
jaruga has joined #ruby
plantfood has quit [Quit: Leaving]
cfec0b8d has quit [Quit: Leaving.]
blackmesa has joined #ruby
cfec0b8d has joined #ruby
cfec0b8d has quit [Ping timeout: 268 seconds]
govg has joined #ruby
jcao219 has quit [Ping timeout: 240 seconds]
<jokke> hi
<jokke> i have some trouble with HTTPClient
<jokke> it's apparently not reusing connections
<jokke> see the following test code: https://p.jreinert.com/ZArI/
<jokke> i have a server which certainly supports reusing connections and does so when i use curl as a client
<jokke> it doesn't however with HTTPClient which clearly advertises that it is threadsafe and reuses connections
<jokke> anyone experiencing similar behavior
<jokke> ?
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
muelleme_ has joined #ruby
cfec0b8d has joined #ruby
solocshaw has joined #ruby
Snickers has joined #ruby
[Butch] has quit [Quit: [Butch]]
[Butch] has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
muelleme_ has quit [Ping timeout: 240 seconds]
tildes has joined #ruby
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sandroqz has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
jcao219 has joined #ruby
cagomez has quit [Remote host closed the connection]
mrconfused has joined #ruby
jaequery has joined #ruby
knight33 has joined #ruby
skweek has quit [Remote host closed the connection]
thistle has quit []
<Lyfe> Anyone know of a decent document describing using minitest specs with a Grape API that you're building?
sandroqz has quit [Quit: Leaving]
jcao219 has quit [Ping timeout: 240 seconds]
tildes has quit [Ping timeout: 240 seconds]
duckpupp1 has quit [Ping timeout: 260 seconds]
pavelz has joined #ruby
Lord_of_Life has quit [Excess Flood]
<pavelz> hi, have a small q, what the diff between str.each_byte and str.enum_for(:each_byte) ..?
<matthewd> pavelz: Nothing
<pavelz> both return enum
<pavelz> just wondering cuz is in example )
gigetoo has quit [Ping timeout: 260 seconds]
gigetoo has joined #ruby
<matthewd> pavelz: each_byte is implemented by calling enum_for/to_enum, using the pattern shown in the `repeat` example
Lord_of_Life has joined #ruby
dionysus69 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
[Butch] has quit [Quit: I'm out . . .]
redondos_ has quit [Changing host]
redondos_ has joined #ruby
flujan has quit [Quit: flujan]
redondos_ is now known as redondos
txdv has joined #ruby
bkxd has joined #ruby
esObe_ has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 260 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
bkxd has quit [Ping timeout: 258 seconds]
<pavelz> matthewd: thanks!
Ishido has quit [Ping timeout: 246 seconds]
[Butch] has joined #ruby
faelkle has joined #ruby
faelkle has joined #ruby
faelkle has quit [Changing host]
<jhass> !unmute txdv
<txdv> yoohoo
gigetoo has joined #ruby
oded has joined #ruby
Ishido has joined #ruby
faelkle has quit [Client Quit]
Guest96_ has joined #ruby
Guest96 has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
Robtop__ is now known as pwnd_nsfw
rgtk has joined #ruby
sepp2k has quit [Ping timeout: 260 seconds]
pulkit4tech has quit [Quit: Connection closed for inactivity]
pupsicle has quit [Remote host closed the connection]
DroidBur_ has quit []
jusa has joined #ruby
cdg has joined #ruby
Snickers has quit [Read error: No route to host]
solocshaw has joined #ruby
nahra` has quit [Remote host closed the connection]
nahra` has joined #ruby
chouhoul_ has joined #ruby
jusa has quit [Ping timeout: 240 seconds]
volix has quit [Remote host closed the connection]
cagomez has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
chouhoul_ has quit [Remote host closed the connection]
pupsicle has joined #ruby
binaryplease has joined #ruby
chouhoulis has joined #ruby
cfec0b8d has quit [Remote host closed the connection]
cagomez has quit [Ping timeout: 260 seconds]
cagomez has joined #ruby
enterprisey has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
ltem has quit [Quit: Leaving]
ResidentBiscuit has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ResidentBiscuit has joined #ruby
marxarelli is now known as marxarelli|afk
rwb has quit [Ping timeout: 264 seconds]
SeepingN_ has joined #ruby
SeepingN has quit [Disconnected by services]
solocshaw has quit [Ping timeout: 268 seconds]
SeepingN_ is now known as SeepingN
vali has joined #ruby
Xiti has joined #ruby
tildes has joined #ruby
tildes has quit [Ping timeout: 246 seconds]
millerti has joined #ruby
Xiti has quit [Quit: Xiti]
aglorei has quit [Remote host closed the connection]
ledestin has joined #ruby
binaryplease has quit [Quit: binaryplease]
synthroi_ has quit []
esObe_ has joined #ruby
edgr has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
esObe_ has quit [Ping timeout: 240 seconds]
tommylommykins has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
aglorei has joined #ruby
Snickers has joined #ruby
nahra` has quit [Remote host closed the connection]
nahra` has joined #ruby
chrisseaton has joined #ruby
<chrisseaton> Hi does anyone have a good understanding of the relationship between Digest and OpenSSL::Digest? The later just subclasses the former, right? Why is it like that?
gigetoo has joined #ruby
<matthewd> chrisseaton: I thought they were unrelated
jenrzzz has joined #ruby
<chrisseaton> I have `cDigest = rb_define_class_under(mOSSL, "Digest", rb_path2class("Digest::Class"));`, but I'm just not sure of the history of all this
<ytti> irb(main):001:0> "u173".to_i(32)
<ytti> irb(main):002:0> "u173z".to_i(32)
<ytti> => 984291
<ytti> => 984291
<ytti> why?
<SeepingN> "u173anythingyouwantheretheyarentnumbers".to_i(32)
Azure has quit [Read error: Connection reset by peer]
samdvr has joined #ruby
<ytti> i guess ruby is using base32 variant not coding z
nahra` has quit [Remote host closed the connection]
<ytti> i would have assumed standard RFC variant
<SeepingN> ah, yes. Goes to v
<SeepingN> >> "u173anythingyouwantheretheyarentnumbers".to_i(32)
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ruby[bot]> SeepingN: # => 1007914327 (https://eval.in/767863)
<SeepingN> heh yeah, I was way off
<matthewd> chrisseaton: Looks like it saves a duplicate definition of hexdigest, for example
nahra` has joined #ruby
nahra` has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 260 seconds]
Arpanet69 has joined #ruby
Jayson_Virissimo has joined #ruby
Azure has joined #ruby
ldnunes has quit [Quit: Leaving]
bkxd has joined #ruby
vali has quit [Ping timeout: 264 seconds]
jaruga has quit [Quit: jaruga]
RobertBirnie has joined #ruby
AvengerX has joined #ruby
bkxd has quit [Ping timeout: 268 seconds]
<AvengerX> I wonder if there's a way to catch stderr from IO.popen() with something like: stdout_var, stderr_var = popen(["ls", "-l"]) - or - stdout_var = popen(["ls", "-l"], :err=>[:child, stderr_var]) ?
<AvengerX> I don't want to just merge stdout to stderr, but I did also want not to use the popen() do | stdout, stderr | { ... } syntax
__Yiota has joined #ruby
<havenwood> AvengerX: Maybe consider if an Open3 method would be more suited to your situation?: https://docs.ruby-lang.org/en/2.4.0/Open3.html
__Yiota has quit [Client Quit]
<AvengerX> hmmm thanks havenwood. I was trying to figure a way to use IO.popen() instead. I couldn't find a docs on what can I use on IO.popen()'s "opts". I see I can use :err=>[:child, :out], :external_encoding=>"something", :internal_encoding=>"something" but can't find an actual reference of what can be there.
gigetoo has joined #ruby
rwb has joined #ruby
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JoshS has joined #ruby
samdvr has quit [Quit: samdvr]
__Yiota has joined #ruby
ramortegui has quit [Remote host closed the connection]
JoshS has quit [Client Quit]
rizonz has joined #ruby
<rizonz> hi guys
<rizonz> I have some issue with some url where I need to remove lots of parts from
tau has quit [Remote host closed the connection]
<rizonz> this is my URL ftp://mirror.nl.leaseweb.net/fedora/linux/releases/25/Everything/
LuckyABA has joined #ruby
<havenwood> rizonz: What are you trying to get at?
<rizonz> now I need a ftp://mirror.nl.leaseweb.net/fedora/linux/updates/25 as well
<rizonz> but my source is the releases one
<SeepingN> .......25/Everything/../
<rizonz> I need to get the absolute path ftp://mirror.nl.leaseweb.net/fedora/linux/
<SeepingN> may or may nto work depending on the server
<rizonz> it's for kickstart
lhambley has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aupadhye_ has quit [Ping timeout: 260 seconds]
<AvengerX> isn't it regexp you need? http://ruby-doc.org/core-2.4.1/Regexp.html
<rizonz> can I dist it out ?
<al2o3-cr> AvengerX: out, err, _ = Open3.capture3('ls -l')
TomyLobo has quit [Ping timeout: 264 seconds]
<AvengerX> rizons: ruby -e 'a="ftp://mirror.nl.leaseweb.net/fedora/linux/releases/25/Everything/"' -e 'b=a.gsub(/\/releases\//, "\/updates\/")' -e 'puts("original: " + a)' -e 'puts("modified: " + b)'
<AvengerX> to start with, maybe this help
<AvengerX> al2o3-cr: thanks!
<al2o3-cr> np
<AvengerX> isn't there any leads how to mangle with the :err[:child, :out] parameter in the IO.popen at all? I was hoping there were something that could be done with that, google didn't help at all.
<rizonz> AvengerX: ok thanksa
cagomez has quit [Remote host closed the connection]
<matthewd> AvengerX: Why are you trying so hard to avoid open3? :/
ozcanesen has quit [Quit: Textual IRC Client: www.textualapp.com]
chrisseaton has left #ruby [#ruby]
<AvengerX> I think now it is of curiosity. I could find no documentation about that options IO.popen takes. Maybe there's ways to do this without any requires and all. Just feels the code would look "simpler"
cagomez has joined #ruby
dionysus69 has quit [Ping timeout: 258 seconds]
<StoneCypher> hi, i'm sorry for the intensely stupid question. in pry-byebug, both step and next seem to step into. how do i just step over?
<matthewd> AvengerX: You're looking for http://ruby-doc.org/core/Kernel.html#method-i-spawn, for the options
<StoneCypher> the manual only lists break, step, next, finish, continue, and backtrace/up/down/frame
<matthewd> AvengerX: But no, there's really not a way to do what you want while avoiding the library that's there to do this very thing
<matthewd> StoneCypher: next is what you want; if it's not behaving as you expect, you'll need to give more info
<StoneCypher> i have a method on which i'm stopped a line. i type next and expect to be stopped at the next line. instead it's dived into some utility method on mongo.
<StoneCypher> i am not aware of a relevant error at the time.
<matthewd> Is there a breakpoint on said line?
<StoneCypher> no. i want step over, not continue to next breakpoint.
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<matthewd> !gist the session?
<StoneCypher> moment. (but really i just want to know how to step over)
SeepingN has joined #ruby
<AvengerX> thanks matthewd!
<AvengerX> about the rizonz question above, there's also a nice syntax for rexep on ruby: ruby -e 'a="ftp://mirror.nl.leaseweb.net/fedora/linux/releases/25/Everything/"' -e 'puts("original: " + a)' -e 'puts("modified: " + a[/(.*\/)releases\/.*/, 1] + "updates" + a[/.*\/releases(\/.*\/)Everything\//, 1])'
<AvengerX> well, golfed like that maybe it does not look as cool. hehe
Arpanet69 has quit [Ping timeout: 260 seconds]
<baweaver> >> "ftp://mirror.nl.leaseweb.net/fedora/linux/releases/25/Everything/".split('releases').last.split('/').first
<ruby[bot]> baweaver: # => "" (https://eval.in/767913)
<baweaver> >> "ftp://mirror.nl.leaseweb.net/fedora/linux/releases/25/Everything/".split('releases').last.split('/')
<ruby[bot]> baweaver: # => ["", "25", "Everything"] (https://eval.in/767914)
<baweaver> >> "ftp://mirror.nl.leaseweb.net/fedora/linux/releases/25/Everything/".split('/releases/').last.split('/')
<ruby[bot]> baweaver: # => ["25", "Everything"] (https://eval.in/767915)
<baweaver> ah
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
esObe_ has joined #ruby
<StoneCypher> baweaver: please use a local repl instead of making hundreds of people watch you use the bot
<AvengerX> cool, matthewd! You beaten it to the documentation-finding-skills! hehe
<matthewd> StoneCypher: That's not a step, because it doesn't end up at the top of find_by
<baweaver> >> "ok"
<ruby[bot]> baweaver: # => "ok" (https://eval.in/767916)
jgt has quit [Ping timeout: 240 seconds]
<matthewd> StoneCypher: Also, it's ending up in a nested pry context
binaryplease has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
<matthewd> (I think -- given the '[1]')
<StoneCypher> matthewd: all i did was type next, per your instruction
<matthewd> But I think my best theory is still that there's a breakpoint set on that line
<StoneCypher> there isn't
<StoneCypher> unless breakpoints could be stored in github somehow
<StoneCypher> because i just downloaded this repo a couple hours ago, and i don't know how to set a breakpoint
<StoneCypher> can someone tell me how to step over in pry-byebug, please
<matthewd> StoneCypher: Asked and answered
<StoneCypher> sorry, no, next isn't step over
<StoneCypher> thanks though
jdm has joined #ruby
<StoneCypher> can someone else please tell me how to step over? as you can see from the docs and the logs, next is not what i'm actually asking for
<matthewd> > next: Step over to the next line within the same frame.
<matthewd> StoneCypher: Do not PM.
<baweaver> not a great way to make friends
<StoneCypher> matthewd: are you an op? i want to know if it's safe to use /ignore
<baweaver> StoneCypher: be nice
<StoneCypher> i am.
<matthewd> I was trying to help you work out why the correct command isn't working for you; you were already ignoring me by instead re-asking the original question
<StoneCypher> baweaver: i just want someone else to answer, because this gentleman is confused about what i'm asking for, and isn't taking the polite hint
<baweaver> because I most certainly am an op and not nearly as patient :)
<baweaver> ps: that was a polite hint too
<StoneCypher> i am aware.
<StoneCypher> can someone please tell me how to step over in pry-byebug? as you can see from the log, typing 'next' does not stop at the next line.
<StoneCypher> and/or what i'm failing to understand.
<matthewd> StoneCypher: It's getting interrupted before it gets to the next line
jusa has joined #ruby
Rodya_ has joined #ruby
patarr has quit [Ping timeout: 246 seconds]
binaryplease has quit [Quit: binaryplease]
DTZUZU has quit [Ping timeout: 260 seconds]
jusa has quit [Ping timeout: 260 seconds]
<Radar> ?popcorn
<ruby[bot]> It's popcorn time! 🍿🍿🍿
postmodern has joined #ruby
rakm has joined #ruby
biberu has quit [Read error: Connection reset by peer]
<AvengerX> matthewd: now I know how it works :B
<AvengerX> ruby -e 'stderr_r, stderr_w = IO.pipe' -e 'result = IO.popen([ "ls", "-l", "invalid_file.ext" ], :err=>stderr_w)' -e 'stderr_w.close()' -e 'p result.readlines' -e 'puts "========="' -e 'p stderr_r.readlines' -e 'stderr_r.close()'
<AvengerX> thanks for the link!
<matthewd> AvengerX: Note that isn't safe; you really want open3
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<AvengerX> okay, noted!
hutch34_ has quit [Ping timeout: 246 seconds]
<havenwood> AvengerX: Open3 is in the stdlib. I can't think of a reason to avoid it.
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
<matthewd> AvengerX: "Isn't safe" here == "will hang forever, depending on the command's output"
<AvengerX> yup, I reproduced this before I closed both FDs. :)
<matthewd> (but yes, it's still neat to know how it works)
LuckyABA has joined #ruby
<matthewd> Oh, right, I missed that you were closing stderr_w. At a glance, I think that'll prevent it from hanging.
<matthewd> It'll also mean you potentially don't see any of the stderr output, of course
<AvengerX> I can close it as soon as I'm done writing to it (after popen()). Then I can read it at will thru stderr_r. Until I close it, that is.
TomyLobo has joined #ruby
marxarelli|afk is now known as marxarelli
<AvengerX> I guess idea is read what I have to (write to stderr_w), bind that to a variable (copy whatever is in stderr_r over), and close them.
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
<AvengerX> and also I was frustrated on finding no docs on the :err and FDs usage!.. I still think it is a problem with the docs having no reference at least once in the class for where that is taken from. (used in IO but taken from Kernel). I was really helpless trying to find that.
enterprisey has quit [Remote host closed the connection]
<matthewd> AvengerX: I promise the above will not work reliably. But I'm afraid I'm too tired to keep trying to convince you, so.. you do you.
<AvengerX> Don't worry, I used that only for educational purposes hehe
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<AvengerX> Now that I know it is on spawn I found in the examples there's a reference to Kernel.spawn there. hehehe (on IO.popen() docs)
gigetoo has quit [Ping timeout: 264 seconds]
SeepingN has joined #ruby
gigetoo has joined #ruby
<matthewd> It does seem like it could be more explicit, with a line like the ones on Kernel#system and Kernel#exec
SeepingN_ has joined #ruby
SeepingN has quit [Disconnected by services]
mrconfused has quit [Remote host closed the connection]
DTZUZU has joined #ruby
<AvengerX> yup.
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
gigetoo has joined #ruby
naprimer has quit [Ping timeout: 260 seconds]
yurikoles has quit [Remote host closed the connection]
dviola has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
<cagomez> is it possible to map over an array of symbols, call them as a method on an object, and set a value ? eg I want to call :mon, :tue, :wed, on a Week object. and set all the dates to Date.today()
<cagomez> got it, used obj.send()
outreachdan has joined #ruby
<outreachdan> I
<outreachdan> Anyone here with EventMachine experience? My reactor keeps stopping before my tests are complete and only gets part-way through code execution before failing.
hahuang65 has quit [Ping timeout: 260 seconds]
<havenwood> cagomez: #public_send is a bit nicer, if you're using the public interface
<havenwood> cagomez: Some code for fun: require 'date'; DAYS = Date::ABBR_DAYNAMES.map(&:downcase).map(&:to_sym); class Week; DAYS.each { |day| define_method day, ->{ Date.today } } end; DAYS.map { |day| Week.new.public_send day }
naprimer has joined #ruby
<havenwood> >> require 'date'; Date::ABBR_DAYNAMES
<ruby[bot]> havenwood: # => ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"] (https://eval.in/767938)
SeepingN_ is now known as SeepingN
Jayson_Virissimo has quit []
justizin has joined #ruby
shterrett has joined #ruby
hutch34_ has joined #ruby
<justizin> anyone know if it's possible with tempfile, or an alternative existing implementation, to limit length of temp filenames? trying to generate nagios check result files, which want a 7-char name beginning with 'c'
<justizin> mkstemp seems to conform by default, but Tempfile seems to generate much longer names.
<justizin> or if not by default, with a template. i guess python tempfile.mkstemp conforms by default.
<havenwood> justizin: having it begin with "c" by setting the tempfile basename to "c"
Snickers has quit [Quit: Snickers]
<havenwood> is easy
<cagomez> is there a way to avoid explicitly returning `Foo`? Is it bad style? def foo_maker(foo, bar); bar.map { |b| foo.send(b.to_s + "=", Date.today()) }; return foo; end ... called like so: foo_maker(Foo.new, [:one, :two, :three])
<justizin> havenwood: right, but limiting the length, not so much, by default Tempfile.new('c') on this particular ruby, at least, gives me: `/tmp/c20170404-31444-12jgzda`
<justizin> whereas 'mktemp -t cXXXXXX' gives me '/tmp/cTnvL5y'
<justizin> any way to influence what the generated component of the filename is?
<havenwood> the latter is much more likely to collide, for what it's worth
<justizin> i don't see anything in docs, i'm just trying to avoid shelling out to tmpfile or calling mkstemp via ffi
<justizin> havenwood: right, but ... this is how nagios works, so ... it will reject anything else.
<justizin> currently i'm processing items from a kafka stream and sending a value to graphite, then i'm checking graphite for the age of the last data point, which is fairly expensive compared to, say, writing out a text file on the nagios host. :)
<justizin> it is an esoteric use case and i don't entirely fault the ruby Tempfile for not accommodating, it's just what I need.
<justizin> worst case I probs just reimplement mkstemp or something, but that feels icky.
patarr has joined #ruby
bkxd has joined #ruby
TomyLobo has quit [Ping timeout: 264 seconds]
gigetoo has quit [Ping timeout: 264 seconds]
patarr has quit [Ping timeout: 240 seconds]
voiceme has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
gigetoo has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
patarr has joined #ruby
tau has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
shterrett has quit [Quit: shterrett]
patarr has quit [Ping timeout: 258 seconds]
jamesaxl has joined #ruby
voiceme has quit [Quit: Sorry guys, freenode is shutting down and has moved to irc.volatile.ch +6697 #krustykrab]
minimalism has quit [Ping timeout: 264 seconds]
AvengerX has quit [Quit: bye and thanks (staying up on webchat is not really useful! thanks for the help! :P)]
<Verity> Anyone doing code audits
<Verity> I just reached another milestone
patarr has joined #ruby
minimalism has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.7]
rgtk has quit [Ping timeout: 268 seconds]
CloCkWeRX has joined #ruby
cdg has quit [Remote host closed the connection]
patarr has quit [Ping timeout: 240 seconds]
patarr has joined #ruby
govg has quit [Ping timeout: 260 seconds]
cagomez has quit []
toretore has quit [Ping timeout: 240 seconds]
raspado has joined #ruby
patarr has quit [Ping timeout: 246 seconds]
hutch34_ has quit [Ping timeout: 268 seconds]
FoX_77 has joined #ruby
agent_white has quit [Quit: leaving]
<FoX_77> hi
<FoX_77> -server: FoX_77: Has earned 100 points!
Rodya_ has quit [Remote host closed the connection]