jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
blandflakes has joined #ruby
Ropeney has joined #ruby
decoponyo has quit [Quit: Leaving...]
roshanavand has quit [Quit: This computer has gone to sleep]
minimalism has joined #ruby
uglybandersnatch has joined #ruby
<Ox0dea> riceandbeans: https://eval.in/539510
n008f4g_ has quit [Ping timeout: 260 seconds]
Mattx has quit [Quit: Leaving]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uglybandersnatch has quit [Ping timeout: 276 seconds]
jaequery_ has joined #ruby
lessless has joined #ruby
jaequery has quit [Ping timeout: 240 seconds]
<shevy> riceandbeans comment on it :)
B4daBing73 has quit [Quit: Leaving]
dmnd has joined #ruby
jaequery_ has quit [Ping timeout: 244 seconds]
CloCkWeRX has joined #ruby
Anderson69s_Deb has quit [Quit: Leaving]
<dmnd> How do I use a helper method to define a constant? https://gist.github.com/dmnd/6acdcf00410d67ab1206
<dmnd> If I run that, I end up with `NoMethodError`
frustrum has quit [Quit: WeeChat 1.2]
jdawgaz has joined #ruby
<dmnd> In Python or Javascript, I'd just make `helper` a bare function at toplevel, but I guess I don't understand how to do that in Ruby.
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Disavowed has quit [Ping timeout: 248 seconds]
ss_much has quit [Quit: Connection closed for inactivity]
uglybandersnatch has joined #ruby
wilbert has joined #ruby
shiver has quit [Quit: leaving]
shiver has joined #ruby
shiver has joined #ruby
<Ox0dea> dmnd: You need to define #helper on Foo itself. That is, it needs to be a singleton method rather than an instance method.
<Ox0dea> There are many ways to do that: https://eval.in/539515
shiver has quit [Client Quit]
shiver has joined #ruby
shiver has joined #ruby
shiver has quit [Changing host]
<dmnd> thanks Ox0dea
<Ox0dea> Sure thing.
<dmnd> Is that constant an instance variable too?
jpfuentes2 has joined #ruby
graffix has joined #ruby
Anderson69s_Deb has joined #ruby
Marsupermammal has quit [Ping timeout: 244 seconds]
Anderson69s_Deb has quit [Client Quit]
mjuszczak has joined #ruby
chouhoulis has joined #ruby
rodfersou has quit [Quit: leaving]
millerti has joined #ruby
chouhoulis has quit [Ping timeout: 276 seconds]
fullofcaffeine has joined #ruby
marr has quit [Read error: Connection reset by peer]
pestilence has left #ruby [#ruby]
workmad3 has quit [Ping timeout: 260 seconds]
symm- has quit [Ping timeout: 246 seconds]
Suntzu has quit [Read error: Connection reset by peer]
awasum has joined #ruby
hightower3 has quit [Ping timeout: 276 seconds]
Yzguy has quit [Quit: Zzz...]
spider-mario has quit [Remote host closed the connection]
Yzguy has joined #ruby
bezhermoso has joined #ruby
Yzguy has quit [Max SendQ exceeded]
mleung has joined #ruby
htmldrum_ has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sneakerhax has joined #ruby
Vingador has joined #ruby
baweaver has joined #ruby
intrigueD has quit [Remote host closed the connection]
Vingador has quit [Ping timeout: 244 seconds]
baweaver has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
ekinmur has joined #ruby
Gasher^ has quit [Quit: Leaving]
mbff has joined #ruby
speakingcode has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
<mbff> Hello! I am trying to follow this guide: http://blog.sourcing.io/structuring-sinatra However I want all the routes to share the same configuration.
<mbff> And I want to register routes inside a namespace
JoshGlzB_ has joined #ruby
<mbff> I have spent way to much time this weekend trying to get Sinatra structured the way I want
Suntzu has joined #ruby
dcunit3d has quit [Ping timeout: 276 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
JoshGlzBrk has quit [Ping timeout: 244 seconds]
bricker has joined #ruby
Guest34101 has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
<shevy> tried #sinatra yet? most people here probably don't know sinatra
<benzrf> i know some sinatra
<riceandbeans> I'm not using sinatra like that at the moment
<riceandbeans> course I may be doing it wrongtoo
<riceandbeans> I'm using sinatra as a prototype for the moment
Sucks has quit [Read error: Connection reset by peer]
<riceandbeans> I'm ultimately doing my API in Rust with Iron
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BtcBen has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
mleung has quit [Quit: mleung]
lxsameer has quit [Quit: Leaving]
CloCkWeRX has left #ruby [#ruby]
mistermocha has quit [Ping timeout: 268 seconds]
<mbff> aight
chipotle has quit [Quit: cheerio]
lianj has quit [Ping timeout: 244 seconds]
nerium has quit [Quit: nerium]
x77686d has quit [Quit: x77686d]
_blizzy_ has joined #ruby
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
chouhoulis has joined #ruby
BrunoSaboia has quit [Ping timeout: 244 seconds]
Thomas-0725 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
lianj has joined #ruby
tomatoes has joined #ruby
benzrf_irssi has quit [Quit: leaving]
chouhoulis has quit [Ping timeout: 240 seconds]
ekinmur has quit [Quit: Textual IRC Client: www.textualapp.com]
stannard_ has quit [Ping timeout: 250 seconds]
mbff has quit [Remote host closed the connection]
chipotle has joined #ruby
Guest34101 has joined #ruby
stannard has joined #ruby
wilbert has quit [Ping timeout: 244 seconds]
<shevy> hmm
Spami has joined #ruby
blackmesa has quit [Ping timeout: 248 seconds]
Aviio has quit [Remote host closed the connection]
halfamind has joined #ruby
bezhermoso has quit [Quit: Zzzzz...]
mjuszczak has quit []
uglybandersnatch has quit [Ping timeout: 276 seconds]
quakephil has quit [Ping timeout: 244 seconds]
LoneHerm_ has joined #ruby
halfamind has quit [Quit: Leaving.]
wilbert has joined #ruby
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
NightMonkey has joined #ruby
JJM has quit [Ping timeout: 276 seconds]
diegoviola has quit [Quit: WeeChat 1.4]
wilbert has quit [Ping timeout: 248 seconds]
uglybandersnatch has joined #ruby
sysodaff has joined #ruby
ensyde_ has quit [Ping timeout: 240 seconds]
awasum_ has joined #ruby
i8igmac has quit [Ping timeout: 252 seconds]
diegoviola has joined #ruby
awasum_ has quit [Client Quit]
sysodaff has quit [Ping timeout: 276 seconds]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
awasum has quit [Ping timeout: 276 seconds]
bezhermoso has joined #ruby
kam270 has joined #ruby
fedexo has joined #ruby
uglybandersnatch has quit [Ping timeout: 246 seconds]
stannard has quit [Remote host closed the connection]
stannard has joined #ruby
JoshGlzB_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistermocha has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
baweaver has joined #ruby
stannard has quit [Ping timeout: 268 seconds]
chouhoulis has joined #ruby
Chagel has joined #ruby
baweaver has quit [Ping timeout: 252 seconds]
David27 has quit [Quit: Going offline, see ya! (www.adiirc.com)]
chouhoulis has quit [Ping timeout: 244 seconds]
halfamind has joined #ruby
bronson has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
solocshaw has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
blackmesa has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
uglybandersnatch has joined #ruby
elifoster has quit [Ping timeout: 240 seconds]
jdawgaz has joined #ruby
tjbiddle has joined #ruby
theRealGent has quit [Ping timeout: 248 seconds]
BtcBen has quit [Ping timeout: 252 seconds]
wilbert has joined #ruby
arescorpio has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
JoshGlzBrk has joined #ruby
Thomas-0725 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wilbert has quit [Ping timeout: 264 seconds]
mistermocha has joined #ruby
A124 has quit [Read error: Connection reset by peer]
Thomas-0725 has joined #ruby
Thomas-0725 has quit [Client Quit]
tjbiddle has quit [Ping timeout: 264 seconds]
Sucks has joined #ruby
A124 has joined #ruby
uglybandersnatch has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
marcdel_ has joined #ruby
marcdel has quit [Ping timeout: 264 seconds]
Thomas-0725 has joined #ruby
terminalrecluse has joined #ruby
marcdel_ has quit [Ping timeout: 244 seconds]
tjbiddle has joined #ruby
heftig has quit [Quit: No Ping reply in 180 seconds.]
contradictioned has quit [Quit: No Ping reply in 180 seconds.]
Hobbyboy has quit [Ping timeout: 260 seconds]
JJM has joined #ruby
bauruine has quit [Ping timeout: 260 seconds]
ohcibi has quit [Quit: No Ping reply in 180 seconds.]
shadeslayer has quit [Quit: No Ping reply in 180 seconds.]
shadeslayer has joined #ruby
clorisu has quit [Ping timeout: 250 seconds]
JJM has quit [Ping timeout: 240 seconds]
clorisu has joined #ruby
uglybandersnatch has joined #ruby
contradictioned has joined #ruby
ohcibi has joined #ruby
blackmesa has quit [Ping timeout: 248 seconds]
tjbiddle has quit [Ping timeout: 246 seconds]
bauruine has joined #ruby
tjbiddle has joined #ruby
ohcibi has quit [Quit: No Ping reply in 180 seconds.]
JoshGlzB_ has joined #ruby
djbkd has joined #ruby
Channel6 has joined #ruby
phrozen77 has quit [Ping timeout: 260 seconds]
heftig has joined #ruby
yfeldblum has joined #ruby
JoshGlzBrk has quit [Ping timeout: 248 seconds]
mistermocha has quit [Read error: Connection reset by peer]
bauruine has quit [Ping timeout: 260 seconds]
mistermo_ has joined #ruby
bezhermoso has quit [Quit: Zzzzz...]
Chagel has quit [Remote host closed the connection]
bronson has joined #ruby
bauruine has joined #ruby
anjen has joined #ruby
chouhoulis has joined #ruby
krz has joined #ruby
uglybandersnatch has quit [Ping timeout: 250 seconds]
anjen has quit [Client Quit]
elifoster has joined #ruby
Chagel has joined #ruby
JoshGlzB_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
brendan- has quit [Read error: Connection reset by peer]
fullofcaffeine has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
brendan- has joined #ruby
silentpost has quit [Remote host closed the connection]
uglybandersnatch has joined #ruby
theseb has joined #ruby
ohcibi has joined #ruby
theseb has quit [Read error: Connection reset by peer]
sand_bird has joined #ruby
fullofcaffeine has quit [Ping timeout: 276 seconds]
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bauruine has quit [Ping timeout: 260 seconds]
clorisu has quit [Ping timeout: 252 seconds]
ohcibi has quit [Quit: No Ping reply in 180 seconds.]
ohcibi has joined #ruby
bauruine has joined #ruby
bluOxigen has joined #ruby
theseb` has joined #ruby
theseb` has quit [Remote host closed the connection]
phrozen77 has joined #ruby
uglybandersnatch has quit [Ping timeout: 248 seconds]
CloCkWeRX has joined #ruby
marcofernandez has quit [Quit: 전 이만 갑니다.]
tjbiddle has quit [Ping timeout: 248 seconds]
siaw has quit [Quit: siaw]
ohcibi has quit [Quit: No Ping reply in 180 seconds.]
phrozen77 has quit [Ping timeout: 260 seconds]
icedp has quit [Ping timeout: 260 seconds]
tinnvec has quit [Ping timeout: 250 seconds]
ohcibi has joined #ruby
sfr^ has quit [Ping timeout: 268 seconds]
tjbiddle has joined #ruby
bauruine has quit [Ping timeout: 260 seconds]
clorisu has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bauruine has joined #ruby
Zipdot has quit [Ping timeout: 248 seconds]
adgtl has quit [Ping timeout: 260 seconds]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
sfr^ has joined #ruby
Zipdot has joined #ruby
icedp has joined #ruby
tinnvec has joined #ruby
phrozen77 has joined #ruby
jdawgaz has joined #ruby
braincrash has quit [Quit: bye bye]
halfamind has quit [Quit: Leaving.]
marcdel has joined #ruby
jpfuentes2 has joined #ruby
Hobbyboy|BNC has joined #ruby
tjbiddle has quit [Ping timeout: 240 seconds]
adgtl has joined #ruby
configged- has joined #ruby
ohcibi has quit [Quit: No Ping reply in 180 seconds.]
braincrash has joined #ruby
Hobbyboy|BNC is now known as Hobbyboy
ohcibi has joined #ruby
marcdel has quit [Ping timeout: 248 seconds]
nando293921 has quit [Ping timeout: 248 seconds]
postmodern has joined #ruby
Sucks has quit [Read error: Connection reset by peer]
configged has quit [Ping timeout: 240 seconds]
JoshGlzBrk has joined #ruby
Chagel has quit [Remote host closed the connection]
blackmesa has joined #ruby
al2o3-cr is now known as sleepy_al2o3-cr
clorisu has quit [Ping timeout: 244 seconds]
Don_John has quit [Read error: Connection reset by peer]
i8igmac has joined #ruby
Chagel has joined #ruby
blandflakes has joined #ruby
Xiti has quit [Ping timeout: 248 seconds]
Dreamer3_ has joined #ruby
blandflakes has quit [Client Quit]
BtcBen has joined #ruby
treaki_ has joined #ruby
patrick_star has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
treaki__ has quit [Ping timeout: 244 seconds]
CloCkWeRX has quit [Ping timeout: 248 seconds]
LoneHerm_ has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
freerobby1 has quit [Quit: Leaving.]
clorisu has joined #ruby
LoneHermit has joined #ruby
bronson has quit [Remote host closed the connection]
Siflyn has quit []
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JoshGlzBrk has joined #ruby
Xiti has joined #ruby
bronson has joined #ruby
x77686d has joined #ruby
mistermo_ has quit [Ping timeout: 248 seconds]
CloCkWeRX has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #ruby
chouhoulis has quit [Remote host closed the connection]
gix has quit [Ping timeout: 250 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oliver__ has joined #ruby
chouhoulis has joined #ruby
mistermocha has joined #ruby
Thomas-0725 has quit [Quit: Textual IRC Client: www.textualapp.com]
tjbiddle has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
rhg135 has quit [Ping timeout: 248 seconds]
gix has joined #ruby
uglybandersnatch has joined #ruby
rhg135 has joined #ruby
Chagel has quit [Ping timeout: 264 seconds]
tomatoes has quit [Ping timeout: 250 seconds]
djbkd has quit [Quit: Leaving...]
tildes has joined #ruby
shinnya has quit [Ping timeout: 252 seconds]
TomyLobo has quit [Ping timeout: 260 seconds]
configged- has quit [Ping timeout: 268 seconds]
djbkd has joined #ruby
Helheim has joined #ruby
chouhoul_ has joined #ruby
Inside has quit [Ping timeout: 276 seconds]
diegoviola has quit [Quit: WeeChat 1.4]
sunya7a_ has quit [Ping timeout: 250 seconds]
redondos has quit [Ping timeout: 268 seconds]
chouhoulis has quit [Ping timeout: 268 seconds]
arescorpio has quit [Ping timeout: 268 seconds]
wldcordeiro has quit [Ping timeout: 268 seconds]
imajes has quit [Ping timeout: 250 seconds]
vbatts|work has joined #ruby
armando has quit [Quit: WeeChat 1.4]
redondos has joined #ruby
sunya7a_ has joined #ruby
htmldrum has quit [Ping timeout: 276 seconds]
imajes has joined #ruby
htmldrum_ has quit [Ping timeout: 244 seconds]
uglybandersnatch has quit [Ping timeout: 252 seconds]
wldcordeiro has joined #ruby
noService has joined #ruby
binaryplease has joined #ruby
merida_ has joined #ruby
merida__ has joined #ruby
duncannz has joined #ruby
hk238 has joined #ruby
oliver__ has quit []
baweaver has quit [Remote host closed the connection]
kam270 has quit [Ping timeout: 240 seconds]
mistermocha has quit [Ping timeout: 240 seconds]
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 244 seconds]
Trynemjoel has joined #ruby
tubuliferous has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
jcdesimp has quit [Remote host closed the connection]
Trynemjoel has quit [Ping timeout: 244 seconds]
jcdesimp has joined #ruby
yatish27 has joined #ruby
saneax_AFK is now known as saneax
Trynemjoel has joined #ruby
terminalrecluse has joined #ruby
jcdesimp has quit [Ping timeout: 268 seconds]
A124 has quit [Quit: '']
A124 has joined #ruby
binaryplease has quit [Ping timeout: 268 seconds]
i8igmac has quit [Ping timeout: 244 seconds]
htmldrum has joined #ruby
htmldrum_ has joined #ruby
bronson has quit [Remote host closed the connection]
Channel6 has quit [Quit: Leaving]
blackmesa has joined #ruby
htmldrum_ has quit [Ping timeout: 248 seconds]
htmldrum has quit [Ping timeout: 248 seconds]
Chagel has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkazak has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
sneakerhax has quit [Ping timeout: 252 seconds]
Chagel has quit [Ping timeout: 244 seconds]
merida_ has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
dionysus69 has joined #ruby
marsjaninzmarsa has quit [Quit: ZNC 1.7.x-git-487-cbf5c38 - http://znc.in]
merida__ has quit [Ping timeout: 252 seconds]
tildes has quit [Ping timeout: 276 seconds]
yatish27 has quit [Remote host closed the connection]
Musashi007 has joined #ruby
Beast has joined #ruby
merida has joined #ruby
merida_ has joined #ruby
RegulationD has joined #ruby
Chagel has joined #ruby
danielwzd has joined #ruby
merida__ has joined #ruby
merida___ has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
merida_ has quit [Ping timeout: 246 seconds]
merida has quit [Ping timeout: 246 seconds]
braincra- has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
jtdoncas has quit [Quit: WeeChat 0.4.2]
mikhael_k33hl has joined #ruby
<mikhael_k33hl> Trying out rake, ang using ci_reporter, I must be doing it wrong, can't seem to populate or create the report file.
braincrash has quit [Ping timeout: 244 seconds]
the_drow has joined #ruby
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ardian_ has quit [Quit: /exit]
krz has quit [Ping timeout: 252 seconds]
jam__ has joined #ruby
jpfuentes2 has joined #ruby
LoneHermit has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 244 seconds]
LoneHerm_ has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Macaveli has joined #ruby
fedexo has quit [Ping timeout: 248 seconds]
pelegreno has quit [Remote host closed the connection]
pelegreno has joined #ruby
blandflakes has joined #ruby
blandflakes has quit [Client Quit]
tubuliferous has joined #ruby
vdamewood has quit [Quit: Life beckons.]
kp666 has joined #ruby
tubuliferous has quit [Ping timeout: 246 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Diabolik> what would be the most optimal way of encrypting a number to a hash of 10 digits or less?
<Nilium> Encrypting or hashing?
<Diabolik> encrypting
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Nilium> No idea.
<Diabolik> i would rather go with hashing but the client wants encryption
<Diabolik> its for an order number in an ecommerce sho
<Diabolik> p
<Nilium> So, I'm guessing the order number is an auto-incrementing integer and they don't want to expose usage info?
nibbo_ has joined #ruby
nibbo_ has quit [Client Quit]
<baweaver> tell them just to use SHA hashes
Cohedrin has joined #ruby
<baweaver> ignore whatever they say on 10 digits and reversible, that's pointless.
<Nilium> Tell them to just use business IDs instead of integers.
tildes has joined #ruby
<baweaver> the client should not be able to influence those types of decisions
uglybandersnatch has joined #ruby
<Nilium> It's probably an existing system and they're sensitive about their numbers being low.
<Nilium> Anyway, won't speculate on it further. Can't offer anything crypto-wise.
awasum has joined #ruby
Chagel has quit [Remote host closed the connection]
bronson has joined #ruby
Bloomer has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
krz has joined #ruby
Chagel has joined #ruby
rodfersou has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
the_drow has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
moeabdol1 has quit [Ping timeout: 244 seconds]
tildes has quit [Ping timeout: 248 seconds]
htmldrum has joined #ruby
idletask has quit [Quit: .]
idletask has joined #ruby
htmldrum_ has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
Chagel has quit [Remote host closed the connection]
kirillzh has quit [Quit: Textual IRC Client: www.textualapp.com]
Bloomer has quit []
whiteline has quit [Ping timeout: 244 seconds]
neanderslob_ has joined #ruby
neanderslob_ has quit [Read error: Connection reset by peer]
neanderslob_ has joined #ruby
baweaver has quit [Remote host closed the connection]
lurch_ has joined #ruby
Chagel has joined #ruby
Musashi007 has quit [Quit: Musashi007]
Chagel has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
solars has joined #ruby
edwinvdgraaf has joined #ruby
x77686d has quit [Quit: x77686d]
Chagel has joined #ruby
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
blt has quit [Ping timeout: 264 seconds]
tjbiddle has joined #ruby
scepticulous has joined #ruby
hightower3 has joined #ruby
jpfuentes2 has joined #ruby
CloCkWeRX has quit [Ping timeout: 244 seconds]
neanderslob_ is now known as neanderslob
tubuliferous has joined #ruby
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
tubuliferous has quit [Ping timeout: 252 seconds]
KnownSyntax has quit [Ping timeout: 240 seconds]
merida___ has quit [Remote host closed the connection]
merida has joined #ruby
ledestin has quit [Read error: Connection reset by peer]
jam__ has quit [Remote host closed the connection]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
Chagel has quit [Remote host closed the connection]
blt has joined #ruby
vondruch has quit [Ping timeout: 248 seconds]
mark3 has joined #ruby
andikr has joined #ruby
Chagel has joined #ruby
lkba has quit [Remote host closed the connection]
roshanavand has joined #ruby
pandaant has joined #ruby
ledestin has joined #ruby
CloCkWeRX has joined #ruby
Guest75813 has quit [Ping timeout: 276 seconds]
i8igmac has joined #ruby
i8igmac has quit [Max SendQ exceeded]
Ariadeno has joined #ruby
JohnBat26 has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
firstdayonthejob has quit [Ping timeout: 268 seconds]
gagrio has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
uglybandersnatch has quit [Ping timeout: 276 seconds]
f0f4r has joined #ruby
blackmesa has quit [Ping timeout: 268 seconds]
krz has quit [Ping timeout: 246 seconds]
aganov has joined #ruby
tubuliferous has joined #ruby
djellemah_ has joined #ruby
LoneHerm_ has joined #ruby
tjbiddle_ has joined #ruby
tjbiddle has quit [Ping timeout: 246 seconds]
tjbiddle_ is now known as tjbiddle
Xeago has joined #ruby
LoneHerm_ has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
BtcBen has quit [Ping timeout: 252 seconds]
SenpaiSilver has quit [Read error: Connection reset by peer]
yatish27 has joined #ruby
jaruga has joined #ruby
jaruga is now known as jaruga_
krz has joined #ruby
htmldrum_ has quit [Ping timeout: 240 seconds]
htmldrum has quit [Ping timeout: 276 seconds]
RegulationD has joined #ruby
Suntzu has quit [Read error: Connection reset by peer]
the_drow has joined #ruby
codecop has joined #ruby
cd-rum has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 276 seconds]
biberu has joined #ruby
minimalism has quit [Quit: minimalism]
aufi has joined #ruby
Dimik has quit [Ping timeout: 244 seconds]
djbkd has quit [Quit: Leaving...]
skade has joined #ruby
Xeago has joined #ruby
Couch has joined #ruby
tvw has joined #ruby
clorisu has quit [Ping timeout: 240 seconds]
last_staff has joined #ruby
vondruch has joined #ruby
blandflakes has joined #ruby
clorisu has joined #ruby
SCHAAP137 has joined #ruby
trosborn has quit [Quit: trosborn]
p1k has joined #ruby
blandflakes has quit [Client Quit]
<p1k> does BigDecimal store the precision from .round() somewhere or is that open-ended if you did not set a ::limit ?
<p1k> that is - is there any way to tell the difference between 4.5000 and 4.5 ?
elifoster has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
clorisu has quit [Ping timeout: 240 seconds]
startupality has joined #ruby
postmodern has quit [Quit: Leaving]
clorisu has joined #ruby
shinnya has joined #ruby
djellemah_ has quit [Ping timeout: 244 seconds]
yatish27 has quit [Ping timeout: 268 seconds]
colegatron_origi has quit [Remote host closed the connection]
que has joined #ruby
<que> h2s = YAML.load_file('h2s.yml') puts h2s can i load it in different way ? i got here asd => jk59 dd => jk59 i would like to have jk59 => dd, asd is there a way to change it like that ?
Suntzu has joined #ruby
<Ox0dea> &ri Hash#invert que
<adaedra> Hello
<Ox0dea> p1k: Not once they're BigDecimals. Are you sure you need to differentiate between them?
<que> `derpy: yeah i tried that, but i have only one value in jk59 for example
<p1k> 0x0dea: I can probably work around it but yeah it would be preferable
<adaedra> `derpy is just a bot, que
<que> xD
<que> my bad
<Ox0dea> You're not evil, just inattentive. :p
Xeago has quit [Read error: Connection reset by peer]
<adaedra> It's alright, the given attention warms its little robotic heart.
Ropeney has joined #ruby
<Ox0dea> p1k: Well, BigDecimal('4.5000') strips the superfluous trailing digits, and I don't see a way to get them back without getting your hands really dirty.
<Ox0dea> It's conceivably possible to get hold of the String from which a BigDecimal was constructed, but... why?
<p1k> 0x0dea: it's significantly different though
<p1k> if i have 4.5000 my calculation has a different precision then 4.50
<p1k> I suppose it's possible to set @precision on the initializer (would have to be updared on .round calls though)
<p1k> I'm not sure why they decided to strip 0's by default tbh, e.g. python's decimal.Decimal does not
tvw has quit [Remote host closed the connection]
blackmesa has joined #ruby
<que> puts hash.rassoc("jk59") should print out values right ?
clorisu has quit [Ping timeout: 250 seconds]
Chagel has quit [Ping timeout: 240 seconds]
DoubleMalt has joined #ruby
<que> ok figure it out
<que> sorry for mess :P
<que> thx guys
tvw has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
blt has quit [Ping timeout: 260 seconds]
ferr has joined #ruby
LoneHermit has joined #ruby
nerium has joined #ruby
Xeago has joined #ruby
danielwzd has quit [Quit: Leaving]
que has quit [Quit: Page closed]
mhoungbo has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
LoneHermit has quit [Ping timeout: 246 seconds]
bluOxigen has joined #ruby
Chagel has joined #ruby
htmldrum has joined #ruby
htmldrum_ has joined #ruby
duncannz has quit [Remote host closed the connection]
Snowy has joined #ruby
blt has joined #ruby
marr has joined #ruby
Chagel_ has joined #ruby
clorisu has joined #ruby
htmldrum_ has quit [Ping timeout: 268 seconds]
htmldrum has quit [Ping timeout: 268 seconds]
RegulationD has joined #ruby
Chagel has quit [Ping timeout: 248 seconds]
roshanavand has quit [Quit: This computer has gone to sleep]
Musashi007 has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
drptbl has joined #ruby
<TheCubeLord> where is the rails channel?
wolfedale has joined #ruby
tjbiddle_ has joined #ruby
<SebastianThorn> TheCubeLord: #rubyonrails
nettoweb has joined #ruby
siaw has joined #ruby
tjbiddle has quit [Ping timeout: 248 seconds]
tjbiddle_ is now known as tjbiddle
kam270 has joined #ruby
n008f4g_ has joined #ruby
mlehrer has joined #ruby
<the_drow> How do I release the GIL using the MRI Ruby C API?
Spami has joined #ruby
nocontrol has joined #ruby
Musashi007 has quit [Quit: Musashi007]
blandflakes has joined #ruby
<the_drow> Do I have to call the function with rb_thread_call_without_gvl?
<the_drow> In python it's simply a macro Py_AllowThreads...
blandflakes has quit [Client Quit]
bluOxigen_ has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
<the_drow> Also, what happens if I call it while in rubinius?
senayar has joined #ruby
senayar was kicked from #ruby by ruby[bot] [was banned before]
mrgrieves has joined #ruby
roshanavand has joined #ruby
jam__ has joined #ruby
Pascal has joined #ruby
Pascal is now known as igam
Xeago has quit [Ping timeout: 244 seconds]
jam__ has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
ixti has joined #ruby
p1k has quit [Ping timeout: 250 seconds]
Chagel_ has quit [Remote host closed the connection]
BrunoSaboia has joined #ruby
mikhael_k33hl has quit [Ping timeout: 240 seconds]
mikhael_k33hl has joined #ruby
siaw has quit [Quit: siaw]
Chagel has joined #ruby
uglybandersnatch has joined #ruby
CloCkWeRX has quit [Ping timeout: 276 seconds]
nrsky has joined #ruby
araujo has joined #ruby
Chagel has quit [Remote host closed the connection]
idletask has quit [Remote host closed the connection]
Chagel has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
gigetoo has joined #ruby
dionysus69 has quit [Ping timeout: 244 seconds]
binaryplease has joined #ruby
idletask has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
n008f4g_ has quit [Ping timeout: 248 seconds]
<yorickpeterse> the_drow: IIRC rb_thread_call_without_gvl can not be used to run Ruby code
<the_drow> That's fine
<yorickpeterse> as in, you can't have 2 threads run at once
<the_drow> I'm not trying to run ruby code
<yorickpeterse> Regarding C/pthreads, not sure
<the_drow> Oh? So it doesn't release the global lock for other threads to run?
<yorickpeterse> In case of Rubinius I believe we don't even have rb_thread_call_without_gvl
<the_drow> That's strange
<the_drow> So I need an #ifdef?
Drakx has joined #ruby
dgncn has quit [Excess Flood]
<yorickpeterse> Ah we do actually
<the_drow> https://github.com/ohler55/oj/blob/master/ext/oj/parse.c#L55 this code doesn't touch ruby at all
roshanavand has joined #ruby
darkf has quit [Quit: Leaving]
<the_drow> There are other functions that do not touch ruby code as well except for error handling
CloCkWeRX has joined #ruby
<yorickpeterse> what are you trying to do?
<the_drow> So I'm looking for something like Py_AllowThreads to allow ruby threads to run in parallel to the C code
hk238 has joined #ruby
<the_drow> I'm just trying to release the GIL to allow parallelism when parsing JSON
<the_drow> Don't worry about the merits. It's fun.
<the_drow> and I'm learning the Ruby C API this way
<yorickpeterse> I'm pretty sure Oj will eventually end up using Ruby in that code somewhere
dgncn has joined #ruby
htmldrum has joined #ruby
htmldrum_ has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roshanavand has quit [Client Quit]
<the_drow> Only in error handling
<the_drow> In that case we can acquire the GVL again
<the_drow> It's not a big deal. Errors happen less often that normal behaviour (at least we hope so)
baweaver has joined #ruby
last_staff has quit [Quit: last_staff]
RegulationD has joined #ruby
<the_drow> yorickpeterse, There are a lot of instances like those I described.
<the_drow> I'm just trying to find out how to use the C API correctly.
tjbiddle has quit [Quit: tjbiddle]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
mistermocha has joined #ruby
<the_drow> so any pointers?
RegulationD has quit [Ping timeout: 244 seconds]
baweaver has quit [Ping timeout: 250 seconds]
Chagel has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 250 seconds]
evidex has joined #ruby
Chagel has joined #ruby
workmad3 has joined #ruby
skweek has quit [Ping timeout: 248 seconds]
startupality has quit [Quit: startupality]
last_staff has joined #ruby
_blizzy_ has quit [Quit: Leaving]
Suntzu has quit [Read error: Connection reset by peer]
fexilal has joined #ruby
djellemah_ has joined #ruby
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
dikaio has quit [Ping timeout: 264 seconds]
dikaio has joined #ruby
nrsky has quit [Quit: Konversation terminated!]
tjvc has joined #ruby
sandelius has joined #ruby
configged- has joined #ruby
mark3 has left #ruby ["PART #RubyOnRails :PART #jquery :PART #reactjs :PART ##javascript :PART #elixir-lang :PART #debian :PART #zsh :PONG :weber.freenode.net"]
yatish27 has joined #ruby
tjvc has quit [Changing host]
tjvc has joined #ruby
dikaio has quit [Quit: Textual IRC Client: www.textualapp.com]
yatish27 has quit [Ping timeout: 268 seconds]
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
FooMunki has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ready has joined #ruby
Chagel has quit [Ping timeout: 264 seconds]
Suntzu has joined #ruby
tubuliferous has quit [Ping timeout: 276 seconds]
blackgoat has joined #ruby
bronson has joined #ruby
Musashi007 has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
tesuji has joined #ruby
djellemah__ has joined #ruby
djellemah has quit [Ping timeout: 246 seconds]
djellemah has joined #ruby
djellemah_ has quit [Ping timeout: 244 seconds]
dgncn has quit [Excess Flood]
binaryplease has quit [Ping timeout: 248 seconds]
configged- has quit [Ping timeout: 244 seconds]
dgncn has joined #ruby
infernix has quit [Ping timeout: 240 seconds]
awasum_ has joined #ruby
p1k has joined #ruby
trinaldi has joined #ruby
awasum_ has quit [Client Quit]
awasum has quit [Ping timeout: 260 seconds]
awasum has joined #ruby
sepp2k has joined #ruby
PedramT has joined #ruby
mistermocha has joined #ruby
Vingador has joined #ruby
infernix has joined #ruby
bweston92 has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 248 seconds]
quakephil has joined #ruby
uglybandersnatch has quit [Ping timeout: 244 seconds]
millerti has joined #ruby
Nahra has quit [Read error: Connection reset by peer]
Nahra has joined #ruby
bweston92 has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
PedramT has quit [Remote host closed the connection]
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
Ropeney has quit [Quit: Leaving]
skade has quit [Quit: Computer has gone to sleep.]
dionysus69 has joined #ruby
Vlat- has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
cpup has quit [Ping timeout: 248 seconds]
jam__ has joined #ruby
cpup has joined #ruby
Xeago has quit []
bricker has quit [Ping timeout: 252 seconds]
merida has quit [Remote host closed the connection]
merida has joined #ruby
ldnunes has joined #ruby
jam__ has quit [Ping timeout: 244 seconds]
Musashi007 has quit [Quit: Musashi007]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elaptics`away is now known as elaptics
pawnbox has quit [Remote host closed the connection]
Guest27457 has quit [Changing host]
Guest27457 has joined #ruby
Guest27457 is now known as Affix
pawnbox has joined #ruby
pwnd_nsfw` has quit [Read error: Connection reset by peer]
pwnd_nsfw` has joined #ruby
leon_e has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
but3k4 has joined #ruby
leon_e has quit [Quit: Konversation terminated!]
Suntzu has quit [Quit: changing servers]
skade has joined #ruby
krz has quit [Ping timeout: 244 seconds]
vondruch has quit [Remote host closed the connection]
millerti has joined #ruby
skade has quit [Client Quit]
configged- has joined #ruby
TomyLobo has joined #ruby
rbennacer has joined #ruby
maner has joined #ruby
sdothum has joined #ruby
skade has joined #ruby
johnmilton has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Marsupermammal has joined #ruby
duckpuppy has joined #ruby
vondruch has joined #ruby
PedramT has joined #ruby
noServic1 has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
htmldrum has quit [Ping timeout: 246 seconds]
skweek has joined #ruby
htmldrum_ has quit [Ping timeout: 248 seconds]
noService has quit [Ping timeout: 246 seconds]
PedramT has quit [Ping timeout: 244 seconds]
roshanavand has joined #ruby
gagrio has quit [Ping timeout: 276 seconds]
BrunoSaboia has quit [Ping timeout: 244 seconds]
htmldrum has joined #ruby
htmldrum_ has joined #ruby
tubuliferous has joined #ruby
synthroid has joined #ruby
last_staff has quit [Ping timeout: 244 seconds]
j2k has quit [Ping timeout: 240 seconds]
kspencer has quit [Ping timeout: 250 seconds]
djellemah has quit [Disconnected by services]
djellemah__ is now known as djellemah
Suntzu has joined #ruby
djellemah_ has joined #ruby
binaryplease1 has joined #ruby
htmldrum_ has quit [Ping timeout: 276 seconds]
htmldrum has quit [Ping timeout: 276 seconds]
baweaver has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
n008f4g_ has joined #ruby
j2k has joined #ruby
Snowy has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
tubuliferous has quit [Ping timeout: 248 seconds]
skweek has quit [Ping timeout: 268 seconds]
baweaver has quit [Ping timeout: 250 seconds]
<djellemah> I'm looking for information on concurrency and the initialize method.
<djellemah> I'm assuming that normally in ruby-land only one thread can be executing an initialize method for a given instance (because no other thread could have access to that instance yet).
<djellemah> That leaves garbage collection and ObjectSpace.
<djellemah> I think an uninitialized object won't be ready for garbage collection, so the garbage collector is smart enought to not call finalizers on it.
<djellemah> What I don't know is this: at what point during instance construction does an instance become accessible via ObjectSpace?
<djellemah> TIA
ready is now known as ffgghh
Snowy has quit [Ping timeout: 244 seconds]
djellemah_ has quit [Ping timeout: 246 seconds]
synthroid has quit [Ping timeout: 248 seconds]
gagrio has joined #ruby
roshanavand has joined #ruby
roshanavand has quit [Client Quit]
r1nuz has joined #ruby
binaryplease1 has quit [Ping timeout: 264 seconds]
<r1nuz> Is this: 'header_size = {32 => 52, 64 => 64}[@wordsize]' less efficient than a simple ternary assignment?
<manveru> r1nuz: of course
swills has quit [Quit: Leaving]
<r1nuz> i had a feeling that might be the case, but still not exactly sure why?
<manveru> you make a new hash, Hash.new will test keys for equality, then you have to hash the argument to Hash#[] and actually do the lookup
blackmesa has joined #ruby
<r1nuz> manveru right ok, thanks
<manveru> so it'll be a call to Hash.new, memory allocation for the Hash, 3 calls to Object#hash, and one to Hash#[], at least :)
<r1nuz> heh right, probably not the best way
<r1nuz> but it looks so fancy :(
<manveru> hehe
<workmad3> r1nuz: if you had a lot of sizes, and you didn't create the hash on-the-fly, it could make sense
rbennacer has quit [Remote host closed the connection]
<manveru> aye
<r1nuz> header_size = (if @wordsize == 32 then 52 else 64 end)
<workmad3> r1nuz: e.g. moving that hash out into `HEADER_SIZES = { ... }` and then in the method doing `header_size = HEADER_SIZES[@wordsize]` would drop you down to a single hash and a call to [] in the method, so closer to being comparable
<r1nuz> so something like that is better?
tk__ has joined #ruby
<r1nuz> workmad3 i see, thanks
<manveru> don't forget that calling header_size[12] would return nil
<r1nuz> right, in this particular case i can be sure wordsize is 32 or 64
<manveru> header_size = @wordsize == 32 ? 52 : 64
<manveru> then that's still best :)
<manveru> one comparison, no overhead
<r1nuz> oh thanks, that already looks better than the wordy version
<manveru> you said ternary before, so i thought you'd have that already
<r1nuz> i thought ternary in ruby was (if cond then thing else other_thing end)
<manveru> no, that's not ternary in any language
Azure|dc has joined #ruby
<r1nuz> guess i misread
<r1nuz> thanks
lq has joined #ruby
lq has quit [Client Quit]
<manveru> i guess you could call if/else ternary, but it's actually the name of the ternary operator which is quite specific to ?:
<r1nuz> i'm familiar with the operator in other language, for some reason i seemed to think ruby didn't have it :)
<r1nuz> very new to ruby
Azure has quit [Ping timeout: 276 seconds]
<manveru> :)
<r1nuz> guess it would be weird if ruby didn't with all the syntactic sugar
<manveru> yeah, it inherited it from perl
startupality has joined #ruby
<manveru> which in turn got it from awk
<r1nuz> deep rooted *nix hackery
<manveru> i think awk took it from C
<manveru> gotta love programming language ancestry :)
<r1nuz> hehe yeah
<r1nuz> ruby seems great so far
<r1nuz> seems to have all the things i always wish other languages had ;p
<r1nuz> fun to code in
<manveru> aye, i like a lot of languages, but ruby has a special place in my heart :)
<djellemah> >> if 2 > 3 then 'maths doesn't work' else 'whew' end
<ruby[bot]> djellemah: # => /tmp/execpad-024fec2c2951/source-024fec2c2951:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/539812)
<djellemah> >> if 2 > 3 then "maths doesn't work" else 'whew' end
<ruby[bot]> djellemah: # => "whew" (https://eval.in/539813)
<manveru> it was the one that rescued me from PHP over 10 years ago :)
ade has joined #ruby
<manveru> >> 2 > 3
<ruby[bot]> manveru: # => false (https://eval.in/539814)
<xpt> I think python didn't had any trenary operator (I'n not going to *bash* python here)
<manveru> neither does coffeescript
<manveru> would be quite hard to implement for those
<chris2> c took it from algol btw
<chris2> xpt: it has inline if
<manveru> and algol from some crazy mathematic notation?
ade has quit [Remote host closed the connection]
<chris2> algol notation is ( cond | true | false ) btw
<chris2> quite nice imo :D
<chris2> i didnt see it in math really
<r1nuz> looks like bitwise flag setting
FooMunki has quit [Quit: FooMunki]
<chris2> to a c-programmer perhaps :D
<r1nuz> :>
FooMunki has joined #ruby
Rasi has quit [Ping timeout: 276 seconds]
<djellemah> >> cond = false; ( cond | true | false )
<ruby[bot]> djellemah: # => true (https://eval.in/539817)
roshanavand has joined #ruby
jottr has joined #ruby
_stu_ has joined #ruby
Rasi has joined #ruby
Beast has quit [Quit: Leaving]
trampi has joined #ruby
awasum has quit [Quit: Leaving]
Azure|dc has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 240 seconds]
halfamind has joined #ruby
halfamind has quit [Client Quit]
fmcgeough has joined #ruby
SG045734 has joined #ruby
jdawgaz has joined #ruby
skakri` is now known as skakri
halfamind has joined #ruby
callen92 has joined #ruby
pawnbox has quit [Remote host closed the connection]
JakFrist has joined #ruby
<shevy> hmm
<shevy> the | notation is actually better than using a ' ' and '?'
moeabdol2 has joined #ruby
<xpt> and ":" ?
blackmesa has quit [Ping timeout: 240 seconds]
bricker has joined #ruby
unshadow has joined #ruby
merida has quit [Remote host closed the connection]
gagrio has quit [Ping timeout: 240 seconds]
merida has joined #ruby
linoj has joined #ruby
merida__ has quit [Ping timeout: 246 seconds]
merida has quit [Ping timeout: 240 seconds]
bricker has quit [Ping timeout: 268 seconds]
blandflakes has joined #ruby
blackgoat has quit [Quit: WeeChat 1.4]
mja has joined #ruby
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
_Tristan-Speccy_ is now known as Tristan-Speccy
<shevy> oh yeah
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
unshadow has quit [Quit: leaving]
RegulationD has joined #ruby
last_staff has joined #ruby
mistermocha has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
unshadow has joined #ruby
unshadow has quit [Client Quit]
unshadow has joined #ruby
mistermocha has quit [Ping timeout: 268 seconds]
shredding has joined #ruby
ChiefAlexander has joined #ruby
unshadow has quit [Client Quit]
vbatts|work has left #ruby ["found the other side of the rainbow"]
unshadow has joined #ruby
skweek has joined #ruby
gagrio has joined #ruby
patientj has joined #ruby
unshadow has quit [Client Quit]
<djellemah> >> 2 > 3 && "maths doesn't work" || 'whew'
<ruby[bot]> djellemah: # => "whew" (https://eval.in/539836)
unshadow has joined #ruby
patientj has left #ruby [#ruby]
patientj has joined #ruby
<djellemah> shevy: ( cond | true | false ) was just messing around with TrueClass#| operator http://ruby-doc.org/core-2.3.0/TrueClass.html . I wouldn't want to lead anyone astray :-O
DynamicMetaFlow has joined #ruby
<shevy> ack
unshadow has quit [Quit: leaving]
Gasher has joined #ruby
jam__ has joined #ruby
unshadow has joined #ruby
washt has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mostlybadfly has quit [Quit: Connection closed for inactivity]
kies has quit [Ping timeout: 248 seconds]
jam__ has quit [Ping timeout: 264 seconds]
stannard has joined #ruby
stannard has quit [Remote host closed the connection]
stannard has joined #ruby
mostlybadfly has joined #ruby
startupality has quit [Quit: startupality]
hogetaro has quit [Quit: Leaving...]
malconis has joined #ruby
binaryplease1 has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JakFrist has joined #ruby
bronson has joined #ruby
sleepy_al2o3-cr is now known as al2o3-cr
Asmes has joined #ruby
* Asmes Helloe I,Turk ?
aclearman037 has joined #ruby
kfpratt has joined #ruby
kam270 has quit [Ping timeout: 248 seconds]
bronson has quit [Ping timeout: 252 seconds]
n008f4g_ has quit [Ping timeout: 260 seconds]
agit0 has joined #ruby
JohnBat26 has joined #ruby
fexilal has quit [Ping timeout: 264 seconds]
tubuliferous has joined #ruby
kam270 has joined #ruby
sand_bird has quit [Ping timeout: 244 seconds]
Asmes has quit []
kam270 has quit [Max SendQ exceeded]
chouhoulis has joined #ruby
kam270 has joined #ruby
intrigueD has joined #ruby
kam270 has quit [Remote host closed the connection]
jdawgaz has joined #ruby
mwlang has joined #ruby
krz has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
<shevy> lol
<shevy> guess that was a smartphone user
siaw has joined #ruby
idle_task has joined #ruby
idletask has quit [Disconnected by services]
idle_task is now known as idletask
binaryplease1 has quit [Ping timeout: 248 seconds]
jdawgaz has quit [Client Quit]
aclearman037 has left #ruby ["Textual IRC Client: www.textualapp.com"]
mallu has joined #ruby
crank1988 has quit [Quit: ZNC - http://znc.in]
floatingpoint has joined #ruby
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<n1colas> Hello
solocshaw has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
intrigueD has quit [Remote host closed the connection]
myntcake has joined #ruby
tubuliferous has quit [Ping timeout: 250 seconds]
jottr has joined #ruby
baweaver has joined #ruby
jam__ has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
BrunoSaboia has joined #ruby
<benzrf> >> ( true | true | false )
<ruby[bot]> benzrf: # => true (https://eval.in/539882)
ChiefAlexander has joined #ruby
<benzrf> smh
<Elysia> shevy: nope, mIRC user
baweaver has quit [Ping timeout: 250 seconds]
infra-red has joined #ruby
tk__ has quit [Quit: ばいばい]
<benzrf> people still use mirc??
<Elysia> Yeah
<surrounder> yes, why not
<Elysia> I do, for one!
<Elysia> but in particular some of the, well, "stranger" users of IRC use mIRC with lots of addons
<surrounder> I so don't understand "do people still use $X" questions
<Elysia> specifically because those scripts are translated in their language.
roger_rabbit has quit [Ping timeout: 260 seconds]
mechanicles has joined #ruby
<adaedra> do people still use DOS
Marsupermammal has quit [Ping timeout: 276 seconds]
<SebastianThorn> im using irssi, dont think ill change, not sure what would make me change, same with emacs
bry4n has joined #ruby
aryaching has joined #ruby
surial has left #ruby ["Textual IRC Client: www.textualapp.com"]
whiteline has joined #ruby
<shevy> good old mIRC
<shevy> I miss the old colourful script banners :)
<SebastianThorn> well, to be honest, didnt think i would switch from screen to tmux either, but that i did..
Ropeney has joined #ruby
rdark has joined #ruby
<adaedra> The green bar is fabulous.
cdg has joined #ruby
LoneHermit has joined #ruby
blandflakes has joined #ruby
<sandelius> Good ruby code make me giggle xD
RegulationD has joined #ruby
tubuliferous has joined #ruby
chipotle has quit [Quit: cheerio]
whippythellama has joined #ruby
bricker has joined #ruby
mfaeh has joined #ruby
fullofcaffeine has joined #ruby
nofacade has joined #ruby
<shevy> how about php code
chipotle has joined #ruby
rkazak has joined #ruby
bricker has quit [Ping timeout: 248 seconds]
freerobby has joined #ruby
<sandelius> same as js code
<sandelius> "why" if you have a choice
<the_drow> where can I find the Ruby C API documentation
nerium has quit [Quit: nerium]
johnmilton has quit [Ping timeout: 248 seconds]
rdark has quit [Ping timeout: 248 seconds]
cgfbee has quit [Ping timeout: 250 seconds]
cfloare has quit [Ping timeout: 268 seconds]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
johnmilton has joined #ruby
myntcake has quit [Quit: Page closed]
<the_drow> sandelius, I was afraid you're gonna say that
<the_drow> It's not detailed enough. At least not when it comes to describe rb_thread_call_without_gvl
<the_drow> How do I call a C function with multiple arguments?
ccooke has quit [Ping timeout: 276 seconds]
chouhoulis has quit [Remote host closed the connection]
zast has joined #ruby
blandflakes has joined #ruby
chouhoulis has joined #ruby
rkazak has quit [Ping timeout: 240 seconds]
<sandelius> not sure about that
skryking has joined #ruby
diegoviola has joined #ruby
<sandelius> you have a great guide in writing ruby extensions in C here http://clalance.blogspot.se/2011/01/writing-ruby-extensions-in-c-part-1.html perhaps he mention it somewhere. It's a 12 part series
<the_drow> I already saw that
codecop has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 248 seconds]
skryking has quit [Remote host closed the connection]
LoneHermit has quit [Remote host closed the connection]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
skryking has joined #ruby
skryking has quit [Remote host closed the connection]
johnmilton has quit [Ping timeout: 252 seconds]
<the_drow> sandelius, It doesn't mention anything about threads
skryking has joined #ruby
blandflakes has joined #ruby
johnny56_ has joined #ruby
uri_ has joined #ruby
bricker has joined #ruby
quakephil has quit [Ping timeout: 244 seconds]
fexilal has joined #ruby
quakephil has joined #ruby
johnny56 has quit [Ping timeout: 264 seconds]
<the_drow> I think I got it. It passes the argument as a void pointer
<the_drow> That sucks
last_staff has quit [Quit: last_staff]
yatish27 has joined #ruby
robbyoconnor has quit [Ping timeout: 244 seconds]
Gasher has quit [Ping timeout: 246 seconds]
zast has quit [Quit: Leaving.]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aryaching has quit [Ping timeout: 260 seconds]
theRealGent has joined #ruby
rippa has joined #ruby
jottr has joined #ruby
aryaching has joined #ruby
lessless has joined #ruby
Guest__ has joined #ruby
johnmilton has joined #ruby
Vingador has quit [Ping timeout: 276 seconds]
yeticry_ has joined #ruby
saneax is now known as saneax_AFK
CloCkWeRX has quit [Remote host closed the connection]
yeticry has quit [Ping timeout: 264 seconds]
cgfbee has joined #ruby
cfloare has joined #ruby
tref has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
<tref> was wondering if someone could give me a quick code review
roger_rabbit has joined #ruby
kies has joined #ruby
woodruffw has quit [Ping timeout: 248 seconds]
<Guest__> tref what is that for ?
<tref> Guest__: In terms of what? What does the application do?
nocontrol has quit [Remote host closed the connection]
Gasher has joined #ruby
x77686d has joined #ruby
decoponio has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
<havenwood> tref: Use lowercase `date` since on a case sensitive OS this will fail: https://github.com/Tref/delimeter_parser/blob/master/lib/university/parser.rb#L1
<yorickpeterse> the_drow: you mean a function which takes a va_list?
<the_drow> I guess
<yorickpeterse> You just pass them as separate arguments
<the_drow> I don't really want to wrap my args as an array
kfpratt has quit [Remote host closed the connection]
<the_drow> I don't see that the API is defined that way
TheCubeLord has quit [Quit: Leaving]
<yorickpeterse> int whatever(...) { ... }; whatever(1), whatever(1, 2), etc
ChiefAlexander has joined #ruby
<yorickpeterse> typically Ruby functions take an extra argument that denotes the amount of arguments passed
<yorickpeterse> so you'd get something like
<yorickpeterse> whatever(1, foo); or whatever(2, foo, bar);
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
woodruffw has joined #ruby
uglybandersnatch has joined #ruby
<tref> havenwood: thanks those are good suggestions
<tref> havenwood: never used flat_map
crowell has quit [Ping timeout: 246 seconds]
woodruffw has joined #ruby
<the_drow> I'm talking about rb_thread_call_without_gvl
noServic1 has quit [Ping timeout: 246 seconds]
<tref> I also had a question regarding some of these private methods. For some reason some of them are throwing errors as private methods when I run tests against them. Why is that when the same methods are fine from within the CLI app
Mon_Ouie has joined #ruby
noService has joined #ruby
shinnya has quit [Ping timeout: 264 seconds]
tomatoes has joined #ruby
neilhwatson has joined #ruby
Guest__ has left #ruby ["Textual IRC Client: www.textualapp.com"]
uglybandersnatch has quit [Ping timeout: 240 seconds]
kfpratt has joined #ruby
polishdub has joined #ruby
<the_drow> yorickpeterse, I wonder if there's a way to fix the C API
hightower3 has quit [Ping timeout: 244 seconds]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
DynamicMetaFlow has quit [Ping timeout: 244 seconds]
<the_drow> You can create function pointers that allow variable arguments
<the_drow> I wonder why that isn't the API
<the_drow> I'll open an issue about it
JohnBat26 has quit [Read error: Connection reset by peer]
<yorickpeterse> IIRC you cast them to void* and then back
JohnBat26 has joined #ruby
jpfuentes2 has joined #ruby
<yorickpeterse> a bunch of C functions take a "data" argument that's just a void* that's passed to whatever C function you pass as well
<the_drow> But it only takes one argument
yatish27 has quit [Remote host closed the connection]
<the_drow> So I can't do rb_thread_call_without_gvl(my_func, &p1, &p2, RUBY_UBF_IO, 0)
<the_drow> I need to create a struct just for the parameters
<the_drow> It's silly
callen92 has quit [Ping timeout: 244 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crowell has joined #ruby
noService has quit [Ping timeout: 246 seconds]
darkxploit has joined #ruby
callen92 has joined #ruby
theRealGent has quit [Ping timeout: 244 seconds]
tomatoes has quit [Ping timeout: 250 seconds]
mikecmpbll has joined #ruby
rodfersou is now known as rodfersou|lunch
JohnBat26 has quit [Read error: Connection reset by peer]
<yorickpeterse> welcome to the Ruby C API
<yorickpeterse> With an emphasis on "API"
JohnBat26 has joined #ruby
slawrence00 has joined #ruby
<the_drow> I don't get why I have to call a function
stunder has joined #ruby
<the_drow> I mean a function that calls another function
<the_drow> I want to release the GVL for a section of code
<the_drow> that's it
yekta has joined #ruby
dikaio has joined #ruby
<yekta> Hello, how might I limit the attributes a sub class can access from the super class?
`tim` has joined #ruby
<yekta> putting an attr_accessor in a private or protected block of the subclass doesn’t restrict access
nando293921 has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Mon_Ouie> You can't. Each object has access to all its instance variables, instance variables aren't part of a class.
aufi has quit [Ping timeout: 240 seconds]
<tref> yekta: that kind of goes against the whole idea of subclassing
<workmad3> tref: it's the way `private` works in java and C++ :)
<yekta> hah :) interesting
<yekta> I have a Project model (rails) and I wanted to use some object structure to control what can be exported, without making a method for each exportable model.
davedev24 has joined #ruby
<workmad3> but yeah... private doesn't mean the same in ruby... there isn't a way to restrict the methods a subclass can call on a superclass in ruby (unless you go with really dirty tricks, like grabbing a method object of the method you want to hide, then undeffing it from the object)
<the_drow> yorickpeterse, Could I just use BLOCKING_REGION? http://rxr.whitequark.org/mri/source/thread.c#151
<tref> anyone else want to give a quick CR? (thanks havenwood ) https://github.com/Tref/delimeter_parser
nocontrol has joined #ruby
dionysus69 has joined #ruby
<the_drow> I don't really understand the difference between BLOCKING_REGION, GVL_UNLOCK_BEGIN/GVL_UNLOCK_END (Which is exactly like Py_BeginAllowThreads/PyEndAllowThreads)
tubuliferous has quit [Ping timeout: 244 seconds]
mechanicles has quit [Remote host closed the connection]
bronson has joined #ruby
skryking has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
skryking has joined #ruby
bronson has quit [Remote host closed the connection]
nocontrol has quit [Ping timeout: 244 seconds]
noService has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
noService has quit [Changing host]
noService has joined #ruby
JohnBat26 has joined #ruby
skryking has quit [Remote host closed the connection]
<yorickpeterse> the_drow: unsure
ss_much has joined #ruby
[Butch] has joined #ruby
<the_drow> I'll ask on StackOverflow...
<the_drow> Thanks anyway
the_drow has quit [Quit: This computer has gone to sleep]
PedramT has joined #ruby
aganov has quit [Quit: Leaving]
majjoha has joined #ruby
Guest38 has joined #ruby
RegulationD has quit [Remote host closed the connection]
yuung has joined #ruby
PedramT has quit [Ping timeout: 260 seconds]
jottr has quit [Ping timeout: 264 seconds]
scepticulous has quit [Ping timeout: 240 seconds]
Noxilex has joined #ruby
pwnd_nsfw` is now known as pwnd_nsfw
amclain has joined #ruby
noService has quit [Ping timeout: 246 seconds]
nettoweb has joined #ruby
infra-red has quit [Remote host closed the connection]
jottr has joined #ruby
tubuliferous has joined #ruby
cjbischof_ has joined #ruby
Salve has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shredding has quit [Ping timeout: 260 seconds]
DroidBurgundy has joined #ruby
<Salve> Is there a way to get a Hash from a decorator object?
rattatmatt has joined #ruby
<apeiros> Salve: "a Decorator object" is not as descriptive as you seem to think
senayar has joined #ruby
senayar was kicked from #ruby by ruby[bot] [was banned before]
rbennacer has quit [Remote host closed the connection]
<p1k> has anyone used nanoc/middleman/stasis that has a strong preference either way amongst these?
maletor has joined #ruby
maletor has quit [Client Quit]
<apeiros> Salve: so an answer on the same level of descriptiveness: yes, if said decorator object provides a method for that
ccooke has joined #ruby
ferr has quit [Quit: WeeChat 1.4]
<Salve> apeiros, ruby has SimpleDelegator....maybe it supports a hash
maletor has joined #ruby
<apeiros> Salve: what information of a SimpleDelegator would you want as a hash?
Guest_98765 has joined #ruby
<Guest_98765> Allah is doing
<Guest_98765> sun is not doing Allah is doing
<apeiros> Guest_98765: this channel is not the place for your religion. stop it please or leave.
<Guest_98765> moon is not doing Allah is doing
<apeiros> !kick Guest_98765 spam
russt has quit [Quit: That's all, folks!]
baweaver has joined #ruby
Guest_98765 was kicked from #ruby by ruby[bot] [spam]
tjohnson has joined #ruby
`tim` has quit [Ping timeout: 276 seconds]
maletor has quit [Client Quit]
<yorickpeterse> shit, that bot really convinced me
mistermocha has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
russt has joined #ruby
<apeiros> yorickpeterse: hm?
<apeiros> ah, you mean the allah-bot
maletor has joined #ruby
Guest5_ has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
merida has joined #ruby
merida_ has joined #ruby
<yorickpeterse> Yeah
<yorickpeterse> allah is doing, sun is not doing
<yorickpeterse> amen
Noxilex has quit [Ping timeout: 240 seconds]
mechanicles has joined #ruby
Macaveli has joined #ruby
mleung has joined #ruby
<apeiros> ramen
jam__ has quit [Remote host closed the connection]
<morfin> allah-bot explode himself when somebody not agree with him?
Macaveli has quit [Client Quit]
skryking has joined #ruby
_blizzy_ has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
<apeiros> morfin: please don't. that kind of discrimination isn't welcome here either.
melter has quit [Ping timeout: 240 seconds]
JohnBat26 has joined #ruby
Macaveli has joined #ruby
guideX has left #ruby [#ruby]
tesuji has quit [Ping timeout: 276 seconds]
mhoungbo has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 244 seconds]
<fexilal> *cough*
lurch_ has quit [Quit: lurch_]
<fexilal> https://github.com/JuanitoFatas/fast-ruby <-- is this amazing?
duderono_ has joined #ruby
mja has quit [Quit: Lost terminal]
blackmesa has joined #ruby
unreal has quit [Ping timeout: 264 seconds]
growGROW has joined #ruby
maner has quit [Remote host closed the connection]
SCHAAP137 has quit [Remote host closed the connection]
jhn has joined #ruby
sneakerhax has joined #ruby
<yorickpeterse> the examples are cute, but not what you'd worry about in 95% of code out there
<yorickpeterse> it's the kind of code you'd worry about when writing low level libraries such as parsers, compilers, etc
<Papierkorb> or doing computation in ruby...
<yorickpeterse> or stuff that runs in a tight loop
jpfuentes2 has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
melter has joined #ruby
rcvalle has joined #ruby
rcvalle has left #ruby [#ruby]
rcvalle has joined #ruby
codecop has joined #ruby
infra-red has joined #ruby
BrunoSaboia has quit [Ping timeout: 252 seconds]
bezhermoso has joined #ruby
PedramT has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saneax_AFK is now known as saneax
mfaeh has quit [Remote host closed the connection]
jottr has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
yekta has quit [Quit: yekta]
the_drow has joined #ruby
bronson has joined #ruby
infra-red has quit [Remote host closed the connection]
infra-red has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
unreal has joined #ruby
unl0ckd has joined #ruby
andikr has quit [Remote host closed the connection]
mfaeh has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
blt has quit [Ping timeout: 240 seconds]
mechanicles has quit [Remote host closed the connection]
RegulationD has joined #ruby
TheNet has joined #ruby
mechanicles has joined #ruby
aufi has joined #ruby
elifoster has joined #ruby
TheNet has quit [Client Quit]
Vingador has joined #ruby
RegulationD has quit [Remote host closed the connection]
mfaeh has quit []
JohnBat26 has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
JohnBat26 has joined #ruby
tomchapin has joined #ruby
gizmore has joined #ruby
Eiam_ has joined #ruby
tref has quit [Quit: tref]
hogetaro has joined #ruby
jam__ has joined #ruby
Dimik has joined #ruby
Couch has quit [Ping timeout: 248 seconds]
mrgrieves has quit [Ping timeout: 250 seconds]
chrisja has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cheerio]
jaruga_ has quit [Ping timeout: 244 seconds]
choke has joined #ruby
JohnBat26 has joined #ruby
mechanicles has quit [Remote host closed the connection]
YP-QMUL-W has joined #ruby
babblebre has joined #ruby
rodfersou|lunch is now known as rodfersou
blt has joined #ruby
p1k has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
noService has joined #ruby
kies has quit [Ping timeout: 246 seconds]
<adaedra> GitHub down for you?
rattatmatt has quit [Remote host closed the connection]
<apeiros> just you
<apeiros> hm
<apeiros> misleading!
bronson has quit [Remote host closed the connection]
<Koshian_> oh, I can't access to github now.
<adaedra> well, downforeveryone would not catch this; I get a page saying it's down
<apeiros> it's up, but rendering "No server is currently available to service your request."
<adaedra> so for machines just doing a curl, it's up.
<adaedra> Ok, it's not just me
<apeiros> don't we have status codes for such things? :<
JohnBat26 has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
audiodude has quit [Ping timeout: 260 seconds]
mistermocha has joined #ruby
<apeiros> status.github.com not responding doesn't help much :-O
ChiefAlexander has quit [Remote host closed the connection]
andersh has quit [Ping timeout: 260 seconds]
chipotle has joined #ruby
ixti has quit [Read error: Connection reset by peer]
ChiefAlexander has joined #ruby
beawesomeinstead has quit [Ping timeout: 260 seconds]
ssm has quit [Ping timeout: 260 seconds]
Riviera- has quit [Ping timeout: 260 seconds]
krasnus has quit [Ping timeout: 260 seconds]
bronson has joined #ruby
graffix has quit [Ping timeout: 276 seconds]
audiodude has joined #ruby
ixti has joined #ruby
andersh has joined #ruby
startupality has joined #ruby
beawesomeinstead has joined #ruby
skryking has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 250 seconds]
weemsledeux has joined #ruby
gigetoo has quit [Ping timeout: 244 seconds]
agit0 has joined #ruby
mjc_ has joined #ruby
gigetoo has joined #ruby
duderono_ is now known as duderonomy
<shevy> the world is coming to an end
nocontrol has joined #ruby
Sucks has joined #ruby
TomyLobo has quit [Ping timeout: 240 seconds]
configged- has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
DroidBurgundy has quit [Ping timeout: 240 seconds]
nando293921 has quit [Ping timeout: 276 seconds]
jottr has quit [Quit: WeeChat 1.4]
openstruct has joined #ruby
baweaver has joined #ruby
<mwlang> well, now I know why I was having trouble gisting earlier.
jam__ has quit [Remote host closed the connection]
Riviera- has joined #ruby
jam__ has joined #ruby
ssm has joined #ruby
PedramT has quit []
djbkd has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
charlemagne has joined #ruby
openstruct has quit []
symm- has joined #ruby
mikecmpbll has quit [Ping timeout: 260 seconds]
startupality has quit [Quit: startupality]
cpruitt has joined #ruby
callen92 has quit [Quit: Leaving]
jam__ has quit [Ping timeout: 268 seconds]
zast has joined #ruby
baweaver has quit [Remote host closed the connection]
siaw has quit [Ping timeout: 252 seconds]
startupality has joined #ruby
baweaver has joined #ruby
uri_ has quit [Quit: --]
todd1 is now known as Todd
n008f4g_ has joined #ruby
uri_ has joined #ruby
tildes has joined #ruby
Vingador has quit [Quit: Leaving]
krasnus has joined #ruby
aufi has quit [Ping timeout: 244 seconds]
djbkd has quit [Remote host closed the connection]
norc_ has joined #ruby
<shevy> I always blame the cat for this
djbkd has joined #ruby
jam__ has joined #ruby
Devalo has joined #ruby
charlemagne has quit [Ping timeout: 252 seconds]
konopka has left #ruby ["Textual IRC Client: www.textualapp.com"]
Guest5_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomatoes has joined #ruby
_stu_ has quit [Quit: _stu_]
unshadow has quit [Ping timeout: 260 seconds]
startupality has quit [Quit: startupality]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
ljames has joined #ruby
evidex has quit [Ping timeout: 250 seconds]
unshadow has joined #ruby
SCHAAP137 has joined #ruby
startupality has joined #ruby
jkahn has joined #ruby
renier has joined #ruby
kies has joined #ruby
startupality has quit [Client Quit]
igam has quit [Ping timeout: 260 seconds]
startupality has joined #ruby
linoj has quit [Quit: linoj]
rbennacer has joined #ruby
wolfedale has quit [Remote host closed the connection]
baweaver has joined #ruby
Guest34101 has quit [Ping timeout: 244 seconds]
thatbracket[ is now known as mnrmnaugh
baweaver has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
jhn has quit [Quit: Textual IRC Client: www.textualapp.com]
djbkd has quit [Remote host closed the connection]
jkahn has quit [Ping timeout: 248 seconds]
darkxploit has quit [Ping timeout: 246 seconds]
duckpuppy has quit [Ping timeout: 244 seconds]
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
duckpuppy has joined #ruby
djbkd has joined #ruby
skweek has quit [Ping timeout: 276 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
zast has quit [Quit: Leaving.]
djbkd has quit [Remote host closed the connection]
JakFrist has joined #ruby
pandaant has quit [Remote host closed the connection]
nobitanobi has joined #ruby
jenrzzz has joined #ruby
intrigueD has joined #ruby
last_staff has joined #ruby
<nobitanobi> How do I show double quotes if I am creating a string with "" because I want to do interpolation via #{}?
solocshaw has quit [Remote host closed the connection]
solocshaw has joined #ruby
infra-re_ has joined #ruby
djbkd has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
fdisc has joined #ruby
djbkd has joined #ruby
<workmad3> nobitanobi: "\""
Macaveli has joined #ruby
<al2o3-cr> nobitanobi: escape them with \
jkahn has joined #ruby
<nobitanobi> arg
<nobitanobi> thanks
<apeiros> or just use %{} strings
<workmad3> nobitanobi: or %Q{}
djbkd has quit [Remote host closed the connection]
<apeiros> >> %{I said "hello!"}
<ruby[bot]> apeiros: # => "I said \"hello!\"" (https://eval.in/539986)
<workmad3> apeiros: heh :) I always forget that %{} is the same as %Q{}
<apeiros> >> entity = "my friend"; %{I said "hello #{entity}!"}
kahn_dumb has joined #ruby
<ruby[bot]> apeiros: # => "I said \"hello my friend!\"" (https://eval.in/539987)
<apeiros> (just to show it interpolates)
yqt has joined #ruby
moeabdol2 has quit [Ping timeout: 268 seconds]
<apeiros> workmad3: yeah, I'm being a good programmer by being as lazy as permissible :)
slawrence00 has quit [Ping timeout: 240 seconds]
infra-red has quit [Ping timeout: 240 seconds]
startupality has quit [Quit: startupality]
baweaver has joined #ruby
darkxploit has joined #ruby
Salve has quit [Remote host closed the connection]
mistermocha has joined #ruby
<nobitanobi> thanks guys
the_drow has joined #ruby
jkahn has quit [Ping timeout: 276 seconds]
moeabdol2 has joined #ruby
<workmad3> shevy: I like mruby :) we started using it recently in this form: https://github.com/matsumoto-r/ngx_mruby
darkxploit has quit [Read error: Connection reset by peer]
<shevy> ah I saw this a while ago
pawnbox has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
AlexRussia has quit [Ping timeout: 250 seconds]
Guest38 has quit [Remote host closed the connection]
Guest38 has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
Alayde has joined #ruby
yeticry has joined #ruby
jenrzzz has quit [Quit: Lost terminal]
yatish27 has joined #ruby
yeticry_ has quit [Ping timeout: 276 seconds]
wilbert has joined #ruby
baweaver has quit [Remote host closed the connection]
agit0 has quit [Quit: zzzZZZ….]
yeticry has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 276 seconds]
Alayde has left #ruby [#ruby]
yatish27 has quit [Ping timeout: 268 seconds]
cdg has quit [Remote host closed the connection]
mtkd has quit [Ping timeout: 248 seconds]
yeticry has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
Devalo has quit [Remote host closed the connection]
ChiefAlexander has joined #ruby
mtkd has joined #ruby
TomyLobo has joined #ruby
<Papierkorb> workmad3: can you tell if it's stable already, or are you having issues?
nobitanobi has quit [Remote host closed the connection]
<workmad3> Papierkorb: it worked fine for our needs, no stability problems at all in our prod setup
<Papierkorb> workmad3: neat.
jam__ has quit [Ping timeout: 250 seconds]
scootaloo has joined #ruby
edwinvdgraaf has joined #ruby
<workmad3> Papierkorb: we weren't exactly stressing the limits though :)
g3funk is now known as braidn
<Papierkorb> atm we're using consul-template to rewrite the nginx conf on configuration changes (that nginx is used for forwarding/proxying stuff), but somehow that feels .. off
yfeldblum has joined #ruby
jenrzzz has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
Eiam has joined #ruby
Musashi007 has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
<workmad3> Papierkorb: ah, we're running an nginx proxy on heroku (weird, I know, but it was set up way before I started here) so our config is being generated through an erb template to give some basic scripting... we needed to be able to switch between two upstreams for a page redesign though and the built-in stuff in nginx couldn't achieve that properly (due to more heroku annoyances)
<workmad3> so we pulled in ngx_mruby and basically wrote our own small upstream switcher with sticky sessions in about 12 lines of mruby :)
<Papierkorb> Sounds good
mrgrieves has joined #ruby
<ruurd> Yes funny, RAILS as an nginx extension... imagine that...
<scootaloo> Passenger?
<ruurd> No that's different
<Papierkorb> but pretty close
mikecmpbll has joined #ruby
dionysus69 has joined #ruby
<workmad3> ruurd: you'd need to do a fair bit more work before you could run rails inside ngx_mruby... it doesn't have normal rubygem support, for starters :)
spider-mario has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
<ruurd> 'imagine' is the operative word here :-) but still
JohnBat26 has joined #ruby
jaruga has joined #ruby
jaruga is now known as jaruga_
jenrzzz has quit [Quit: leaving]
f0f4r has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Client Quit]
futilegames has joined #ruby
rodfersou is now known as rodfersou|afk
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<shortdudey123> anyone else seeing 503's to bundler.rubygems.org?
blackmesa has quit [Ping timeout: 264 seconds]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
exceion has joined #ruby
speakingcode has quit [Remote host closed the connection]
tomatoes has quit [Ping timeout: 250 seconds]
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
agit0 has joined #ruby
blandflakes has joined #ruby
halfamind1 has joined #ruby
halfamind has quit [Read error: Connection reset by peer]
crime has joined #ruby
yqt has quit [Ping timeout: 248 seconds]
Musashi007 has quit [Quit: Musashi007]
nofacade_ has joined #ruby
blandflakes has quit [Client Quit]
tildes has quit [Ping timeout: 248 seconds]
blandflakes has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
firstdayonthejob has joined #ruby
JohnBat26 has joined #ruby
nofacade has quit [Ping timeout: 260 seconds]
robbyoconnor has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
sepp2k has quit [Quit: Leaving.]
growGROW has quit [Remote host closed the connection]
edwinvdgraaf has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
edwinvdgraaf has joined #ruby
Guest5 has joined #ruby
symm- has quit [Ping timeout: 264 seconds]
andywojo has joined #ruby
djbkd has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
djbkd has quit [Remote host closed the connection]
slawrence00 has joined #ruby
djbkd has joined #ruby
stunder has quit [Ping timeout: 244 seconds]
edwinvdgraaf has quit [Ping timeout: 244 seconds]
djellemah has quit [Read error: Connection reset by peer]
akkad has quit [Quit: Emacs must have died]
tildes has joined #ruby
postmodern has joined #ruby
mdw has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
merida has quit [Remote host closed the connection]
_stu_ has joined #ruby
mdw has quit [Ping timeout: 240 seconds]
hightower3 has joined #ruby
yeticry_ has joined #ruby
rodfersou|afk is now known as rodfersou
merida_ has quit [Ping timeout: 240 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
djellemah has joined #ruby
yeticry has quit [Ping timeout: 250 seconds]
AlexRussia has joined #ruby
uglybandersnatch has joined #ruby
stunder has joined #ruby
yuung has quit [Ping timeout: 248 seconds]
futilegames has quit [Quit: futilegames]
mdw has joined #ruby
chrisja has quit [Quit: leaving]
cpup has quit [Ping timeout: 268 seconds]
ffgghh has quit [Quit: Leaving]
stunder has quit [Ping timeout: 240 seconds]
uglybandersnatch has quit [Ping timeout: 268 seconds]
cpup has joined #ruby
tvw has quit [Remote host closed the connection]
the_drow has quit [Quit: This computer has gone to sleep]
Musashi007 has joined #ruby
idefine has joined #ruby
edwinvdgraaf has joined #ruby
baweaver has joined #ruby
unshadow has quit [Ping timeout: 248 seconds]
Disavowed has joined #ruby
`tim` has joined #ruby
baweaver has quit [Remote host closed the connection]
elifoster has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
siaw has joined #ruby
<shevy> I see dead people.
nobitanobi has joined #ruby
rattatmatt has joined #ruby
<apeiros> that's quite a lot of people
stunder has joined #ruby
yuung has joined #ruby
<crime> do you guys like Atlas Shrugged?
<Radar> ?offtopic crime
<ruby[bot]> crime: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
baweaver has quit [Remote host closed the connection]
<crime> ok but "I see dead people" is apparently ok
<crime> in detail, how exactly does that work?
<Radar> crime: No arguing. Thanks.
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
infra-red has joined #ruby
<crime> lol
siaw has quit [Ping timeout: 246 seconds]
<crime> you remind me of a mall cop who thinks he can actually arrest people and shit
<Radar> !mute crime
<Radar> Boring troll is boring.
baweaver has joined #ruby
KayKayKay has joined #ruby
stunder has quit [Ping timeout: 248 seconds]
yuung has quit [Ping timeout: 246 seconds]
<Radar> !ban crime
crime was kicked from #ruby by ruby[bot] [bannable offense, see http://ruby-community.com/pages/user_rules]
krzkrz has joined #ruby
<Radar> Best to not insult ops in PM, yeah?
<KayKayKay> i thought pms don't count
infra-re_ has quit [Ping timeout: 260 seconds]
<apeiros> s/PM//
<Radar> !ban KayKayKay
<Radar> ?next
<Radar> Oh we don't have that tip here...
KayKayKay was kicked from #ruby by ruby[bot] [bannable offense, see http://ruby-community.com/pages/user_rules]
<ruby[bot]> Radar: I don't know anything about next
<eam> and don't ever come back to abercrombie and fitch
akkad has joined #ruby
<Zarthus> hey Radar, I think you are a pretty cool person and all of that good jazz.
kt2 has joined #ruby
kt2 has quit [Client Quit]
krz has quit [Ping timeout: 244 seconds]
<eam> it's too bad that people rarely actually join the offtopic channel. It's kinda better than this one
tomchapin has quit [Quit: Textual IRC Client: www.textualapp.com]
<djellemah> eam: DeBot seems to dominate the conversation over there :-p
yfeldblum has quit [Ping timeout: 268 seconds]
<eam> djellemah: only when someone isn't being hilariously and interestingly offtopic - you should start something!
infra-re_ has joined #ruby
jenrzzz has quit [Quit: Lost terminal]
ghoti_ is now known as ghoti
<djellemah> touché
tomchapin has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
devbug has joined #ruby
Sucks has quit [Read error: Connection reset by peer]
mhoungbo has joined #ruby
nobitanobi has quit [Remote host closed the connection]
jenrzzz has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
jenrzzz has joined #ruby
intrigueD has quit [Remote host closed the connection]
djbkd has joined #ruby
duckpuppy has quit [Ping timeout: 268 seconds]
infra-red has quit [Ping timeout: 264 seconds]
stunder has joined #ruby
Sucks has joined #ruby
wilbert has quit [Ping timeout: 248 seconds]
<shevy> djellemah aha!!! a bot!
djbkd has quit [Ping timeout: 250 seconds]
stunder has quit [Ping timeout: 252 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
edwinvdgraaf has quit [Remote host closed the connection]
scootaloo has quit [Quit: Textual IRC Client: www.textualapp.com]
yuung has joined #ruby
boontdustie has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
FooMunki has quit [Client Quit]
FooMunki has joined #ruby
trinaldi has quit [Quit: WeeChat 1.5-dev]
nofacade_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tildes has quit [Ping timeout: 244 seconds]
yuung has quit [Ping timeout: 264 seconds]
<Zarthus> eam: I got irritated by that bot, was it the one about trivia or the one with unicode? I don't remember.
nofacade has joined #ruby
stunder has joined #ruby
<adaedra> Zarthus: good thing we have ignore lists in IRC clients now.
<Zarthus> pretty sure it dominated the conversation, so there wasn't much use in sticking around
nofacade has quit [Max SendQ exceeded]
<adaedra> Yeah, depends on the moment
cdg has joined #ruby
cdg has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
cdg has joined #ruby
<xpt> djellemah: It's not dominating. It writes at most 50% of the lines
mrgrieves has quit [Ping timeout: 276 seconds]
<adaedra> I'd be in favor of moving the hangman somewhere else, but I guess there's not enough activity to warrant that
baweaver has quit [Remote host closed the connection]
rkazak has joined #ruby
sepp2k has joined #ruby
yuung has joined #ruby
maletor has quit [Quit: Textual IRC Client: www.textualapp.com]
yqt has joined #ruby
baweaver has joined #ruby
djellemah has quit [Ping timeout: 250 seconds]
renier has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> Zarthus unicode bots are the worst!
<xpt> maybe make #ruby-hangman. Ruby-offtopic has more activity than some chanells I know even without hangman.
fullofcaffeine has quit [Remote host closed the connection]
<adaedra> ah, I knew shevy would come to the discussion.
bluOxigen_ has quit [Ping timeout: 244 seconds]
<adaedra> Well, either convince enough ops acting in -offtopic about the subject, or convince jhass
<Zarthus> i'd much rather convince the ops to keep me in here and keep sneakily sneaking through the occasional offtopic discussion!
<adaedra> FWIW, DeBot's also working in ##hangman
norc_ has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
monque has joined #ruby
lemur has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
wilbert has joined #ruby
maletor has joined #ruby
ramfjord has joined #ruby
merida_ has joined #ruby
merida has joined #ruby
Musashi007 has quit [Quit: Musashi007]
djbkd has joined #ruby
halfamind1 has quit [Quit: Leaving.]
lemur has quit [Ping timeout: 252 seconds]
mondok has joined #ruby
danielwzd has joined #ruby
hightower3 has quit [Ping timeout: 248 seconds]
th0m_ has quit [Ping timeout: 240 seconds]
Guest5 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
codecop has quit [Remote host closed the connection]
mdw has quit [Ping timeout: 276 seconds]
rkazak has quit [Quit: Sleep.....ing....]
chipotle has quit [Quit: cheerio]
BtcBen has joined #ruby
djellemah has joined #ruby
Guest5 has joined #ruby
wilbert has quit [Ping timeout: 244 seconds]
krzkrz has quit [Read error: Connection reset by peer]
n008f4g_ has quit [Ping timeout: 252 seconds]
halfamind has joined #ruby
rkazak has joined #ruby
Sucks has quit [Remote host closed the connection]
nettoweb has joined #ruby
askhat has joined #ruby
jam__ has joined #ruby
mondok has quit [Remote host closed the connection]
maletor has quit [Quit: Textual IRC Client: www.textualapp.com]
darkf has joined #ruby
aryaching has quit [Read error: No route to host]
fmcgeough has quit [Quit: fmcgeough]
jam__ has quit [Ping timeout: 250 seconds]
aryaching has joined #ruby
chipotle has joined #ruby
P4Titan has joined #ruby
<P4Titan> Hello All! How would I add instance variables to a class. Would I define them inside of the initialize function?
<baweaver> P4Titan: what have you tried?
<baweaver> and what tutorials have you read?
<P4Titan> I am aware of class variables and Class level instance variable
<P4Titan> I would like to define instance variables for a class which I can access from outside
Guest5 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<P4Titan> of course, I'll need to include the accessors
trosborn has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> >> class Foo; attr_accessor :bar end; f= Foo.new; f.bar = 5; f
<ruby[bot]> baweaver: # => #<Foo:0x40b6994c @bar=5> (https://eval.in/540058)
<Zarthus> I uh..
<Zarthus> I didn't quite get the memo that #inspect does that automagically.
<P4Titan> interesting
yuung has quit [Ping timeout: 244 seconds]
* Zarthus has been defining his own inspect method that does that
<baweaver> though this is basic class mechanics
<baweaver> setting an instance variable on a class is normally covered early on, hence the confusion to the question
<adaedra> Zarthus: that's p.
nerium has joined #ruby
<adaedra> (which does #inspect, right.)
<P4Titan> baweaver: I understand
<Zarthus> adaedra: eh, I mostly called it myself for debugging
<P4Titan> I don't follow tutorial per se, I just look things up as I need them
<baweaver> might get pulled into a meeting soon if I dc
<adaedra> I should `adaedra.update location: adaedra.bed`
<baweaver> P4Titan: learnxinyminutes.com
<baweaver> read through ruby
tomchapin has quit [Quit: Textual IRC Client: www.textualapp.com]
<adaedra> ruby and rust both begin with "ru"
jam__ has joined #ruby
arup_r has left #ruby [#ruby]
<P4Titan> its basically a large file of useful examples of common cases
fullofcaffeine has joined #ruby
<P4Titan> that may be handy
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agentmeerkat has joined #ruby
neilhwatson has quit [Quit: leaving]
blandflakes has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
yqt has quit [Read error: Connection reset by peer]
blandflakes has joined #ruby
yqt has joined #ruby
blandflakes has quit [Client Quit]
nettoweb has joined #ruby
wilbert has joined #ruby
blackgoat has joined #ruby
merida_ has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 1.4]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
rkazak has quit [Ping timeout: 244 seconds]
boontdustie has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
KnownSyntax has quit [Read error: Connection reset by peer]
infra-red has joined #ruby
merida has quit [Ping timeout: 244 seconds]
infra-red has quit [Remote host closed the connection]
saneax is now known as saneax_AFK
boontdustie has joined #ruby
n008f4g_ has joined #ruby
mondok has joined #ruby
Don_John has joined #ruby
minimalism has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
JohnBat26 has quit [Read error: Connection reset by peer]
infra-re_ has quit [Ping timeout: 248 seconds]
JohnBat26 has joined #ruby
Guest34101 has joined #ruby
goleldar has joined #ruby
Musashi007 has joined #ruby
rbennacer has quit [Remote host closed the connection]
the_drow has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
dionysus69 has quit [Ping timeout: 240 seconds]
symm- has joined #ruby
skade has joined #ruby
fullofcaffeine has joined #ruby
Guest34101 is now known as dtzuzu
fullofcaffeine has quit [Ping timeout: 252 seconds]
ldnunes has quit [Remote host closed the connection]
tubuliferous has quit [Ping timeout: 246 seconds]
Musashi007 has quit [Quit: Musashi007]
washt has quit [Ping timeout: 248 seconds]
edwinvdgraaf has joined #ruby
rodfersou is now known as rodfersou|dinner
tubuliferous has joined #ruby
mhoungbo has quit [Quit: Quitte]
rgb-one has joined #ruby
<rgb-one> Hey
aryaching has quit []
uri_ has quit [Ping timeout: 240 seconds]
djbkd has quit [Quit: My people need me...]
r4z3r has quit [Max SendQ exceeded]
r4z3r has joined #ruby
polishdub has quit [Ping timeout: 240 seconds]
<rgb-one> what libs are available for Remote Method Invocation in Ruby?
babblebre has quit [Quit: Connection closed for inactivity]
niggs has joined #ruby
kobain has joined #ruby
blackmesa has joined #ruby
fainter has joined #ruby
kobain has quit [Max SendQ exceeded]
x77686d has quit [Quit: x77686d]
kobain has joined #ruby
fainter has left #ruby ["Ухожу я от вас (xchat 2.4.5 или старше)"]
skade has quit [Quit: Computer has gone to sleep.]
nb_bez___ has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
ChiefAlexander has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
nettoweb has quit [Read error: Connection reset by peer]
skade has joined #ruby
freerobby has quit [Quit: Leaving.]
FooMunki has quit [Quit: FooMunki]
freerobby has joined #ruby
FooMunki has joined #ruby
niggs has quit [K-Lined]
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
skade has quit [Client Quit]
diegoviola has joined #ruby
intrigueD has joined #ruby
yuung has joined #ruby
<rgb-one> Thanks shevy
Disavowed has quit [Ping timeout: 240 seconds]
skade has joined #ruby
djbkd has joined #ruby
babblebre has joined #ruby
yfeldblum has joined #ruby
<clorisu> what does the #example # mean ?
<clorisu> is it referring to a method?
BrunoSaboia has joined #ruby
polishdub has joined #ruby
<shevy> clorisu yeah
<shevy> so you can invoke .example on the object
yuung has quit [Quit: leaving]
<clorisu> why arent they alternatively described as .example shevy ?
<clorisu> wouldnt that be more consistent
nettoweb has joined #ruby
maletor has joined #ruby
niggurs has joined #ruby
<niggurs> what is a good ruby guide?
swills has joined #ruby
Vlat- has quit [Quit: Vlat-]
<clorisu> niggurs: tryruby.org here's a good quick intro
<shevy> niggurs nick?
<niggurs> yes
<niggurs> it's me
<niggurs> what's up?
<shevy> yeah we know
<shevy> clorisu because you can also call it on some toplevel module or class, for instance: class Foo; def self.hi; puts 'hi'; end; end; Foo.hi()
jackjackdripper has joined #ruby
<shevy> or, to combine both: class Foo; def hi; Foo.hi; end; def self.hi; puts 'hi'; end; end; Foo.hi(); Foo.new.hi()
jackjackdripper has quit [Client Quit]
jackjackdripper has joined #ruby
n008f4g_ has quit [Ping timeout: 268 seconds]
skade has quit [Quit: Computer has gone to sleep.]
<clorisu> wouldn't `.example` describe that situation just as well shevy?
<clorisu> or `.hi` in this instance?
cd-rum has joined #ruby
niggurs has quit [K-Lined]
polishdub has quit [Ping timeout: 268 seconds]
fullofcaffeine has joined #ruby
<shevy> they are two different methods though
<shevy> you can see how rdoc arranges them
<shevy> the class methods it groups with the leading :: so we have ::[] ::new ::try_convert that is, Array[] Array.new and Array.try_convert
<shevy> and the others are those callable on your array instances, that is #any? #cycle and so forth
baweaver has joined #ruby
tubuliferous has quit [Ping timeout: 240 seconds]
JohnBat26 has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 260 seconds]
JohnBat26 has joined #ruby
ChiefAlexander has quit [Quit: Leaving...]
Azure has joined #ruby
Disavowed has joined #ruby
JohnBat26 has quit [Client Quit]
freerobby1 has quit [Quit: Leaving.]
andywojo has quit [Quit: Lost terminal]
Cohedrin has joined #ruby
tubuliferous has joined #ruby
skade has joined #ruby
graffix has joined #ruby
cd-rum has quit [Ping timeout: 264 seconds]
pulpfiction has joined #ruby
<pulpfiction> guys, if i have a gemfile on the root of a project, isn't it just the case of executing `bundle install` to install the project dependencies?
<pulpfiction> when i execute that, all i get is `bundle: Usage: bundle package dest prefix`
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
polishdub has joined #ruby
snockerton has joined #ruby
<snockerton> so i have a flat text file containing a ruby hash print out (not json), is there a way to read this back into a new hash?
ur5us has joined #ruby
al2o3-cr has quit [Read error: Connection reset by peer]
al2o3-cr has joined #ruby
baweaver has quit [Remote host closed the connection]
kies has quit [Ping timeout: 264 seconds]
Guest5 has joined #ruby
Guest5 has quit [Max SendQ exceeded]
baweaver has joined #ruby
f0f4r has joined #ruby
davedev24 has quit []
r1nuz has quit [Ping timeout: 240 seconds]
chrisml has joined #ruby
r1nuz has joined #ruby
gigetoo_ has joined #ruby
<rgb-one> snockerton: how does the printout look?
<snockerton> {
gigetoo has quit [Ping timeout: 260 seconds]
gigetoo_ is now known as gigetoo
<snockerton> {"key1"=>"value", "key2"=>"value"}
<snockerton> litterally just like REPL printed hash
gizmore has quit [Quit: KVIrc 4.9.1 Aria http://www.kvirc.net/]
<snockerton> someone on slack suggested that eval would work, but to never use it
<snockerton> so i'm using it
htmldrum_ has joined #ruby
htmldrum has joined #ruby
<baweaver> what's the problem?
bry4n has quit [Ping timeout: 260 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<baweaver> snockerton: don't use eval, period.
lemur has joined #ruby
<baweaver> how is the file generated, and why is it not in JSON?
mistermocha has joined #ruby
<ytti> eval is pretty crucial if you're building template langauge :/
<snockerton> other people's code
stannard has quit [Remote host closed the connection]
<snockerton> job logs are output as ruby hashes… yes i know
<ytti> ERB without eval would be hard
<baweaver> ytti: It would be.
tvw has joined #ruby
<baweaver> It's also a magnificent security hole waiting to happen unless used correctly.
intrigueD has quit [Read error: Connection reset by peer]
uglybandersnatch has joined #ruby
lemur has quit [Ping timeout: 250 seconds]
intrigueD has joined #ruby
uptime has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
askhat has quit [Quit: Textual IRC Client: www.textualapp.com]
decoponio has quit [Quit: Leaving...]
aeterne has joined #ruby
YP-QMUL-W has quit [Read error: Connection reset by peer]
wilbert has quit [Ping timeout: 276 seconds]
nerium has quit [Quit: nerium]
sepp2k has quit [Read error: Connection reset by peer]
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
rgb-one has left #ruby ["Konversation terminated!"]
uglybandersnatch has quit [Ping timeout: 276 seconds]
mnrmnaugh has quit [Remote host closed the connection]
nerium has joined #ruby
intrigueD has quit [Remote host closed the connection]
devbug has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mleung has quit [Quit: mleung]
stannard has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<Scriptonaut> Hey guys, you know the &: operator when using map/select/reject? How can I link two together? Let's say I have an array of objects, how could I do: array.map(&:errors.full_messages)
chrisml has left #ruby ["Textual IRC Client: www.textualapp.com"]
mleung has joined #ruby
<Ox0dea> Scriptonaut: `&` is the operator, not `&:`.
<Ox0dea> `&:foo` invokes Symbol#to_proc on :foo to convert it to a Proc.
<Scriptonaut> oh
Aviio has joined #ruby
<Scriptonaut> so, I guess there isn't a way?
<baweaver> nope, not to do that
firstdayonthejob has quit [Ping timeout: 240 seconds]
<baweaver> without patching something
<Ox0dea> I have said patch!
<baweaver> of course you do
<baweaver> does it come in non-alphanumeric? :P
zenlot has joined #ruby
<Ox0dea> That'd be tricky.
<Scriptonaut> how does the &:foo know that the proc takes a single argument?
<Ox0dea> Scriptonaut: It doesn't; Procs don't check arity.
stannard has quit [Ping timeout: 244 seconds]
devbug has joined #ruby
zenlot6 has quit [Ping timeout: 260 seconds]
<Scriptonaut> ah, good point
andywojo has joined #ruby
<baweaver> it also calls it on the object
<Scriptonaut> so how does it call the proc on the object
<Scriptonaut> .map(&:errors), how does it know to call object.errors
f0f4r has quit [Ping timeout: 244 seconds]
<baweaver> &:symbol is equivalent of object.send(symbol)
<Scriptonaut> oh
<baweaver> maybe not exactly, but Ox0dea is about to correct me if not
firstdayonthejob has joined #ruby
<Ox0dea> Well, anything can be converted a Proc with the `&` operator if it responds to #to_proc.
<Scriptonaut> with &:symbol, there is no object though
statelesscode has joined #ruby
varesa has quit [Quit: ZNC - http://znc.in]
<Scriptonaut> how does it know what object to call it on
devbug has quit [Client Quit]
<baweaver> well, 2.3.0 isn't as detailed there....
<baweaver> hover in the top right
<baweaver> mainly it assumes symbols will take the iterated value as what to send to
<Ox0dea> Scriptonaut: https://eval.in/540071
<baweaver> yeah, pretty much that
_stu_ has quit [Quit: _stu_]
jgorak has joined #ruby
CloCkWeRX has joined #ruby
cjbischof_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
P4Titan has quit [Ping timeout: 248 seconds]
jackjackdripper1 has joined #ruby
jackjackdripper has quit [Ping timeout: 248 seconds]
devbug has joined #ruby
jenrzzz has joined #ruby
<baweaver> >> fn_stream = -> path { -> o { path.split('.').reduce(o){ |v,n| v.send(n) }}}; (1..10).map(&fn_stream['to_s.to_f'])
<ruby[bot]> baweaver: # => [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0] (https://eval.in/540073)
<baweaver> that'd be an easy way to hack it
<baweaver> without needing to monkeypatch
jam__ has quit [Remote host closed the connection]
tonyynot has quit [Ping timeout: 264 seconds]
jackjackdripper1 has quit [Client Quit]
jackjackdripper has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quakephil_ has joined #ruby
millerti has joined #ruby
quakephil has quit [Ping timeout: 276 seconds]
polishdub has quit [Quit: Leaving]
nando293921 has joined #ruby
devbug has quit [Read error: Connection reset by peer]
<jgorak> Hi all. I'm still a bit green, and sometimes I find myself doing things more verbosely than needed. I'm trying to find unique pairs inside some nested hashes/arrays of hashes. Is there a better way than nesting Hash::map blocks, returning the pairs I care about, then uniq'ing them? ( https://gist.github.com/anonymous/e1f6415248453cbc82e3 )
senayar has joined #ruby
senayar was kicked from #ruby by ruby[bot] [was banned before]
<ytti> seems fine to me
tubuliferous has quit [Ping timeout: 276 seconds]
<ytti> althoght i wonder where job1.1 went
<ytti> cmd1.1
<ytti> being terse isn't really goal you should strive for
<ytti> being understandable/readable is
<ytti> which often is mutually exclusive with terse
<ytti> although i do have to admit i take sick pleasure in golfing stuff
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ytti> but i have other character faults too
baweaver has quit [Remote host closed the connection]
cd-rum has joined #ruby
uglybandersnatch has joined #ruby
halfamind has quit [Quit: Leaving.]
<jgorak> Neat, thanks. I guess I might be pushing too hard at golfing (never heard this term, I like it!). The results thing was because I expanded my example and forgot to update the results area to match.
baweaver has joined #ruby
techtomas has joined #ruby
drbrain has quit [Ping timeout: 244 seconds]
nocontrol has quit []
skweek has joined #ruby
drbrain has joined #ruby
Lomex has joined #ruby
blandflakes has joined #ruby
uglybandersnatch has quit [Ping timeout: 240 seconds]
uglybandersnatch has joined #ruby
intrigueD has joined #ruby
graffix has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 240 seconds]
siaw has joined #ruby
blt has quit [Ping timeout: 268 seconds]
cd-rum has quit [Ping timeout: 244 seconds]
axisys has joined #ruby
biberu has quit []
tvw has quit [Remote host closed the connection]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
r1nuz has quit [Ping timeout: 244 seconds]
clorisu has quit [Ping timeout: 260 seconds]
tref has joined #ruby
bob434 has joined #ruby
tubuliferous has joined #ruby
YP-QMUL-W has joined #ruby
r1nuz has joined #ruby
<Ox0dea> ytti: I see what you did there. ;)
graffix has joined #ruby
baweaver has quit [Remote host closed the connection]
SG045734 has quit [Ping timeout: 244 seconds]
rkazak has joined #ruby
<tref> Can someone give me a quick code review? https://github.com/Tref/delimeter_parser
Lomex has quit [Remote host closed the connection]
JoshGlzBrk has joined #ruby
baweaver has joined #ruby
Xiti has quit [Quit: Xiti]
rodferso1|dinner has joined #ruby
spider-mario has quit [Remote host closed the connection]
rodfersou|dinner has quit [Ping timeout: 276 seconds]
stunder has quit [Quit: WeeChat 1.4]
<ytti> what is 'overly clever solution'
binaryplease has joined #ruby
<ytti> i feel you're communicating something that is important with wrong words
binaryplease has quit [Client Quit]
clorisu has joined #ruby
<tref> ytti: Thats not my description
<tref> its an assignment
clorisu has quit [Max SendQ exceeded]
<ytti> oh this is for job interview somewhere
bricker has quit [Ping timeout: 244 seconds]
ramfjord_ has joined #ruby
clorisu has joined #ruby
<ytti> 1s look, does not look like your solution is terrible
<ytti> i'd parse the options so that i'd complain on unknown options
<ytti> like
<ytti> foo = attribute.delete :bar
<ytti> raise UnknownOptions unless attribute.empty?
<ytti> so that it would be easier to introduce new options in new version
<ytti> so that they fail obvious way when used with older library
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
patientj has left #ruby [#ruby]
`tim` has quit [Ping timeout: 276 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
<ytti> i would use less class methods
<ytti> and more instance methods
<ytti> but that's just me
<tref> ytti: on which methods?
rcvalle has quit [Quit: rcvalle]
DikshitNijjer has joined #ruby
mnrmnaugh has joined #ruby
<DikshitNijjer> hello all from india here
<DikshitNijjer> anyone else from india?
<baweaver> !troll DikshitNijjer
DikshitNijjer was kicked from #ruby by ruby[bot] [trolling is a bannable offense, see http://ruby-community.com/pages/user_rules]
Gasher^ has joined #ruby
<Radar> pwnt
<tref> baweaver: posted that code and pinged you if you have a chance to take a look. Appreciate the help the other day
solars has quit [Quit: WeeChat 0.4.2]
<baweaver> Was it updated?
<baweaver> Just saw a readme with two lines earlier
Xiti has joined #ruby
solars has joined #ruby
flurby has joined #ruby
<tref> yeah I created a new repo
<baweaver> (might be pulled into a meeting soon, fair warning)
<tref> baweaver: np
<baweaver> I'll take a look when I get a sec later tonight.
Gasher has quit [Ping timeout: 260 seconds]
marr has quit [Ping timeout: 264 seconds]
<tref> great man, thanks
trosborn has quit [Quit: trosborn]
edwardly has quit [Quit: ??????????]
cpup has quit [Ping timeout: 264 seconds]
cpup has joined #ruby
millerti has joined #ruby
millerti has quit [Client Quit]
CloCkWeRX has quit [Ping timeout: 268 seconds]
hydrajump has joined #ruby
clorisu has quit [Ping timeout: 246 seconds]
cjbischof_ has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
ramfjord_ has quit [Ping timeout: 264 seconds]
<hydrajump> hi anyone who can help me with selenium on saucelabs? I've got the following test https://gist.github.com/hydrajump/e6ee99f1d4db0e12f967
BtcBen has quit [Ping timeout: 252 seconds]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hydrajump> It's my first time using selenium and saucelabs and I've gone through their samples, but I'm sometimes getting the assertions to pass and other times one fails or both fail and the site is the same throughout testing
Ropeney has joined #ruby
intrigueD has quit [Remote host closed the connection]
<hydrajump> am I doing something wrong in how I've written the tests?
mistermocha has joined #ruby
CloCkWeRX has joined #ruby
SG045734 has joined #ruby
mondok has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
choke has joined #ruby
last_staff has quit [Quit: last_staff]
graphettion has joined #ruby
snockerton has quit [Quit: Leaving.]
sand_bird has joined #ruby
flurby has quit [Quit: Textual IRC Client: www.textualapp.com]
edwardly has joined #ruby
edwardly has joined #ruby
DLSteve has joined #ruby
x77686d has joined #ruby
Disavowed has quit [Ping timeout: 240 seconds]
uglybandersnatch has quit [Ping timeout: 248 seconds]
cd-rum has joined #ruby
Inside has joined #ruby
Inside has joined #ruby
nofxx has quit [Remote host closed the connection]
swills has quit [Quit: Leaving]
swills has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
uglybandersnatch has joined #ruby
techtomas has quit [Quit: Bye]
clorisu has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
YP-QMUL-W has quit [Read error: Connection reset by peer]
Shidash has quit [Read error: Connection reset by peer]