jhass changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
n90b0jjf has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
brianpWins has quit [Ping timeout: 265 seconds]
brianpWins has joined #ruby
brianpWins has quit [Client Quit]
JeanCarl1Machado has joined #ruby
marr has quit [Ping timeout: 260 seconds]
FernandoBasso has quit [Quit: Leaving]
JeanCarloMachado has quit [Ping timeout: 265 seconds]
beilabs has joined #ruby
pokalyis has joined #ruby
macsteps has quit [Remote host closed the connection]
tubuliferous_ has quit [Ping timeout: 258 seconds]
spider-mario has quit [Remote host closed the connection]
jsgrant has joined #ruby
n90b0jjf has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
beilabs has quit [Ping timeout: 276 seconds]
cyphase has quit [Quit: cyphase.com]
nando293921 has quit [Ping timeout: 258 seconds]
nando293921 has joined #ruby
jaequery has quit [Ping timeout: 250 seconds]
rajdesai has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 240 seconds]
KnownSyntax has joined #ruby
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
p0p0pr37_ has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jsgrant has left #ruby ["Konversation terminated!"]
p0p0pr37 has quit [Ping timeout: 258 seconds]
p0p0pr37_ is now known as p0p0pr37
arescorpio has joined #ruby
pokalyis has joined #ruby
cyphase has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
chihhsin has quit [Ping timeout: 265 seconds]
hahuang65 has joined #ruby
al2o3-cr has quit [Quit: WeeChat 1.5]
spudowiar has joined #ruby
nando293921 has quit [Quit: Lost terminal]
hahuang65 has quit [Ping timeout: 250 seconds]
al2o3-cr has joined #ruby
tubuliferous_ has quit [Ping timeout: 240 seconds]
xall has joined #ruby
nando293921 has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rajdesai has joined #ruby
xall has quit [Ping timeout: 244 seconds]
bad_ip has quit [Ping timeout: 258 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
nando293921 has quit [Ping timeout: 250 seconds]
bodgix__ has quit [Quit: Connection closed for inactivity]
ur5us has quit [Ping timeout: 265 seconds]
chipotle has joined #ruby
karapetyan has joined #ruby
spectrum has joined #ruby
rajdesai has quit [Remote host closed the connection]
opus has joined #ruby
skweek has joined #ruby
karapetyan has quit [Ping timeout: 244 seconds]
Velizar has quit [Quit: Velizar]
karapetyan has joined #ruby
davedev24 has quit []
hutch34_ has joined #ruby
toretore has quit [Ping timeout: 244 seconds]
sp_ has quit [Ping timeout: 265 seconds]
aries_liuxueyang has quit [Ping timeout: 260 seconds]
LoneHermit has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aries_liuxueyang has joined #ruby
axsuul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHermit has quit [Ping timeout: 252 seconds]
axsuul has joined #ruby
Yzguy has quit [Quit: Zzz...]
karapetyan has quit [Remote host closed the connection]
dmr8 has quit [Quit: Leaving]
sp_ has joined #ruby
pokalyis has joined #ruby
xlegoman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
braincrash has joined #ruby
hahuang65 has joined #ruby
braincras has quit [Ping timeout: 258 seconds]
yfeldblum has quit [Ping timeout: 250 seconds]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tubuliferous_ has joined #ruby
pokalyis has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
tubuliferous_ has quit [Ping timeout: 244 seconds]
sk41ks has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
hutch34_ has quit [Ping timeout: 276 seconds]
JeanCarl1Machado has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
<sk41ks> does anyone know when the safe navigation operator was introduced?
<sk41ks> `&.`
<sk41ks> it's fantastic
<adam12> Very recent (2.3?), and yes, it's awesome.
Vile` has quit [Read error: Connection reset by peer]
Vile` has joined #ruby
grenierm has joined #ruby
djbkd has quit [Quit: My people need me...]
c0mrad3 has quit [Quit: Connection closed for inactivity]
<sk41ks> I put that shit on everything
zacts has quit [Quit: WeeChat 1.4]
jaequery has joined #ruby
funrep has quit [Quit: ups]
matp has quit [Ping timeout: 264 seconds]
xall has joined #ruby
LoneHerm_ has joined #ruby
xall has quit [Ping timeout: 244 seconds]
opus has quit [Quit: Textual IRC Client: www.textualapp.com]
sdothum has joined #ruby
bjh13` has joined #ruby
LoneHerm_ has quit [Ping timeout: 252 seconds]
zynx has joined #ruby
Yzguy has joined #ruby
bjh13` has quit [Remote host closed the connection]
sp_ has quit [Ping timeout: 276 seconds]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
matp has joined #ruby
p0p0pr37_ has joined #ruby
p0p0pr37 has quit [Ping timeout: 252 seconds]
p0p0pr37_ is now known as p0p0pr37
matp has quit [Remote host closed the connection]
kam270 has joined #ruby
kam270 has quit [Max SendQ exceeded]
kam270 has joined #ruby
unreal has quit [Ping timeout: 260 seconds]
kam270 has quit [Max SendQ exceeded]
kam270 has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bjh13` has joined #ruby
xall has joined #ruby
bjh13` has quit [Client Quit]
kam270 has quit [Max SendQ exceeded]
beilabs has joined #ruby
pokalyis has joined #ruby
kam270 has joined #ruby
kam270 has quit [Max SendQ exceeded]
hahuang65 has joined #ruby
kam270 has joined #ruby
kam270 has quit [Max SendQ exceeded]
xall has quit [Ping timeout: 258 seconds]
kam270 has joined #ruby
kam270 has quit [Max SendQ exceeded]
tubuliferous_ has joined #ruby
kam270 has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
brttpttrsn has joined #ruby
kam270 has quit [Max SendQ exceeded]
<brttpttrsn> If I'm iterating over a hash with map, how can I break out of it so if a condition is met, it will continue execution after the loop? I've tried using "break" and it doesn't seem to work.
tubuliferous_ has quit [Ping timeout: 264 seconds]
Derperperd has quit [Read error: Connection reset by peer]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
Derperperd has joined #ruby
sk41ks has quit [Ping timeout: 258 seconds]
soLucien has joined #ruby
<soLucien> how to use a top-level class(namespace) in ruby ?
karapetyan has quit [Ping timeout: 244 seconds]
beilabs_ has joined #ruby
<soLucien> if i say PSDriver.execute inside my method i get a uninitialized constant VagrantPlugins::HyperVNetworking::Action::EnsureBridgeExists::PSDriver
max1 has joined #ruby
<soLucien> the PSDriver is actually VagrantPlugins::HyperVNetworking::PSDriver
<soLucien> how do i refer to it inside the VagrantPlugins::HyperVNetworking::Action::EnsureBridgeExists class ?
beilabs has quit [Ping timeout: 265 seconds]
harfangk has joined #ruby
beilabs has joined #ruby
face has quit []
beilabs__ has joined #ruby
beilabs_ has quit [Ping timeout: 250 seconds]
beilabs has quit [Ping timeout: 240 seconds]
n90b0jjf has joined #ruby
braincrash has quit [Quit: bye bye]
max1 has quit [Quit: WeeChat 1.4]
dunpeal has quit [Ping timeout: 276 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
diegoviola has quit [Quit: WeeChat 1.5]
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jackjackdripper has joined #ruby
theery has quit [Remote host closed the connection]
Izabia has quit [Quit: Leaving]
Izabia has joined #ruby
braincrash has joined #ruby
axsuul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
axsuul has joined #ruby
QORRiE__ has quit [Quit: Leaving]
axsuul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dunpeal has joined #ruby
xall has joined #ruby
zacts has joined #ruby
datanoise has joined #ruby
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<matthewd> soLucien: Use its full name
hahuang65 has joined #ruby
brttpttrsn has quit [Quit: Leaving]
eljimmy has joined #ruby
zacts has quit [Ping timeout: 240 seconds]
tubuliferous_ has joined #ruby
fantasticsid has quit [Ping timeout: 260 seconds]
s2013 has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
tubuliferous_ has quit [Ping timeout: 276 seconds]
nettoweb has joined #ruby
aryaching has quit [Quit: Bye]
akitada has joined #ruby
gix has quit [Ping timeout: 250 seconds]
datanoise has quit [Quit: Textual IRC Client: www.textualapp.com]
eljimmy has quit [Quit: This computer has gone to sleep]
M4dH4TT3r has joined #ruby
gix has joined #ruby
M4dH4TT3r is now known as Guest86922
qguv has quit [Quit: bye]
CloCkWeRX has joined #ruby
the_drow has joined #ruby
qguv has joined #ruby
n90b0jjf has quit [Remote host closed the connection]
Guest86922 has quit [Ping timeout: 240 seconds]
max1 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
hk238 has joined #ruby
n90b0jjf has joined #ruby
Guest86922 has joined #ruby
bad_ip has joined #ruby
bad_ip has quit [Changing host]
bad_ip has joined #ruby
yuki_is_bored has joined #ruby
dcunit3d has joined #ruby
c355e3b has quit [Quit: Connection closed for inactivity]
Guest86922 has quit [Ping timeout: 244 seconds]
LoneHermit has joined #ruby
beilabs has joined #ruby
shmuli has joined #ruby
beilabs__ has quit [Ping timeout: 276 seconds]
shmuli has quit [Remote host closed the connection]
LoneHermit has quit [Ping timeout: 252 seconds]
yuki_is_bored has quit [Remote host closed the connection]
Guest86922 has joined #ruby
xlegoman has joined #ruby
zacstewart has quit [Ping timeout: 264 seconds]
SCHAAP137 has quit [Quit: Leaving]
yuki_is_bored has joined #ruby
n90b0jjf has quit [Remote host closed the connection]
n90b0jjf has joined #ruby
Yzguy has quit [Quit: Zzz...]
chihhsin has joined #ruby
n90b0jjf has quit [Ping timeout: 240 seconds]
beilabs_ has joined #ruby
arescorpio has quit [Quit: Leaving.]
beilabs has quit [Ping timeout: 276 seconds]
lxsameer has joined #ruby
WeZZard has joined #ruby
WeZZard has quit [Client Quit]
Guest86922 has quit [Ping timeout: 258 seconds]
jaequery has joined #ruby
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
Guest86922 has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
hahuang65 has quit [Ping timeout: 250 seconds]
zacts has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
ur5us has joined #ruby
lxsameer has quit [Ping timeout: 276 seconds]
ur5us has quit [Ping timeout: 240 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
beilabs has joined #ruby
beilabs_ has quit [Ping timeout: 276 seconds]
n90b0jjf has joined #ruby
solars has quit [Ping timeout: 258 seconds]
jackjackdripper has joined #ruby
Guest86922 has quit [Read error: Connection reset by peer]
Guest86922 has joined #ruby
pokalyis has joined #ruby
DanyC has joined #ruby
matcouto has joined #ruby
max1 is now known as PickAndMix
roflmyeggo has quit [Ping timeout: 240 seconds]
n90b0jjf has quit [Ping timeout: 240 seconds]
threh has joined #ruby
hogetaro has quit [Quit: Leaving...]
moei has quit [Quit: Leaving...]
xall has quit [Ping timeout: 276 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
n90b0jjf has joined #ruby
LoneHerm_ has joined #ruby
zacstewart has joined #ruby
n90b0jjf has quit [Ping timeout: 240 seconds]
LoneHerm_ has quit [Ping timeout: 252 seconds]
jaequery has joined #ruby
jaequery has quit [Client Quit]
zacstewart has quit [Ping timeout: 240 seconds]
jaequery has joined #ruby
n90b0jjf has joined #ruby
DanyC has quit []
jaequery has quit [Max SendQ exceeded]
jaequery has joined #ruby
jaequery has quit [Client Quit]
tubuliferous_ has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dcunit3d has quit [Ping timeout: 244 seconds]
Guest86922 has quit [Ping timeout: 244 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
tubuliferous_ has quit [Ping timeout: 260 seconds]
Guest86922 has joined #ruby
lxsameer has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
beilabs has quit [Remote host closed the connection]
threh has quit [Ping timeout: 250 seconds]
hahuang65 has quit [Ping timeout: 250 seconds]
Vile` has quit [Ping timeout: 244 seconds]
zacts has quit [Quit: WeeChat 1.4]
zacts has joined #ruby
xall has joined #ruby
Cohedrin has joined #ruby
shinnya has quit [Ping timeout: 250 seconds]
rajdesai has joined #ruby
l4v2 has quit [Quit: l4v2]
Guest86922 has quit [Ping timeout: 265 seconds]
Guest86922 has joined #ruby
<pizzaops> Yo dogg...I heard you like namespaces...
hogetaro has joined #ruby
zodiac19 has joined #ruby
hogetaro has quit [Client Quit]
solars has joined #ruby
zacts has quit [Quit: WeeChat 1.4]
zacstewart has joined #ruby
dunpeal has quit [Ping timeout: 252 seconds]
zacstewart has quit [Ping timeout: 276 seconds]
<zodiac19> I guess every conversation starts with a Hello, so, Hi, anyone know any channels for programer learning and advice?
xlegoman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zynx has quit [Ping timeout: 240 seconds]
tmtwd has joined #ruby
tubuliferous_ has joined #ruby
p0p0pr37 has quit [Ping timeout: 250 seconds]
macsteps has joined #ruby
snath has joined #ruby
snath has left #ruby [#ruby]
tubuliferous_ has quit [Ping timeout: 260 seconds]
zodiac19 has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
yuki_is_bored has quit [Ping timeout: 244 seconds]
hahuang65 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
jackjackdripper has quit [Client Quit]
hahuang65 has quit [Ping timeout: 250 seconds]
xall has quit [Ping timeout: 240 seconds]
brianpWins has joined #ruby
beilabs has joined #ruby
the_drow has joined #ruby
Vile` has joined #ruby
rajdesai has quit [Remote host closed the connection]
grenierm has quit [Quit: grenierm]
Devalo has joined #ruby
PickAndMix has quit [Quit: WeeChat 1.4]
framling has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LoneHerm_ has joined #ruby
max1 has joined #ruby
rajdesai has joined #ruby
haxrbyte has joined #ruby
LoneHerm_ has quit [Ping timeout: 252 seconds]
zacts has joined #ruby
zodiac19_ has joined #ruby
zodiac19_ has quit [Client Quit]
vuoto has joined #ruby
zodiac19_ has joined #ruby
n90b0jjf has quit [Remote host closed the connection]
haxrbyte has quit [Remote host closed the connection]
zodiac19_ has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
zodiac19_ has joined #ruby
firstdayonthejob has joined #ruby
max1 is now known as PickAndMix
<zodiac19_> three headless programmers walk into a bar, no one says a word.
hahuang65 has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
yuki_is_bored has joined #ruby
sp_ has joined #ruby
c0mrad3 has joined #ruby
moneylotion has quit [Quit: ZNC 1.6.3 - http://znc.in]
<zodiac19_> 99 errors of code on the screen, 99 errors of code, take one down, patch it around 6967 errors of code on the screen
kiran_ has joined #ruby
yardenbar has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moneylotion has joined #ruby
<yuki_is_bored> nice
rajdesai has quit [Remote host closed the connection]
vuoto has quit [Ping timeout: 260 seconds]
kiranz has joined #ruby
kiranz has quit [Client Quit]
kiran_ has quit [Quit: Page closed]
vuoto has joined #ruby
<zodiac19_> a single response, and here I thought this IRC was just packed full of lifeless bots, glad to know I was wrong
tmtwd has quit [Ping timeout: 250 seconds]
PickAndMix has quit [Quit: WeeChat 1.4]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nhhc has joined #ruby
pokalyis has joined #ruby
dunpeal has joined #ruby
LoneHermit has joined #ruby
tubuliferous_ has joined #ruby
zacstewart has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
hanmac has quit [Remote host closed the connection]
LoneHermit has quit [Ping timeout: 252 seconds]
dunpeal has quit [Ping timeout: 258 seconds]
tubuliferous_ has quit [Ping timeout: 276 seconds]
zacstewart has quit [Ping timeout: 244 seconds]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sp_ has quit [Ping timeout: 265 seconds]
pokalyis has joined #ruby
conta has joined #ruby
matcouto has joined #ruby
wnd has quit [Excess Flood]
hanmac has joined #ruby
wnd has joined #ruby
axsuul has joined #ruby
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 250 seconds]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox_ has joined #ruby
pokalyis has joined #ruby
pawnbox has quit [Ping timeout: 264 seconds]
xall has joined #ruby
hahuang65 has joined #ruby
AlexRussia has joined #ruby
yuki_is_bored has quit [Quit: leaving]
antgel has joined #ruby
xall has quit [Ping timeout: 260 seconds]
hahuang65 has quit [Ping timeout: 250 seconds]
A_Drone has joined #ruby
A_Drone has quit [Remote host closed the connection]
Dimik has quit [Ping timeout: 240 seconds]
moei has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pokalyis has joined #ruby
A_Drone has joined #ruby
spider-mario has joined #ruby
johnny56 has joined #ruby
djbkd has joined #ruby
johnny56_ has quit [Ping timeout: 264 seconds]
zarubin has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spudowiar has quit [Quit: Leaving.]
alfiemax has quit [Ping timeout: 258 seconds]
pokalyis has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
harfangk_ has joined #ruby
The_Phoenix has joined #ruby
marr has joined #ruby
harfangk has quit [Ping timeout: 258 seconds]
akitada has quit [Quit: Connection closed for inactivity]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pokalyis has joined #ruby
alfiemax has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
djbkd has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
Devalo has quit [Ping timeout: 264 seconds]
Torrone has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Es0teric has joined #ruby
pokalyis has joined #ruby
Torrone has quit [Client Quit]
sepp2k has joined #ruby
miqlas-H has joined #ruby
A_Drone has quit [Ping timeout: 250 seconds]
platzhirsch has joined #ruby
nikhgupta has joined #ruby
antgel has quit [Ping timeout: 264 seconds]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
A_Drone has joined #ruby
xall has joined #ruby
pokalyis has joined #ruby
xall has quit [Ping timeout: 258 seconds]
brianpWins has quit [Quit: brianpWins]
hogetaro has joined #ruby
hahuang65 has joined #ruby
toretore has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Derperperd has quit [Quit: Derperperd]
pokalyis has joined #ruby
c355e3b has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
A_Drone has quit [Remote host closed the connection]
A_Drone has joined #ruby
giz|work has joined #ruby
axsuul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nikhgupta has quit [Remote host closed the connection]
A_Drone has quit [Remote host closed the connection]
the_rhizo has quit [Ping timeout: 276 seconds]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ihre has quit [Read error: Connection reset by peer]
ihre has joined #ruby
Jackneill has joined #ruby
tubuliferous_ has joined #ruby
pokalyis has joined #ruby
Ishido has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
zeroDivisible has joined #ruby
tubuliferous_ has quit [Ping timeout: 244 seconds]
tomphp has joined #ruby
adaedra has quit [Quit: ZNC 1.6.3 - http://znc.in]
`derpy has quit [Quit: I just don't know what went wrong.]
vuoto has quit [Quit: Lost terminal]
adaedra has joined #ruby
tomphp has quit [Client Quit]
SCHAAP137 has joined #ruby
dunpeal has joined #ruby
LoneHermit has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
zarubin has quit [Remote host closed the connection]
zacstewart has joined #ruby
SCHAAP137 has quit [Ping timeout: 276 seconds]
nekompetentnyj has quit [Quit: Leaving]
symm- has joined #ruby
minimalism has quit [Quit: minimalism]
LoneHermit has quit [Ping timeout: 252 seconds]
zacstewart has quit [Ping timeout: 264 seconds]
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest86922 has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
Guest86922 has joined #ruby
rajdesai has joined #ruby
rajdesai has quit [Remote host closed the connection]
platzhirsch has quit [Quit: WeeChat 1.4]
platzhirsch has joined #ruby
SCHAAP137 has joined #ruby
Guest86922 has quit [Ping timeout: 260 seconds]
daffy_duck has joined #ruby
xall has joined #ruby
giz|work has quit [Ping timeout: 240 seconds]
pokalyis has joined #ruby
sdothum has joined #ruby
Guest86922 has joined #ruby
hahuang65 has joined #ruby
macsteps has quit [Remote host closed the connection]
macsteps has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
A_Drone has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_rhizo has joined #ruby
adaedra has quit [Ping timeout: 276 seconds]
dunpeal has quit [Ping timeout: 250 seconds]
macsteps has quit [Ping timeout: 260 seconds]
adaedra has joined #ruby
A_Drone has quit [Read error: Connection reset by peer]
antgel has joined #ruby
giz|work has joined #ruby
zarubin has joined #ruby
adaedra has quit [Remote host closed the connection]
adaedra has joined #ruby
the_rhizo has quit [Ping timeout: 244 seconds]
A_Drone has joined #ruby
zarubin has quit [Ping timeout: 260 seconds]
n90b0jjf has joined #ruby
The_Phoenix has quit [Quit: Leaving.]
tubuliferous_ has joined #ruby
Devalo has joined #ruby
<zodiac19_> 900 people in one room, not talking about anything, rather just sitting there looking at each others names like mindless morons
Daisyab__ has joined #ruby
n90b0jjf has quit [Ping timeout: 276 seconds]
tubuliferous_ has quit [Ping timeout: 250 seconds]
n90b0jjf has joined #ruby
kavanagh has joined #ruby
<Zarthus> zodiac19_: this being a support channel, we're not in a particular hurry to boot up a conversation
<Zarthus> If you were looking for a conversation, well, I'd recommend a room but you sound like a prick.
giz|work has quit [Ping timeout: 252 seconds]
LoneHerm_ has joined #ruby
hanmac has quit [Ping timeout: 258 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
<zodiac19_> I did start with this "I guess every conversation starts with a Hello, so, Hi, anyone know any channels for programer learning and advice?"
<zodiac19_> granted that was a few hours ago <.<
<zodiac19_> >.>
<zodiac19_> my bad
Ropeney has joined #ruby
ur5us has joined #ruby
LoneHerm_ has quit [Ping timeout: 240 seconds]
miqlas-H has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
ruid has joined #ruby
cyphase has quit [Quit: cyphase.com]
Es0teric has joined #ruby
cyphase has joined #ruby
binaryplease1 has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
<canton7> zodiac19_, do bear in mind that it's a weekend, and most of us are doing other things
binaryplease has quit [Ping timeout: 244 seconds]
Xiti has quit [Quit: Xiti]
SCHAAP137 has quit [Quit: Leaving]
<ineb> using classy-hash, i wonder if there is a way to throw an error, if there are more keys in the actual hash, than the schema checks.
SCHAAP137 has joined #ruby
<ineb> maybe classy-hash cant do it. what i have is a hash with settings. if there is a key in this hash that is not used, its likely that the key name is a typo
<zodiac19_> that's a fair point, Though I'm entirely new to using IRC's and I was only looking for a place to aid in my learning
<j416> zodiac19_: does not seem like much of an excuse to calling people mindless morons
hanmac has joined #ruby
Xiti has joined #ruby
<zodiac19_> Only trying to somehow talk to someone in this IRC chat, at a time which is now apparent that no one is on
<canton7> if you call someone a mindless moron, they probably won't want to talk to you ;)
A_Drone has quit [Ping timeout: 258 seconds]
<zodiac19_> You've never met Bizarre_Monkey Then, You probably don't want to at that
<j416> zodiac19_: it seems you have not realised that you have successfully two-way-communicated with three people
<j416> zodiac19_: but yes, I'd rather do the dishes than help you out :)
binaryplease1 is now known as binaryplease
* j416 goes to do the dishes
<beilabs> zodiac19_: in channels like this you are best off just asking a question and waiting for a response....if you want to chat about the weather and other topics, go somewhere else...
<ineb> made a testcase to show, what i mean: https://paste.xinu.at/6Yn4/
<Papierkorb> ineb: Les' mal die Dokumentation. Das geht.
<zodiac19_> I wasnt looking for weather or other topics i was looking for a ruby based IRC where I could ask programing and development based questions as I learn the language. I never intended to offend anyone, I just thought it was odd that no one responded within a few hours of my first post
AlexRussia has quit [Ping timeout: 244 seconds]
hahuang65 has joined #ruby
<Papierkorb> ineb: .validate_strict btw
<beilabs> zodiac19_: Perhaps you should ask that question again then?
<alfiemax> zodiac19_, well you just didn't ask any programming related question
<alfiemax> maybe you could do that now :)
<ineb> Papierkorb: ok, ty
<zodiac19_> Well I wasn't sure if this was just a hub chatroom or an actual place where I could ask questions as I learn the language... which was sort of the basis of my original question
armin has quit [Quit: relate to the matter as i drop the bomb]
<zodiac19_> so is this a hub chatroom for the ruby language?
hahuang65 has quit [Ping timeout: 250 seconds]
<alfiemax> zodiac19_, you can find all those details here : Rules & more: https://ruby-community.com
A_Drone has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_rhizo has joined #ruby
<zodiac19_> thank you alfiemax!
n90b0jjf has quit [Remote host closed the connection]
zarubin has joined #ruby
n90b0jjf has joined #ruby
<zodiac19_> And let me sincearely apologize for my impatience and rudeness. I did not mean to offend anyone, but I wasn't expecting to have to wait so long for an response.
<zodiac19_> Could anyone tell me what the most practical use of Ruby is as a language?
<Papierkorb> It's a general purpose programming language. Except for game development, you can do pretty much everything with it.
<zodiac19_> Okay, I guess I mean what is it's most generally used purpose?
the_rhizo has quit [Ping timeout: 265 seconds]
<Papierkorb> There's none, really. Web development is really popular, with Rails or one of the many other web frameworks. Also, management scripts to manage virtual machines (see Vagrant), machines (see Chef for example), and many other things
ddffg has joined #ruby
<zodiac19_> Okay, that seems informative enough. thank you.
kavanagh has quit [Remote host closed the connection]
<zodiac19_> Oh, and I do know a few dozen ruby coders who make games with ruby, though it is aided by another program, it can be use for game development.
kavanagh has joined #ruby
zarubin has quit [Ping timeout: 258 seconds]
<Papierkorb> Yeah, RPGMaker uses Ruby, but the engine is not done in Ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
<Papierkorb> (Well, most likely not done in Ruby)
<zodiac19_> C++ is what enterbrain uses for the primary coding, but ruby handles all of the interior processes
<zodiac19_> I'm from an RPG maker community
Es0teric has joined #ruby
Es0teric has quit [Max SendQ exceeded]
Ishido has joined #ruby
<zodiac19_> asking them for coding help is like asking a fish to bake you a potato on a volcano, most are only concerned with their own codes and problems to help others in learning, which is why I'm here.
the_drow has quit [Quit: This computer has gone to sleep]
<zodiac19_> so thank you (All) In advanced for the help.
face has joined #ruby
nhhc has quit [Quit: Leaving]
pokalyis has joined #ruby
AlexRussia has joined #ruby
ruid has quit [Ping timeout: 240 seconds]
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
Xiti has quit [Ping timeout: 276 seconds]
ur5us has quit [Read error: No route to host]
Daisyab__ has quit [Ping timeout: 264 seconds]
ur5us has joined #ruby
pokalyis has quit [Ping timeout: 244 seconds]
AlexRussia has quit [Ping timeout: 250 seconds]
beilabs has quit [Remote host closed the connection]
n90b0jjf has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 244 seconds]
anuxivm has joined #ruby
Ropeney has joined #ruby
A_Drone has quit [Remote host closed the connection]
pokalyis has joined #ruby
A_Drone has joined #ruby
A_Drone has quit [Remote host closed the connection]
A_Drone has joined #ruby
zacstewart has joined #ruby
dunpeal has joined #ruby
Daisyab__ has joined #ruby
bkxd has joined #ruby
zacstewart has quit [Ping timeout: 250 seconds]
A_Drone has quit [Read error: Connection reset by peer]
`derpy has joined #ruby
macsteps has joined #ruby
Ishido has quit [Remote host closed the connection]
A_Drone has joined #ruby
the_drow has joined #ruby
max1 has joined #ruby
max1 has quit [Client Quit]
Ishido has joined #ruby
Rodya_ has joined #ruby
macsteps has quit [Ping timeout: 276 seconds]
sp_ has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
JeanCarloMachado has joined #ruby
The_Phoenix has joined #ruby
n90b0jjf has joined #ruby
arup_r has joined #ruby
marr has quit [Ping timeout: 260 seconds]
<arup_r> can anybody help me to write the regex, to validate the phone number? I am not able to figure out.
armin has joined #ruby
zodiac19_ has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
nettoweb has joined #ruby
hahuang65 has joined #ruby
Tempesta has joined #ruby
vuoto has joined #ruby
Tempesta is now known as ChoiKyuSang
n90b0jjf has quit [Remote host closed the connection]
zodiac19_ has joined #ruby
zodiac19_ has left #ruby [#ruby]
hahuang65 has quit [Ping timeout: 250 seconds]
mikecmpbll has joined #ruby
araujo__ has quit [Read error: Connection timed out]
the_rhizo has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
<adaedra> You're lacking a \ before a d, and ( ) are special characters, so you need to escape them too.
<arup_r> nvm i figured
n90b0jjf has joined #ruby
<arup_r> yeah.. just saw .. how it got deleted I dont know.. and i was overlooking it
<adaedra> Also, you may want to look at libraries capable of managing phone numbers
ChoiKyuSang has quit [Quit: See ya!]
<arup_r> adaedra: you mean for phone validation helpers?
<adaedra> phone validation yeah, and other things you may want to do with them (phone types, formatting, ...)
tubuliferous_ has joined #ruby
nettoweb has quit [Quit: Textual IRC Client: www.textualapp.com]
the_rhizo has quit [Ping timeout: 276 seconds]
Rodya_ has quit [Remote host closed the connection]
WillAus has joined #ruby
dunpeal has quit [Ping timeout: 244 seconds]
tubuliferous_ has quit [Ping timeout: 240 seconds]
araujo__ has joined #ruby
<WillAus> hi all, just want to know what is the official IRC channel for Ruby on Rails? It is #rails or #rubyonrails?
<apeiros> ?rubyonrails WillAus
<ruby[bot]> apeiros: I don't know anything about rubyonrails
<apeiros> ?rails WillAus
<ruby[bot]> WillAus: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
harfangk_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> !fact ln rails rubyonrails
<ruby[bot]> jhass: I will remember that rails is also called rubyonrails.
the_rhizo has joined #ruby
jgt4 has joined #ruby
Xiti has joined #ruby
the_drow has joined #ruby
n90b0jjf has quit [Remote host closed the connection]
nettoweb has joined #ruby
nikhgupta has joined #ruby
nikhgupta has quit [Remote host closed the connection]
giz|work has joined #ruby
Guest86922 has quit [Ping timeout: 258 seconds]
n90b0jjf has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
Guest86922 has joined #ruby
sheperson has joined #ruby
The_Phoenix has joined #ruby
karapetyan has joined #ruby
alfiemax has quit [Ping timeout: 244 seconds]
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
lel has quit [Quit: Reconnecting]
lel has joined #ruby
lel has quit [Changing host]
lel has joined #ruby
lel has quit [Client Quit]
QORRiE has joined #ruby
hahuang65 has joined #ruby
lel has joined #ruby
<soLucien> pry : how do i get out of here ? http://pasteboard.co/5MWaVWZA7.png
xlegoman has joined #ruby
s2013 has joined #ruby
nikhgupta has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
Guest86922 has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 250 seconds]
pawnbox has joined #ruby
hrob has joined #ruby
<hrob> hi
nikhgupta has quit [Remote host closed the connection]
Guest86922 has joined #ruby
<hrob> Im new to ruby but quite versed in python -- there are some things that surprise me
<hrob> ruby seems on the surface to be for all practical purposes equally equipped to python -- but has some extra syntax that I'm afraid of -- alsmost Perl-like ideas
<soLucien> and no types
pawnbox has quit [Remote host closed the connection]
<soLucien> sorry .. static typing
pawnbox has joined #ruby
<hrob> I suspect there are some different schools of Ruby on what to use and when -- readability of code is one
<jhass> soLucien: so doesn't python?
<hrob> soLucien: yes,
<hrob> these are duck typed langauges
<hrob> although ruby maybe has more control
<hrob> over type checking
pawnbox has quit [Remote host closed the connection]
<soLucien> hrob i would suggest you get vscode and rubocop
<jhass> soLucien: re your pry session, Ctrl+C
pawnbox has joined #ruby
<hrob> I'm afraid of seeing things like `some external comand` folowed by $? == something
<jhass> ah well, it's not too common
CloCkWeRX has quit [Quit: Leaving.]
<soLucien> it has some refactoring support as well, and it shows you how readability is supposed to be implemented
<soLucien> it helps a bit :)
<hrob> soLucien: yes!
<hrob> thank you ... I was hoping for some guidelines some kind of official Linting
<soLucien> it's a bit tricky to install
<soLucien> but you will handle it
Daisyab__ has quit [Ping timeout: 276 seconds]
<jhass> rubocop is the most popular, though most experienced rubyists change its defaults
yuki_is_bored has joined #ruby
<soLucien> it requires a npm package for refactoring
<jhass> (vscode, not rubocop)
bluOxigen has joined #ruby
bluOxigen has left #ruby [#ruby]
<soLucien> and you have to do a bit of "plumbing" to get set up on VSCode
<soLucien> rubocop, pry-byebug, vscode's linters , awesome_print
yuki_is_bored has quit [Client Quit]
<soLucien> that's what i can recommend as a beginner
<hrob> wonderful
<toretore> hrob: ruby inherited a lot of perlisms, but you don't have to (and probably shouldn't) use them
<soLucien> also devdocs.io ,
<toretore> if you write ruby like you write python you'll be off to a good start
<hrob> toretore: I suppose the Ruby devs put backwards compat high on list
<toretore> ruby is very forgiving and flexible, which requires a certain amount of discipline on your part
<hrob> toretore: so ruby adds features but does not eliminate outdated ones
<toretore> this is mostly true
<hrob> ok good to know :D
<jhass> let's say the bigger projects and Ruby itself does, but as a whole the community moves to new versions (and stops support for old versions) much faster than python
A_Drone has quit [Ping timeout: 240 seconds]
<toretore> yes, was referring to the language and core libs
yuki_is_bored has joined #ruby
<sheperson> Which one of these two syntaxes is preffered over the other one, and why?
idletask has quit [Ping timeout: 265 seconds]
<toretore> first
<toretore> well, actually, it depends. sometimes i use the second
<toretore> if i'm not adding any new bahvior to it
<toretore> behavior
A_Drone has joined #ruby
<Papierkorb> I use the first, though with the `end` on the same line.
<Papierkorb> More obvious IMO what's going on
<jhass> first here too
<jhass> one of the rubocop defaults I hate
zacstewart has joined #ruby
<zotherstupidguy> how to make virtualhosts in puma to host more than website on the same port??
<jhass> I don't think anybody really does
<hrob> does the ruby std lib support high level http request calls?
<jhass> the usual setup is to run multiple puma's, one for each app
<jhass> and have a reverse proxy in front
<jhass> that handles the vhosts
<hrob> as in I have some json or dict and I can do a post call in 2 lines nearly?
Daisyab__ has joined #ruby
<toretore> yes, you can, but you rarely would
<hrob> neat -- I suppose yeah I would format a header, and do some kind of exception handling
Fly77 has joined #ruby
<jhass> it's quite common to use alternative clients though, like faraday, http.rb, exconn
<hrob> but surprising to me Python is not that implicit -- they say explicit above implicit
xall has quit [Ping timeout: 240 seconds]
<toretore> you should be explicit in ruby too, it just gives you more flexibility
<hrob> not surprising I guess, but there are exceptions to such a rule, otherwise ruby and python would look like C++
jgt has joined #ruby
antgel has quit [Ping timeout: 265 seconds]
Guest86922 has quit [Read error: Connection reset by peer]
<hrob> or say there are limits, you can be too explicit and too implicit :)
Guest86922 has joined #ruby
nettoweb has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
max1 has joined #ruby
max1 is now known as PickAndMix
A_Drone has quit [Ping timeout: 252 seconds]
A_Drone has joined #ruby
nadir has joined #ruby
jgt4 has quit [Ping timeout: 252 seconds]
haxrbyte has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
araujo__ has quit [Ping timeout: 258 seconds]
araujo__ has joined #ruby
Fly77 has quit [Ping timeout: 258 seconds]
shinnya has joined #ruby
Heskie has joined #ruby
idletask has joined #ruby
zotherstupidguy has left #ruby ["WeeChat 1.5"]
Fly77 has joined #ruby
yardenbar has quit [Ping timeout: 276 seconds]
zacts has quit [Ping timeout: 258 seconds]
The_Phoenix has joined #ruby
n90b0jjf has quit [Remote host closed the connection]
sheperson has quit [Quit: sheperson]
The_Phoenix has quit [Read error: Connection reset by peer]
JeanCarloMachado has quit [Ping timeout: 244 seconds]
vuoto has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Daisyab__ has quit [Ping timeout: 260 seconds]
zacts has joined #ruby
n90b0jjf has joined #ruby
A_Drone_ has joined #ruby
A_Drone has quit [Read error: Connection reset by peer]
Fly77 has left #ruby [#ruby]
tubuliferous has joined #ruby
kus has joined #ruby
kus has quit [Max SendQ exceeded]
vuoto has joined #ruby
PickAndMix has quit [Quit: WeeChat 1.4]
giz|work has quit [Ping timeout: 276 seconds]
hahuang65 has joined #ruby
freerobby has joined #ruby
A_Drone_ has quit [Ping timeout: 250 seconds]
davedev24 has joined #ruby
colegatron_origi has quit [Ping timeout: 276 seconds]
karapetyan has quit [Remote host closed the connection]
giz|work has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
colegatron_origi has joined #ruby
tubuliferous has quit [Ping timeout: 265 seconds]
Daisyab__ has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
A_Drone has joined #ruby
JakFrist has joined #ruby
l4v2 has joined #ruby
A_Drone has quit [Ping timeout: 276 seconds]
dunpeal has joined #ruby
haxrbyte has quit [Ping timeout: 250 seconds]
chipotle has joined #ruby
ebbflowgo has joined #ruby
chipotle has quit [Client Quit]
platzhirsch has quit [Ping timeout: 250 seconds]
Fly77 has joined #ruby
platzhirsch has joined #ruby
threh has joined #ruby
Guest86922 has quit [Ping timeout: 260 seconds]
Fly77 has quit [Remote host closed the connection]
n90b0jjf has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 258 seconds]
Guest86922 has joined #ruby
Vacuum_ has joined #ruby
Vacuum_ has left #ruby [#ruby]
ruby-lang035 has joined #ruby
<ruby-lang035> great
ruby-lang035 has quit [Client Quit]
A124 has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
arup_r has quit [Remote host closed the connection]
j416 has quit [Ping timeout: 244 seconds]
OTORelic1 has joined #ruby
anuxivm has quit [Read error: Connection reset by peer]
j416 has joined #ruby
anuxivm has joined #ruby
<pokalyis> Is there any way to fake a file on the filesystem? So when someone writes to it nothing is stored on disk but instead streamed to my application
anuxivm has quit [Max SendQ exceeded]
<adaedra> You may want a named pipe
xlegoman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
<pokalyis> adaedra Thanks!
Tempesta has joined #ruby
Guest86922 has quit [Ping timeout: 244 seconds]
nikhgupta has joined #ruby
hrob has quit [Quit: Page closed]
Tempesta is now known as ChoiKyuSang
sk41ks has joined #ruby
Guest86922 has joined #ruby
johnny56 has quit [Ping timeout: 264 seconds]
al2o3-cr has quit [Ping timeout: 260 seconds]
Vile` has quit [Ping timeout: 258 seconds]
Lord_of_Life has quit [Excess Flood]
Lord_of_Life has joined #ruby
idletask has quit [Ping timeout: 240 seconds]
kobain has joined #ruby
zacts has quit [Quit: WeeChat 1.4]
JeanCarloMachado has joined #ruby
Guest86922 has quit [Ping timeout: 276 seconds]
zacts has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Guest86922 has joined #ruby
hahuang65 has joined #ruby
JakFrist has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
mlehrer has quit [Ping timeout: 244 seconds]
hahuang65 has quit [Ping timeout: 250 seconds]
Guest86922 has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
the_drow has quit [Quit: This computer has gone to sleep]
pawnbox has joined #ruby
Guest86922 has joined #ruby
pawnbox has quit [Remote host closed the connection]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zacstewart has quit [Read error: Connection reset by peer]
zacstewart has joined #ruby
pawnbox has joined #ruby
ruby-lang384 has joined #ruby
<ruby-lang384> Hello, sorry for my english i'm french
kavanagh has quit [Read error: Connection reset by peer]
<ruby-lang384> i have a string like str = 'img src="/path/to/image1.jpg"> ... img src="/path/to/image2.jpg"> ...' and i want to extract just the image path
JakFrist has joined #ruby
sp_ has quit [Ping timeout: 244 seconds]
johnny56 has joined #ruby
<ruby-lang384> For example i want an array like ['/path/to/image1.jpg', '/path/to/image2.jpg' ...]
<ruby-lang384> I use scan but its not working
zacts has quit [Quit: WeeChat 1.4]
<ruby-lang384> i dont know, can you help me please ;)
zacts has joined #ruby
<jhass> ruby-lang384: why don't you use a HTML parser to parse HTML?
<ruby-lang384> Okay i dont know what is a html parser
n90b0jjf has joined #ruby
<ruby-lang384> like nokigir
<ruby-lang384> nokigiri
sp_ has joined #ruby
<sk41ks> nokogiri is a joy
<sk41ks> ruby-lang384: have you tried nokogiri?
<ruby-lang384> okay but i want to do that for didactic
<ruby-lang384> i want to improve my ruby level
<ruby-lang384> i dont want to use parseer
<ruby-lang384> just with regex
<jhass> well, a good rubyist uses the right tool for the job ;)
<sk41ks> so you want a regex to parse xml?
<sk41ks> well let me grab my bag of magical regex... 1mpls
<ruby-lang384> str = '<img src="/fileadmin/MasterMSI/pict1.jpg" alt="lol" />' t = str.scan /fileadmin\/MasterMSI\/.*jpg/ puts t
<ruby-lang384> this code work
threh has quit [Ping timeout: 250 seconds]
<ruby-lang384> but if i have to match in single line, its dont work
<ruby-lang384> two
Guest70710 has quit [Ping timeout: 244 seconds]
rkazak has quit [Quit: Sleep.....ing....]
<ruby-lang384> this is result http://pastebin.com/cgfeT5rj
<ruby[bot]> ruby-lang384: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/c76aaa76de29157a77c009bbbc475b06
<ruby[bot]> ruby-lang384: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
alfiemax has joined #ruby
giz|work has quit [Ping timeout: 276 seconds]
nikhgupta has quit [Ping timeout: 276 seconds]
Guest74629 has joined #ruby
Vingador has joined #ruby
Izabia has quit [Ping timeout: 258 seconds]
<ruby-lang384> ?
sdothum has joined #ruby
threh has joined #ruby
harfangk has joined #ruby
roflmyeggo has joined #ruby
pawnbox has quit [Remote host closed the connection]
vuoto has quit [Remote host closed the connection]
theery has joined #ruby
tubuliferous has joined #ruby
theery has quit [Remote host closed the connection]
<sk41ks> 384: I'm not sure that you're asking something
uranellus has quit [Quit: ZNC 1.6.1 - http://znc.in]
sp_ has quit [Ping timeout: 244 seconds]
ruby-lang384 has quit [Quit: Page closed]
AzureStigma has joined #ruby
macsteps has joined #ruby
macsteps has quit [Remote host closed the connection]
macsteps has joined #ruby
araujo_ has joined #ruby
jaequery has joined #ruby
jaequery has quit [Client Quit]
tubuliferous has quit [Ping timeout: 240 seconds]
araujo_ has quit [Max SendQ exceeded]
threh has quit [Ping timeout: 250 seconds]
araujo_ has joined #ruby
xlegoman has joined #ruby
araujo__ has quit [Ping timeout: 258 seconds]
WillAus has quit [Ping timeout: 244 seconds]
ddffg has quit [Ping timeout: 265 seconds]
sp_ has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beilabs has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
Cohedrin has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.5]
threh has joined #ruby
soLucien has quit [Quit: Leaving]
banisterfiend has joined #ruby
pawnbox has joined #ruby
hahuang65 has joined #ruby
swills has quit [Remote host closed the connection]
Devalo has quit []
Velizar has joined #ruby
pawnbox has quit [Ping timeout: 258 seconds]
hahuang65 has quit [Ping timeout: 250 seconds]
<sk41ks> this is a quiet place
conta has quit [Ping timeout: 264 seconds]
<sk41ks> does mean ruby is alive or dead?
yardenbar has joined #ruby
<aeruder> neither, it means that for everyone in the U.S. it is sunday morning :)
<aeruder> it seems a lot busier during the week
<sk41ks> so this place is for business?
roflmyeggo has quit [Ping timeout: 244 seconds]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yardenbar has quit [Ping timeout: 265 seconds]
<canton7> sk41ks, people tend to have better things to do on a weekend than hang out on IRC
Vingador has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
<aeruder> (except us)
threh has quit [Ping timeout: 250 seconds]
s2013 has joined #ruby
<alfiemax> and sunday night in the other parts of the globe :D
swills has joined #ruby
swills_ has quit [Quit: Leaving]
tmtwd has joined #ruby
yardenbar has joined #ruby
<adaedra> hey, it's only afternoon here.
<adaedra> but yeah, it's usually quiet on Sundays.
Rodya_ has quit [Ping timeout: 276 seconds]
The_Phoenix has joined #ruby
johnny56 has quit [Ping timeout: 264 seconds]
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
The_Phoenix has quit [Max SendQ exceeded]
johnny56_ has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
The_Phoenix has quit [Max SendQ exceeded]
Madplatypus has joined #ruby
VladGh_ has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
Rodya_ has joined #ruby
VladGh has quit [Ping timeout: 244 seconds]
sp_ has quit [Ping timeout: 265 seconds]
shellie_ has joined #ruby
the_drow has joined #ruby
yardenbar has quit [Ping timeout: 276 seconds]
pawnbox has joined #ruby
<l4v2> I just finished reading the Rails Routing guide. and sections 2 and 3 are based on a resource route and a non resource route. What I take this to mean is route=URL and bascially a non resource route is one that doesn’t just use /Users assuming Users is a resource
<l4v2> Anyone want to drive this one home for me?
Rodya_ has quit [Ping timeout: 258 seconds]
<adaedra> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<adaedra> rails: nice nick, I hope you disabled notifications on highlight or that you like them :p
<l4v2> Oh whoops, I was on the wrong room, thanks
<adaedra> np
GinoMan2440 has quit [Ping timeout: 250 seconds]
heftig has quit [Read error: Connection reset by peer]
LoneHerm_ has joined #ruby
KnownSyntax_ has joined #ruby
KnownSyntax_ has quit [Changing host]
KnownSyntax_ has joined #ruby
heftig has joined #ruby
yardenbar has joined #ruby
threh has joined #ruby
KnownSyntax has quit [Ping timeout: 244 seconds]
swills_ has joined #ruby
swills has quit [Read error: Connection reset by peer]
LoneHerm_ has quit [Ping timeout: 252 seconds]
giz|work has joined #ruby
platzhir1 has joined #ruby
yardenbar has quit [Ping timeout: 260 seconds]
macsteps has quit [Remote host closed the connection]
hk238 has joined #ruby
toretore has quit [Ping timeout: 240 seconds]
macsteps has joined #ruby
Daisyab__ has quit [Quit: Ex-Chat]
platzhirsch has quit [Ping timeout: 260 seconds]
GinoMan2440 has joined #ruby
Torrone has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
Derperperd has joined #ruby
Guest86922 has quit [Ping timeout: 264 seconds]
skade has joined #ruby
frozengeek has joined #ruby
sp_ has joined #ruby
elifoster has joined #ruby
frozengeek has quit [Client Quit]
Guest86922 has joined #ruby
ctp has joined #ruby
kirun has joined #ruby
nando293921 has joined #ruby
hahuang65 has joined #ruby
SCHAAP137 has quit [Quit: Leaving]
SCHAAP137 has joined #ruby
frozengeek has joined #ruby
n90b0jjf has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 250 seconds]
sp_ has quit [Ping timeout: 240 seconds]
pokalyis has joined #ruby
Torrone has quit [Quit: This computer has gone to sleep]
conta has joined #ruby
pokalyis has quit [Client Quit]
bjh13` has joined #ruby
bjh13` has left #ruby [#ruby]
armin has quit [Quit: relate to the matter as i drop the bomb]
frozengeek has quit [Quit: frozengeek]
armin has joined #ruby
aryaching has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nikhgupta has joined #ruby
conta has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
<kspencer> ruby nor rvm is loading any gems in any scripts, trying to make a script in weechat and even my script that I have in my home directory isn't loadin the gems, and they are installed
brianpWins has joined #ruby
threh has quit [Ping timeout: 250 seconds]
kobain has quit [Read error: Connection reset by peer]
kirun has quit [Ping timeout: 264 seconds]
AlexRussia has joined #ruby
al2o3-cr has joined #ruby
zeroDivisible has joined #ruby
ddffg has joined #ruby
tubuliferous has joined #ruby
kobain has joined #ruby
sp_ has joined #ruby
marr has joined #ruby
conta has joined #ruby
threh has joined #ruby
kyleolivo has joined #ruby
AzureStigma is now known as AzureStigma|Away
AzureStigma|Away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has quit [Quit: Computer has gone to sleep.]
tubuliferous has quit [Ping timeout: 244 seconds]
<jhass> rvm current says what?
<jhass> for weechat you'll want to use a wrapper, rvm help wrapper
chriscoffee has joined #ruby
Cohedrin has joined #ruby
axsuul has joined #ruby
kirun has joined #ruby
Guest86922 has quit [Ping timeout: 252 seconds]
conta has quit [Ping timeout: 264 seconds]
swills_ is now known as swills
Ishido has quit [Remote host closed the connection]
Ishido has joined #ruby
Guest86922 has joined #ruby
brianpWins has quit [Quit: brianpWins]
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
poguez_ has joined #ruby
impermanence has joined #ruby
Dimik has joined #ruby
hahuang65 has joined #ruby
Guest86922 has quit [Ping timeout: 265 seconds]
nikhgupta has quit [Remote host closed the connection]
AzureStigma has joined #ruby
hahuang65 has quit [Ping timeout: 250 seconds]
al2o3-cr has quit [Ping timeout: 250 seconds]
tomaz_b has joined #ruby
Guest86922 has joined #ruby
crdpink has joined #ruby
crdpink2 has quit [Ping timeout: 250 seconds]
AzureStigma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
the_drow has quit [Quit: This computer has gone to sleep]
davedev24 has quit [Ping timeout: 250 seconds]
jhass has quit [Excess Flood]
jhass has joined #ruby
davedev24 has joined #ruby
axsuul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
minimalism has joined #ruby
roflmyeggo has joined #ruby
axsuul has joined #ruby
the_rhizo has quit [Ping timeout: 258 seconds]
the_rhizo has joined #ruby
Es0teric has joined #ruby
mello has joined #ruby
hahuang65 has joined #ruby
TomyLobo has quit [Ping timeout: 264 seconds]
ericsupreme has joined #ruby
ericsupreme has quit [Client Quit]
sp_ has quit [Ping timeout: 258 seconds]
dunpeal has quit [Ping timeout: 260 seconds]
PaulCapestany has quit [Quit: .]
beilabs has quit [Remote host closed the connection]
solars has quit [Ping timeout: 252 seconds]
Torrone has joined #ruby
PaulCapestany has joined #ruby
al2o3-cr has joined #ruby
chriscoffee has quit [Ping timeout: 276 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
LoneHermit has joined #ruby
davedev24 has quit [Ping timeout: 250 seconds]
davedev24 has joined #ruby
banisterfiend has joined #ruby
pawnbox has quit [Ping timeout: 276 seconds]
sluukkonen has quit [Ping timeout: 265 seconds]
LoneHermit has quit [Ping timeout: 252 seconds]
alaibe has joined #ruby
giz|work has quit [Ping timeout: 276 seconds]
shinnya has joined #ruby
diegoviola has joined #ruby
tectonic has joined #ruby
solars has joined #ruby
threh has quit [Ping timeout: 250 seconds]
alaibe_ has joined #ruby
alaibe has quit [Ping timeout: 250 seconds]
last_staff has joined #ruby
openstruct has joined #ruby
memorasus has joined #ruby
<jhass> kspencer: gem env ?
<openstruct> That makes sense. I tried parsing the C source but couldn't follow it.
macsteps has quit [Remote host closed the connection]
l4v2 has quit [Quit: l4v2]
<kspencer> jhass: updated the gist with the output of that
duckpupp1 has quit [Quit: WeeChat 1.5]
symm- has joined #ruby
macsteps has joined #ruby
macsteps has quit [Remote host closed the connection]
<Mon_Ouie> It seems the work is done by calling ruby_qsort, I would imagine that the complexity of that is O(m*log(n)) in the average case, since that's what you'd get for sorting the entire array
<openstruct> Good to know! I've got an upcoming interview and am weary of using any Enumerable methods since I don't readily know their implementation.
<jhass> kspencer: does gem which time_difference find it?
<kspencer> no
sluukkonen has joined #ruby
<kspencer> short answer
dunpeal has joined #ruby
<jhass> does gem list have it?
<kspencer> time_difference (0.4.2)
<jhass> try gem pristine time_difference
Madplatypus has quit [Quit: Connection closed for inactivity]
rkazak has joined #ruby
<kspencer> alrigth that works now, but that still doesn't answer why weechat doesn't want to load it using system
gdev has joined #ruby
<kspencer> brb
<gdev> howto escape no so its not interpreted as false? The gem loads a yaml file, and doesn't matter if no 'no' "no" its always not interpreted. Can somebody help me?
kobain has quit [Remote host closed the connection]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kspencer> gdev: !!str?
roflmyeggo has quit [Ping timeout: 240 seconds]
Guest86922 has quit [Ping timeout: 244 seconds]
linduxed has joined #ruby
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
JeanCarloMachado has quit [Ping timeout: 258 seconds]
<gdev> kspencer: sorry, doesnt know if your answer should be code, or contains questions signs^^
framling has quit [Remote host closed the connection]
Guest86922 has joined #ruby
<kspencer> '!!str'
yfeldblum has quit [Ping timeout: 250 seconds]
diegoviola is now known as Guest53630
diego1 is now known as diegoviola
Guest53630 has quit [Ping timeout: 258 seconds]
tomphp has joined #ruby
<gdev> kspencer: ah okay! I'm trying that! thanks
jgt has quit [Ping timeout: 250 seconds]
Vile` has joined #ruby
tomaz_b has quit [Quit: Leaving]
foxxx0 has joined #ruby
kobain has joined #ruby
<foxxx0> hey guys, somehow i broke my rspec setup and it is not recognizing the sinatra methods anymore... it's just throwing NoMethodErrors for 'halt', 'content_type' and 'etag' at me...
xlegoman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<foxxx0> i have included Rack::Test::Methods and the app is running as Sinatra::Application
platzhir1 has quit [Ping timeout: 244 seconds]
<foxxx0> i have been googling and testing for hours now and i'm not getting any further...
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
openstruct has quit [Remote host closed the connection]
n90b0jjf has joined #ruby
LoneHerm_ has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
AlexRussia has quit [Ping timeout: 240 seconds]
<jhass> kspencer: what's ldd /usr/lib/weechat/plugins/ruby.so ?
banisterfiend has joined #ruby
Torrone has quit [Quit: This computer has gone to sleep]
<jhass> kspencer: https://github.com/weechat/weechat/blob/master/src/plugins/ruby/weechat-ruby.c looks pretty much like it drives whichever Ruby version it's linked to
gdev has quit [Quit: Leaving]
LoneHerm_ has quit [Ping timeout: 252 seconds]
<kspencer> libruby-2.3.so.2.3 => /usr/lib/i386-linux-gnu/libruby-2.3.so.2.3 (0xb747e000)
<jhass> mh
<kspencer> I'm thinking something might have f'd up when I updated my distro
kyleolivo has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
impermanence has quit [Ping timeout: 250 seconds]
ur5us has joined #ruby
<kspencer> I'm going to try and fully apt-get remove --purge both weechat and ruby and try and install them again
<Zarthus> it might be easier if you manually compile
<Zarthus> most distros have outdated versions of weechat anyways
jgt has joined #ruby
AlexRussia has joined #ruby
xlegoman has joined #ruby
hahuang65 has joined #ruby
al2o3-cr has quit [Ping timeout: 250 seconds]
ta_ has quit [Remote host closed the connection]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
yqt has joined #ruby
ta_ has joined #ruby
hahuang65 has quit [Ping timeout: 258 seconds]
Velizar has quit [Quit: Velizar]
Derperperd has quit [Quit: Derperperd]
nettoweb has joined #ruby
Chris3y_RubyNewb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
tectonic has quit []
xall has joined #ruby
bluOxigen has joined #ruby
openstruct has joined #ruby
openstruct has quit [Client Quit]
<Chris3y_RubyNewb> could someone explain what's wrong with my if conditional on line 267? https://repl.it/CfZu/205
dionysus69 has joined #ruby
ta_ has quit [Remote host closed the connection]
<Chris3y_RubyNewb> if player.coins < player.rope_bridge_toll and unless next_choices.include? not_enough_toll_money then next_choices.shift; next_choices.push not_enough_toll_money end
<Chris3y_RubyNewb> why doesn't that work?
<Chris3y_RubyNewb> what's wrong with the syntax
<Chris3y_RubyNewb> ?>
MrBusiness has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
<Mon_Ouie> unless has the same syntax as if, you want '!' or 'not' to negate a value
Rodya_ has joined #ruby
JeanCarloMachado has joined #ruby
Derperperd has joined #ruby
MrBusiness has quit [Ping timeout: 258 seconds]
<Chris3y_RubyNewb> oh ok, thank you
max1 has joined #ruby
alaibe_ has quit [Ping timeout: 250 seconds]
tubuliferous has joined #ruby
max1 has quit [Client Quit]
Guest86922 has quit [Remote host closed the connection]
macsteps has joined #ruby
tubuliferous has quit [Ping timeout: 258 seconds]
sp_ has joined #ruby
al2o3-cr has joined #ruby
Rodya_ has quit [Remote host closed the connection]
ta_ has joined #ruby
spudowiar has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
diegoviola has quit [Quit: WeeChat 1.5]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
the_rhizo has quit [Ping timeout: 250 seconds]
diegoviola has joined #ruby
bad_ip has quit [Ping timeout: 276 seconds]
macsteps has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 276 seconds]
Vile` has quit [Ping timeout: 258 seconds]
miskatonic has joined #ruby
ta_ has quit [Remote host closed the connection]
the_rhizo has joined #ruby
<miskatonic> is it possible to build an object-oriented/procedural substiture for XSLT with Ruby/Nokohgiri, similar to the former perl module xpathscript?
last_staff has quit [Quit: last_staff]
Parko has joined #ruby
<jhass> well, Ruby is general purpose programming language, so I don't see why not
impermanence has joined #ruby
pawnbox has joined #ruby
the_rhizo has quit [Ping timeout: 276 seconds]
impermanence has quit [Ping timeout: 244 seconds]
pawnbox has quit [Ping timeout: 276 seconds]
Heskie has quit []
teclator has quit [Ping timeout: 244 seconds]
teclator has joined #ruby
macsteps has joined #ruby
Vile` has joined #ruby
MrBusiness has joined #ruby
<foxxx0> anyone got an idea on my sinatra+rspec problem? can't get those halt/content_type/etag helpers of sinatra to work from within rspec...
DarthGandalf has quit [Ping timeout: 276 seconds]
DarthGandalf has joined #ruby
<foxxx0> currently i'm using this horrible workaround: https://paste.foxxx0.de/9UnEf/
eljimmy has joined #ruby
ddffg has quit [Quit: Leaving]
diego1 has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diegoviola is now known as Guest61987
diego1 is now known as diegoviola
Guest61987 has quit [Ping timeout: 258 seconds]
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
Rodya_ has joined #ruby
MrBusiness has quit [Read error: Connection reset by peer]
wolffles has joined #ruby
davedev24 has quit [Remote host closed the connection]
miskatonic has quit [Quit: miskatonic]
ChoiKyuSang has quit [Ping timeout: 244 seconds]
Tempesta is now known as ChoiKyuSang
davedev24 has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Danishman has joined #ruby
max1 has joined #ruby
Rodya_ has joined #ruby
max1 is now known as PickAndMix
alaibe has joined #ruby
<adam12> foxxx0: Is this a module or something that you're including into your app?
<foxxx0> no, those methods are sinatra internals
<adam12> I know those are - but the method you're showing us.
aryaching has quit [Ping timeout: 258 seconds]
<foxxx0> ah, yeah sure
<adam12> Looking at the paste it might be called `controller_helper.rb` - is that the file or are these actually alongside your app?
<foxxx0> that's an excerpt from the controller_helper.rb file
<foxxx0> i'm using the classical (non-modular) sinatra approach
<adam12> And what type of rspec test is this? is it an integration style spec?
Jackneill has quit [Remote host closed the connection]
<foxxx0> yes, complete get/post/patch/delete requests including authorization headers and everything
pmyjavec has joined #ruby
<adam12> Likely need to see a bit more - how you're requiring it, and how you're telling Sinatra that there are helpers in that module.
<foxxx0> well if i'm spinning the app up using run Sinatra::Application they just work
<foxxx0> and in my rspec the app is run through Sinatra::Application as well
<jhass> show all your code
pokalyis has joined #ruby
firstdayonthejob has quit [Ping timeout: 244 seconds]
<jhass> so how does the app look like?
<jhass> and the full error output
solars has quit [Ping timeout: 244 seconds]
<foxxx0> this is the error
<foxxx0> and this is output wrapper, which causes the issue
<foxxx0> (if i use the commented out lines instead of the workarounds)
<jhass> ah well
<foxxx0> so either I'm just being totally retarded or I'm just missing a simple rspec include/config option
<jhass> mh, your app is a toplevel one, not a Sinatra::Application subclass?
smathy has joined #ruby
<foxxx0> correct
<jhass> tbh I think the idea is bogus
<jhass> to use helpers that depend on sinatra toplevel methods as test helpers
<foxxx0> mh, true
<foxxx0> oh
<foxxx0> m(
<foxxx0> head -> wall
<jhass> see, backtrace helps ;)
<foxxx0> was a long day and i spent hours over that stupid error
<foxxx0> darn i feel stupid now
<jhass> that's why I go too bed if I'm stuck too long
tubuliferous has joined #ruby
<jhass> *to bed even
<jhass> does wonders
<foxxx0> next time i'll do that instead
<foxxx0> so let's do a fresh start tomorrow morning and build some rspec helpers that provide generally the same features of that return_json_pretty helper, just without all those sinatra specific stuff
<foxxx0> and use that from within rspec
<foxxx0> ... right? (just to be totally sure)
Gasher has joined #ruby
last_staff has joined #ruby
<jhass> yeah
<foxxx0> alrighty then, thank you very much
<foxxx0> good night o/
<jhass> tbh the helper is a bit weird though
<jhass> oh, it prettifies
<jhass> I see
<foxxx0> just speak whatever comes to your mind, i will read it tomorrow ;)
<jhass> nah it's fine, late for me too ;) use JSON.parse though
<jhass> JSON.load is less safe
<foxxx0> i completely rebuilt and refactored my authentication today and over 500 integration tests just went up in flames and then those errors from "sinatra" drove me crazy... just couldn't think straight anymore
solars has joined #ruby
Vile` has quit [Read error: Connection reset by peer]
<foxxx0> thanks for the hint with json.parse though
<foxxx0> (i thought i used json.parse everywhere....)
the_rhizo has joined #ruby
Vile` has joined #ruby
zacts has quit [Ping timeout: 264 seconds]
l4v2 has joined #ruby
ddffg has joined #ruby
nando293921 has quit [Ping timeout: 264 seconds]
Bounga has joined #ruby
the_rhizo has quit [Ping timeout: 240 seconds]
axsuul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
triangles has quit [Quit: Leaving]
zeroDivisible has quit [Quit: WeeChat 1.5]
last_staff has quit [Quit: last_staff]
JakFrist has joined #ruby
nando293921 has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
Danishman has quit [Quit: KVIrc 4.9.1 Aria http://www.kvirc.net/]
jeffreylevesque has joined #ruby
JakFrist has quit [Client Quit]
<jeffreylevesque> is this pure ruby syntax - https://bpaste.net/show/b0bd53d1a10e?
<jeffreylevesque> inside the if-else, that is
pmyjavec has quit [Quit: Textual IRC Client: www.textualapp.com]
<shellie_> yeah, it is.. quite unfortunately though. Probably one of the aspects of ruby I dislike the most.
Derperperd has quit [Quit: Derperperd]
hahuang65 has joined #ruby
<jhass> huh, why's that?
<jhass> jeffreylevesque: the whole file is valid ruby
QORRiE has quit [Quit: Leaving]
<jhass> jeffreylevesque: depending on the definition synced_folder it's either passing two string arguments and the hash {:type => "nfs"} or two string arguments and the keyword argument type
<jhass> probably the former still
alaibe has quit [Ping timeout: 250 seconds]
blackgoat has joined #ruby
<jhass> shellie_: I'm curious, what do you dislike there?
howard_ has joined #ruby
impermanence has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
<smathy> Probably optional parens, I know a lot of people who don't like that.
dcunit3d has joined #ruby
nfk has joined #ruby
<shellie_> jhass: lack of parenthesis around the method call?
eljimmy has quit [Quit: This computer has gone to sleep]
hahuang65 has quit [Ping timeout: 260 seconds]
<shellie_> smathy: yup, exactly
<jhass> ah, well
<jhass> how long have you been into ruby?
jeffreylevesque has quit [Remote host closed the connection]
<smathy> There are only two things in Ruby I can think that I don't like. "Implicit " "string concat" and the required begin/end for exception blocks within other blocks.
kirun has quit [Quit: Client exiting]
tubuliferous has quit [Ping timeout: 250 seconds]
<nfk> can i have something like this:
<nfk> def foo (delete_if_exists?: false)
<nfk> ?
<nfk> i can do it without ? but i feel that it would be a lot nicer with that question mark
<jhass> no, would be news to me
<nfk> and how should i proceed then?
aarongodin has joined #ruby
impermanence has quit [Ping timeout: 276 seconds]
pontiki has joined #ruby
<adam12> Just leave it off.
<adam12> It's nice sugar but since you're defaulting to false, you likely already know in your *small* method that it's a boolean.
axsuul has joined #ruby
<nfk> I just feel like it's good style to have
<nfk> but, sure, already done
aspiers has joined #ruby
<nfk> i guess I should eventually publish these scripts
<nfk> though i really don't want to do it with my real name as people are gonna wonder what for I need such specific file manipulation script system
<adam12> lol
grenierm has joined #ruby
davedev24 has quit [Remote host closed the connection]
<nfk> a hint: return ((filename.length == 36 && /(\h{32})\.\w{3}/.match(filename)) || (filename.length == 37 && /(\h{32})\.\w{4}/.match(filename)))
<nfk> that's one line from the common.rb file
grenierm has quit [Client Quit]
<nfk> obviously those length checks are a bit silly but they both ensure that there's less room for errors in unexpected matches and, I think, they also were meant to speed up processing as filenames of wrong length would never trigger the regex compilation
<nfk> though i'm not sure if i did or did not run actual benchmarks on whether they even do anything
<nfk> also, those scripts were developed for ruby 2.0 or 2.1 initially
<nfk> actually, i should look into precompiling those regex
<shellie_> jhass: sorry, keep missing your questions. I have started on ruby in February
<shellie_> I'm still a learner :-)
<nfk> we all are
<jhass> give no parens a try, it might grow on you ;)
<nfk> i usually write without unless i intend other or myself to later understand that code
<nfk> and i do it with as many parens as i can if i'm dealing with the mess like the one above
mikecmpbll has quit [Quit: Textual IRC Client: www.textualapp.com]
Gasher has quit [Quit: Leaving]
the_rhizo has joined #ruby
matp has joined #ruby
<jhass> doesn't the parser already precompile the regexps?
jeffreylevesque has joined #ruby
xall has quit [Ping timeout: 265 seconds]
<nfk> i actually had an extra pair around the second part of that outer || but i caught it out during the refactoring
<nfk> jhass, i was actually about to ask if i can have them compiled the first time that function is called and then shared with subsequent invocations
<nfk> i'm sure C++ can do that
<nfk> somehow; no idea about ruby
<jhass> filename[/\A\h{32}\.\w{3,4}\z/]
Coldblackice has quit [Ping timeout: 265 seconds]
<shellie_> jhass: I can't force myself. I come from a Python background, so I want to keep myself truthful to the few bits that overlap, so it won't be difficult to switch between them
<jhass> no idea if oniguruma even does precompilation, but if so I'd expect the parser to do it already
<nfk> jhass, what about length check?
<jeffreylevesque> is line 4-8 ok ruby syntax - https://bpaste.net/show/9d1a59fca1f9?
<jeffreylevesque> actually, just tried it, I'm getting "=~ was unexpected at this time."
<jeffreylevesque> that's probably related to line 5
<jhass> shellie_: so you do puts("Hello world") too?
karapetyan has joined #ruby
<nfk> jhass, oh, right, if it was precompiled and shared with other invocations of that function, then i suppose it would not be an issue, at least not by much
<jhass> jeffreylevesque: ENV["VAGRANT_DETECTED_OS"] = "cygwin" if RUBY_PLATFORM[/windows/]
<shellie_> jhass: I don't write a lot of puts unless I'm debugging code and yes, I use the parens-less version of that specific method:-)
<jhass> shellie_: or include(Foo)
<jhass> or p(foo)
<shellie_> yup
<jhass> or .to_i()
<shellie_> I mean, if you mean include?(foo)
<jeffreylevesque> jhass: maybe that syntax is too dense for me to understand. I'd like to run `export VAGRANT_DETECTED_OS=cygwin` if the host os is windows
<jhass> Module#include
<jhass> it's a method too
the_rhizo has quit [Ping timeout: 265 seconds]
<shellie_> I see :-)
<jhass> jeffreylevesque: well, running export in a subshell is pretty pointless if you do nothing after in the same subshell
<jhass> shellie_: or requrie("foo")
<jeffreylevesque> jhass: so `ENV["VAGRANT_DETECTED_OS"] = "cygwin" if RUBY_PLATFORM[/windows/]` accomplishes the equivalent of `export` ?
<jhass> yes
<jhass> well, the first part, the second part is the conditional
Azure has quit [Ping timeout: 252 seconds]
karapetyan has quit [Ping timeout: 250 seconds]
wolffles has quit [Quit: wolffles]
<jeffreylevesque> i changed it to - https://bpaste.net/show/ef8227e03108
<smathy> "s in "" delimited strings, lulz.
<jeffreylevesque> got syntax error - https://bpaste.net/show/2efd7c481ac2
<jhass> jeffreylevesque: get rid of the system
<jhass> as said changing the env of a subshell you do nothing else in is pointless
<jeffreylevesque> ok
davedev24 has joined #ruby
<jeffreylevesque> thanks!
<jeffreylevesque> i changed it to -https://bpaste.net/show/96d589265147
<shellie_> jhass: turns out it seems I make an ecletic use of both styles.. but I think I will stick to this sweet sweet mix
tubuliferous has joined #ruby
<nfk> btw, if anyone is interested, i can probably tar and send you those scripts, if you know what they are for. they are not yet complete but do at least some stuff, not much comments or use descriptions yet and yadayada
<jeffreylevesque> and got - https://bpaste.net/show/f37e98dcdbb4
<jeffreylevesque> it's not doing the `export` equivalent command correctly
Coldblackice has joined #ruby
<jhass> well I guess it does the check before loading your Vagrantfile
xall has joined #ruby
threh has joined #ruby
<jeffreylevesque> is it possible to do what I'm trying to do - allowing TTY in windows?
<jhass> ?vagrant
<ruby[bot]> please join #vagrant for help with it.
elifoster has quit [Quit: internet restart]
<jhass> it's getting rather specific to it
eljimmy has joined #ruby
tubuliferous has quit [Ping timeout: 250 seconds]
<nfk> night
Vile` has quit [Read error: Connection reset by peer]
<nfk> and thanks for helping, jhass
xlegoman has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
zacts has joined #ruby
smathy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Mongey_ has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
j416 has quit [Ping timeout: 260 seconds]
sk41ks has quit [Ping timeout: 240 seconds]
j416 has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
wolffles has joined #ruby
n90b0jjf has quit [Remote host closed the connection]
Dreamer3 has joined #ruby
Azure has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
OTORelic1 has quit [Read error: Connection reset by peer]
OTORelic1 has joined #ruby
zacts has quit [Quit: WeeChat 1.4]
ddffg has quit [Quit: Leaving]
johnchalekson has joined #ruby
johnchalekson has quit [Max SendQ exceeded]
swemoney has joined #ruby
framling has joined #ruby
johnchalekson has joined #ruby
n90b0jjf has joined #ruby
jeffreylevesque has quit [Remote host closed the connection]
elifoster has joined #ruby
<wolffles> my code is to slow can someone help me deal with large numbers?
<swemoney> if i have json that's formatted like {"1": {"data":"some_data"}, "2": {"data":"some_data"}...}, how can i iterate over them all? When I try a data.each{|d| d["data"]} I get a no implicit conversion of string to integer
hahuang65 has joined #ruby
Izabia has joined #ruby
SCHAAP137 has quit [Quit: Exiting...]
moei has quit [Quit: Leaving...]
n90b0jjf has quit [Ping timeout: 240 seconds]
moei has joined #ruby
n90b0jjf has joined #ruby
hahuang65 has quit [Ping timeout: 264 seconds]
<jhass> ?json_object swemoney
<ruby[bot]> swemoney: there is no such thing as a JSON object. You either have a String containing serialized JSON, or you have ruby objects (usually Hashes/Arrays/Strings). Which is it?
<Mon_Ouie> wolffles: If you look up triangle numbers, you can find a much more efficient formula for the sum of integers from 1 to n.
s2013 has joined #ruby
<swemoney> jhass: the json is formatted as such. so it's a Hash with "1", "2", "3", etc as the "id" for each hash of data.
<swemoney> after i run it through JSON.parse, it's a Hash
<jhass> .each do |id, data| data["data"]
<wolffles> Mon_Ouie: i have been searching for all the wrong info lol your right this is perfect
axsuul has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<swemoney> jhass: thanks