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/
uxp has joined #ruby
uxp has quit [Read error: Connection reset by peer]
vishwa has quit [Ping timeout: 240 seconds]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devbug has quit [Read error: Connection reset by peer]
devbug has joined #ruby
FernandoBasso has quit [Quit: Leaving]
robbyoconnor has quit [Ping timeout: 250 seconds]
al2o3-cr has quit [Ping timeout: 260 seconds]
malconis_ has joined #ruby
Synthead has joined #ruby
thomasfedb has quit [Ping timeout: 246 seconds]
robbyoconnor has joined #ruby
firstdayonthejob has quit [Ping timeout: 244 seconds]
ropeney has joined #ruby
malconis has quit [Ping timeout: 252 seconds]
wldcordeiro has joined #ruby
aeon_ has quit [Quit: aeon_]
AlphaAtom has quit [Read error: Connection reset by peer]
xaxisx has quit [Ping timeout: 276 seconds]
AlphaAtom has joined #ruby
ledestin has joined #ruby
BtcBen has joined #ruby
dstarh has joined #ruby
_stahp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thomasfedb has joined #ruby
thomasfedb has joined #ruby
htmldrum_ has joined #ruby
htmldrum has quit [Ping timeout: 244 seconds]
guacamole has quit [Quit: leaving]
nertzy has quit [Read error: Connection reset by peer]
r0bby_ has joined #ruby
nertzy has joined #ruby
guacamole has joined #ruby
malconis_ has quit [Remote host closed the connection]
vishwa has joined #ruby
malconis has joined #ruby
robbyoconnor has quit [Ping timeout: 268 seconds]
BSaboia has quit [Ping timeout: 252 seconds]
cyclonis has quit [Quit: leaving]
shanemcd has quit [Remote host closed the connection]
saneax is now known as saneax_AFK
KensoDev has quit [Quit: Textual IRC Client: www.textualapp.com]
aeontech has joined #ruby
htmldrum has joined #ruby
decoponio has quit [Quit: Leaving...]
htmldrum_ has quit [Ping timeout: 276 seconds]
malconis has quit [Ping timeout: 276 seconds]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
tris has quit [Ping timeout: 260 seconds]
baweaver has quit [Remote host closed the connection]
whippythellama has quit [Quit: WeeChat 1.4]
ta_ has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
DLSteve has joined #ruby
solocshaw has joined #ruby
al2o3-cr has joined #ruby
tris has joined #ruby
charliesome_ has joined #ruby
floatingpoint has joined #ruby
shanemcd has joined #ruby
sp4rrow has joined #ruby
charliesome has quit [Ping timeout: 264 seconds]
ESpiney has quit [Ping timeout: 276 seconds]
statelesscode has joined #ruby
moos3 has joined #ruby
Contigi has joined #ruby
Wicaeed has quit [Ping timeout: 244 seconds]
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
Lucky_ABA has joined #ruby
sp4rrow has quit [Quit: Textual]
moos3 has quit [Ping timeout: 240 seconds]
gbgdev has quit [Remote host closed the connection]
baweaver has joined #ruby
tenderlove has quit [Ping timeout: 268 seconds]
coyo has quit [Ping timeout: 244 seconds]
tenderlove has joined #ruby
kies has joined #ruby
biberu has quit []
malconis has joined #ruby
eregi_ has quit [Ping timeout: 276 seconds]
ivanskie_work has joined #ruby
n0xff has joined #ruby
justbleed has joined #ruby
ivanskie_work_ has quit [Ping timeout: 244 seconds]
KensoDev has joined #ruby
yuung has quit [Read error: Connection reset by peer]
yuung has joined #ruby
gbgdev has joined #ruby
malconis has quit [Ping timeout: 276 seconds]
stannard has joined #ruby
moeabdol4 has joined #ruby
ariel_17 has joined #ruby
ariel_17 has quit [Changing host]
ariel_17 has joined #ruby
stunder has quit [Quit: WeeChat 1.4]
hxegon has quit [Quit: BRB]
mistermo_ has joined #ruby
aeontech has quit [Quit: aeontech]
moeabdol4 has quit [Ping timeout: 264 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
mistermo_ has quit [Ping timeout: 276 seconds]
x77686d has quit [Quit: x77686d]
ariel_17 has quit [Quit: WeeChat 1.1.1]
kent\n has quit [Ping timeout: 276 seconds]
montyboy has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
johnmilton has joined #ruby
justbleed is now known as buildTheWall
Tricon has quit [Quit: Leaving...]
CloCkWeRX has joined #ruby
marr has quit [Ping timeout: 248 seconds]
Tricon has joined #ruby
tvw has quit []
Spami has quit [Quit: This computer has gone to sleep]
Sid05 has quit []
Tricon has quit [Remote host closed the connection]
tricon_ has joined #ruby
Guest34101 has joined #ruby
johnmilton has quit [Ping timeout: 246 seconds]
principia has joined #ruby
workmad3 has joined #ruby
kent\n has joined #ruby
kent\n has joined #ruby
<joevandyk> hey -- so i have text in the textile format. i want to convert it over to a tiny subset of html -- basically only converting `*bold*` to <strong>bold</strong> and `* list` into html list elements. anyone have any ideas on the best way to approach that?
<joevandyk> i don't think i can use something like RedCloth -> html as that will make html soup. i want line breaks to stay as line breaks, not get converted to <p> tags.
yuung has quit [Ping timeout: 244 seconds]
yuung has joined #ruby
tricon_ has quit [Ping timeout: 248 seconds]
idefine has joined #ruby
TomyLobo has quit [Ping timeout: 248 seconds]
workmad3 has quit [Ping timeout: 248 seconds]
DLSteve has joined #ruby
idefine has quit [Remote host closed the connection]
x77686d has joined #ruby
idefine has joined #ruby
yuung has quit [Ping timeout: 246 seconds]
mwlang has quit [Quit: mwlang]
trinaldi has quit [Quit: WeeChat 1.5-dev]
ivanskie has joined #ruby
principia has quit [Ping timeout: 240 seconds]
cdg has quit [Remote host closed the connection]
AlphaAtom has quit [Ping timeout: 268 seconds]
johnmilton has joined #ruby
<Ox0dea> joevandyk: Why not regex? https://glot.io/snippets/ecmwc3f1z5
cdg has joined #ruby
moos3 has joined #ruby
trosborn has quit [Ping timeout: 244 seconds]
arescorpio has joined #ruby
Guest34101 has quit [Ping timeout: 250 seconds]
trosborn has joined #ruby
veloutin has quit [Ping timeout: 248 seconds]
<joevandyk> Ox0dea: that was my best idea, thought there might be something better. :)
snockerton has quit [Quit: Leaving.]
veloutin has joined #ruby
<Ox0dea> joevandyk: There probably is. :P
volty has quit [Quit: Konversation terminated!]
rattatmatt has joined #ruby
<joevandyk> Ox0dea: this was my attempt: https://glot.io/snippets/ecmwqrn8ic
<joevandyk> wanted to handle cases where bold text is in list elements
<Ox0dea> joevandyk: Yeah, makes sense. Are these actually the only two elements you're wanting to emit?
<joevandyk> Ox0dea: yeah, i think those are the only things we used textile for.
ramfjord has quit [Ping timeout: 244 seconds]
x77686d has quit [Quit: x77686d]
DmitryBochkarev has joined #ruby
sneakerhax has quit [Quit: back later]
moos3 has quit [Ping timeout: 276 seconds]
bry4n has joined #ruby
cdg has quit [Remote host closed the connection]
ramfjord has joined #ruby
electriv has joined #ruby
aeontech has joined #ruby
vishwa has quit [Ping timeout: 260 seconds]
moeabdol4 has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
aeon_ has joined #ruby
aeontech has quit [Ping timeout: 252 seconds]
moeabdol4 has quit [Ping timeout: 252 seconds]
idefine has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
johnmilton has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
baweaver has quit [Remote host closed the connection]
uglybandersnatch has quit [Ping timeout: 248 seconds]
x77686d has joined #ruby
nb_bez___ has quit [Quit: Connection closed for inactivity]
yokel has quit [Ping timeout: 250 seconds]
ivanskie_work has quit [Quit: Going offline, see ya! (www.adiirc.com)]
Sucks has joined #ruby
Vile` has joined #ruby
trosborn has quit [Quit: trosborn]
vishwa has joined #ruby
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
babblebre has quit [Quit: Connection closed for inactivity]
mistermocha has quit [Remote host closed the connection]
shanemcd has quit [Remote host closed the connection]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
Rickmasta has joined #ruby
Snowy has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
r0bby_ has quit [Read error: Connection reset by peer]
duderonomy has quit [Ping timeout: 268 seconds]
mwlang has joined #ruby
Guest34101 has joined #ruby
duderonomy has joined #ruby
configged- has quit [Ping timeout: 240 seconds]
configged has quit [Ping timeout: 240 seconds]
electriv has quit [Quit: Textual IRC Client: www.textualapp.com]
Contigi has quit [Ping timeout: 244 seconds]
c0ncealed has quit [Remote host closed the connection]
c0ncealed has joined #ruby
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rubie has quit [Remote host closed the connection]
nanoz has joined #ruby
rubie has joined #ruby
rubie has quit [Read error: Connection reset by peer]
moei has quit [Quit: Leaving...]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
jenrzzz has joined #ruby
al2o3-cr has quit [Ping timeout: 276 seconds]
ariel_17 has joined #ruby
AlphaAtom has joined #ruby
al2o3-cr has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
baweaver has joined #ruby
lemur has joined #ruby
moeabdol4 has joined #ruby
akkad has joined #ruby
y2mq37 has quit [Ping timeout: 248 seconds]
solocshaw has quit [Ping timeout: 268 seconds]
baweaver has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 276 seconds]
uglybandersnatch has joined #ruby
evenix has joined #ruby
<evenix> Any google api magician here?
mistermocha has joined #ruby
moeabdol4 has quit [Ping timeout: 276 seconds]
BtcBen has quit [Ping timeout: 252 seconds]
p0p0pr37 has quit [Ping timeout: 240 seconds]
RegulationD has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
rmulligan has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
A124 has quit [Quit: '']
baweaver has joined #ruby
r0bby_ has joined #ruby
Canar is now known as PresidentTrump
eregi has joined #ruby
sindork has quit [Ping timeout: 276 seconds]
A124 has joined #ruby
Gnubie__ has joined #ruby
sindork has joined #ruby
Gnubie_ has quit [Ping timeout: 276 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
j0bk is now known as unaffiliated
Channel6 has joined #ruby
unaffiliated is now known as j0bk
Guest34101 has quit [Ping timeout: 240 seconds]
charliesome_ has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
aeon_ has quit [Quit: aeon_]
j0bk has left #ruby ["Textual IRC Client: www.textualapp.com"]
mwlang has quit [Quit: mwlang]
baweaver has quit [Ping timeout: 250 seconds]
ivanskie has joined #ruby
CloCkWeRX has quit [Ping timeout: 248 seconds]
duncannz has joined #ruby
Rodya_ has quit [Read error: Connection reset by peer]
moos3 has joined #ruby
Rodya_ has joined #ruby
marxarelli is now known as marxarelli|afk
LoneHerm_ has joined #ruby
stannard has quit [Remote host closed the connection]
jenrzzz has joined #ruby
kent\n has quit [Ping timeout: 244 seconds]
moos3 has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
AlphaAtom has quit [Read error: Connection reset by peer]
al2o3-cr has quit [Ping timeout: 244 seconds]
PresidentTrump is now known as Canar
Sembei has joined #ruby
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
droptone has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
dopie has joined #ruby
<droptone> What would be the ruby equivalent of this JS statement?
<droptone> while ($scope.avatarPathId.length < 3) $scope.avatarPathId = "0" + $scope.avatarPathId;
Pisuke has quit [Ping timeout: 250 seconds]
<droptone> Basically I need to conver the avatarPathId to a string, then prefix one zero if the avatarPathId is two chars, or two zeros if one char
stardiviner has joined #ruby
<droptone> so if the avatarPathId is "9", I would prefix 00, so the string is 009, and if it is "54", I would prefix one zero, so it the result is 054.
<Ox0dea> >> id = 42; '%04d' % id # droptone
<ruby[bot]> Ox0dea: # => "0042" (https://eval.in/533055)
<Ox0dea> Er, sorry, '%03d'.
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<droptone> That's not working in irb.
<droptone> What exactly?
<droptone> so if the integer was "test", and test = 2
<droptone> and I want to A) convert to string and B) prefix 2 zeros to string if 1 char and 1 zero if 2 chars
CloCkWeRX has joined #ruby
moos3 has joined #ruby
<droptone> hence the .length call in the JS
Rodya_ has quit [Quit: Leaving...]
<Ox0dea> droptone: https://eval.in/533056
<Ox0dea> You don't need explicit looping for this; just use string formatting.
<droptone> so '%03d' % avatarPathId?
yokel has joined #ruby
<droptone> Ok, yes, that did it, brilliant.
<droptone> Thanks man, great stuff.
<Ox0dea> Happy to help.
idefine has joined #ruby
fedexo has joined #ruby
B1n4r10 has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
moei has joined #ruby
moos3 has quit [Ping timeout: 248 seconds]
LoneHerm_ has joined #ruby
dopie has quit [Quit: Lost terminal]
mistermocha has joined #ruby
Bloomer has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
idefine has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 248 seconds]
crystal77 has joined #ruby
idefine has joined #ruby
Bloomer has quit []
p1k has joined #ruby
Mon_Ouie has joined #ruby
mistermocha has joined #ruby
mallu has joined #ruby
idefine has quit []
pawnbox has quit [Remote host closed the connection]
mallu has quit [Client Quit]
mallu has joined #ruby
pawnbox has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xxneolithicxx has joined #ruby
mistermocha has quit [Ping timeout: 250 seconds]
hk238 has joined #ruby
rmulligan has quit [Ping timeout: 246 seconds]
cwenner has quit [Ping timeout: 268 seconds]
<joevandyk> Ox0dea: hm, looks like i need to wrap the list elements in <ul>
moeabdol4 has joined #ruby
<Ox0dea> joevandyk: It shouldn't be strictly necessary, but that's probably a good idea.
braincrash has quit [Quit: bye bye]
aupadhye has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
cwenner has joined #ruby
zast has joined #ruby
gbgdev has quit [Remote host closed the connection]
mistermocha has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
moeabdol4 has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
Tamae has joined #ruby
cpup has quit [Ping timeout: 260 seconds]
cpup has joined #ruby
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
rmulligan has joined #ruby
mallu has joined #ruby
charliesome has joined #ruby
mistermocha has quit [Ping timeout: 248 seconds]
CloCkWeRX has quit [Ping timeout: 244 seconds]
rattatmatt has quit []
nanoz has quit [Quit: <3]
eregi has quit [Ping timeout: 276 seconds]
braincrash has joined #ruby
djbkd has quit [Remote host closed the connection]
nfk|laptop has quit [Quit: yawn]
mallu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
janzo has joined #ruby
pawnbox has quit [Ping timeout: 244 seconds]
bry4n_ has joined #ruby
malconis has joined #ruby
mistermocha has joined #ruby
arescorpio has quit [Remote host closed the connection]
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
lemur has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
ICantCook has quit [Ping timeout: 248 seconds]
malconis has quit [Ping timeout: 260 seconds]
B1n4r10 has quit [Ping timeout: 250 seconds]
mistermocha has quit [Ping timeout: 240 seconds]
mary5030_ has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
baweaver has quit [Ping timeout: 248 seconds]
chouhoul_ has joined #ruby
CloCkWeRX has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
thor_ has joined #ruby
aeontech has joined #ruby
hahuang61 has joined #ruby
ESpiney has joined #ruby
treaki_ has joined #ruby
thor_ has quit [Ping timeout: 264 seconds]
treaki__ has quit [Ping timeout: 240 seconds]
tonyynot has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
elifoster has quit [Ping timeout: 260 seconds]
statelesscode has quit [Quit: statelesscode]
pawnbox has joined #ruby
djbkd has joined #ruby
casadei has quit [Remote host closed the connection]
Dormo has joined #ruby
<Dormo> Hi. Is this the right channel to go to for some general help with Ruby? I'm not a Ruby novice, but I've run into a strange issue that I can't fully understand
aeontech has quit [Quit: aeontech]
_whitelogger_ has joined #ruby
paatalaBhairavi has joined #ruby
ixti has quit [Ping timeout: 246 seconds]
Sucks has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cheerio]
_whitelogger has quit [Remote host closed the connection]
gremax has quit [Ping timeout: 264 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
dopie has joined #ruby
gremax has joined #ruby
BtcBen has joined #ruby
Moosashi has joined #ruby
krzkrzkrz has joined #ruby
zast has quit [Quit: Leaving.]
gix has quit [Ping timeout: 240 seconds]
hxegon has joined #ruby
mary5030_ has quit [Ping timeout: 246 seconds]
buildTheWall has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
ICantCook has joined #ruby
gix has joined #ruby
moeabdol4 has joined #ruby
<mozzarella> trying to run the specs, just a second
rkazak has joined #ruby
baweaver has joined #ruby
dc1 has joined #ruby
<Dormo> mozzarella: thank you
saneax_AFK is now known as saneax
moeabdol4 has quit [Ping timeout: 244 seconds]
dubek has quit [Ping timeout: 268 seconds]
aeontech has joined #ruby
dcunit3d has quit [Ping timeout: 264 seconds]
Xiti has quit [Ping timeout: 264 seconds]
RegulationD has joined #ruby
Xiti has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
LoneHerm_ has joined #ruby
p1k has quit [Ping timeout: 276 seconds]
Synthead has quit [Disconnected by services]
Synthead has joined #ruby
Synthead has quit [Disconnected by services]
Synthbread has joined #ruby
j0bk has joined #ruby
LoneHerm_ has quit [Ping timeout: 250 seconds]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ixti has joined #ruby
darkxploit has quit [Ping timeout: 260 seconds]
BadQuanta has joined #ruby
Lucky_ABA has joined #ruby
rubie has joined #ruby
Lucky_ABA has quit [Client Quit]
sbhatore has joined #ruby
jottr has quit [Ping timeout: 276 seconds]
lxsameer has joined #ruby
<mozzarella> Dormo: I get "437 examples, 0 failures, 1 pending", is it normal?
Moosashi has quit [Quit: Moosashi]
evenix has quit [Remote host closed the connection]
Moosashi has joined #ruby
<Dormo> Uh
<Dormo> where are you pulling from?
<Dormo> this is the relevant repo/branch
infra-red has joined #ruby
infra-re_ has joined #ruby
<mozzarella> fuck
darkxploit has joined #ruby
Outlastsheep has joined #ruby
astrobun_ has joined #ruby
siaw has joined #ruby
infra-red has quit [Ping timeout: 260 seconds]
<Dormo> mozzarella
<Dormo> i fixed my issue
<mozzarella> what was it
<Dormo> :author_url needed to be added to that line
UtkarshRay has quit [Remote host closed the connection]
<mozzarella> I see
<Dormo> Sorry; I started maintaining this library years after it was originally written
<Dormo> so I still don't fully know the guts
<Dormo> Thanks for your help, though
hackeron has joined #ruby
hackeron_ has quit [Ping timeout: 264 seconds]
Vile` has quit [Ping timeout: 250 seconds]
r0bby_ has joined #ruby
UtkarshRay has joined #ruby
marcdel has joined #ruby
jenrzzz has joined #ruby
Lucky_ABA has joined #ruby
paatalaBhairavi has quit [Quit: Leaving]
dopie has quit [Quit: Lost terminal]
marcdel has quit [Max SendQ exceeded]
marcdel has joined #ruby
sandstrom has joined #ruby
xcesariox has joined #ruby
Channel6 has quit [Read error: Connection reset by peer]
bronson_ has joined #ruby
htmldrum_ has joined #ruby
hahuang61 has quit [Ping timeout: 244 seconds]
htmldrum has quit [Ping timeout: 240 seconds]
queequeg2 has quit [Quit: Changing server]
bronson has quit [Ping timeout: 252 seconds]
moeabdol4 has joined #ruby
futilegames has joined #ruby
kent\n has joined #ruby
futilegames has quit [Client Quit]
moeabdol4 has quit [Ping timeout: 264 seconds]
UtkarshRay has quit [Quit: Leaving]
nocontrol has joined #ruby
sauvin has joined #ruby
futilegames has joined #ruby
gizless has joined #ruby
futilegames has quit [Client Quit]
roshanavand has joined #ruby
MyMind has joined #ruby
gizmore has quit [Ping timeout: 260 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
chipotle has joined #ruby
Sembei has quit [Ping timeout: 260 seconds]
LoneHermit has joined #ruby
p1k has joined #ruby
infra-re_ has quit [Remote host closed the connection]
sandstrom has joined #ruby
gizless has quit [Ping timeout: 250 seconds]
paatalaBhairavi has joined #ruby
JohnBat26 has joined #ruby
rmulligan has quit [Ping timeout: 252 seconds]
futilegames has joined #ruby
sandstrom has quit [Client Quit]
aupadhye has quit [Ping timeout: 244 seconds]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
LoneHermit has quit [Ping timeout: 244 seconds]
aupadhye has joined #ruby
nocontrol has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 260 seconds]
aupadhye_ has joined #ruby
aupadhye has quit [Ping timeout: 260 seconds]
xcesariox has quit [Excess Flood]
fedexo has quit [Ping timeout: 240 seconds]
ivanskie has quit [Quit: Textual IRC Client: www.textualapp.com]
rubie has quit [Remote host closed the connection]
djbkd has joined #ruby
htmldrum has joined #ruby
htmldrum_ has quit [Ping timeout: 246 seconds]
Es0teric has joined #ruby
lxsameer has quit [Ping timeout: 246 seconds]
futilegames has quit [Quit: futilegames]
chipotle has quit [Quit: cheerio]
Dormo has quit [Ping timeout: 252 seconds]
Moosashi has quit [Quit: Moosashi]
Es0teric has quit [Ping timeout: 276 seconds]
skydiver has quit [Ping timeout: 240 seconds]
steffkes has joined #ruby
Macaveli has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ixti has quit [Ping timeout: 244 seconds]
Moosashi has joined #ruby
mistermocha has joined #ruby
jud has quit [Ping timeout: 244 seconds]
filterbubble has joined #ruby
Es0teric has joined #ruby
siaw has quit [Quit: siaw]
<shevy> flughafen looks as if you got grounded again - how unexpected :))) http://goo.gl/3ikqm1 - I am sure they are not using ruby anywhere either!
skydiver has joined #ruby
solars has joined #ruby
ohaibbq has joined #ruby
hahuang61 has joined #ruby
siaw has joined #ruby
rmulligan has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
sq271 has quit [Quit: leaving]
dede has joined #ruby
rmulligan has quit [Ping timeout: 248 seconds]
hxegon has quit [Quit: BRB]
steffkes has quit [Ping timeout: 276 seconds]
rmulligan has joined #ruby
trosborn has joined #ruby
jas02 has joined #ruby
moeabdol4 has joined #ruby
nocontrol has joined #ruby
x77686d has quit [Quit: x77686d]
amclain has quit [Quit: Leaving]
coyo has joined #ruby
coyo has joined #ruby
fexilal has quit [Ping timeout: 244 seconds]
saneax is now known as saneax_AFK
droptone has quit [Ping timeout: 252 seconds]
moeabdol4 has quit [Ping timeout: 268 seconds]
Paradox_ has joined #ruby
BLuEGoD has joined #ruby
BadQuanta has quit [Read error: Connection timed out]
sandstrom has joined #ruby
BLuEGoD is now known as Guest74340
tjohnson has quit [Quit: Connection closed for inactivity]
r0bby_ has quit [Read error: Connection reset by peer]
infra-red has joined #ruby
Moosashi has quit [Quit: Moosashi]
supplication has quit [Ping timeout: 250 seconds]
infra-re_ has joined #ruby
infra-red has quit [Ping timeout: 244 seconds]
Mon_Ouie has quit [Ping timeout: 276 seconds]
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Macaveli_ has joined #ruby
andikr has joined #ruby
yardenbar has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
saneax_AFK is now known as saneax
bronson_ has quit [Remote host closed the connection]
safe has quit [Read error: Connection reset by peer]
hahuang61 has joined #ruby
uglybandersnatch has quit [Ping timeout: 250 seconds]
bry4n has quit [Ping timeout: 264 seconds]
mayonnaise has joined #ruby
infra-red has joined #ruby
aganov has joined #ruby
jackjackdripper has joined #ruby
skade has joined #ruby
infra-re_ has quit [Ping timeout: 246 seconds]
konsolebox has joined #ruby
steffkes has joined #ruby
steffkes has joined #ruby
marcdel has quit [Ping timeout: 264 seconds]
bjmllr has quit [Ping timeout: 264 seconds]
mistermocha has quit [Remote host closed the connection]
nerium has joined #ruby
<shevy> https://github.com/ruby/ruby/blob/trunk/ChangeLog#L4 wheee "benchmark/driver.rb: support memory usage benchmark. use `--measure-target=[target]'."
siaw has quit [Quit: siaw]
trosborn has quit [Quit: trosborn]
Lich has joined #ruby
symm- has joined #ruby
marcdel has joined #ruby
r0bby_ has joined #ruby
nerium has quit [Client Quit]
hinbody has joined #ruby
nerium has joined #ruby
mayonnaise has left #ruby [#ruby]
firstdayonthejob has joined #ruby
djbkd has quit [Quit: My people need me...]
sandstrom has quit [Quit: My computer has gone to sleep.]
aupadhye_ has quit [Ping timeout: 240 seconds]
futilegames has joined #ruby
futilegames has quit [Client Quit]
nerium has quit [Quit: nerium]
bjmllr has joined #ruby
Lich has quit []
jaruga has joined #ruby
Coldblackice has quit [Ping timeout: 240 seconds]
marcdel has quit [Ping timeout: 244 seconds]
skade has quit [Quit: Computer has gone to sleep.]
anisha has joined #ruby
filterbubble has quit [Quit: leaving]
malcolmva has quit [Ping timeout: 276 seconds]
skade has joined #ruby
futilegames has joined #ruby
configged- has joined #ruby
configged has joined #ruby
rdark has joined #ruby
roshanavand has quit [Ping timeout: 248 seconds]
sandstrom has joined #ruby
y2mq37 has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
UtkarshRay has joined #ruby
moeabdol4 has joined #ruby
ropeney has joined #ruby
malcolmva has joined #ruby
eregi has joined #ruby
Noxilex has joined #ruby
roshanavand has joined #ruby
moeabdol4 has quit [Ping timeout: 260 seconds]
codecop_ has joined #ruby
mikar has quit [Quit: Connection closed for inactivity]
aufi has joined #ruby
roshanavand has quit [Client Quit]
ferr has joined #ruby
LoneHermit has joined #ruby
roshanavand has joined #ruby
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eregi has quit [Ping timeout: 240 seconds]
SCHAAP137 has joined #ruby
eurialo has quit [Ping timeout: 244 seconds]
poerror has joined #ruby
shtirlic has joined #ruby
rmulligan has quit [Ping timeout: 240 seconds]
LoneHermit has quit [Ping timeout: 260 seconds]
devbug has quit [Ping timeout: 268 seconds]
blackgoat has joined #ruby
ruby-lang388 has joined #ruby
trosborn has joined #ruby
trosborn has quit [Client Quit]
mondok has joined #ruby
trosborn has joined #ruby
trosborn has quit [Client Quit]
symm- has quit [Ping timeout: 268 seconds]
blackgoat has quit [Quit: WeeChat 1.4]
copperb0lt has joined #ruby
ruby-lang388 has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
eurialo has joined #ruby
tungd has joined #ruby
mark2 has joined #ruby
Vile` has joined #ruby
olli has joined #ruby
ziprar has quit [Quit: Leaving]
Don_John has quit [Ping timeout: 244 seconds]
firstdayonthejob has quit [Ping timeout: 260 seconds]
Ishido has joined #ruby
terlar has quit [Ping timeout: 276 seconds]
baweaver has quit [Remote host closed the connection]
brent_ has quit [Quit: Connection closed for inactivity]
bronson has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
aupadhye has joined #ruby
aufi has quit [Ping timeout: 260 seconds]
jaruga_ has joined #ruby
futilegames has quit [Quit: futilegames]
shredding has joined #ruby
shadowswalker has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
ohaibbq has quit [Quit: Leaving...]
fexilal has joined #ruby
rmulligan has joined #ruby
sandelius has joined #ruby
faelkle has quit [Quit: leaving]
skade has quit [Quit: Computer has gone to sleep.]
joonty has joined #ruby
<sandelius> hey all. I'm fiddling with # frozen_string_literal: true and it raises an error as it should when I can the file with the ruby interpreter but does not show any error when running via minitest?
<sandelius> The method that should raise error is run
atmosx has joined #ruby
uglybandersnatch has joined #ruby
sandelius has quit [Client Quit]
astrobun_ has quit [Remote host closed the connection]
elaptics`away is now known as elaptics
igam has joined #ruby
quazimodo has quit [Ping timeout: 260 seconds]
skade has joined #ruby
rmulligan has quit [Ping timeout: 268 seconds]
p1k has quit [Quit: WeeChat 1.4]
Eising has left #ruby [#ruby]
configged- has quit [Ping timeout: 268 seconds]
configged has quit [Ping timeout: 268 seconds]
gbgdev has joined #ruby
drptbl has joined #ruby
aufi has joined #ruby
mdw has joined #ruby
moeabdol4 has joined #ruby
gbgdev has quit [Ping timeout: 276 seconds]
ramfjord has joined #ruby
sandstrom has joined #ruby
<nocontrol> I am trying to gem install rails in openbsd 5.8 but it fails with libiconv is missing. iconv is ok and I have installed rbenv to manage the ruby versions. any ideas ?
maner has joined #ruby
Vile` has quit [Ping timeout: 276 seconds]
RegulationD has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
moeabdol4 has quit [Ping timeout: 268 seconds]
leventix has joined #ruby
leventix has left #ruby [#ruby]
<canton7> nocontrol, you probably need whatever headers/dev package your distro provides?
Guest74340 is now known as BLuEGoD
<nocontrol> canton7: openBSD 5.8 actually, no idea
<nocontrol> canton7: tried to install libiconv, ruby-iconv and gem install rails --with-iconv-lib but it fails with same message
RegulationD has quit [Ping timeout: 246 seconds]
<canton7> I'd call openbsd a bsd distro :P what message does it fail with?
last_staff has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
PedramT has joined #ruby
<jhass> try recompiling your ruby since you installed libiconv
Ginglink has joined #ruby
bronson has quit [Remote host closed the connection]
<nocontrol> jhass: I am using rbenv
<nocontrol> jhass: just reinstall ?
<jhass> I guess? I hate rbenv and avoid it
jenrzzz has quit [Ping timeout: 246 seconds]
<nocontrol> jhass: rvm fails hard in openBSD
<nocontrol> I am working on a hardware project actually and I have to use it
<nocontrol> and I can see it seems really awesome
<nocontrol> so it's a challenge to make ruby and then rails work
<nocontrol> maybe sinatra
ramfjord has quit [Ping timeout: 276 seconds]
<jhass> most people recommend you chruby + ruby-install these days
ocbtec has joined #ruby
PedramT has quit [Remote host closed the connection]
Ginglink has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
the_drow has joined #ruby
gbgdev has joined #ruby
gbgdev has quit [Remote host closed the connection]
al2o3-cr has joined #ruby
<hanmac> nocontrol: does your distri also has a package like libiconv-dev or similar?
<shevy> come on BSD guys, the linux guys can do it and so can you!
LoneHerm_ has joined #ruby
<nocontrol> hanmac: trying now
mondok has quit [Ping timeout: 240 seconds]
<nocontrol> hanmac: nope Can't find libiconv-dev
<nocontrol> jhass: looking into them
tomphp has joined #ruby
<hanmac> shevy: i dont know BSD but i thought it has a different package for the dev files
<nocontrol> shevy: clone and make ?
<shevy> hanmac I only remember that you had to... cd to /usr/src or some subdirectory there or something? and then "make" possibly after adapting
<shevy> nocontrol dunno, not sure if libiconv works on the BSDs
<shevy> did not glibc have its own iconv implementation?
LoneHerm_ has quit [Ping timeout: 252 seconds]
sbhatore has quit [Read error: Connection reset by peer]
Couch has joined #ruby
epochwolf has quit [Ping timeout: 250 seconds]
PedramT has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
sbhatore has joined #ruby
epochwolf has joined #ruby
<shadowswalker> hey guys, I am having problem on metasploit with ruby, It says "fatal: Not a git repository (or any of the parent directories): .git
<shadowswalker> Could not find rake-10.4.2 in any of the sources
<shadowswalker> Run `bundle install` to install missing gems.
sbhatore has quit [Read error: Connection reset by peer]
binaryplease1 has joined #ruby
<jhass> ?metasploit
* jhass slaps ruby[bot]
jenrzzz has joined #ruby
<jhass> shadowswalker: please join #metasploit for help with it
sbhatore has joined #ruby
<shadowswalker> jhass: thanks.
n008f4g_ has joined #ruby
baweaver has joined #ruby
<nocontrol> shevy: I did a ./configure - make - make install and I am recompiling ruby to see If something changes
Spami has joined #ruby
sepp2k has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
eregi has joined #ruby
binaryplease1 has quit [Quit: WeeChat 1.4]
binaryplease has joined #ruby
FooMunki has joined #ruby
f4cl3y has joined #ruby
PedramT has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 250 seconds]
rmulligan has joined #ruby
eregi has quit [Ping timeout: 244 seconds]
GinoManWorks has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
bluOxigen has joined #ruby
bluOxigen_ has quit [Ping timeout: 268 seconds]
pawnbox has quit [Remote host closed the connection]
shadowswalker has quit [Remote host closed the connection]
ICantCook has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
rmulligan has quit [Ping timeout: 250 seconds]
mikar has joined #ruby
TomyLobo has joined #ruby
sbhatore has quit [Ping timeout: 240 seconds]
ICantCook has joined #ruby
Abrin_AWAY has quit [Ping timeout: 244 seconds]
mondok has joined #ruby
marr has joined #ruby
quazimodo has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
PedramT has joined #ruby
Xeago has joined #ruby
malcolmva has quit [Ping timeout: 246 seconds]
duncannz has quit [Remote host closed the connection]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
Xeago has quit [Remote host closed the connection]
Koshian_ is now known as Koshian
malcolmva has joined #ruby
workmad3 has joined #ruby
PedramT has quit [Ping timeout: 276 seconds]
GBrawl has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
charliesome has joined #ruby
moeabdol4 has joined #ruby
moonman has joined #ruby
moonman was kicked from #ruby by ChanServ [User is banned from this channel]
trosborn has joined #ruby
moeabdol4 has quit [Ping timeout: 244 seconds]
moonman has joined #ruby
moonman was kicked from #ruby by ChanServ [User is banned from this channel]
<hanmac> jhass: do you play with the banning tool?
<jhass> no
infra-re_ has joined #ruby
BtcBen has quit [Ping timeout: 252 seconds]
<hanmac> because i got confusing messages with +b -b and this moonman, confusing in that way that they change each time
johnmilton has joined #ruby
mfaeh has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
infra-red has quit [Ping timeout: 260 seconds]
gbgdev has joined #ruby
dgncn has quit [Excess Flood]
dgncn has joined #ruby
drptbl has joined #ruby
johnmilton has quit [Ping timeout: 268 seconds]
quazimodo has quit [Ping timeout: 260 seconds]
<shevy> the end of all moonmen
terlar has joined #ruby
<flughafen> yes!
tungd has quit [Quit: Dreaming...]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
platzhirsch has joined #ruby
siaw has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
isene has quit [Ping timeout: 246 seconds]
johnmilton has joined #ruby
arlek has joined #ruby
pawnbox has quit [Remote host closed the connection]
rodfersou has joined #ruby
pawnbox has joined #ruby
moeabdol4 has joined #ruby
johnmilton has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
tungd has joined #ruby
pawnbox has quit [Remote host closed the connection]
isene has joined #ruby
pawnbox has joined #ruby
rmulligan has joined #ruby
Noxilex has quit [Ping timeout: 260 seconds]
czerasz has joined #ruby
<nocontrol> jhass: are you feeling comfortable with chruby ? Instead of rvm/rbenv ?
pawnbox has quit [Remote host closed the connection]
<jhass> I use chruby for quite some time now, yes
pawnbox has joined #ruby
<jhass> don't use ruby-install though, rather packages for my distro
rmulligan has quit [Ping timeout: 246 seconds]
aeontech has quit [Quit: aeontech]
Macaveli_ has quit [Ping timeout: 240 seconds]
trosborn has quit [Quit: trosborn]
<nocontrol> jhass: are you happy with it? I mean does it completely replace rvm/rbenv?
aeontech has joined #ruby
<jhass> for my usecases, yes
<yorickpeterse> I'll start a flamewar but I don't get why people use rbenv and not chruby
<yorickpeterse> why bother with shims? It just feels like a really weird approach
n008f4g_ has quit [Ping timeout: 260 seconds]
<yorickpeterse> "I can either use shims, rehash them, etc, or just use chruby and be done with it"
<yorickpeterse> ¯\_(ツ)_/¯
<jhass> my biggest grime is actually no fuzzy version matching
<adaedra> For the time I used rbenv, it was because it was lighter than rvm, and that I didn't know about chruby
GBrawl has quit [Quit: (null)]
<jhass> I have a lot of projects where I just want to lock to a minor version of ruby, not an exact patchlevel
<yorickpeterse> well yeah, not knowing about chruby is a valid reason
<nocontrol> jhass: nice information, I'll check it out - I am too tired with rbenv/rvm
trosborn has joined #ruby
trosborn has quit [Client Quit]
last_staff1 has joined #ruby
mondok has quit [Ping timeout: 268 seconds]
last_staff has quit [Ping timeout: 244 seconds]
last_staff1 is now known as last_staff
<duderonomy> my mind needs an expansion. Hopefully someone can help. :) Presuming this is enough info... If I have this line, how can I use the value of x, in the next line of code?
<duderonomy> (1..6).each { |x| break if dice.select {|n| n==x }.length > 2 }
biberu has joined #ruby
<duderonomy> the value of x when the look exited/break
CustosLimen has quit [Quit: CustosLimen]
aeontech has quit [Quit: aeontech]
sandstrom has quit [Quit: My computer has gone to sleep.]
<duderonomy> dice = [2, 5, 2, 2, 3]
darkf has quit [Quit: Leaving]
<jhass> duderonomy: Enumerable#find
<jhass> also #count
sandstrom has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
Slice^ has joined #ruby
<duderonomy> hey thx. initially on face value that reminds me of Python's enumerate, a little bit. I'll go read
platzhirsch has quit [Read error: Connection reset by peer]
Slice^ has quit [Max SendQ exceeded]
sandstrom has quit [Client Quit]
platzhirsch has joined #ruby
CustosLimen has joined #ruby
pawnbox has quit [Remote host closed the connection]
poerror has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
tungd has quit [Quit: Dreaming...]
RegulationD has joined #ruby
BtcBen has joined #ruby
<shevy> flughafen yeah - it's a never-ending story :)
<flughafen> ha
Paradox_ has quit [Quit: Leaving]
ayonkhan has joined #ruby
tungd has joined #ruby
drptbl has joined #ruby
konsolebox has quit [Quit: Leaving]
poerror has joined #ruby
RegulationD has quit [Ping timeout: 244 seconds]
arlek has quit [Ping timeout: 248 seconds]
bronson has joined #ruby
supplication has joined #ruby
kobain has joined #ruby
jottr has joined #ruby
trinaldi has joined #ruby
<hanmac> shevy & flughafen: if i can get them to think that they need BER for the next football World-Championship then it would be finish next week
<flughafen> ha
<flughafen> should we bribe fifa to give us the 2018 weltmeisterschaft
bronson has quit [Ping timeout: 252 seconds]
<mikar> hi, does someone know why Net::HTTP would ignore my proxy environment variables? see this snippet: https://bpaste.net/show/27552025ded2
Snowy has joined #ruby
trosborn has joined #ruby
pawnbox has quit [Remote host closed the connection]
ldnunes has joined #ruby
but3k4 has joined #ruby
pawnbox has joined #ruby
eregi has joined #ruby
PedramT has joined #ruby
<shevy> flughafen better bribe for the Weltherrschaft!
configged has joined #ruby
<flughafen> yeah!
configged- has joined #ruby
<danjack> hey guys, is there a possible way to declare programatically variables in a block? For example i want to call an argumentless function (def test) that it will have the variable 'bla' set to 'hello world'
ropeney has joined #ruby
eregi has quit [Ping timeout: 248 seconds]
rmulligan has joined #ruby
<jhass> doesn't sound like it should be argumentless in the first place
<jhass> ?xy
<jhass> right, sigh
<danjack> i guess i have to use bindings
baweaver has joined #ruby
<jhass> to me sounds like you're on an evil path
codecop_ has quit [Remote host closed the connection]
configged- has quit [Ping timeout: 268 seconds]
configged has quit [Ping timeout: 268 seconds]
<danjack> you always see only the evil in me
arlek has joined #ruby
<shevy> haha
johnmilton has joined #ruby
<jhass> maybe it's because it's all you show from yourself
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vikas027 has joined #ruby
chocoelho has joined #ruby
<danjack> of course, im a monster
pawnbox has quit [Remote host closed the connection]
rmulligan has quit [Ping timeout: 260 seconds]
<danjack> of course, im a monster
<danjack> o wrong window
vikas027 has left #ruby [#ruby]
<adaedra> monstrous.
<shevy> danjack as far as I know there are only two ways to declare local variables inside of a block; which is through || or by defining it inside the block
k13nox has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
PedramT has quit [Ping timeout: 250 seconds]
toretore has quit [Ping timeout: 250 seconds]
trosborn has quit [Quit: trosborn]
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
htmldrum_ has joined #ruby
beast has joined #ruby
htmldrum has quit [Ping timeout: 252 seconds]
trosborn has joined #ruby
<danjack> im trying to do something like this
<danjack> def test; foo; end;b = binding;b.local_variable_set :foo, 'bar';p method(:test).unbind.bind(b).call
<danjack> >> def test; foo; end;b = binding;b.local_variable_set :foo, 'bar';p method(:test).unbind.bind(b).call
<danjack> >>> 123
Macaveli has joined #ruby
<danjack> > 123
<danjack> the bot doesnt work?
<jhass> you need to be identified with NickServ
<shevy> it is a snobbish bot
<shevy> <jhass> right, sigh
<shevy> :)
<jhass> that's a bug actually ;)
mondok has joined #ruby
jenrzzz has joined #ruby
<danjack> whats a bug actually?
<jhass> behavior of a program that was not intended by the author
<shevy> lol
tungd has quit [Quit: Dreaming...]
pawnbox has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
htmldrum_ has quit [Ping timeout: 276 seconds]
aufi has quit [Ping timeout: 240 seconds]
ayonkhan has quit [Quit: Textual IRC Client: www.textualapp.com]
sdothum has joined #ruby
htmldrum has joined #ruby
dgncn has quit [Excess Flood]
Pisuke has joined #ruby
Xeago has joined #ruby
dgncn has joined #ruby
jonee has joined #ruby
k13nox has quit [Remote host closed the connection]
cwenner has quit [Read error: No route to host]
MyMind has quit [Ping timeout: 276 seconds]
sandstrom has joined #ruby
d0nn1e has quit [Ping timeout: 244 seconds]
arlek has quit [Ping timeout: 248 seconds]
infra-red has joined #ruby
Tempesta has quit [Quit: AdiIRC is updating to v2.3 Beta Build (2016/03/09) 32 Bit]
d0nn1e has joined #ruby
Tempesta has joined #ruby
GBrawl has joined #ruby
uglybandersnatch has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
dc1 has quit [Ping timeout: 260 seconds]
mondok has quit [Quit: Leaving]
Snowy has quit [Remote host closed the connection]
infra-re_ has quit [Ping timeout: 260 seconds]
Vile` has joined #ruby
pwnd_nsfw` has joined #ruby
htmldrum has quit [Ping timeout: 268 seconds]
platzhirsch has quit [Quit: Leaving.]
terminal_ has joined #ruby
bry4n has joined #ruby
duckpuppy has joined #ruby
jottr_ has joined #ruby
siaw_ has joined #ruby
siaw_ has left #ruby [#ruby]
A124 has quit [Disconnected by services]
thomasfedb_ has joined #ruby
A124 has joined #ruby
deepak_ has joined #ruby
jottr has quit [Disconnected by services]
jottr_ is now known as jottr
daemonwrangler_ has joined #ruby
hahuang65 has joined #ruby
Zarthus_ has joined #ruby
stardiviner has quit [Ping timeout: 260 seconds]
dede_ has joined #ruby
jimeh_ has joined #ruby
<duderonomy> When I call Enumerable#find on my sequence (e.g. a string) will it return the index of the beginning of my match (regex). Do I need to make this index available myself (somehow) so that I may use it in the next line of my code?
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
nibbo_ has joined #ruby
thomasfedb has quit [Ping timeout: 240 seconds]
dede has quit [Ping timeout: 240 seconds]
deepak has quit [Ping timeout: 240 seconds]
RealMarc has quit [Ping timeout: 240 seconds]
tubbo has quit [Ping timeout: 240 seconds]
daemonwrangler has quit [Ping timeout: 240 seconds]
siaw has quit [Ping timeout: 240 seconds]
bry4n_ has quit [Ping timeout: 240 seconds]
Shidash has quit [Ping timeout: 240 seconds]
callumacrae has quit [Ping timeout: 240 seconds]
Muz has quit [Ping timeout: 240 seconds]
Zarthus has quit [Ping timeout: 240 seconds]
galeido has quit [Ping timeout: 240 seconds]
isene has quit [Ping timeout: 240 seconds]
f4cl3y has quit [Ping timeout: 240 seconds]
shredding has quit [Ping timeout: 240 seconds]
UtkarshRay has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 240 seconds]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
iooner has quit [Ping timeout: 240 seconds]
terminalrecluse has quit [Ping timeout: 240 seconds]
barajasfab has quit [Ping timeout: 240 seconds]
Seich has quit [Ping timeout: 240 seconds]
hanmac has quit [Ping timeout: 240 seconds]
nibbo has quit [Ping timeout: 240 seconds]
Diabolik has quit [Ping timeout: 240 seconds]
Shidash has joined #ruby
jokke has quit [Ping timeout: 240 seconds]
voobscout has quit [Ping timeout: 240 seconds]
jimeh has quit [Ping timeout: 240 seconds]
Bilge has quit [Ping timeout: 240 seconds]
ElderFain has quit [Ping timeout: 240 seconds]
f4cl3y has joined #ruby
dede_ is now known as dede
daemonwrangler_ is now known as daemonwrangler
galeido has joined #ruby
isene has joined #ruby
deepak_ is now known as deepak
jimeh_ is now known as jimeh
platzhirsch has joined #ruby
<jhass> String is not an Enumerable and #find will not return an index
voobscout has joined #ruby
Muz has joined #ruby
<jhass> so I don't follow your question at all
tubbo has joined #ruby
callumacrae has joined #ruby
duckpuppy has quit [Ping timeout: 276 seconds]
<duderonomy> Yes, that's right. I made a mistake and thought my data (at that stage) was in a string. You are correct it is Array. Cool.
<duderonomy> How can I get ahold of x after this line runs so that I may use x in the next line of my program? :)
<duderonomy> (1..6).each { |x| break if [2, 5, 2, 2, 3].select {|n| n==x }.length > 2 }
RealMarc has joined #ruby
Seich has joined #ruby
duckpuppy has joined #ruby
iooner has joined #ruby
ElderFain has joined #ruby
<jhass> Have a look at Enumerable#find and Array#count
Diabolik has joined #ruby
Bilge has joined #ruby
flughafen has quit [Quit: WeeChat 1.3]
<duderonomy> Yes. Been reading. Thanks a lot.
rmulligan has joined #ruby
<duderonomy> maybe I re-assess and re-formulate my question. :)
<jhass> sigh
<jhass> x = (1..6).find {|x| [2, 5, 2, 2, 3].count(x) > 2 }
flughafen has joined #ruby
<duderonomy> Thanks for helping a newb
ropeney has joined #ruby
rmulligan has quit [Ping timeout: 264 seconds]
barajasfab has joined #ruby
nobitanobi has joined #ruby
UtkarshRay has joined #ruby
stardiviner has joined #ruby
hanmac has joined #ruby
jokke has joined #ruby
<nobitanobi> Hello! When do you guys create custom exception instead of just doing fail 'An error message'? Where do you draw the line?
the_drow has quit [Read error: Connection reset by peer]
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_drow has joined #ruby
quazimodo has joined #ruby
system64 has joined #ruby
k13nox has joined #ruby
tungd has joined #ruby
<tobiasvl> nobitanobi: do you want to raise an exception that can be caught lower down in the call stack or not, basically?
<tobiasvl> note that fail is the same as raise, it just has some default behavior which raises a RuntimeError directly
Shaboum has joined #ruby
aupadhye has quit [Ping timeout: 260 seconds]
tungd has quit [Read error: Connection reset by peer]
nobitano_ has joined #ruby
chipotle has joined #ruby
nobitanobi has quit [Ping timeout: 260 seconds]
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
moeabdol has joined #ruby
Trynemjoel has joined #ruby
pawnbox has joined #ruby
r0bby_ has quit [Read error: Connection reset by peer]
flughafen has quit [Read error: Connection reset by peer]
robbyoconnor has joined #ruby
moeabdol4 has quit [Ping timeout: 268 seconds]
<jhass> which raise has too
* jhass hates fail
codecop has joined #ruby
codecop_ has joined #ruby
codecop_ has quit [Client Quit]
<DylanJ> jhass: what's the difference? rubocop always hates whatever i choose.
<shevy> rubocop hates everyone
<jhass> DylanJ: there's none, it's an alias
<jhass> it's one of the cops I disable, I always use raise
<jhass> the rationale is that you should use fail for stuff you don't plan to ever rescue
<jhass> which IMO is stupid, Kernel#abort is much better for these cases
nobitano_ has quit [Read error: No route to host]
<tobiasvl> ah, wasn't aware
<tobiasvl> so fail and raise are actually synonyms
<tobiasvl> all right then
jenrzzz has joined #ruby
nobitano_ has joined #ruby
ropeney has joined #ruby
kam270 has joined #ruby
kam270 has quit [Max SendQ exceeded]
pawnbox has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 268 seconds]
nobitano_ has quit [Ping timeout: 244 seconds]
swills has quit [Ping timeout: 260 seconds]
Xeago_ has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
Xeago__ has joined #ruby
nocontrol has quit [Remote host closed the connection]
robbyoconnor has quit [Ping timeout: 248 seconds]
crnpen has joined #ruby
solocshaw has joined #ruby
shanemcd has joined #ruby
flughafen has joined #ruby
Xeago_ has quit [Ping timeout: 246 seconds]
maner has quit [Ping timeout: 250 seconds]
stannard has joined #ruby
robbyoconnor has joined #ruby
RegulationD has joined #ruby
nobitanobi has joined #ruby
chipotle has quit [Quit: cheerio]
aufi has joined #ruby
synthroid has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nobitanobi> Hello
RegulationD has quit [Ping timeout: 240 seconds]
joonty has quit [Ping timeout: 244 seconds]
robbyoconnor has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
eregi has joined #ruby
mdw has joined #ruby
ferr has quit [Quit: WeeChat 1.4]
bronson has joined #ruby
pawnbox has joined #ruby
shanemcd has quit [Remote host closed the connection]
paatala_bhairavi has joined #ruby
configged has joined #ruby
configged- has joined #ruby
drptbl has joined #ruby
eregi has quit [Ping timeout: 244 seconds]
rmulligan has joined #ruby
mdw has quit [Ping timeout: 268 seconds]
aryaching has joined #ruby
paatalaBhairavi has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 268 seconds]
paatala_bhairavi has quit [Client Quit]
Pisuke has quit [Ping timeout: 276 seconds]
shanemcd has joined #ruby
mdw has joined #ruby
rmulligan has quit [Ping timeout: 268 seconds]
SCHAAP137 has quit [Read error: Connection reset by peer]
igam has quit [Read error: Connection reset by peer]
nobitano_ has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
ferr has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
jyaworski has joined #ruby
joonty has joined #ruby
nobitano_ has quit [Client Quit]
roshanavand has joined #ruby
shanemcd has quit [Ping timeout: 250 seconds]
mdw has quit [Ping timeout: 240 seconds]
SCHAAP137 has joined #ruby
Abrin_AWAY has joined #ruby
baweaver has joined #ruby
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
gbgdev has quit [Remote host closed the connection]
drptbl has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
roshanavand has joined #ruby
Abrin_AWAY has quit [Ping timeout: 276 seconds]
baweaver has quit [Ping timeout: 250 seconds]
gbgdev has joined #ruby
poerror has quit [Ping timeout: 276 seconds]
unl0ckd has joined #ruby
freerobby has joined #ruby
BadQuanta has joined #ruby
stardiviner has quit [Ping timeout: 244 seconds]
poerror has joined #ruby
stardiviner has joined #ruby
hinbody has quit [Ping timeout: 264 seconds]
stannard has quit [Remote host closed the connection]
GBrawl has quit [Quit: (null)]
robbyoconnor has joined #ruby
ramortegui has joined #ruby
Abrin_AWAY has joined #ruby
DmitryBochkarev has joined #ruby
aegis3121 has joined #ruby
mikar has quit [Quit: Connection closed for inactivity]
Snowy has joined #ruby
gbgdev has quit [Remote host closed the connection]
chocoelho has quit []
nocontrol has joined #ruby
Vile` has quit [Ping timeout: 260 seconds]
skade has quit [Quit: Computer has gone to sleep.]
sandstrom has quit [Quit: My computer has gone to sleep.]
croberts has joined #ruby
<morfin> hello, any idea why can rm_rf 'tmp/data/*.txt' does not work for me?
|ifei5g00d has quit []
<morfin> in rake job
dubek has joined #ruby
saneax is now known as saneax_AFK
<morfin> rm_rf Dir.glob(tmp + "*.txt") worked
BSaboia has joined #ruby
diegoviola has joined #ruby
casadei has joined #ruby
ariel_17 has quit [Ping timeout: 276 seconds]
Xeago__ has quit [Remote host closed the connection]
decoponio has joined #ruby
Hammy_Work has joined #ruby
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hxegon has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
<n1colas> Hello
andikr has quit [Remote host closed the connection]
stardiviner has quit [Ping timeout: 250 seconds]
haylon has joined #ruby
rmulligan has joined #ruby
sandstrom has joined #ruby
nohitall has joined #ruby
last_staff has quit [Quit: last_staff]
<nohitall> how do I make the ruby environment accessible for every user on a system? from what I understand I have to run source ... each time
<jhass> hi
freerobby has quit [Quit: Leaving.]
<jhass> nohitall: how did you install Ruby?
<nohitall> "curl -L https://get.rvm.io | bash -s stable --rails"
roshanavand has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> as a user, as root?
<nohitall> as root
<jhass> then it should be available on all new login shells
jmignault has joined #ruby
<nohitall> I need it for redmine
<nohitall> but I get: "/home/app/redmine/extra/mail_handler/rdm-mailhandler.rb". Command output:
<nohitall> /usr/bin/env: ruby: No such file or directory
<nohitall> so I assume the env variable is not set for that user
<jhass> see /etc/profile.d/rvm.sh
c_nick has joined #ruby
Kruppe has quit [Quit: ZNC - http://znc.in]
<jhass> you might need to start it with rvm do
rmulligan has quit [Ping timeout: 248 seconds]
<nohitall> well I ran "source ~/.rvm/scripts/rvm"
<nohitall> and for me as root it works
Xeago has joined #ruby
<nohitall> ok I ran the rvm.sh
<c_nick> 432.412e-2 i have this scientific number which i want to set width to 7 excluding the '.' how should i go about it
nocontrol has quit [Remote host closed the connection]
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
<c_nick> eg: 432.412e-2 should become 0.043241
<c_nick> sorry thats 4.324120
<jhass> looks like you're confused about value and representation
<nohitall> jhass: so I ran "rvm all do /etc/profile.d/rvm.sh" was that correct?
<jhass> nohitall: no
<jhass> c_nick: so do you actually want to print (that is to convert it into a string) like that?
swills has joined #ruby
<jhass> nohitall: /etc/profile.d/rvm.sh is what loads RVM on all new login shells
<nohitall> ok so what am I supposed to do with that
<c_nick> jhass, trancate the number
<jhass> nohitall: rvm do is for executing commands inside a specific environment
<jhass> c_nick: so #round?
<nohitall> well I still get /usr/bin/env: ruby: No such file or directory
<c_nick> hmm. ok
malconis has joined #ruby
<nohitall> im lost, not sure what to do here, ruby is confusing
<jhass> don't confuse Ruby with RVM
<nohitall> well I just need this .rb script to execute
<jhass> RVM is sometimes confusing, especially system wide installations
<nohitall> thats all I want
<ljarvis> lol sometimes
<ljarvis> heuheuheu
Kruppe has joined #ruby
<nohitall> so I figured installing ruby would solve the issue but nope
<jhass> whether RVM is the best way to install Ruby is highly debatable ;)
bry4n has quit [Ping timeout: 268 seconds]
<jhass> who told you to do a system wide RVM install?
<nohitall> i just google for a tutorial "install ruby debian wheezy"
<nohitall> and ran that curl
ariel_17 has joined #ruby
cpup has quit [Ping timeout: 244 seconds]
kies has quit [Ping timeout: 260 seconds]
jaroslav has joined #ruby
cpup has joined #ruby
floatingpoint has joined #ruby
<jhass> well...
malconis has quit [Remote host closed the connection]
<jhass> so
malconis has joined #ruby
<jhass> do you have the rvm command as the user you want to script as?
<jhass> if not, how do you switch to it?
mostlybadfly has quit [Quit: Connection closed for inactivity]
<jaroslav> Hi @all. I've got a problem with OpenSSL::PKCS7. Before submitting bug, I'd like to make sure it's not just me not knowing how to use that class properly.
<jaroslav> Could someone, who has an idea how this all works, take a look please here: https://gist.github.com/jnahorny/9ccbb186c9f7c20c9f3e
floatingpoint has quit [Client Quit]
<jaroslav> Thank you!
<nohitall> nvm I just put /usr/local/rvm/rubies/ruby-2.2.1/bin/ruby in the script lol
<jaroslav> disclaimer: this code used to work for me with older openssl library versions.
binaryplease has quit [Ping timeout: 264 seconds]
al2o3-cr has quit [Read error: Connection reset by peer]
stardiviner has joined #ruby
al2o3-cr has joined #ruby
sankaber has joined #ruby
<jhass> jaroslav: then it's probably indeed a bug
B1n4r10 has joined #ruby
<jaroslav> jhass: yeah, I think there are two options: 1/ OpenSSL::PKCS7 on Ruby side is not in sync with openssl (and requires update), 2/ There is some new way of using it and I just can't find it ;)
<jaroslav> jhass: wanted to make sure it's not 2/, before creating bug report :)
statelesscode has joined #ruby
stardiviner has quit [Client Quit]
<jhass> I don't see another way either
freerobby has joined #ruby
moos3 has joined #ruby
<nohitall> jhass: thanks anyway ;)
shanemcd has joined #ruby
justbleed has joined #ruby
<jhass> nohitall: yw, <insert improper solution, questions unanswered blabla here>
<nohitall> well
<nohitall> I just replaced /usr/bin/env ruby with #!/usr/local/rvm/rubies/ruby-2.2.1/bin/ruby
<nohitall> i only needed it for that 1 script, so it works for me
<nohitall> postfix pipes mail tothis script
stannard has joined #ruby
Guest89 has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
<darix> nohitall: did you read the script that you downloaded before piping it into your (root) shell?
faelkle has joined #ruby
faelkle has quit [Client Quit]
Alayde has joined #ruby
sankaber has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
<nohitall> darix: na I forgot to mistrust ruby
sankaber has joined #ruby
torarne has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<darix> you should mistrust the admin that just blindly does curl ...| sh
<darix> ymmv
<nohitall> its just a test system
justbleed is now known as TomPeed
<nohitall> but I get your point
<darix> apt-get install ruby
<darix> would have probably done it
Guest89 has quit [Client Quit]
Vile` has joined #ruby
<torarne> Q: I'm using method(__method__).parameters.each do |type, k| to instance_variable_set() named initialize() parameters, and it works fine in a regular class. But when I move the initialize code to a module, and call super from the class, the parameters are passed, but instance_variable_set doesn't seem to have any effect. Is there any way for the module's initialize() to affect instance variables of the class it's been included in? Thanks!
Guest89 has joined #ruby
<darix> o.O
<torarne> I'm seeing the same thing with send
<apeiros> ?code torarne
<ruby[bot]> torarne: We can't help you without your code, please post it to https://gist.github.com
nohitall has left #ruby [#ruby]
<apeiros> it doesn't matter from where a method comes. self is the object the method was called on.
Guest89 has quit [Max SendQ exceeded]
<apeiros> so something is of, hence -> code
<apeiros> *off even
LoneHerm_ has quit [Ping timeout: 276 seconds]
igam has joined #ruby
Guest89 has joined #ruby
c_nick has quit [Ping timeout: 260 seconds]
<darix> in worst case you set instance variables on the module
<darix> ^^
HalcyonicStorm has joined #ruby
<morfin> >> {"foo": "bar"}[:foo]
<ruby[bot]> morfin: # => "bar" (https://eval.in/533377)
<morfin> hm, ok
<jhass> torarne: the def initialize inside the class wins, you don't override it
<morfin> ah, hash for symbol :foo same as hash for string "foo"?
<jhass> eh, nvm, you call super, I'll back off
<torarne> right, it's called, and the params seem to be from the Foo's initialize
<torarne> but the setting the instance variable seems to not affect Foo
<jhass> did you check .parameters (and thus method(__method__)) returns what you expect?
<torarne> yepp
<ljarvis> morfin: it's because :foo == :"foo"
<ljarvis> morfin: and in {"foo": "bar"} the key is :"foo"
<ljarvis> which is :foo
jenrzzz has joined #ruby
<torarne> wait, no, the eval(k.to_s) fails
<morfin> btw are not hashes in Ruby similar to other languages hashes?
<ljarvis> morfin: they are similar, yes
<apeiros> torarne: the initialize you take the params from doesn't actually have those params
<apeiros> it has *parameters
Alayde has left #ruby ["WeeChat 1.1.1"]
<torarne> right
<apeiros> so your eval won't work
<apeiros> that local variable is not around
<apeiros> you have to take it from the parameters lvar, and not via eval
<torarne> right
<torarne> thanks! :D
floatingpoint has joined #ruby
babblebre has joined #ruby
<apeiros> torarne: you probably should do *args, **kwargs, so you can distinguish what's considered a kwarg and what not.
<jhass> torarne: https://p.jhass.eu/1f.rb aw too slow
<torarne> :D
<torarne> million thanks guys!
<apeiros> torarne: also you lack :keyreq
<torarne> what's that?
<apeiros> required keyword args
<apeiros> foo(bar:)
cdg has joined #ruby
<apeiros> >> def foo(bar:); end; method(:foo).parameters
<ruby[bot]> apeiros: # => [[:keyreq, :bar]] (https://eval.in/533381)
jenrzzz has quit [Ping timeout: 250 seconds]
Azure has quit [Ping timeout: 250 seconds]
runswithd6s has joined #ruby
ruby-lang119 has joined #ruby
FooMunki has quit [Quit: FooMunki]
Guest89 has quit [Quit: Textual IRC Client: www.textualapp.com]
FooMunki has joined #ruby
axl_ has joined #ruby
saneax_AFK is now known as saneax
<torarne> apeiros: ah, i think i undeerstand. so next unless type == :key or type == :keyreq should be enough i presume?
codecop has quit [Remote host closed the connection]
<apeiros> I think so.
<torarne> thanks!
<apeiros> you can actually simplify the code a lot: `def initialize(*, **kwargs); kwargs.each do |key, value| instance_variable_set(:"@#{key}", value) end; end`
eregi has joined #ruby
<apeiros> no need to go via Method#parameters
paul98_ is now known as paul98
<torarne> cool
<apeiros> also don't forget to do `super if defined? super`
mary5030 has quit [Remote host closed the connection]
<torarne> in the module?
<apeiros> yes
<torarne> nice, ty
mary5030 has joined #ruby
Mojo_Nixon has joined #ruby
<apeiros> otherwise you won't be able to use it in an inherited class
Mojo_Nixon has quit [Client Quit]
<torarne> right
<apeiros> though
<apeiros> might not be the right thing.
znz_jp has joined #ruby
nerium has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
openstruct has joined #ruby
<torarne> the super call gives initialize': wrong number of arguments (2 for 0) (ArgumentError)
<torarne> i guess i cant know how many arguments and which ones super would require
<torarne> from the module
baweaver has joined #ruby
eregi has quit [Ping timeout: 268 seconds]
rmulligan has joined #ruby
mary5030 has quit [Ping timeout: 268 seconds]
shanemcd has quit [Remote host closed the connection]
mallu has joined #ruby
roshanavand has joined #ruby
<ruby-lang119> is there an option to filter the list of countries when using country_select.....its not the priority list... need to display selected country in the dropdown
rmulligan has quit [Ping timeout: 240 seconds]
c_nick has joined #ruby
bry4n has joined #ruby
sarbs has quit [Max SendQ exceeded]
evidex has joined #ruby
sarbs has joined #ruby
yardenbar has quit [Ping timeout: 248 seconds]
<jhass> #rubyonrails probably has a higher chance of people with experience with that gem
<c_nick> jhass, round actually truncates till a point .. eg:- 432.412e-2 becomes 4.32412 but i want to set width to 7 so it should give me 4.324120
shanemcd has joined #ruby
shanemcd has quit [Remote host closed the connection]
sandstrom has quit [Read error: Connection reset by peer]
sandstro_ has joined #ruby
<c_nick> but 432.412e-2.round(7) gives 4.32412 only
sandstrom has joined #ruby
shinnya has joined #ruby
<jhass> c_nick: you're confusing value with representation
mwlang has joined #ruby
<jhass> 0.25 == 0.250 # => true
kaleido has quit [Remote host closed the connection]
<c_nick> i need representation, significant digits should be 7 so it should trancate and represent in 7 digits (excluding the '.')
<jhass> c_nick: maybe answer my still open question
<c_nick> im confused?
mgorbach has quit [Quit: ZNC - http://znc.in]
pawnbox has quit [Remote host closed the connection]
<c_nick> 0.25 == 0.250 thats fine the value is correct but my code needs to represent in 4 significant bit so the o/p should be 0.250
pawnbox has joined #ruby
<jhass> represent where? to what
<jhass> ?
dubek has quit [Ping timeout: 248 seconds]
<jhass> o/p?
mgorbach has joined #ruby
<c_nick> o/p - output of my function, i used to achieve that with %0.nof%number(float) but for e-2 i am stuck requirements are my function should truncate big numbers and represent them in the significant digits passed to it
<jhass> that's so incredibly vague
<jhass> I can't help you if you stay that vague
ferr has quit [Quit: WeeChat 1.4]
prefix has joined #ruby
TomPeed has quit [Disconnected by services]
<apeiros> c_nick: as jhass already said - 0.25 is the same as 0.250, so if you need *the value* (i.e. you want to calculate), then there is no 0.250, only 0.25. If you want to display the value, use something like printf/sprintf
justbleed has joined #ruby
<f4cl3y> Hey guys, what is the difference between hash['key'] and has[:key]?
justbleed is now known as tommy_p
<ljarvis> f4cl3y: 'key' is a string, :key is a symbol
<apeiros> but then you have a string - which is representation, and can't be used for further calculation
shanemcd has joined #ruby
pawnbox has quit [Remote host closed the connection]
tommy_p is now known as `tim`
pawnbox has joined #ruby
jas02 has quit [Quit: jas02]
f4cl3y has quit [Remote host closed the connection]
f4cl3y has joined #ruby
n008f4g_ has joined #ruby
shanemcd has quit [Remote host closed the connection]
floatingpoint has quit [Ping timeout: 276 seconds]
<jhass> f4cl3y: 'key' is a string, :key is a symbol, they're different objects, so they are different keys
malconis_ has joined #ruby
<f4cl3y> jhass: is one preferable than the other?
xaxisx has joined #ruby
xaxisx has quit [Client Quit]
<apeiros> f4cl3y: if one was universally better, don't you think only that one would exist? :)
jyaworski_ has joined #ruby
<apeiros> symbols are good identifiers (fast comparison, small to store), but up until ruby 2.2 not suitable for any user input
malconis has quit [Ping timeout: 248 seconds]
<f4cl3y> apeiros: haha, true!
<apeiros> when in doubt, use strings
casadei has quit [Remote host closed the connection]
<f4cl3y> Thanks guys, sorry for such silly question, just started learning this magnificent language!
GBrawl has joined #ruby
gnagh has joined #ruby
bronson has joined #ruby
jyaworski has quit [Ping timeout: 260 seconds]
jyaworski_ is now known as jyaworski
<apeiros> for anything which is used to identify something internal about ruby (method name, ivar name etc.), use symbols - as that's how they're natively represented anyway.
aufi has quit [Ping timeout: 260 seconds]
s00pcan_ has joined #ruby
_tc has joined #ruby
kaleido has joined #ruby
<_tc> Hello!
<f4cl3y> apeiros: noted, thanks for the tip!
infra-red has quit [Remote host closed the connection]
fostertheweb has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
fourq_ has left #ruby ["twip"]
Alayde has joined #ruby
<c_nick> yes strings are fine
solars has quit [Ping timeout: 244 seconds]
anisha has quit [Quit: Leaving]
* apeiros is amused how people are confused by numbers lacking trailing zeros but not about lacking prefixed zeros :)
aupadhye has joined #ruby
<c_nick> So i need to now know how to represent a number like 478.2535e-2 as 4.7825350
<apeiros> "I need 0.2500", but that it isn't "00000000.25" is fine
<apeiros> c_nick: as said, use strings. sprintf can do that for you.
neohunter has joined #ruby
<c_nick> i know it sounds silly but its a requirement :(
<apeiros> >> "0.7f" % 478.2535e-2
<ruby[bot]> apeiros: # => "0.7f" (https://eval.in/533405)
<apeiros> >> "%0.7f" % 478.2535e-2
<ruby[bot]> apeiros: # => "4.7825350" (https://eval.in/533406)
<apeiros> silly %, where did it hide?
treehug88 has joined #ruby
<adaedra> Between $ and ^.
kies has joined #ruby
B1n4r10 has quit [Ping timeout: 240 seconds]
diegoviola has quit [Quit: WeeChat 1.4]
<c_nick> apeiros, doesn't work for all n=432.412e-1 tol='7' p "%0.#{tol}f"%n
ziyadb has joined #ruby
mary5030 has joined #ruby
<c_nick> >> "%0.7f" % 432.412e-1
<ruby[bot]> c_nick: # => "43.2412000" (https://eval.in/533408)
ruby-lang119 has quit [Quit: Page closed]
<apeiros> c_nick: I'm sure you're fully capable of reading the docs and adapting the code to suit your needs.
* apeiros afk
mary5030 has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
chouhoulis has joined #ruby
weemsledeux has joined #ruby
rippa has joined #ruby
c_nick has quit [Ping timeout: 244 seconds]
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
whippythellama has joined #ruby
malconis_ has quit [Remote host closed the connection]
ivanskie_work has joined #ruby
malconis has joined #ruby
rodfersou is now known as rodfersou|lunch
shanemcd has joined #ruby
bronson has quit [Remote host closed the connection]
rubie has joined #ruby
dubek has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
supplication has quit [Ping timeout: 246 seconds]
aganov has quit [Remote host closed the connection]
evidex has quit [Remote host closed the connection]
eregi has joined #ruby
Xeago_ has joined #ruby
jenrzzz has joined #ruby
steffkes has quit [Ping timeout: 244 seconds]
aufi has joined #ruby
aegis3121 has quit [Ping timeout: 240 seconds]
Xeago has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
_tc has quit [Ping timeout: 244 seconds]
griffindy has joined #ruby
griffindy has quit [Client Quit]
griffindy has joined #ruby
ljames has joined #ruby
fostertheweb has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
jenrzzz has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Remote host closed the connection]
rmulligan has joined #ruby
chouhoulis has joined #ruby
joonty has quit [Ping timeout: 244 seconds]
GBrawl has quit [Quit: (null)]
gnagh has quit [Quit: leaving]
skade has joined #ruby
baweaver has quit [Remote host closed the connection]
elifoster has joined #ruby
infra-red has joined #ruby
aufi has quit [Ping timeout: 260 seconds]
roshanavand has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rmulligan has quit [Ping timeout: 260 seconds]
The_Phoenix has joined #ruby
aegis3121 has joined #ruby
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
Xeago_ has quit [Remote host closed the connection]
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
Es0teric has joined #ruby
Es0teric has quit [Remote host closed the connection]
tjohnson has joined #ruby
uglybandersnatch has joined #ruby
x77686d has joined #ruby
<morfin> >> :foo.hash
BadQuanta has quit [Ping timeout: 250 seconds]
<ruby[bot]> morfin: # => 2817 (https://eval.in/533419)
shanemcd has quit [Remote host closed the connection]
j0n3 has quit [Ping timeout: 244 seconds]
<morfin> everything in Ruby is hashable
<morfin> >> :foo.class.hash
<ruby[bot]> morfin: # => -128973460 (https://eval.in/533420)
infra-re_ has joined #ruby
<adaedra> >> nil.hash
<ruby[bot]> adaedra: # => -717083194 (https://eval.in/533423)
<adaedra> nice.
gbgdev has joined #ruby
<morfin> btw hash values depends on some system-wide parameters i think
<morfin> >> nil.hash
<ruby[bot]> morfin: # => 896448667 (https://eval.in/533425)
<morfin> and time?
tomchapin has joined #ruby
infra-red has quit [Ping timeout: 260 seconds]
roshanavand has quit [Ping timeout: 268 seconds]
uglybandersnatch has quit [Ping timeout: 276 seconds]
skade has quit [Quit: Computer has gone to sleep.]
<hanmac> morfin: but inside a ruby session the hash values should be fixed
GBrawl has joined #ruby
supplication has joined #ruby
zast has joined #ruby
nfk has joined #ruby
synthroid has quit [Remote host closed the connection]
<apeiros> morfin: yes, Object#hash is seeded to avoid a possible attack pattern
c_nick has joined #ruby
griffindy has quit [Quit: Textual IRC Client: www.textualapp.com]
shanemcd has joined #ruby
aupadhye has quit [Quit: Leaving]
nando293921 has joined #ruby
<morfin> in bot?
<morfin> ah nvm, it was just irb changing behaviour
<morfin> regular ruby gave different results for nil.hash
RegulationD has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
shanemcd has quit [Remote host closed the connection]
axl_ has quit [Ping timeout: 276 seconds]
axl__ has joined #ruby
rubie has quit [Remote host closed the connection]
<morfin> apeiros, seems like seed generated only once when you start process, then it does not change
<morfin> so always in one process nil.hash == nil.hash otherwise it would not be possible to have properly working "hashmap"
RegulationD has quit [Ping timeout: 244 seconds]
Uranio has joined #ruby
roshanavand has joined #ruby
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marcdel has joined #ruby
Xeago has joined #ruby
steffkes has joined #ruby
steffkes has joined #ruby
<apeiros> morfin: yes, the seeding happens when the process starts.
fostertheweb has joined #ruby
shanemcd has joined #ruby
<morfin> but forked processes "inherit" same seed?
roshanavand has quit [Quit: This computer has gone to sleep]
k13nox has quit [Quit: Leaving...]
roshanavand has joined #ruby
marcdel has quit [Ping timeout: 264 seconds]
shanemcd has quit [Remote host closed the connection]
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> probably. otherwise existing hashes would break.
Xeago has quit [Remote host closed the connection]
wilbert has joined #ruby
GBrawl has quit [Quit: (null)]
marcdel has joined #ruby
nando293921 has quit [Ping timeout: 260 seconds]
statelesscode has quit [Quit: statelesscode]
rubie has joined #ruby
mistermocha has joined #ruby
[Butch] has joined #ruby
volty has joined #ruby
jmignault has quit [Ping timeout: 248 seconds]
Xeago has joined #ruby
unl0ckd has quit [Quit: Bye!]
Uranio has quit [Quit: Leaving]
Couch has quit [Ping timeout: 244 seconds]
<c_nick> apeiros, how can i represent the e^-x numbers in a way by which i can set the width on it as required. eg:- 493.24210e^-2 and width set is 7 would give 4.932242 instead of 0.9324210
stunder has joined #ruby
nopolitica has joined #ruby
aegis3121 has quit [Ping timeout: 248 seconds]
bootstrappm has joined #ruby
nopolitica has quit [Client Quit]
<bootstrappm> morning all! been a while since I've been in #ruby
neohunter has quit [Quit: Textual IRC Client: www.textualapp.com]
bootstrappm has quit [Client Quit]
bootstrappm has joined #ruby
LuckyABA has joined #ruby
synthroid has joined #ruby
f4cl3y has quit [Ping timeout: 244 seconds]
marxarelli|afk has quit [Max SendQ exceeded]
jenrzzz has joined #ruby
rmulligan has joined #ruby
marxarelli has joined #ruby
wilbert has quit [Ping timeout: 248 seconds]
amclain has joined #ruby
mfaeh has quit []
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fostertheweb has joined #ruby
DmitryBochkarev has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
jenrzzz has quit [Ping timeout: 244 seconds]
DmitryBochkarev has quit [Client Quit]
rmulligan has quit [Ping timeout: 240 seconds]
eregi has quit [Ping timeout: 252 seconds]
wilbert has joined #ruby
aiRness has joined #ruby
roshanavand has joined #ruby
<aiRness> Hello. Is it possible to create an admin panel from the command line and how I can access it from the browser afterwards. Demise is installed and I've used the console but I can't use my admin user.
DmitryBochkarev has joined #ruby
sandstrom has joined #ruby
eregi has joined #ruby
fostertheweb has quit [Client Quit]
<adaedra> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
runswithd6s has left #ruby ["ERC (IRC client for Emacs 24.5.1)"]
aiRness has left #ruby [#ruby]
bollullera has joined #ruby
pawnbox has quit [Remote host closed the connection]
dhollinger has joined #ruby
baweaver has joined #ruby
pawnbox has joined #ruby
axl__ has quit [Quit: axl__]
<CustosLimen> hi
anisha has joined #ruby
supplication has quit [Ping timeout: 252 seconds]
saneax is now known as saneax_AFK
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
baweaver has quit [Ping timeout: 248 seconds]
jonee has quit [Ping timeout: 276 seconds]
mistermocha has quit [Remote host closed the connection]
anisha has quit [Quit: Leaving]
RegulationD has joined #ruby
anisha has joined #ruby
anisha has quit [Client Quit]
htmldrum has joined #ruby
skade has joined #ruby
fostertheweb has joined #ruby
mistermocha has joined #ruby
nando293921 has joined #ruby
SCHAAP137 has joined #ruby
DmitryBochkarev has quit [Quit: This computer has gone to sleep]
B1n4r10 has joined #ruby
anisha has joined #ruby
platzhirsch has quit [Ping timeout: 244 seconds]
mistermocha has quit [Ping timeout: 246 seconds]
nikhil_360 has joined #ruby
infra-red has joined #ruby
nikhil_360 has quit [Client Quit]
drptbl has joined #ruby
mistermocha has joined #ruby
platzhirsch has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
shanemcd has joined #ruby
infra-re_ has quit [Ping timeout: 248 seconds]
symm- has joined #ruby
Snowy has quit [Remote host closed the connection]
mary5030_ has joined #ruby
baweaver has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
shanemcd has quit [Ping timeout: 252 seconds]
jaruga_ has quit [Quit: jaruga_]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
al2o3-cr has quit [Ping timeout: 244 seconds]
tobiasvl has quit [Ping timeout: 246 seconds]
tvl has joined #ruby
tvl is now known as tobiasvl
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
al2o3-cr has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
Zarthus_ is now known as Zarthus
fourq has joined #ruby
dopie has joined #ruby
B1n4r10 has quit [Quit: Lost terminal]
michaeldeol has joined #ruby
chouhoulis has quit [Remote host closed the connection]
dede has quit [Quit: Connection closed for inactivity]
holyGlitch has joined #ruby
michaeldeol has quit [Client Quit]
Coldblackice has joined #ruby
infra-re_ has joined #ruby
fostertheweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sneakerhax has joined #ruby
marcdel has quit [Read error: Connection reset by peer]
weemsledeux has joined #ruby
marcdel has joined #ruby
Don_John has joined #ruby
DexterLB has quit [Quit: So long and thanks for all the fish]
harryh has joined #ruby
infra-red has quit [Ping timeout: 252 seconds]
DexterLB has joined #ruby
infra-red has joined #ruby
ivanskie_work__ has joined #ruby
jgpawletko has joined #ruby
last_staff has joined #ruby
ivanskie_work has quit [Ping timeout: 240 seconds]
rodfersou|lunch is now known as rodfersou
igam has quit [Ping timeout: 240 seconds]
DonOtreply has joined #ruby
rcvalle has joined #ruby
infra-r__ has joined #ruby
ivanskie_work has joined #ruby
DonOtreply is now known as moosetans
marcdel has quit [Ping timeout: 248 seconds]
infra-re_ has quit [Ping timeout: 248 seconds]
blackmesa has joined #ruby
infra-re_ has joined #ruby
mark2 has quit [Remote host closed the connection]
infra-red has quit [Read error: Connection reset by peer]
sczizzo has joined #ruby
ivanskie_work__ has quit [Ping timeout: 244 seconds]
jackjackdripper has joined #ruby
bronson has joined #ruby
barajasfab has quit [Ping timeout: 268 seconds]
infra-red has joined #ruby
rmulligan has joined #ruby
infra-r__ has quit [Ping timeout: 264 seconds]
jackjackdripper has quit [Client Quit]
nanoz has joined #ruby
jackjackdripper has joined #ruby
creat has joined #ruby
sczizzo has quit [Remote host closed the connection]
infra-re_ has quit [Ping timeout: 260 seconds]
bronson has quit [Ping timeout: 252 seconds]
Don_John has quit [Read error: Connection reset by peer]
last_staff1 has joined #ruby
Xeago_ has joined #ruby
Xeago_ has quit [Read error: Connection reset by peer]
jyaworski_ has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
nocontrol has joined #ruby
rmulligan has quit [Ping timeout: 248 seconds]
czerasz has quit [Ping timeout: 248 seconds]
nocontrol has quit [Remote host closed the connection]
jyaworski has quit [Ping timeout: 246 seconds]
jyaworski_ is now known as jyaworski
nocontrol has joined #ruby
fostertheweb has joined #ruby
gbgdev has quit [Remote host closed the connection]
last_staff has quit [Ping timeout: 268 seconds]
last_staff1 is now known as last_staff
aeontech has joined #ruby
fostertheweb has quit [Client Quit]
barajasfab has joined #ruby
marcdel has joined #ruby
kies has quit [Ping timeout: 268 seconds]
ivanskie_work_ has joined #ruby
skweek has joined #ruby
skade has joined #ruby
ivanskie_work has quit [Ping timeout: 252 seconds]
Xeago_ has quit [Remote host closed the connection]
shadeslayer has quit [Ping timeout: 252 seconds]
darkf has joined #ruby
fostertheweb has joined #ruby
shadeslayer has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vishwa has quit [Ping timeout: 264 seconds]
anjen has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
gbgdev has joined #ruby
ta_ has joined #ruby
anjen has quit [Quit: anjen]
axl_ has joined #ruby
rmulligan has joined #ruby
cenny has joined #ruby
Xeago has joined #ruby
arlek has joined #ruby
ta_ has quit [Ping timeout: 250 seconds]
shadoi has joined #ruby
casadei has joined #ruby
aryaching has quit []
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
B1n4r10 has joined #ruby
krzkrzkrz has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 264 seconds]
krzkrzkrz has joined #ruby
j0n3 has joined #ruby
symm- has quit [Quit: Leaving...]
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
Arkon has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Arkon> Hi, I have a strange problem with my Regex. Ruby doesn't print the right extraction : http://pastebin.com/hqa8PdfZ
<ruby[bot]> Arkon: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/41bc5b4f94daf3658b3a
<ruby[bot]> Arkon: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
vishwa has joined #ruby
<Arkon> The regex is right and working on many other tools: regexp101, rubular.com, Splunk... but not in ruby
<apeiros> Arkon: you should have read the docs for MatchData. match_data[0] is the full match.
<hanmac> Arkon: match()[0] is whole string, match()[1] is the first match
<Arkon> crap you are right, I tought I tried [1] also
<Arkon> thanks :)
jenrzzz has joined #ruby
<hanmac> Arkon: i prefer "string"[/regexp/, n] for shorter code
baweaver has joined #ruby
<apeiros> ^+1
arlek has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby
Arkon has quit [Ping timeout: 252 seconds]
wilbert has quit [Ping timeout: 240 seconds]
aegis3121 has joined #ruby
_tc has joined #ruby
<c_nick> hanmac, whats the n for ?
<hanmac> c_nick: int number
BTRE has quit [Quit: Leaving]
ArtursL has joined #ruby
<c_nick> hanmac, what does it means? can you give me an example please
nocontrol has quit [Remote host closed the connection]
<hanmac> c_nick: http://ruby-doc.org/core-2.3.0/String.html#method-i-5B-5D str[regexp, capture] → new_str
<volty> the match number
nocontrol has joined #ruby
malcolmva has quit [Ping timeout: 264 seconds]
mdw has joined #ruby
volty has quit [Quit: Konversation terminated!]
choke has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
supplication has joined #ruby
BTRE has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
bootstrappm has quit [Quit: Leaving.]
chouhoulis has joined #ruby
mostlybadfly has joined #ruby
<c_nick> I didnt quite understand why a[/[aeiou](.)\1/, 2] #=> nil
chouhoul_ has joined #ruby
<c_nick> when you run it without capture it gives ell from the string "Hello World"
DexterLB has quit [Read error: Connection reset by peer]
mahna has joined #ruby
blackmesa has joined #ruby
jaroslav has left #ruby [#ruby]
aeontech has quit [Quit: aeontech]
solars has joined #ruby
aegis3121 has quit [Ping timeout: 240 seconds]
moeabdol has quit [Quit: WeeChat 1.4]
chouhoulis has quit [Ping timeout: 240 seconds]
colegatron has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
moeabdol has joined #ruby
DexterLB has joined #ruby
anisha has joined #ruby
<mahna> Given a Gemfile with a git source, `bundle install`: "Using activesupport 5.0.0.beta3 from https://github.com/rails/rails.git", `ruby astest.rb` generates a LoadError: "`require': cannot load such file -- active_support."
workmad3 has quit [Ping timeout: 264 seconds]
jdawgaz has joined #ruby
<mahna> No Rails here, just the ActiveSupport reference in one file in the same dir containing the Gemfile.
vishwa has left #ruby [#ruby]
zarubin has quit [Ping timeout: 268 seconds]
blackmesa has quit [Ping timeout: 260 seconds]
<hanmac> c_nick: because your regexp does not have a second capture group?
firstdayonthejob has joined #ruby
<mahna> As a GitHub source, `gem list` won't show the installed gem, but `bundle show activesupport` does.
rmulligan has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
blackmesa has joined #ruby
croberts has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
quazimodo has quit [Ping timeout: 268 seconds]
Rinalds has joined #ruby
joonty has joined #ruby
malcolmva has joined #ruby
acidrainfall has joined #ruby
FooMunki has quit [Quit: FooMunki]
elifoster has quit [Ping timeout: 244 seconds]
FooMunki has joined #ruby
<acidrainfall> hey hey. In an erb, want to sort a hash, but this doesn't work: <% @outputs.sort.each_pair do | output, options | -%>
anisha has quit [Quit: Leaving]
<acidrainfall> I get Detail: undefined method `each_pair' for #<Array:0x7f118841f5f0>
<acidrainfall> But putting the sort after .each_pair doesn't do anything
RegulationD has quit [Remote host closed the connection]
c_nick has quit [Quit: Ex-Chat]
RegulationD has joined #ruby
cpup has quit [Ping timeout: 252 seconds]
<adaedra> Because .sort gives you an array, you can use .to_h to get a hash back and be able to use each_pair
<adaedra> otherwise, just replace each_pair with each
<acidrainfall> Which is the better way to do it?
ramfjord has joined #ruby
moeabdol1 has joined #ruby
<mahna> Should this--requiring a gem from a git source--just work? (Dir contains the Gemfile and astest.rb.)
cpup has joined #ruby
<adaedra> definitely each
<adaedra> mahna: bundler is able to manage git gem dependency
<mahna> adaedra, got: `bundle install`: "Using activesupport 5.0.0.beta3 from https://github.com/rails/rails.git", `ruby astest.rb` generates a LoadError: "`require': cannot load such file -- active_support."
avenj has quit [Ping timeout: 248 seconds]
<adaedra> I think we have a factoid for that
<adaedra> You need to do bundle exec ruby astest.rb
<acidrainfall> Thank you so much.
<acidrainfall> What's each_pair for, if each is preferred?
moeabdol has quit [Ping timeout: 246 seconds]
<adaedra> acidrainfall: each_pair works only on hash, and here you have an array
<mahna> adaedra, you mean somewhere here? http://ruby-community.com/faq
rmulligan has joined #ruby
malcolmva has quit [Ping timeout: 240 seconds]
<adaedra> mahna: no, in ruby[bot] commands, but looks like I was wrong, nvm
<acidrainfall> adaedra: but .sort.each accomplishes the same purpose
<acidrainfall> or at least seems to
<adaedra> >> {a: 1}.sort
<ruby[bot]> adaedra: # => [[:a, 1]] (https://eval.in/533549)
<adaedra> acidrainfall: see what happens here?
bronson has joined #ruby
whippythellama has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
<adaedra> If I understand correctly what you're asking for, you're looking for @outputs.sort.each do |output, options|
<adaedra> mahna: anyway, does your thing works better with bundle exec?
elifoster has joined #ruby
cpup has quit [Ping timeout: 250 seconds]
edwinvdgraaf has joined #ruby
<acidrainfall> adaedra: That's what I'm looking for, I just want to make sure it doesn't break the structure. This is a hash-generated configuration file.
ixti has joined #ruby
lemur has joined #ruby
tenderlove has quit [Remote host closed the connection]
<acidrainfall> The original author wrote it with .each_pair, which keeps jumbling the file, which is annoying. I want it to be consistent.
<acidrainfall> Sounds like I've got it now, thanks a lot.
BrunoSaboia has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
Cohedrin has joined #ruby
rmulligan has quit [Ping timeout: 268 seconds]
<adaedra> acidrainfall: for the sake of compatibility with Enumerable, hashes can be represented under two-dimension arrays, like shown above. That's what happens with sort, which returns this form; either you need to do Hash things and can use .to_h to remake a Hash, either you can do with the array form (it's rather close)
Cohedrin has quit [Max SendQ exceeded]
cpup has joined #ruby
<adaedra> acidrainfall: since you give two arguments to each's block, and each element of your sorted array has two elements, it is deconstructed when the block is called.
edwinvdgraaf has quit [Remote host closed the connection]
Cohedrin has joined #ruby
BSaboia has quit [Ping timeout: 244 seconds]
edwinvdgraaf has joined #ruby
<mahna> adaedra: `bundle exec ruby (file.rb)` works, as does `ruby (file.rb)` with `require 'bundler'; Bundler.setup` in my Gemfile. I thought it might automagically work without some sort of explicit Bundler tie, but get it now. Thanks!
<adaedra> mahna: ruby is not aware alone of your Gemfile, you need bundler to come play.
<adaedra> (this is not 100% true anymore as Ruby gets some bundler features, but this is not yet at bundler's level of support, at least was last time I tested.)
<mahna> Playing happily now, me + Bundler sitting in a tree.
<acidrainfall> adaedra: would it be a problem if there were a third dimension?
djbkd has quit [Remote host closed the connection]
<adaedra> acidrainfall: since you come from a hash, this should work smoothly. I'd say best way to know is to test.
djbkd has joined #ruby
<acidrainfall> yeah it seems to be fine
<acidrainfall> I don't think there are any 3-dimension values
lemur has quit [Ping timeout: 250 seconds]
<acidrainfall> Thanks!
rubie has quit [Remote host closed the connection]
<acidrainfall> I did try @outputs.sort.to_h.each_pair but it said that it couldn't find .to_h
<adaedra> ruby version?
<acidrainfall> I'm still on le antiquated 1.8
<acidrainfall> Presumably not available?
<adaedra> this belongs in a museum!
sczizzo has joined #ruby
<adaedra> You can do Hash[...] iirc
<acidrainfall> YOU belong in a museum!
<adaedra> I'm only 23, calm down
<acidrainfall> haha
<acidrainfall> man I feel old
<acidrainfall> And i'm only a few years older than you
<adaedra> >> {a: [1, 2, 3], b: [4, 5, [6, 7, 8]], c: {d: 9, e: 10}}.sort.each { |a, b| p [a, b] }
<ruby[bot]> adaedra: # => [:a, [1, 2, 3]] ...check link for more (https://eval.in/533551)
crnpen has quit [Remote host closed the connection]
<acidrainfall> yeah that's perfect
djbkd has quit [Remote host closed the connection]
<acidrainfall> This will do nicely
* acidrainfall writes up the PR
SebastianThorn has quit [Ping timeout: 276 seconds]
saneax_AFK is now known as saneax
djbkd has joined #ruby
malcolmva has joined #ruby
SebastianThorn has joined #ruby
<adaedra> I've never used each_pair, tbh.
lujan has joined #ruby
<mahna> adaedra, care to essplain the bundler feature comment? Sound interesting, I'm on 2.3.0 now, searching for some reference to this...
<adaedra> mahna: about ruby implementation?
zast has quit [Remote host closed the connection]
jxs_ has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
<mahna> Ja: "this is not 100% true anymore as Ruby gets some bundler features"
The_Phoenix has quit [Read error: Connection reset by peer]
rubie has joined #ruby
B1n4r10 has quit [Ping timeout: 244 seconds]
whippythellama has joined #ruby
<adaedra> I never find this damned doc when I look for it
<mahna> heh
jorrin has joined #ruby
sauvin has quit [Remote host closed the connection]
evenix has joined #ruby
baweaver has quit [Remote host closed the connection]
copperb0lt has quit [Quit: WeeChat 1.4]
<mahna> adaedra: Interesting, thanks--I hadn't seen that mentioned before.
<adaedra> yw
crdpink2 has quit [Quit: q term]
Wicaeed has joined #ruby
Snowy has joined #ruby
rmulligan has joined #ruby
KhanterWinters has joined #ruby
<KhanterWinters> Hello, good afternoon, I have a question-problem
joonty has quit [Quit: Leaving]
ramortegui has quit [Quit: Ex-Chat]
<KhanterWinters> I am learning ruby, but I am using windows, when I enter to the terminal and get into the irb, it says me undefined (I make the code in sublime text)
michael_mbp has joined #ruby
kies has joined #ruby
roshanavand has quit [Ping timeout: 260 seconds]
codecop has joined #ruby
skweek has quit [Remote host closed the connection]
crdpink has joined #ruby
mdw has joined #ruby
<mahna> KhanterWinters: Did you use http://rubyinstaller.org/? I had to touch Windows recently, and believe I installed that.
gbgdev has quit [Remote host closed the connection]
mahna has quit []
<KhanterWinters> yep, I use it... I install the lastest version for x64
lacedem has joined #ruby
KhanterWinters has quit [Quit: Page closed]
<adaedra> KhanterWinters: Isn't there some kind of special shortcut to use or something to have a Ruby-enabled cmd? (Haven't used Ruby under windows for a long time tho; this was too painful.)
<adaedra> Damn.
nocontrol has quit []
jenrzzz has joined #ruby
kent\n has quit [Ping timeout: 248 seconds]
supplication has quit [Ping timeout: 248 seconds]
platzhirsch has quit [Ping timeout: 264 seconds]
futilegames has joined #ruby
AlexRussia has quit [Ping timeout: 260 seconds]
zarubin has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
aeontech has joined #ruby
ruby-lang897 has joined #ruby
stunder has quit [Ping timeout: 246 seconds]
aegis3121 has joined #ruby
[Butch]_ has joined #ruby
<ruby-lang897> Is there an option to filter the country list while using country_select.....for example i would like to just display countries in US
mdw has quit [Quit: Sleeping Zzzzz]
JohnBat26 has quit [Quit: KVIrc 4.9.1 Aria http://www.kvirc.net/]
Xeago has quit [Read error: Connection reset by peer]
<fexilal> you mean countries in North America?
<ruby-lang897> yeah
zarubin has quit [Ping timeout: 240 seconds]
B1n4r10 has joined #ruby
[Butch] has quit [Ping timeout: 248 seconds]
[Butch]_ is now known as [Butch]
Xeago has joined #ruby
Xeago_ has joined #ruby
dubek has quit [Ping timeout: 260 seconds]
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
dubek has joined #ruby
drbrain has quit [Remote host closed the connection]
mdw has joined #ruby
tercenya_ has quit []
drbrain has joined #ruby
tercenya has joined #ruby
kfpratt has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 260 seconds]
kies has quit [Ping timeout: 240 seconds]
__chris has joined #ruby
xxneolithicxx has quit [Quit: Leaving.]
Atrox has joined #ruby
mistermocha has quit [Ping timeout: 252 seconds]
trinaldi has quit [Quit: cya]
stunder has joined #ruby
sandstrom has joined #ruby
bronson has quit [Remote host closed the connection]
cpup has quit [Ping timeout: 264 seconds]
<__chris> I'm building a gem. I've created a binary in which runs fine from within the root of the gem project but "require cannot load such file..." errors when I run the command outside of the gems folder.
cpup has joined #ruby
jgpawletko has quit [Quit: jgpawletko]
<__chris> Is there a standard way of requiring files in a gem?
bootstrappm has joined #ruby
gbgdev has joined #ruby
stunder has quit [Ping timeout: 246 seconds]
SCHAAP137 has quit [Remote host closed the connection]
avenj has joined #ruby
<aegis3121> The pattern I've seen is that you have lib/your_gem_name.rb that requires all the files your gem requires.
Sembei has joined #ruby
<aegis3121> then that file is the only one anybody needs to require, which ends up looking like require 'your_gem_name'
<aegis3121> (unless I've misunderstood your poblem, in which case sorry)
eregi has quit [Ping timeout: 276 seconds]
zarubin has joined #ruby
sepp2k has quit [Quit: Leaving.]
<shevy> __chris just install the gem
LuckyABA has quit [Read error: Connection reset by peer]
suffice has quit [Quit: leaving]
beast has quit [Quit: Leaving]
kies has joined #ruby
eregi has joined #ruby
treehug88 has joined #ruby
<shevy> for all executables in bin/* of a gem, a simple require 'name_of_your_gem_here' should suffice
<__chris> shevy, right. I did that but calling the bin command provided by the gem produces a "require" error
<__chris> I am require the gem name from within the bin as well
krzkrzkrz has quit [Read error: Connection reset by peer]
<shevy> no, let it call your gem library/files
htmldrum has quit [Ping timeout: 244 seconds]
<shevy> you must do something incorrectly when you try to require it
joonty has joined #ruby
marcdel has quit [Ping timeout: 260 seconds]
marcdel has joined #ruby
marcdel has quit [Max SendQ exceeded]
mdw_ has joined #ruby
marcdel has joined #ruby
elaptics is now known as elaptics`away
thezanke has joined #ruby
rdark has quit [Ping timeout: 260 seconds]
mdw has quit [Ping timeout: 250 seconds]
thezanke has quit [Max SendQ exceeded]
joonty has quit [Client Quit]
stunder has joined #ruby
supplication has joined #ruby
platzhirsch has joined #ruby
moeabdol2 has joined #ruby
cdg has quit [Remote host closed the connection]
moeabdol1 has quit [Ping timeout: 260 seconds]
yqt has joined #ruby
pawnbox has quit [Remote host closed the connection]
shanemcd has joined #ruby
chochesse_ has joined #ruby
stunder has quit [Ping timeout: 260 seconds]
<chochesse_> how can I get ruby to log per thread?
lacedem has quit [Ping timeout: 252 seconds]
shanemcd has quit [Remote host closed the connection]
gbgdev has quit [Remote host closed the connection]
shanemcd_ has joined #ruby
shanemcd_ has quit [Remote host closed the connection]
shanemcd has joined #ruby
cpup has quit [Ping timeout: 244 seconds]
uglybandersnatch has joined #ruby
paul98 has quit [Ping timeout: 276 seconds]
Xeago has joined #ruby
skweek has joined #ruby
cpup has joined #ruby
stunder has joined #ruby
BtcBen_ has joined #ruby
decoponio has quit [Read error: Connection reset by peer]
Xeago_ has quit [Ping timeout: 260 seconds]
decoponio has joined #ruby
uglybandersnatch has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
Xeago has quit [Ping timeout: 260 seconds]
skade has quit [Quit: Computer has gone to sleep.]
BtcBen has quit [Ping timeout: 252 seconds]
BtcBen_ is now known as BtcBen
boontdustie has joined #ruby
_tc has quit [Ping timeout: 240 seconds]
baweaver has quit [Ping timeout: 246 seconds]
mistermocha has joined #ruby
bramswenson has joined #ruby
bramswenson has quit [Remote host closed the connection]
quazimodo has joined #ruby
siaw has joined #ruby
fantasticsid has joined #ruby
uglybandersnatch has joined #ruby
rmulligan has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
FernandoBasso has joined #ruby
jgpawletko has joined #ruby
mdw_ has quit [Ping timeout: 248 seconds]
jgpawletko has quit [Client Quit]
rmulligan has joined #ruby
bronson has joined #ruby
siaw has left #ruby [#ruby]
<prefix> uh
<prefix> why does ruby's regex matcher take "" to be the same thing as "*"
mdw has joined #ruby
<havenwood> prefix: Example of what you mean?
<prefix> "" clearly isn't "*"
<havenwood> prefix: What code are you running? What Regexp?
n008f4g_ has quit [Ping timeout: 248 seconds]
<eam> prefix: do you mean how '""' is matched by /"*"/ ?
nanoz has quit [Ping timeout: 276 seconds]
elifoster has quit [Ping timeout: 276 seconds]
zarubin has quit [Ping timeout: 252 seconds]
kirun has joined #ruby
<prefix> let's say I have the string, "a". if i run "a".match(Regexp.unon("")), it returns true
codecop has quit [Remote host closed the connection]
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> what is unon - is that like onion
<prefix> *Regexp.union
<eam> prefix: sure, why shouldn't it?
platzhirsch has left #ruby [#ruby]
<prefix> "" is not the same thing as .*
<havenwood> >> 'a'[//]
<ruby[bot]> havenwood: # => "" (https://eval.in/533580)
<eam> correct, but both match any string
<havenwood> prefix: ^
<eam> the regex // will match anything
<eam> it will match differently, though
baweaver has joined #ruby
<prefix> that doesn't even make sense
<prefix> how is that even a thing
<eam> of course it does - you're giving it a nul requirement
<prefix> that's what the kleene star is for
<prefix> are you kidding me?
<eam> no, .* matches everything
zenspider has joined #ruby
<eam> it's different
<eam> >> "abc" =~ //; $&
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
saneax is now known as saneax_AFK
<havenwood> #=> ""
<eam> havenwood: thx
uglybandersnatch has quit [Ping timeout: 240 seconds]
<eam> >> "abc" =~ /.*/; $&
<eam> #=> "abc"
<evenix> Hey giys
chochesse_ has quit [Quit: Leaving]
<eam> the regex /.*/ is going to match any and every character. The // regex is going to match no characters. Both will evaluate as a match on any input string
<eam> because all strings have a sequence of "no characters"
duckpuppy has quit [Ping timeout: 248 seconds]
<eam> in between the start of the string and the first character (if there is a first character)
<evenix> I'm looking for a way to automatically gzip responses.
<eam> >> "abc".split //
<eam> => ["a", "b", "c"]
Snowy has quit [Remote host closed the connection]
<eam> >> "abc".split /.*/
<eam> => []
futilegames has quit [Quit: futilegames]
uglybandersnatch has joined #ruby
<havenwood> evenix: Rack::Deflater
<evenix> havenwood: tried
moeabdol3 has joined #ruby
<evenix> :/ didn't work
<evenix> i'll look deeper into it
<havenwood> evenix: Nginx or Apache for gzip'n static assets, typically.
ramfjord has quit [Ping timeout: 260 seconds]
nchambers has quit [Changing host]
nchambers has joined #ruby
<prefix> ah
<prefix> the empty string is contained in every string
<evenix> havenwood: I'm on my local environment right now. I also tried this https://gist.github.com/relistan/2109707
<prefix> i remember this. how enjoyable
moeabdol2 has quit [Ping timeout: 240 seconds]
n008f4g_ has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
<havenwood> evenix: rack-zippy is another, i think rails focused?
stunder has quit [Ping timeout: 250 seconds]
<evenix> havenwood: perfect! I'll try that
<eam> prefix: and if you change .* to be the non-greedy .*? you'll find it matches like // because it maches on the smallest (empty) string instead of the largest (entire string)
<eam> which maybe helps frame the behavior, that // is a subset of what /.*/ can match
<prefix> yes
elifoster has joined #ruby
<prefix> i remember this now
zarubin has joined #ruby
<prefix> i had nightmares about this for a while back in college
<eam> ;)
ta_ has joined #ruby
<eam> of course /.*?/ is a hell of a lot less efficient than //
marsjaninzmarsa has quit [Quit: ZNC 1.7.x-git-487-cbf5c38 - http://znc.in]
freerobby has quit [Quit: Leaving.]
tomchapin has joined #ruby
choke has quit [Quit: Textual IRC Client: www.textualapp.com]
htmldrum has joined #ruby
skade has joined #ruby
Guest34101 has joined #ruby
Shaboum has quit [Ping timeout: 248 seconds]
baweaver has quit [Remote host closed the connection]
openstruct has quit [Remote host closed the connection]
marsjaninzmarsa has joined #ruby
huddy has joined #ruby
uglybandersnatch has quit [Ping timeout: 240 seconds]
<__chris> shevy, could it have something to do with gemspecs?
openstruct has joined #ruby
<__chris> i tried require_relative and require "../my_gem_name".. no joy
SCHAAP137 has joined #ruby
cpup has quit [Ping timeout: 244 seconds]
stunder has joined #ruby
trosborn has joined #ruby
cpup has joined #ruby
shadowbram has joined #ruby
openstruct has quit [Ping timeout: 244 seconds]
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
ItSANgo has quit [Quit: Leaving...]
stunder has quit [Ping timeout: 248 seconds]
tomchapin has quit [Quit: Textual IRC Client: www.textualapp.com]
sepp2k has joined #ruby
mistermocha has joined #ruby
<evenix> havenwood: my issue is not related to assets.. when im trying to login to gmail using omniau-google2 the response from google is gzip compressed I'm trying to set up my application to automatically decode that
solocshaw has quit [Ping timeout: 248 seconds]
<evenix> 'rack-zippy is a Rack middleware for serving static gzipped assets precompiled by the Rails asset pipeline'
<evenix> I don't think this is what I need
colegatron has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
<evenix> I'm trying to automatically uncompress gzip http response
<evenix> config.middleware.use Rack::Deflater might be a better option
ldnunes has quit [Quit: Leaving]
swills has quit [Ping timeout: 260 seconds]
last_staff1 has joined #ruby
stunder has joined #ruby
jenrzzz has joined #ruby
marcdel has quit [Ping timeout: 260 seconds]
last_staff has quit [Ping timeout: 240 seconds]
last_staff1 is now known as last_staff
zarubin has quit [Quit: leaving]
djbkd has joined #ruby
A124 has quit [Quit: '']
marcdel has joined #ruby
baweaver has joined #ruby
shinnya has quit [Ping timeout: 276 seconds]
stunder has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
system64 has quit [Quit: Connection closed for inactivity]
baweaver has quit [Remote host closed the connection]
A124 has joined #ruby
B1n4r10 has quit [Ping timeout: 268 seconds]
cpup has quit [Ping timeout: 240 seconds]
last_staff has quit [Quit: last_staff]
ruby-lang897 has quit [Ping timeout: 252 seconds]
cpup has joined #ruby
jorrin has quit [Quit: Leaving]
Xeago has joined #ruby
baweaver has joined #ruby
roshanavand has joined #ruby
kfpratt has joined #ruby
BLuEGoD has quit [Ping timeout: 250 seconds]
skade has quit [Quit: Computer has gone to sleep.]
siaw has joined #ruby
trosborn has quit [Quit: trosborn]
BtcBen has quit [Ping timeout: 252 seconds]
vdamewood has joined #ruby
blackmesa has quit [Ping timeout: 268 seconds]
symm- has joined #ruby
ocbtec has quit [Quit: leaving]
edwinvdgraaf has quit [Remote host closed the connection]
ramfjord has joined #ruby
blackmesa has joined #ruby
shadowbram has quit [Remote host closed the connection]
holyGlitch has left #ruby ["Leaving"]
zipace has joined #ruby
jottr has joined #ruby
jyaworski has quit [Quit: jyaworski]
poerror has quit [Ping timeout: 244 seconds]
machinewar has joined #ruby
pikajude has joined #ruby
<pikajude> does GEM_PATH get added to LOAD_PATH?
poerror has joined #ruby
Xeago has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 260 seconds]
bluOxigen_ has joined #ruby
bluOxigen has quit [Ping timeout: 268 seconds]
tomphp has joined #ruby
kknight has joined #ruby
Vile` has quit [Ping timeout: 240 seconds]
snockerton has joined #ruby
mdw has quit [Ping timeout: 246 seconds]
B4daBing73 has joined #ruby
infra-red has quit [Ping timeout: 248 seconds]
e4xit has joined #ruby
steffkes has quit [Ping timeout: 248 seconds]
Xeago has joined #ruby
prefix has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hanmac> shevy i have seen the new ghostbusters trailer ... now i dont want to see it again oO https://www.youtube.com/watch?v=w3ugHP-yZXw
__chris has quit [Quit: Leaving]
ebbflowgo has joined #ruby
<pikajude> also, what is the difference between setting an environment variable before running a script and setting it in ENV in the first line of the script
floatingpoint has joined #ruby
Vile` has joined #ruby
Noxilex has joined #ruby
djbkd has quit [Remote host closed the connection]
tp_ has joined #ruby
quazimodo has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
<adaedra> pikajude: if you use pre-defined environment, it can be overrider by caller
<adaedra> overriden
<pikajude> ok
<adaedra> I can't type tonight.
<pikajude> specifically, i'm setting ENV["GEM_PATH"] in my script then require 'bundler/setup' fails
<pikajude> but if I set it in my shell before running the script, it works fine
<pikajude> so i'm trying to figure out why
djbkd has joined #ruby
<adaedra> Why are you even doing this
<pikajude> well, it's not my script
<pikajude> i'm trying to figure out why it stopped working
<pikajude> because i use it
solocshaw has joined #ruby
mary5030_ has quit [Remote host closed the connection]
ICantCook has quit [Quit: bye]
<adaedra> It's surely because RubyGems reconstruct its path from env before your script even start. This sounds like the wrong solution to the problem you're having.
<pikajude> oh, is that inbuilt functionality of ruby
B4daBing73 has quit [Quit: Leaving]
<pikajude> i see
<pikajude> if I --disable=gems, it works!
<adaedra> This sounds like even wronger solution to the problem imo.
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pikajude> doesn't it
ebbflowgo has quit [Quit: ebbflowgo]
<adaedra> Maybe if you explain the whole issue, a better solution could be found?
<idletask> My thoughts exactly; this looks like an XY problem
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> wth
workmad3 has joined #ruby
evenix has quit [Remote host closed the connection]
chouhoul_ has quit [Remote host closed the connection]
tonyynot has joined #ruby
faelkle has joined #ruby
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
workmad3 has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
workmad3 has joined #ruby
jdawgaz has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
nando293921 has quit [Quit: Lost terminal]
quazimodo has joined #ruby
swills has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
BTRE has quit [Ping timeout: 276 seconds]
supplication has quit [Ping timeout: 252 seconds]
fostertheweb has quit [Ping timeout: 276 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has quit [Remote host closed the connection]
skade has joined #ruby
jdawgaz has joined #ruby
ta_ has joined #ruby
ta__ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
Vile` has quit [Ping timeout: 276 seconds]
aeontech has quit [Quit: aeontech]
jottr has joined #ruby
ctrlrsf has quit [Ping timeout: 268 seconds]
Rinalds has quit [Ping timeout: 240 seconds]
siaw has quit [Quit: siaw]
aeontech has joined #ruby
ta__ has quit [Ping timeout: 246 seconds]
flopsec- has quit [Ping timeout: 244 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
mdw has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
BTRE has joined #ruby
trosborn has joined #ruby
nando293921 has joined #ruby
baweaver has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
johnmilton has quit [Quit: Namaste]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zenlot6 has joined #ruby
ta_ has joined #ruby
jottr has joined #ruby
ctrlrsf has joined #ruby
zenlot has quit [Ping timeout: 264 seconds]
jdawgaz has joined #ruby
poerror has quit [Ping timeout: 250 seconds]
jdawgaz has quit [Client Quit]
ziyadb has quit [Quit: Connection closed for inactivity]
haylon has quit [Quit: WeeChat 1.4]
ArtursL has quit [Ping timeout: 250 seconds]
nando293921 has quit [Ping timeout: 264 seconds]
synthroid has quit []
baweaver has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 248 seconds]
djbkd has quit [Remote host closed the connection]
Vingador has joined #ruby
trosborn has quit [Quit: trosborn]
pwnd_nsfw` is now known as pwnd_nsfw
quazimodo has quit [Read error: Connection reset by peer]
tcrypt has joined #ruby
Azure has joined #ruby
n008f4g_ has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
shanemcd has quit [Read error: Connection reset by peer]
howard_ has joined #ruby
shanemcd has joined #ruby
spider-mario has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
ESpiney has quit [Ping timeout: 264 seconds]
pawnbox has joined #ruby
UserInNeed has quit [Ping timeout: 250 seconds]
sysanthrope has quit [Read error: Connection reset by peer]
A124 has quit [Ping timeout: 250 seconds]
marcdel has quit [Ping timeout: 250 seconds]
flopsec has joined #ruby
A124 has joined #ruby
ebbflowgo has joined #ruby
dgncn has quit [Ping timeout: 268 seconds]
DynamicMetaFlow has joined #ruby
atmosx has quit [Ping timeout: 250 seconds]
Dreamer__ has quit [Ping timeout: 250 seconds]
levifig has quit [Ping timeout: 250 seconds]
rikai has quit [Ping timeout: 250 seconds]
BTRE has quit [Ping timeout: 240 seconds]
kp666 has quit [Ping timeout: 240 seconds]
ytti has quit [Ping timeout: 240 seconds]
Dreamer3 has joined #ruby
zipace has quit [Ping timeout: 268 seconds]
j0n3 has quit [Ping timeout: 268 seconds]
kp666 has joined #ruby
cdg has quit [Ping timeout: 268 seconds]
ixti has quit [Ping timeout: 268 seconds]
uglybandersnatch has joined #ruby
eregi_ has joined #ruby
cdg has joined #ruby
rikai has joined #ruby
postmodern has joined #ruby
icey has quit [Ping timeout: 250 seconds]
ebbflowgo has quit [Read error: Connection reset by peer]
shazaum_ has joined #ruby
ramfjord_ has joined #ruby
pibby has quit [Ping timeout: 250 seconds]
dhollinger has quit [Quit: WeeChat 1.4]
genpaku_ has joined #ruby
Dreamer3_ has quit [Ping timeout: 250 seconds]
genpaku has quit [Remote host closed the connection]
ebbflowgo has joined #ruby
genpaku_ is now known as genpaku
levifig has joined #ruby
icey has joined #ruby
Some-body_ has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
rideh has quit [Ping timeout: 250 seconds]
Dreamer3_ has joined #ruby
djbkd has joined #ruby
jenrzzz_ has joined #ruby
pibby has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
sysanthrope has joined #ruby
faelkle has quit [Quit: leaving]
DarthGandalf has quit [Ping timeout: 250 seconds]
Some-body_ is now known as DarthGandalf
wilbert has joined #ruby
faelkle has joined #ruby
atmosx has joined #ruby
rideh has joined #ruby
djbkd has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
arthropododo has joined #ruby
eregi has quit [Ping timeout: 260 seconds]
marcdel has joined #ruby
darkxploit has quit [Ping timeout: 268 seconds]
UserInNeed has joined #ruby
uglybandersnatch has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
uglybandersnatch has joined #ruby
Alayde has quit [Ping timeout: 276 seconds]
dgncn has joined #ruby
baweaver has joined #ruby
pragmatism has quit [Ping timeout: 250 seconds]
jxs_ has quit [Remote host closed the connection]
zenlot6 has quit [Read error: Connection reset by peer]
harryh has quit [Ping timeout: 260 seconds]
darkxploit has joined #ruby
wilbert has quit [Quit: quit]
milesmatthias has joined #ruby
pwnd_nsfw has quit [Read error: Connection reset by peer]
pwnd_nsfw has joined #ruby
supplication has joined #ruby
faelkle is now known as faelkle_away
faelkle_away is now known as faelkle
westmore has joined #ruby
faelkle is now known as faelkle_away
mary5030 has joined #ruby
Guest98597 has quit [Remote host closed the connection]
rmulligan has quit [Ping timeout: 268 seconds]
atmosx has quit [Max SendQ exceeded]
coyo has quit [Ping timeout: 240 seconds]
zenlot6 has joined #ruby
kies has quit [Ping timeout: 248 seconds]
kknight has quit [Ping timeout: 246 seconds]
intrigueD has joined #ruby
pragmatism has joined #ruby
atmosx has joined #ruby
lemur has joined #ruby
quazimodo has joined #ruby
zeroDivisible has joined #ruby
mary5030 has quit [Ping timeout: 250 seconds]
ebbflowgo has quit [Quit: ebbflowgo]
johnmilton has joined #ruby
lemur has quit [Ping timeout: 248 seconds]
coyo has joined #ruby
BtcBen has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
milesmatthias has quit [Remote host closed the connection]
[Butch] has quit [Quit: I'm out . . .]
ebbflowgo has joined #ruby
johnmilton has quit [Ping timeout: 246 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
BTRE has joined #ruby
ixti has joined #ruby
westmore is now known as moonman420
pawnbox has joined #ruby
moonman420 has left #ruby [#ruby]
Eiam has joined #ruby
Eiam has quit [Client Quit]
milesmatthias has joined #ruby
kknight has joined #ruby
LuckyABA has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
Xeago has quit [Remote host closed the connection]
p0p0pr37 has joined #ruby
supplication is now known as Supplication
aegis3121 has quit [Ping timeout: 248 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
axl_ has quit [Quit: axl_]
milesmatthias has quit [Remote host closed the connection]
ensyde_ has joined #ruby
saneax_AFK is now known as saneax
shazaum_ has quit [Quit: Leaving]
ledestin has joined #ruby
symm- has quit [Ping timeout: 264 seconds]
Snowy has joined #ruby
machinewar has quit []
poerror has joined #ruby
acidrainfall has left #ruby [#ruby]
johnmilton has joined #ruby
ytti has joined #ruby
Vile` has joined #ruby
bry4n has quit [Ping timeout: 260 seconds]
mistermo_ has joined #ruby
johnmilton has quit [Max SendQ exceeded]
nando293921 has joined #ruby
crowell has quit [Ping timeout: 246 seconds]
chipotle has quit [Quit: cheerio]
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 276 seconds]
mwlang has quit [Quit: mwlang]
ytti has quit [Ping timeout: 240 seconds]
biberu has quit []
crowell has joined #ruby
mustmodify___ has joined #ruby
mustmodify___ is now known as mustmodify
moos3 has quit [Ping timeout: 246 seconds]
joconcepts has quit [Ping timeout: 252 seconds]
jhass has quit [Ping timeout: 246 seconds]
safe has joined #ruby
ohcibi has quit [Quit: No Ping reply in 180 seconds.]
Hobbyboy has quit [Ping timeout: 260 seconds]
uglybandersnatch has quit [Ping timeout: 240 seconds]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ohcibi has joined #ruby
aeontech has quit [Quit: aeontech]
ropeney has joined #ruby
snockerton has quit [Quit: Leaving.]
mustmodify has quit [Ping timeout: 268 seconds]
kirun has quit [Quit: Client exiting]
Rutix has quit [Ping timeout: 268 seconds]
Rutix has joined #ruby
Rutix has quit [Changing host]
Rutix has joined #ruby
pawnbox has joined #ruby
Hobbyboy has joined #ruby
SHyx0rmZ has quit [Ping timeout: 244 seconds]