havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
Vile` has quit [Ping timeout: 240 seconds]
jameser has joined #ruby
blackwind_123 has joined #ruby
BSaboia has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skweek has joined #ruby
enterprisey has quit [Ping timeout: 246 seconds]
blackwind_123 has quit [Ping timeout: 268 seconds]
blackwind_123 has joined #ruby
toretore has joined #ruby
gdonald has quit [Read error: Connection reset by peer]
ddffg has quit [Ping timeout: 240 seconds]
blackwind_123 has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
blackwind_123 has joined #ruby
cagmz has quit [Quit: Leaving]
blackwind_123 has quit [Read error: Connection reset by peer]
__Yiota has joined #ruby
blackwind_123 has joined #ruby
charliesome has joined #ruby
__Yiota has quit [Client Quit]
marcdel has quit [Ping timeout: 240 seconds]
jgt has joined #ruby
blackwind_123 has quit [Ping timeout: 268 seconds]
marcdel has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
blackwind_123 has joined #ruby
charliesome has joined #ruby
jgt has quit [Ping timeout: 246 seconds]
johnzorn has quit [Read error: Connection reset by peer]
johnzorn has joined #ruby
_sfiguser has quit [Ping timeout: 240 seconds]
astrobunny has joined #ruby
enterprisey has joined #ruby
cfec0b8d has quit [Remote host closed the connection]
mooser has joined #ruby
mooser has quit [Ping timeout: 258 seconds]
_sfiguser has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jameser has joined #ruby
jameser has quit [Client Quit]
Vile` has joined #ruby
marr has quit [Ping timeout: 260 seconds]
thistle has quit [Remote host closed the connection]
rgtk has quit [Ping timeout: 268 seconds]
houhoulis has quit [Remote host closed the connection]
JoshS has joined #ruby
Verity has joined #ruby
<Verity> milestone
<Verity> it works
<Verity> couple bugs to work out
rgtk has joined #ruby
thistle has joined #ruby
thistle has quit [Remote host closed the connection]
<adam12> Verity: congrats
thistle has joined #ruby
mooser has joined #ruby
<adam12> Stick that sucker in version control so you don't lose it
bkxd has joined #ruby
<Verity> ty, good idea. I'll do that now
mooser has quit [Ping timeout: 258 seconds]
bkxd has quit [Ping timeout: 268 seconds]
wilbert has joined #ruby
wilbert has quit [Client Quit]
thistle has quit [Remote host closed the connection]
astrobunny has quit [Remote host closed the connection]
hndk has joined #ruby
JoshS has quit [Quit: Leaving]
astrobunny has joined #ruby
hahuang61 has joined #ruby
zipace has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
hahuang61 has quit [Ping timeout: 256 seconds]
mooser_ has joined #ruby
ger0 has joined #ruby
ger0 has quit [Remote host closed the connection]
ger0 has joined #ruby
Rodya_ has joined #ruby
hndk has quit [Ping timeout: 240 seconds]
johnzorn has quit [Read error: Connection reset by peer]
johnzorn has joined #ruby
ryan_notabot has quit [Ping timeout: 268 seconds]
mooser_ has quit [Ping timeout: 268 seconds]
d^sh has quit [Ping timeout: 258 seconds]
gdonald has quit [Read error: Connection reset by peer]
gdonald has joined #ruby
d^sh has joined #ruby
skweek has quit [Ping timeout: 258 seconds]
BTRE has quit [Ping timeout: 264 seconds]
JoshS has joined #ruby
libastral has quit [Ping timeout: 246 seconds]
BTRE has joined #ruby
libastral has joined #ruby
skweek has joined #ruby
danielpclark has quit [Ping timeout: 258 seconds]
skweek has quit [Ping timeout: 240 seconds]
danielpclark has joined #ruby
GodFather has quit [Ping timeout: 260 seconds]
Rodya_ has quit [Remote host closed the connection]
mim1k has joined #ruby
thistle has joined #ruby
JoshGlzBrk has joined #ruby
blackwind_123 has quit [Ping timeout: 268 seconds]
JoshGlzBrk has quit [Client Quit]
mim1k has quit [Ping timeout: 240 seconds]
blackwind_123 has joined #ruby
jgt has joined #ruby
jcao219 has quit [Ping timeout: 256 seconds]
jgt has quit [Ping timeout: 240 seconds]
thistle has quit [Ping timeout: 246 seconds]
rgtk has quit [Ping timeout: 240 seconds]
rgtk has joined #ruby
pilne has quit [Quit: Quitting!]
houhoulis has joined #ruby
AnoHito has quit [Quit: Leaving]
HoierM has quit [Ping timeout: 260 seconds]
rgtk has quit [Ping timeout: 260 seconds]
statelesscode has quit [Quit: statelesscode]
thistle has joined #ruby
Alina-malina has quit [Ping timeout: 240 seconds]
mooser has joined #ruby
skweek has joined #ruby
mooser has quit [Ping timeout: 268 seconds]
xzhao_ has quit [Ping timeout: 246 seconds]
xall_ has joined #ruby
rgtk has joined #ruby
BSAlb has joined #ruby
enterprisey has quit [Ping timeout: 246 seconds]
rgtk has quit [Ping timeout: 258 seconds]
bkxd has joined #ruby
mattp has quit [Quit: WeeChat 1.6]
BSaboia has quit [Ping timeout: 268 seconds]
mattp_ has joined #ruby
xzhao_ has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
thistle has quit [Read error: Connection reset by peer]
thistle has joined #ruby
skweek has quit [Ping timeout: 258 seconds]
zipace has joined #ruby
hahuang61 has joined #ruby
thistle has quit [Remote host closed the connection]
hahuang61 has quit [Ping timeout: 258 seconds]
AnoHito has joined #ruby
houhoulis has quit [Remote host closed the connection]
mooser has joined #ruby
mooser has quit [Read error: Connection reset by peer]
__Yiota has joined #ruby
gix has quit [Ping timeout: 240 seconds]
ziprar has joined #ruby
zipace has quit [Disconnected by services]
c0mrad3 has quit [Quit: Connection closed for inactivity]
gix has joined #ruby
jgt has joined #ruby
last_staff has joined #ruby
elifoster has joined #ruby
bweston92 has quit [Quit: Connection closed for inactivity]
minimalism has quit [Quit: minimalism]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ger0 has quit [Quit: Leaving]
bkxd has joined #ruby
jcao219 has joined #ruby
last_staff has quit [Quit: last_staff]
bkxd has quit [Ping timeout: 264 seconds]
__Yiota has joined #ruby
Channel6 has quit [Quit: Leaving]
jcao219 has quit [Ping timeout: 260 seconds]
mim1k has joined #ruby
mooser has joined #ruby
ryan_notabot has joined #ruby
mim1k has quit [Ping timeout: 264 seconds]
mooser has quit [Ping timeout: 264 seconds]
renchan has joined #ruby
ryan_notabot has quit [Client Quit]
coatezy has quit [Ping timeout: 240 seconds]
jcao219 has joined #ruby
coatezy has joined #ruby
ledestin has joined #ruby
pmatsino has joined #ruby
pmatsino has left #ruby [#ruby]
BSAlb has quit [Read error: Connection reset by peer]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jeyraof^mbpr has joined #ruby
dionysus69 has joined #ruby
d^sh has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
d^sh has joined #ruby
jcao219 has quit [Ping timeout: 268 seconds]
__Yiota has quit [Client Quit]
AnoHito has quit [Read error: Connection reset by peer]
AnoHito has joined #ruby
QualityAddict has quit [Quit: Leaving]
patarr has joined #ruby
__Yiota has joined #ruby
Vile` has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 258 seconds]
jcao219 has joined #ruby
john11111 has joined #ruby
<john11111> Why do niggers put big ass rims on small ass cars?
JoshS has quit [Ping timeout: 268 seconds]
john11111 has quit [Killed (Sigyn (Spam is off topic on freenode.))]
mikecmpbll has joined #ruby
mikecmpbll has quit [Client Quit]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
tildes has joined #ruby
IRCFrEAK has joined #ruby
hahuang61 has joined #ruby
IRCFrEAK has left #ruby [#ruby]
hahuang61 has quit [Ping timeout: 240 seconds]
IRCFrEAK has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
elifoster has quit [Quit: zzz]
IRCFrEAK has left #ruby [#ruby]
<baweaver> !troll john11111
kernelPaniq has joined #ruby
lele has quit [Ping timeout: 264 seconds]
lele has joined #ruby
Arpanet69 has joined #ruby
Alina-malina has joined #ruby
Arpanet69 has quit [Ping timeout: 260 seconds]
BabyMario has quit [Quit: bye]
JoshS has joined #ruby
ta_ has quit [Remote host closed the connection]
mooser has joined #ruby
bkxd has joined #ruby
mooser has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 268 seconds]
nofxxx has joined #ruby
mim1k has joined #ruby
tildes has quit [Ping timeout: 268 seconds]
johnzorn has quit [Read error: Connection reset by peer]
johnzorn has joined #ruby
nofxx has quit [Ping timeout: 246 seconds]
mim1k has quit [Ping timeout: 256 seconds]
conta has joined #ruby
ostera-mobile has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
CloCkWeRX has joined #ruby
BabyMario has joined #ruby
ostera-mobile has quit [Quit: Mutter: www.mutterirc.com]
conta has quit [Quit: conta]
Luna_Moonfang is now known as Aloy
mooser has joined #ruby
antgel has joined #ruby
mooser has quit [Ping timeout: 256 seconds]
aufi has joined #ruby
conta has joined #ruby
ddffg has joined #ruby
dionysus69 has joined #ruby
papillon_ has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jcao219 has quit [Ping timeout: 258 seconds]
vali has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
jcao219 has joined #ruby
patarr has joined #ruby
johnny56 has quit [Ping timeout: 264 seconds]
valentin has joined #ruby
Arpanet69 has joined #ruby
ziprar has quit [Ping timeout: 240 seconds]
patarr has quit [Ping timeout: 260 seconds]
papillon_ has quit [Quit: Mutter: www.mutterirc.com]
Xiti has quit [Quit: Xiti]
johnny56 has joined #ruby
Burgestrand has joined #ruby
mark_66 has joined #ruby
ostera-mobile has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
ostera-mobile has quit [Client Quit]
vondruch has quit [Ping timeout: 240 seconds]
gfvkdd has joined #ruby
valentin has quit [Quit: valentin]
valentin has joined #ruby
vali has quit [Remote host closed the connection]
valentin is now known as vali
hahuang61 has joined #ruby
uncertainty has quit [Ping timeout: 260 seconds]
papillon_ has joined #ruby
oded has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
andikr has joined #ruby
vondruch has joined #ruby
VladGh has quit [Ping timeout: 268 seconds]
bigkevmcd has joined #ruby
lenwood has joined #ruby
uncertainty has joined #ruby
mikecmpbll has joined #ruby
Toledo has quit [Ping timeout: 256 seconds]
Keltia_ is now known as Keltia
nofxxx has quit [Ping timeout: 240 seconds]
Qchmqs has joined #ruby
aganov has joined #ruby
Toledo has joined #ruby
nowhere_man has joined #ruby
Silthias1 has joined #ruby
mim1k has joined #ruby
Silthias has quit [Ping timeout: 240 seconds]
chihhsin has quit [Ping timeout: 240 seconds]
slima_ is now known as slima
slima has quit [Changing host]
slima has joined #ruby
mim1k has quit [Ping timeout: 258 seconds]
recrypt has joined #ruby
recrypt has left #ruby [#ruby]
tau has quit [Remote host closed the connection]
xall_ has quit [Ping timeout: 258 seconds]
uncertainty has quit [Ping timeout: 260 seconds]
xall_ has joined #ruby
nowhere_man has quit [Quit: Konversation terminated!]
nowhere_man has joined #ruby
synbit has joined #ruby
bkxd has joined #ruby
xall_ has quit [Read error: No route to host]
Pumukel has joined #ruby
mim1k has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
pwnd_nsfw` has joined #ruby
Sweetlie has joined #ruby
papillon_ has quit [Quit: Mutter: www.mutterirc.com]
Pumukel has quit [Read error: No route to host]
pwnd_nsfw has quit [Ping timeout: 240 seconds]
Pumukel has joined #ruby
jsrn_ has joined #ruby
esObe_ has joined #ruby
DaveTaboola has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
stan has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
stan has quit [Read error: Connection reset by peer]
Pumukel has joined #ruby
uncertainty has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
stan has joined #ruby
Pumukel has quit [Remote host closed the connection]
Pumukel has joined #ruby
Pumukel has quit [Remote host closed the connection]
maattdd_ has joined #ruby
_sfiguser has quit [Ping timeout: 256 seconds]
mazeinmaze_ has quit [Ping timeout: 264 seconds]
maattdd has quit [Ping timeout: 258 seconds]
<jokke> hi
lxsameer has joined #ruby
<jokke> are there any alternatives for celluloid out there?
<jokke> i have the impression, that celluloid is a bit abandoned
_aeris_ has quit [Ping timeout: 240 seconds]
Pisuke has joined #ruby
<darix> jokke: tbh ... last release november last year ... slow maybe ... abandoned i wouldnt say so
millerti has quit [Read error: Connection reset by peer]
<darix> last git commit 3days ago
<darix> so
<darix> what do you base that statement on?
MyMind has quit [Ping timeout: 264 seconds]
roshanavand has joined #ruby
_sfiguser has joined #ruby
_aeris_ has joined #ruby
<jokke> and elixir seems like quite
<jokke> the leap
<jokke> darix: oh. nothing. i just heard a coworker complain
Beams has joined #ruby
<jokke> darix: do you know if connection pooling for http client connections works in celluloid
<jokke> we've had a lot of problems with it
<jokke> as in: it doesn't work
<darix> which http client?
stan has quit [Remote host closed the connection]
jamesaxl has joined #ruby
stan has joined #ruby
<jokke> any
<jokke> none seem to work
<jokke> (with connection pooling)
<darix> well if you just need an http client you can look at eventmachine maybe.
<jokke> darix: nope
<jokke> it's way more complex
<darix> also it might be worth to be more specific what kind of problems you see
patarr has joined #ruby
spicerack has joined #ruby
recrypt has joined #ruby
astrobunny has quit [Remote host closed the connection]
recrypt has left #ruby [#ruby]
astrobunny has joined #ruby
patarr has quit [Ping timeout: 258 seconds]
biberu has joined #ruby
tlaxkit has joined #ruby
workmad3 has joined #ruby
bweston92 has joined #ruby
rgtk has joined #ruby
hahuang61 has joined #ruby
cfec0b8d has joined #ruby
jcao219 has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 240 seconds]
lel has quit [Ping timeout: 256 seconds]
jcao219 has joined #ruby
cfec0b8d has quit [Ping timeout: 260 seconds]
lel has joined #ruby
sigv has joined #ruby
Bish has quit [Ping timeout: 258 seconds]
anisha has joined #ruby
Bish has joined #ruby
rideh- has quit [Remote host closed the connection]
charliesome has joined #ruby
TomyWork has joined #ruby
charliesome has quit [Client Quit]
rgtk has quit [Ping timeout: 264 seconds]
<ikopico> Hi, can anyone refer me to a good modern Ruby VM (GC, memory model) articles/videos please?
charliesome has joined #ruby
charliesome has quit [Client Quit]
rideh has joined #ruby
mark_66 has quit [Ping timeout: 260 seconds]
maloik has quit [Remote host closed the connection]
maloik has joined #ruby
<jokke> darix: any idea how to verify if connection pooling is working?
bkxd has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
esObe_ has quit [Ping timeout: 246 seconds]
esObe_ has joined #ruby
gfvkdd has quit [Ping timeout: 246 seconds]
xwcius has joined #ruby
xwcius has quit [Remote host closed the connection]
jeyraof^mbpr has quit [Quit: This computer has gone to sleep]
mikeiniowa has joined #ruby
tvw has joined #ruby
pagios has left #ruby ["Leaving"]
User458764 has joined #ruby
GodFather has joined #ruby
BSaboia has joined #ruby
tvw has quit []
jcao219 has quit [Ping timeout: 240 seconds]
jcao219 has joined #ruby
ij has joined #ruby
<ij> Why isn't Hash#slice in stdlib?
jcao219 has quit [Ping timeout: 240 seconds]
uncertainty has quit [Ping timeout: 256 seconds]
bkxd has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mattp_ has quit [Quit: WeeChat 1.6]
catenthusiast has joined #ruby
icyphox has left #ruby ["Python's more fun (jk)"]
mattp_ has joined #ruby
patarr has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bkxd has quit [Ping timeout: 256 seconds]
bkxd has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
tau has joined #ruby
marr has joined #ruby
mark_66 has joined #ruby
agit0 has joined #ruby
uncertainty has joined #ruby
mark_66 has quit [Quit: Leaving.]
mark_66 has joined #ruby
mark_66 has quit [Remote host closed the connection]
astrobunny has quit [Remote host closed the connection]
mark_66 has joined #ruby
FMan has joined #ruby
<FastJack> what? jseifer died? nooooo! that ruins all my hope for new episodes of IRL talk :(
<tobiasvl> huh?
spicerack has joined #ruby
hahuang61 has joined #ruby
<FastJack> jason seifer
lenwood has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 260 seconds]
synbit has quit [Quit: Ex-Chat]
GodFather has quit [Ping timeout: 258 seconds]
CloCkWeRX has quit [Quit: Leaving.]
CloCkWeRX has joined #ruby
aryaching has joined #ruby
Doow has quit [Read error: Connection reset by peer]
<tobiasvl> he died?
toretore has quit [Ping timeout: 260 seconds]
synthroid has joined #ruby
vali has quit [Quit: vali]
chihhsin has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vali has joined #ruby
<ddffg> Who is it?
<Verity> jason seifer
modin has joined #ruby
anekos has quit [Remote host closed the connection]
marr has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
vali has quit [Remote host closed the connection]
vali has joined #ruby
patarr has joined #ruby
bsartek has joined #ruby
uncertainty has quit [Ping timeout: 268 seconds]
Lord_of_Life has quit [Excess Flood]
hutch34 has joined #ruby
patarr has quit [Ping timeout: 260 seconds]
python247 has joined #ruby
ldnunes has joined #ruby
<python247> making a comparsion table, need to confirm/deny language features https://docs.google.com/spreadsheets/d/18-Yy2UDLK6krKPq8Lx8ezKOgdSKd4E5pYpVT_MF3uMk/edit?usp=sharing
acalycine has joined #ruby
Lord_of_Life has joined #ruby
<acalycine> Hey.
<acalycine> [0] should give me the first capturing group in this (\d+), right? `viewgames[/GameID=(\d+)">[^>]+>\s+(?<first_team>[^>]+)?\s+vs\s+[^>]+>\s+(?<second_team>#{team})\s+(?!upcoming)</][0]`
jcao219 has joined #ruby
rwb has quit [Ping timeout: 268 seconds]
zipace has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
<Mon_Ouie> python247: What specifically do generators and iterators mean?
Lord_of_Life has quit [Excess Flood]
Sweetlie has quit [Quit: leaving]
<Mon_Ouie> Also Ruby 2 added keyword arguments
<mitsuhiko> this link is ages old
Lord_of_Life has joined #ruby
<python247> whoops, will you be able to update the sheet?
<Verity> I much prefer ruby to python, so far
<Verity> thats the "feel" I get
<Verity> my mind itself isnt sure, but the feel is that ruby is more for me
<Mon_Ouie> Yeah, "Ruby 1.8", there have been many changes in Ruby 1.9 and 2.x
<python247> and i have an idea to combine those three
<Verity> you're making a new language, python247 ?
anekos has joined #ruby
Lord_of_Life has quit [Excess Flood]
pupsicle has joined #ruby
<python247> trying to, at least, lacking the "how will i build this" knowledge, but having the general idea
<python247> and it's over here - http://github.com/aolko/rubito
jcao219 has quit [Ping timeout: 240 seconds]
uncertainty has joined #ruby
<acalycine> Anybody?
tlaxkit has quit [Quit: tlaxkit]
<sigv> acalycine, [0] will return the whole match
<sigv> acalycine, that is, starting with ´viewgames´ and so on.
<matthewd> acalycine: If you're actually waiting for someone to say "no, it does the thing it's doing"... no, it does the thing it's doing
<sigv> acalycine, what you want is [1] in your case.
<sigv> acalycine, that is usual matching behavior in a variety of languages - that [0] is the whole match.
bkxd has joined #ruby
<acalycine> Ah, ok.
mim1k has joined #ruby
spicerack has joined #ruby
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti> Hi
blackwind_123 has quit [Ping timeout: 268 seconds]
<GeorgesLeYeti> I have a string like "[1] Test". I want to return the value between [] and the text after that.
<GeorgesLeYeti> I think I have the regex
bkxd has quit [Ping timeout: 258 seconds]
<GeorgesLeYeti> ^\[(\d+)]((.?)+)
<GeorgesLeYeti> But I don't know how to extract values
<matthewd> GeorgesLeYeti: Have you found any likely-sounding methods on String or Regexp?
blackwind_123 has joined #ruby
ledestin has quit [Quit: Textual IRC Client: www.textualapp.com]
<GeorgesLeYeti> match
catenthusiast has quit [Ping timeout: 240 seconds]
esObe_ has quit [Remote host closed the connection]
bkxd has joined #ruby
duckpupp1 has joined #ruby
bkxd has quit [Ping timeout: 256 seconds]
aupadhye has joined #ruby
Sweetlie has joined #ruby
bkxd has joined #ruby
<acalycine> OK, so how could I fetch the first capturing group in this (\d+): `viewgames[/GameID=(\d+)">[^>]+>\s+(?<first_team>[^>]+)?\s+vs\s+[^>]+>\s+(?<second_team>#{team})\s+(?!upcoming)</]`?
<acalycine> Would I use [1][1]?
<acalycine> i.e. Group 1 in this: https://regex101.com/r/oc3IUp/5
<matthewd> acalycine: Like GeorgesLeYeti, you want #match
<acalycine> OK, but it works fine in normal regex. Is that unrelated?
rwb has joined #ruby
<acalycine> That's my code, if it's any help. gameid should equal the Group 1 in that regex link ^ https://gist.github.com/anonymous/8b42e2198f9428584383f6ae96dcfb80
bkxd has quit [Ping timeout: 260 seconds]
charliesome has joined #ruby
pwnd_nsfw has joined #ruby
<Mon_Ouie> >> "foo 14"[/\w (\d+)/, 1]
<ruby[bot]> Mon_Ouie: # => "14" (https://eval.in/766895)
<allisio> >> 'foo 14'[/\w (\d+)/]; $1 # This is okay too.
<ruby[bot]> allisio: # => "14" (https://eval.in/766896)
pwnd_nsfw` has quit [Ping timeout: 260 seconds]
uncertainty has quit [Ping timeout: 260 seconds]
<allisio> acalycine: I recommend just getting ahold of all the relevant data in one fell swoop and then massaging it as suits your purposes: https://eval.in/766901
<allisio> There's no way to unambiguously avoid that trailing space at the end of the second team's name, but Ruby is strong enough to chop it off.
<acalycine> Data is updated every week or so.
<acalycine> And it's going off user input.
<allisio> That has no bearing on my recommendation, for what that's worth.
<acalycine> My question is about the capturing groups, really. Why doesn't [1] get the captured ID?
mim1k has quit [Ping timeout: 256 seconds]
<allisio> It was probably a bad idea for me to show you String#[](Regexp). :/
<matthewd> acalycine: String#[] doesn't return an array. Why do you think it does?
<Mon_Ouie> Why would it? string[regexp] is the string that contains the whole match
<Mon_Ouie> (the first match of the regexp)
<acalycine> Oooh.
<acalycine> What should I use instead, using that regexp?
<matthewd> <matthewd>acalycine: Like GeorgesLeYeti, you want #match
thistle has joined #ruby
<allisio> acalycine: Is it that you're just trying to be done with the thing, or?
<GeorgesLeYeti> HO
<GeorgesLeYeti> Ty a lot guys
Xiti has joined #ruby
User458764 has joined #ruby
<allisio> I'm just saying, Ruby provides all sorts of convenient and unfinicky methods for querying collections of data. Having it all in one place with a relatively simple #scan wouldn't stop you from being able to drill down based on user input.
<acalycine> Yeah.
<acalycine> OK. I used match.
<acalycine> But I'm getting the same issue that I got days ago.
mim1k has joined #ruby
<acalycine> I want the first match on this page. Currently I'm getting the "Gold Coast vs Brisbane" result under Round 1, when I should be getting "Brisbane vs Essendon" under Round 2. Page here: http://dtlive.com.au/afl/viewgames.php
<herwin> just to think outside the box: don't they have a json-feed (or any other format that is easy to read by machines)?
<acalycine> The website? Nope.
<acalycine> Damn finicky website.
<allisio> acalycine: The first Brisbane game in that listing is against St Kilda, though.
<acalycine> Yep, but I don't want any ones that have "(upcoming)"
asdsa has joined #ruby
<acalycine> That's why I modified the regex
<acalycine> `(?!upcoming)`
<allisio> Did you happen to scroll down and see the output of the program I posted?
<acalycine> Not all of it. Let me look.
<allisio> The output.
<dminuoso> So. We should make a feature request. I really do want to be able to define hashes like this { a <= b, c => d }
<acalycine> Just saw it.
<dminuoso> It looks awesome.
<dminuoso> { { a => b } <= c }
<allisio> I'm with you.
jrafanie has joined #ruby
uncertainty has joined #ruby
asdsa has quit [Client Quit]
<herwin> so we can add more bike shedding to code reviews
<dminuoso> Yes. I'd love to be able to argue endlessly about using <= rather than =>
<allisio> acalycine: Once more, with feeling: https://eval.in/766916
<allisio> That Line 5 is intention-revealing as fuck, innit?
<acalycine> Sure.
<acalycine> That looks all good and dandy. But why the hell wouldn't my regexp work?
<allisio> Are you sure you want to know?
BSaboia has quit [Quit: Leaving]
<acalycine> Yes.
<matthewd> acalycine: I haven't tried it / checked the rest, but at a glance, your negative lookahead isn't doing what you intend
* acalycine grins at allisio
roshanavand has quit [Ping timeout: 260 seconds]
* allisio puts on hir robe and witchard hat.
<acalycine> matthewd: but it works fine in the regexp tester here https://regex101.com/r/oc3IUp/5
<acalycine> Wait, it doesn't.
millerti has joined #ruby
<acalycine> This is a #regex problem now isn't it.
<allisio> Sounds like you want it to be, you delightful masochist.
* acalycine laughs
anisha has quit [Ping timeout: 268 seconds]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dminuoso> Perl makes look regex look like they are turing complete. :|
vali has quit [Quit: vali]
<dminuoso> And wow, that typo power.
jmignault has joined #ruby
patarr has joined #ruby
rgtk has joined #ruby
Bish has quit [Remote host closed the connection]
pwnd_nsfw` has joined #ruby
jmignault has left #ruby [#ruby]
sigv has quit [Quit: Aggregate Consumption Output Power.]
fuzzyhorns has joined #ruby
uncertainty has quit [Ping timeout: 240 seconds]
<allisio> Has anyone ever been far as decided even go want to do look more like Perl?
<allisio> Pretty sure Perl's regexen have been Turing-complete for a very long time with that silly /e flag.
<allisio> That's how Acme::EyeDrops works, anyway.
pwnd_nsfw has quit [Ping timeout: 240 seconds]
DLSteve has joined #ruby
<balo> ouch
rgtk has quit [Ping timeout: 256 seconds]
DroidBurgundy has joined #ruby
hahuang61 has joined #ruby
anisha has joined #ruby
esObe_ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
esObe__ has joined #ruby
python247 has quit [Ping timeout: 260 seconds]
gnufied has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
esObe_ has quit [Ping timeout: 258 seconds]
GodFather has joined #ruby
esObe__ has quit [Ping timeout: 240 seconds]
<LyndsySimon> Style question: would you put parens around the left condition in this ternary expression?
<LyndsySimon> `colname !~ /\D/ ? _new_sort_column(item) : get_full_column_name(colname)`
meshsmith has joined #ruby
mim1k has quit [Ping timeout: 268 seconds]
<canton7> I would, just because otherwise the amount of punctuation makes it hard to spot where the ? is
<canton7> (but I wouldn't if it was just `colname == "foo" ? bar : baz`)
yeticry_ has joined #ruby
aupadhye has quit [Ping timeout: 258 seconds]
<LyndsySimon> That's what I was thinking as well. Thanks :)
<LyndsySimon> "x !~ /\D/" returns true if x is a string that contains only digits, by the way. I thought that was nifty.
yeticry has quit [Ping timeout: 256 seconds]
gizmore has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
<canton7> meh, I don't like the double negation. I'd go with `x =~ /^\d*$/`
oddalot has quit [Ping timeout: 264 seconds]
gizmore has joined #ruby
lhambley has joined #ruby
mim1k has joined #ruby
__Yiota has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
rmfnqo has joined #ruby
esObe_ has joined #ruby
jonjitsu has quit [Quit: Leaving]
jonjitsu has joined #ruby
bkxd has joined #ruby
jonjitsu has quit [Client Quit]
jonjitsu has joined #ruby
jon_ has joined #ruby
jon_ has quit [Remote host closed the connection]
jonjitsu has quit [Client Quit]
aupadhye has joined #ruby
jonjitsu has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
spicerack has joined #ruby
ta_ has quit [Remote host closed the connection]
aupadhye has quit [Quit: Leaving]
shinnya has joined #ruby
aupadhye has joined #ruby
User458764 has joined #ruby
agent_white has joined #ruby
lenwood has joined #ruby
GeorgesLeYeti has quit [Quit: Leaving]
meshsmith has quit [Remote host closed the connection]
cdg has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jusa has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
uncertainty has joined #ruby
loincloth has quit []
aupadhye has quit [Ping timeout: 240 seconds]
<agent_white> Mornin' folks
<agent_white> Mornin' folks
uncertainty has quit [Ping timeout: 264 seconds]
last_staff has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
qchmqs_ has joined #ruby
hs366 has quit [Quit: Leaving]
phansch has quit [Ping timeout: 258 seconds]
ikopico has quit [Ping timeout: 258 seconds]
nowhere_man has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
govg has quit [Ping timeout: 264 seconds]
shoutsid has joined #ruby
Qchmqs has quit [Ping timeout: 240 seconds]
phansch has joined #ruby
ikopico has joined #ruby
qchmqs_ has quit [Quit: Konversation terminated!]
aupadhye has joined #ruby
Qchmqs has joined #ruby
PaulCapestany has quit [Quit: .]
rippa has joined #ruby
bsartek has quit [Quit: This computer has gone to sleep]
PaulCapestany has joined #ruby
kazo has joined #ruby
_aeris_ has quit [Ping timeout: 240 seconds]
masta`` has joined #ruby
Asher has quit [Quit: Leaving.]
polishdub has joined #ruby
nowhere_man has quit [Quit: Konversation terminated!]
nowhereman has joined #ruby
tlaxkit has joined #ruby
Asher has joined #ruby
Toledo is now known as croberts
ResidentBiscuit has joined #ruby
thistle_ has joined #ruby
_aeris_ has joined #ruby
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Alina-malina has quit [Excess Flood]
jzigmund has quit [Ping timeout: 260 seconds]
Alina-malina has joined #ruby
jzigmund has joined #ruby
thistle has quit [Ping timeout: 264 seconds]
lenwood has quit [Ping timeout: 264 seconds]
HoierM has joined #ruby
nowhereman has quit [Ping timeout: 240 seconds]
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
nowhereman has joined #ruby
thistle_ has quit [Read error: Connection reset by peer]
thistle has joined #ruby
chouhoulis has quit [Remote host closed the connection]
bkxd has joined #ruby
LuckyABA has joined #ruby
masta`` has quit [Ping timeout: 260 seconds]
acalycine has quit [Quit: bye]
shoutsid has quit [Read error: Connection reset by peer]
anisha has quit [Quit: Leaving]
shoutsid has joined #ruby
shoutsid has quit [Client Quit]
alan_w has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 264 seconds]
shoutsid has joined #ruby
andikr has quit [Remote host closed the connection]
zipace has quit [Disconnected by services]
ziprar has joined #ruby
shoutsid has quit [Client Quit]
hxegon_afk is now known as hxegon
shoutsid has joined #ruby
c0mrad3 has joined #ruby
kassav_ has joined #ruby
tau has quit [Remote host closed the connection]
t-recx has joined #ruby
VladGh has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
<apeiros> canton7: \A and \z instead of ^ and $
agit0 has quit [Ping timeout: 260 seconds]
<apeiros> otherwise "foo\n12" will happily match
<canton7> point
<apeiros> same re double neg, though :D
<apeiros> (I don't like double negation either)
lhambley has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nowhere_man has joined #ruby
binaryplease has joined #ruby
nowhereman has quit [Read error: Connection reset by peer]
* dminuoso pokes apeiros
<dminuoso> Haven't seen you in a while in here
<apeiros> holidays :D
<dminuoso> They have that in Switzerland?
<dminuoso> Crazy.
minimalism has joined #ruby
DroidBurgundy has quit [Remote host closed the connection]
DroidBurgundy has joined #ruby
tsou has joined #ruby
DroidBurgundy has quit [Read error: Connection reset by peer]
DroidBurgundy has joined #ruby
ducks has quit [Remote host closed the connection]
jgnagy has joined #ruby
VladGh has quit [Ping timeout: 240 seconds]
hahuang61 has joined #ruby
duckpupp1 has quit [Ping timeout: 258 seconds]
dopamean_ has joined #ruby
VladGh has joined #ruby
t-recx has quit [Quit: t-recx]
ledestin has joined #ruby
olivierjanss has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
hahuang61 has quit [Ping timeout: 268 seconds]
Burgestrand has quit [Quit: Closing time!]
yurikoles has joined #ruby
<LyndsySimon> canton7: `x =~ /^\d*$/` matches an empty string, my example doesn't :)
govg has joined #ruby
mark_66 has quit [Remote host closed the connection]
<apeiros> >> "" !~ /\D/
<ruby[bot]> apeiros: # => true (https://eval.in/767031)
<apeiros> ruby says you're wrong
<LyndsySimon> Yeah, I see that...
<LyndsySimon> I've forgotten why i went with that syntax. I thought that was why.
<apeiros> and as said, \A and \z, not ^ and $ :-)
<apeiros> if you use + instead of *, it won't match an empty string
<apeiros> "" =~ /\A\d+\z/
<apeiros> >> ["" =~ /\A\d+\z/, "123x34" =~ /\A\d+\z/, "123" =~ /\A\d+\z/]
<ruby[bot]> apeiros: # => [nil, nil, 0] (https://eval.in/767034)
<apeiros> (note: 0 is trueish in ruby)
<dminuoso> >> 0 == trueish
<ruby[bot]> dminuoso: # => undefined local variable or method `trueish' for main:Object ...check link for more (https://eval.in/767035)
<LyndsySimon> Yeah, I know. Confusing for a Pythonista.
<dminuoso> You lied.
<apeiros> dminuoso: you literator
<dminuoso> Heh.
<dminuoso> apeiros, I have started abusing Enumerators for interacting with remote APIs.
<dminuoso> Am I naughty?
<apeiros> have you ever not been? o0
<LyndsySimon> dminuoso: That sounds exactly like something I would do.
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
<dminuoso> LyndsySimon, heh. I've done redux-saga and HTTP interaction in C++ with coroutines now. Doing it with enumerators or fibers in Ruby was the next step.
User458764 has joined #ruby
last_staff has quit [Quit: last_staff]
<LyndsySimon> dminuoso: If I understand what you're saying, then I've done the same in Python, using custom generators.
<LyndsySimon> Return an object representing a result set. That object contains the first page of results. Iterating over the object iterates over the page of results until it's done, then fetches the next page over HTTP and begins iterating over those - without requiring the dev to know or care that it's sending an HTTP request ever n iterations.
boz_ has joined #ruby
amclain has joined #ruby
nofxx has joined #ruby
tristanp has quit []
rakm has joined #ruby
tristanp has joined #ruby
ResidentBiscuit has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ResidentBiscuit has joined #ruby
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
marxarelli has joined #ruby
shinnya has quit [Ping timeout: 246 seconds]
jsrn_ has quit [Read error: Connection reset by peer]
Qchmqs has quit [Ping timeout: 260 seconds]
conta has quit [Ping timeout: 240 seconds]
[Butch] has joined #ruby
tlaxkit has quit [Remote host closed the connection]
tlaxkit has joined #ruby
thistle has quit [Read error: Connection reset by peer]
thistle has joined #ruby
ozcanesen has joined #ruby
oded has quit [Quit: Konversation terminated!]
GodFather has quit [Ping timeout: 256 seconds]
kassav_ has quit [Quit: kassav_]
tlaxkit has quit [Quit: tlaxkit]
aganov has quit [Remote host closed the connection]
jusa has joined #ruby
tildes has joined #ruby
kith has quit [Quit: kith]
VladGh has quit [Ping timeout: 258 seconds]
gigetoo has quit [Ping timeout: 268 seconds]
gigetoo has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
dopamean_ has quit [Ping timeout: 258 seconds]
rmfnqo has quit [Remote host closed the connection]
DroidBurgundy has quit [Remote host closed the connection]
DroidBurgundy has joined #ruby
nitric has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
Fernando-Basso has joined #ruby
gusrub has joined #ruby
prrpl has joined #ruby
aufi has quit [Quit: Leaving]
agit0 has joined #ruby
skweek has joined #ruby
mim1k has quit [Ping timeout: 268 seconds]
uncertainty has joined #ruby
nowhere_man has joined #ruby
DroidBur_ has joined #ruby
DroidBurgundy has quit [Ping timeout: 246 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
skweek has quit [Ping timeout: 260 seconds]
t-recx has joined #ruby
_sfiguser has quit [Ping timeout: 246 seconds]
DroidBur_ has quit [Ping timeout: 240 seconds]
dopamean_ has joined #ruby
hahuang61 has joined #ruby
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
Beams has quit [Quit: .]
conta has joined #ruby
conta has quit [Client Quit]
ElderFain has quit [Changing host]
ElderFain has joined #ruby
hahuang65 has joined #ruby
_sfiguser has joined #ruby
duderonomy has quit [Ping timeout: 268 seconds]
Xiti has quit [Quit: Xiti]
lxsameer has quit [Quit: WeeChat 1.5]
lhambley has joined #ruby
balazs has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
antgel has quit [Ping timeout: 268 seconds]
tildes has quit [Ping timeout: 256 seconds]
mkillebrew has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
bkxd has joined #ruby
<mkillebrew> can gsub be used to replace a multi-line block of text? I have chunks read in with scan(/-BEGIN-\s.*?-END-/m) to a variable, trying to swap it with contents of anoter variable
jamesaxl has joined #ruby
cow[baby] has joined #ruby
<llua> >> "a\nblock\nof\ntext".gsub(/a\nblock\nof\ntext/,"does it sub?")
<ruby[bot]> llua: # => "does it sub?" (https://eval.in/767066)
bkxd has quit [Ping timeout: 240 seconds]
skweek has joined #ruby
dopamean_ has quit [Ping timeout: 260 seconds]
mostlybadfly has joined #ruby
futilegames has joined #ruby
dopamean_ has joined #ruby
marr has joined #ruby
<hanmac> apeiros: https://bugs.ruby-lang.org/issues/13395 Nobu was wrong and I was right XD
jrafanie has quit [Quit: Textual IRC Client: www.textualapp.com]
renchan has quit [Quit: Leaving...]
skweek has quit [Ping timeout: 246 seconds]
skweek has joined #ruby
snockerton has joined #ruby
antoniobeyah has joined #ruby
TomyWork has quit [Ping timeout: 240 seconds]
c0mrad3 has quit [Quit: Connection closed for inactivity]
tildes has joined #ruby
erlend has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
StoneCypher has joined #ruby
<StoneCypher> so some languges with repls also have drop debuggers
<allisio> StoneCypher: You want Pry.
<StoneCypher> by example in python i can `import ipdb; ipdb.set_trace()`
<StoneCypher> oh
<StoneCypher> thanks
bruce_lee has joined #ruby
<StoneCypher> will pry work from within rake
ixti has joined #ruby
synthroi_ has joined #ruby
<Papierkorb> StoneCypher: it will work from anything that's a ruby project/script
<StoneCypher> ok cool, thanks
DroidBurgundy has joined #ruby
<havenwood> ?pry
<ruby[bot]> Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sagax has joined #ruby
erlend has joined #ruby
synthroid has quit [Ping timeout: 240 seconds]
masta`` has joined #ruby
futilegames has quit [Quit: futilegames]
Rodya_ has joined #ruby
duckpupp1 has joined #ruby
GodFather has joined #ruby
tildes_ has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
kies has quit [Ping timeout: 260 seconds]
gusrub_ has joined #ruby
tildes has quit [Ping timeout: 240 seconds]
<StoneCypher> i'm sorry. i think i'm doing something wrongly. i installed pry, and i get the pry console when i run it. however, rake seems unable to see the gem
<StoneCypher> i found a stackoverflow which claims i should bundle exec rake install , to get this installed in the context of rake
<StoneCypher> but that just fails as if rake's interpreting install as the name of a task
gusrub has quit [Ping timeout: 258 seconds]
Rodya_ has quit [Remote host closed the connection]
GodFather has quit [Remote host closed the connection]
cfec0b8d has joined #ruby
<StoneCypher> oh, their instructions are wrong, nevermind, sorted it
gusrub has joined #ruby
<t-recx> btw does anyone ever get a Error: uninitialized constant Pry::ObjectPath::StringScanner when trying to autocomplete a file/directory using pry?
<StoneCypher> oh, no, i didn't. :/
GodFather has joined #ruby
hahuang65 has quit [Ping timeout: 264 seconds]
gusrub_ has quit [Ping timeout: 260 seconds]
* StoneCypher has found three different sets of instructions for installing pry now :(
tercenya has quit [Remote host closed the connection]
<Papierkorb> mh?
tercenya has joined #ruby
<Papierkorb> StoneCypher: do you use Bundler to run that rake script?
<StoneCypher> Papierkorb: yes
<Papierkorb> StoneCypher: bundler makes it so that whatever it runs only sees the gems that are installed in the local project
<Papierkorb> StoneCypher: Add `pry` to your Gemfile, bundle, and then try again
<StoneCypher> oh, right, bundle doesn't touch the gem list
* StoneCypher sighs. "sorry"
<Papierkorb> t-recx: path completion in pry?
ta_ has joined #ruby
<t-recx> yep
synthroid has joined #ruby
<StoneCypher> Papierkorb: you were correct
synthroi_ has quit [Ping timeout: 240 seconds]
ski7777 has quit [Quit: ZNC - http://znc.in]
<Papierkorb> t-recx: I don't know where that's used. Do you mean standard tab autocompletion of classes/methods, or file paths?
<Papierkorb> t-recx: Err, dunno about path completion, only know of class/method completion
<t-recx> when for instance I try to require './<tab>
duderonomy has joined #ruby
kies has joined #ruby
enterprisey has joined #ruby
<Papierkorb> It tries to complete methods for me if I do that
FastJack_ has joined #ruby
FastJack has quit [Ping timeout: 240 seconds]
FastJack_ is now known as FastJack
<t-recx> mmm
<t-recx> completing methods/class names works fine
banisterfiend has quit [Quit: Textual IRC Client: www.textualapp.com]
joelwallis has joined #ruby
br0d1n has joined #ruby
gigetoo has joined #ruby
<mkillebrew> oh, I had to Regex.escape(variable) before using it in gsub
<StoneCypher> is a Rakefile supposed to automatically pick tasks up from /lib/tasks?
mooser has joined #ruby
<StoneCypher> oh, if there's no desc it doesn't show
dionysus69 has joined #ruby
hahuang65 has joined #ruby
<mkillebrew> how can I print a multi-line string with indentation on each line?
milardovich has quit []
ionte has quit [Ping timeout: 240 seconds]
hahuang61 has quit [Ping timeout: 240 seconds]
<allisio> mkillebrew: How about `gsub("\n", "\n ")`?
ionte has joined #ruby
<havenwood> \t
FastJack has quit [Quit: leaving]
<allisio> /t
Bock has quit [Read error: Connection reset by peer]
futilegames has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
millerti has joined #ruby
A124 has quit [Read error: No route to host]
millerti has quit [Client Quit]
moei has quit [Quit: Leaving...]
Kug3lis has joined #ruby
A124 has joined #ruby
shoutsid has quit [Remote host closed the connection]
ski7777 has joined #ruby
cdg has quit [Ping timeout: 246 seconds]
mim1k has joined #ruby
<Mon_Ouie> You still need to indent the first line with that
JoshS has quit [Quit: Leaving]
br0d1n has quit [Remote host closed the connection]
mooser has quit []
Rodya_ has joined #ruby
mim1k has quit [Ping timeout: 264 seconds]
lhambley has quit [Quit: Textual IRC Client: www.textualapp.com]
Xiti has joined #ruby
gigetoo has quit [Ping timeout: 240 seconds]
tolerablyjake has joined #ruby
SeepingN has joined #ruby
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
skweek has quit [Ping timeout: 246 seconds]
<patarr> Can I only use RSpec's expect() on doubles?
<patarr> I would like to create a test that checks whether a method was called on an object, but I don't want to stub that object. I only want to "spy" it.
br0d1n has joined #ruby
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 256 seconds]
dionysus70 is now known as dionysus69
olivierjanss has quit [Quit: Connection closed for inactivity]
mlehrer has quit [Quit: ZNC 1.6.2 - http://znc.in]
mlehrer has joined #ruby
kazo has quit [Quit: Page closed]
<havenwood> Mon_Ouie: Good point.
<havenwood> mkillebrew: prepend("\t").gsub("\n", "\n\t")
lenwood has joined #ruby
Deviation has quit [Ping timeout: 260 seconds]
machinewar has joined #ruby
<apeiros> hanmac: heh, rare enough that nobu is wrong about something ruby :D
Rodya_ has quit [Remote host closed the connection]
joelwallis has quit []
ColeHub has joined #ruby
Rodya_ has joined #ruby
<Mon_Ouie> prepend is in-place though, prefer String#+ if you don't want that to happen
<havenwood> another good point
bkxd has joined #ruby
<havenwood> hmm, what would be a nice way with just regexp?
lenwood has quit [Quit: Konversation terminated!]
lenwood has joined #ruby
Rodya_ has quit [Remote host closed the connection]
<Mon_Ouie> >> "foo\nbar\nbaz".gsub(/^/, "\t") # seems to work
<ruby[bot]> Mon_Ouie: # => "\tfoo\n\tbar\n\tbaz" (https://eval.in/767088)
<matthewd> patarr: There's a method for that -- to make the stub re-call the original
millerti has joined #ruby
<havenwood> Mon_Ouie: that's nice
<havenwood> mkillebrew: ^
Rodya_ has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
govg has quit [Ping timeout: 260 seconds]
TomyLobo2 has joined #ruby
Rodya_ has quit [Remote host closed the connection]
tekk has quit [Quit: ZNC - http://znc.in]
ColeHub has quit [Quit: Snooze.]
TomyLobo has joined #ruby
TomyLobo2 has quit [Ping timeout: 240 seconds]
moei has joined #ruby
lxsameer has joined #ruby
jphase has quit [Read error: No route to host]
jphase has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
Arpanet69 has quit [Ping timeout: 268 seconds]
Yxhuvud has quit [Read error: Connection reset by peer]
tildes_ has quit [Ping timeout: 240 seconds]
ColeHub has joined #ruby
chwood has joined #ruby
Yxhuvud has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Mon_Ouie has quit [Read error: No route to host]
marxarelli is now known as marxarelli|afk
Mon_Ouie has joined #ruby
govg has joined #ruby
papillon has joined #ruby
Coldblackice has quit [Read error: Connection reset by peer]
papillon is now known as Aete
synthroid has quit []
millerti has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ColeHub has quit [Quit: Snooze.]
Aete has quit [Client Quit]
Coldblackice has joined #ruby
chwood has quit [Quit: Leaving]
<j416> fak, wrong channel
<j416> but, there you go.
<j416> :D
<j416> apologies
dopamean_ has quit [Ping timeout: 256 seconds]
qmr has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
marxarelli|afk is now known as marxarelli
Coldblackice has quit []
lenwood has quit [Ping timeout: 246 seconds]
prrpl has quit [Quit: leaving]
hahuang61 has joined #ruby
tildes has joined #ruby
crankhar1er has quit [Ping timeout: 260 seconds]
jusa has quit [Ping timeout: 260 seconds]
dviola has joined #ruby
hahuang61 has quit [Ping timeout: 268 seconds]
KnownSyntax has quit [Remote host closed the connection]
Rodya_ has joined #ruby
FastJack has joined #ruby
bkxd has joined #ruby
enterprisey has quit [Ping timeout: 246 seconds]
aglorei has quit [Ping timeout: 240 seconds]
<baweaver> !spam j416
j416 was kicked from #ruby by ruby[bot] [spamming is a bannable offense, see http://ruby-community.com/pages/user_rules]
<Verity> wow
tildes has quit [Ping timeout: 268 seconds]
TheHodge has joined #ruby
tildes has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
<baweaver> !unban j416
br0d1n has quit [Quit: Leaving]
j416 has joined #ruby
futilegames has quit [Quit: futilegames]
Coldblackice has joined #ruby
KnownSyntax has joined #ruby
<baweaver> read banggood as some type of bad site, bit trigger happy
bsartek has joined #ruby
cdg has joined #ruby
rwb has quit [Ping timeout: 240 seconds]
ruby has joined #ruby
johnzorn has quit [Read error: Connection reset by peer]
johnzorn has joined #ruby
Rodya_ has quit [Remote host closed the connection]
aglorei has joined #ruby
enterprisey has joined #ruby
Rodya_ has joined #ruby
<j416> it does indeed look like one. I wonder how they came up with that name in the first place. o_O Thanks for unbanning.
__Yiota has joined #ruby
nofxxx has joined #ruby
tekk has joined #ruby
Rodya_ has quit [Remote host closed the connection]
__Yiota has quit [Client Quit]
Rodya_ has joined #ruby
nofxx has quit [Ping timeout: 268 seconds]
enterprisey has quit [Remote host closed the connection]
tildes has quit [Ping timeout: 260 seconds]
ColeHub has joined #ruby
gix has quit [Ping timeout: 260 seconds]
millerti has joined #ruby
t-recx has quit [Quit: t-recx]
kith has joined #ruby
PaulePanter has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
parus has quit [Remote host closed the connection]
Rodya_ has joined #ruby
yurikoles has quit [Remote host closed the connection]
ozcanesen has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ColeHub has quit [Quit: Snooze.]
twistedpixels_ has quit [Ping timeout: 240 seconds]
ColeHub has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dviola has quit [Quit: WeeChat 1.7]
__Yiota has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
twistedpixels_ has joined #ruby
ovaltine has quit [Remote host closed the connection]
jaegerca has joined #ruby
sepp2k has quit [Ping timeout: 260 seconds]
agent_white has quit [Quit: leaving]
xenops has joined #ruby
agent_white has joined #ruby
bkxd has joined #ruby
fuzzyhorns has quit [Quit: Leaving.]
ovaltine has joined #ruby
ColeHub has quit [Quit: Snooze.]
cow[baby] has quit [Quit: cow[baby]]
ColeHub has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
ldnunes has quit [Quit: Leaving]
Rodya_ has quit [Remote host closed the connection]
machinewar has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
snockerton has quit [Quit: Leaving.]
Rodya_ has quit [Remote host closed the connection]
xenops has quit [Quit: Textual IRC Client: www.textualapp.com]
mustmodify has joined #ruby
<mustmodify> Anyone know how I can have a windows user test that her build tools are installed?
<mustmodify> She's seeing "The 'nio4r' native gem requires installed build tools." but she swears she followed the installation instructions.
Rodya_ has joined #ruby
dionysus69 has quit [Ping timeout: 246 seconds]
Rodya_ has quit [Remote host closed the connection]
[Butch] has quit [Quit: I'm out . . .]
duckpupp1 has quit [Ping timeout: 256 seconds]
Rodya_ has joined #ruby
mim1k has joined #ruby
cow[baby] has joined #ruby
enterprisey has joined #ruby
cow[baby] has quit [Client Quit]
mim1k has quit [Ping timeout: 240 seconds]
nitric_ has joined #ruby
jamesaxl has quit [Quit: WeeChat 1.6]
nitric has quit [Ping timeout: 260 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tau has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
__Yiota has joined #ruby
spicerack has joined #ruby
<patarr> How do I have RSpec expect a method call at least once, but I don't know when?
<patarr> The method is called a few times with different parameters, but I don't care. I just want to check _one_ of the
cow[baby] has joined #ruby
ColeHub has quit [Quit: Snooze.]
ColeHub has joined #ruby
boz_ has quit [Quit: This computer has gone to sleep]
aupadhye has quit [Ping timeout: 258 seconds]
br0d1n has joined #ruby
cow[baby] has quit [Quit: cow[baby]]
<mustmodify> havenwood: thanks. Turns out she extracted the build tools but hadn't run commands to install them.
mustmodify has left #ruby [#ruby]
bsartek has quit [Quit: This computer has gone to sleep]
Fernando-Basso has quit [Quit: WeeChat 1.7]
baweaver is now known as baweaver_away
Jayson_Virissimo has joined #ruby
hxegon is now known as hxegon_afk
hxegon_afk is now known as hxegon
GodFather has quit [Ping timeout: 260 seconds]
jusa has joined #ruby
esObe_ has quit [Ping timeout: 260 seconds]
hahuang61 has joined #ruby
esObe_ has joined #ruby
blackwind_123 has quit [Ping timeout: 260 seconds]
jusa has quit [Ping timeout: 260 seconds]
hahuang61 has quit [Ping timeout: 256 seconds]
blackwind_123 has joined #ruby
zipper has quit [Ping timeout: 240 seconds]
gusrub has quit [Remote host closed the connection]
zipper has joined #ruby
cjk101010 has quit [Ping timeout: 240 seconds]
cjk101010 has joined #ruby
hekin has joined #ruby
twistedpixels_ has quit [Ping timeout: 260 seconds]
nitric has joined #ruby
agent_white has quit [Quit: bbl]
TomyLobo has quit [Ping timeout: 264 seconds]
nitric_ has quit [Ping timeout: 240 seconds]
<hekin> please help to find out the encoding for text in https://gist.github.com/leomayleomay/501cc224d27f3ec14289044a4ead6dbe, no luck with `str.encode('GB18030').force_encoding('UTF-8')`
<StoneCypher> what's the language inside
<hxegon> hekin: I'd try the venerable "file" command if you are on linux. OS X might have it too
<hekin> @StoneCypher it’s supposed to be Simplified Chinese
<StoneCypher> ...
<StoneCypher> it's utf8
<hekin> @hxegon `file` command with any option?
<hekin> StoneCypher: any way to make it readable?
<hxegon> hekin: just "file filename.whatever"
<hekin> @hxegon will try
<hekin> @hxegon it says `UTF-8`, sorry I didn’t make it clear at the first place, I meant to find a way of showing the text in a readable way
<hekin> str.force_encoding('GB18030').encode('UTF-8') gives me https://gist.github.com/leomayleomay/0ce0556237aa6deeeccfb886a6eb3db0, which is also invalid ...
ResidentBiscuit has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<lupine> see: charlock_holmes
<StoneCypher> hekin: it's utf8. stop trying to convert it from something else to utf8. it's already utf8.
<hekin> @StoneCypher yes, it’s UTF-8 in an encrypted way :)
<hekin> any way of decrypting it?
mikecmpbll has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Client Quit]
cow[baby] has joined #ruby
cow[baby] has quit [Client Quit]
<hxegon> hekin: not sure what you are asking. Is it actually encrypted?
claw has quit [Read error: Connection reset by peer]
<hxegon> pushing part of that text through google translate gives me "donkey doll ugly flesh chick fleece ridge Lie Lu Te donkeys step lower drainage magnesium abdomen Lu Lu Mang captive:"
twistedpixels_ has joined #ruby
gloscombe_ has joined #ruby
<manveru> looks like chinese spam mail
ruby has quit []
biberu has quit []
polishdub has quit [Quit: Leaving]
<hekin> @hxegon no, it’s not encrypted, it’s just encoded in a unreadable way
<hekin> @manveru no, it’s not a spam :)
rwb has joined #ruby
claw has joined #ruby
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
bsartek has joined #ruby
claw has quit [Ping timeout: 264 seconds]
hutch34 has quit [Ping timeout: 256 seconds]
lxsameer has quit [Quit: WeeChat 1.7]
<hekin> @al2o3-cr you want to tell me it’s actually Vietnamese?
<hekin> :D
ozcanesen has joined #ruby
<al2o3-cr> hekin: you sick?
<hekin> @al2o3-cr why’s that?
cow[baby] has joined #ruby
<hekin> it’s teeth, not mask ..
claw has joined #ruby
<al2o3-cr> dick turpin wore a mask
<StoneCypher> hekin: it's just utf8. i don't know why you're asserting that it's unreadable or encrypted. it's perfectly normal utf8.
<StoneCypher> the first encoding detector i tried opened it right up without problems
<hekin> @StoneCypher i try to find out the content of the text, i tried to `puts str` directly, it’s not readable, just some random text
t-recx has joined #ruby
<al2o3-cr> hekin: wtf
agent_white has joined #ruby
esObe_ has quit [Remote host closed the connection]
<hekin> al2o3-cr: ?
hutch34 has joined #ruby
<al2o3-cr> heftig: ??
<hxegon> How is it not readable?
esObe_ has joined #ruby
hxegon is now known as hxegon_afk
<hekin> @hxegon_afk thank you for your help, never mind, will try to figure it out myself
<j416> hekin: given the date format it looks, to me, chinesey
<j416> but I can't figure out the encoding
DroidBurgundy has quit []
<al2o3-cr> hekin: good luck ;)
<al2o3-cr> IT'S UNICODE
* StoneCypher sighs
<hekin> @j416 thank you for your help
patarr has quit [Ping timeout: 264 seconds]
<j416> al2o3-cr, StoneCypher: obviously garbled in some way?
<hekin> @StoneCypher thank you for your help, sorry for wasting your time
<StoneCypher> j416: nope
<j416> how can you be so sure?
<al2o3-cr> ffs
<j416> it's an honest question
<j416> I'm interested to learn.
masta`` has quit []
esObe_ has quit [Ping timeout: 268 seconds]
esObe_ has joined #ruby
naprimer_2 has quit [Ping timeout: 240 seconds]
marxarelli is now known as marxarelli|afk
marxarelli|afk is now known as marxarelli
naprimer has joined #ruby
Jayson_Virissimo has quit []
esObe_ has quit [Ping timeout: 260 seconds]
enterprisey has quit [Remote host closed the connection]
<StoneCypher> j416: how can i be sure that unicode isn't garbled? by the mechanism i already described earlier. i looked at it.
<StoneCypher> it's text.
DTZUZU has joined #ruby
bkxd has joined #ruby
chouhoul_ has joined #ruby
<j416> StoneCypher: well it's not very readable is it
ixti has quit [Quit: WeeChat 1.7]
<al2o3-cr> hekin: Encoding.list.map(&:name).each { |enc| puts foo.encode(enc) rescue nil } # check em' all
<al2o3-cr> it's still unicode
chouhoulis has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 260 seconds]
chouhoul_ has quit [Ping timeout: 240 seconds]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ozcanesen has quit [Quit: Textual IRC Client: www.textualapp.com]
ddffg has quit [Quit: Leaving]
baweaver_away is now known as baweaver
<al2o3-cr> who-tf still uses iso-8859-1 and binary
<elomatreb> 8859-15 is for some reason still very common in Germany
cow[baby] has quit [Quit: cow[baby]]
mim1k has joined #ruby
<j416> hekin: found it
cow[baby] has joined #ruby
thistle has quit [Read error: Connection reset by peer]
<hekin> @j416 yeah, that’s expected, how did you do that?
thistle has joined #ruby
<j416> I've really no idea, but I guess it's an encoding that iconv doesn't support? http://www.mandarintools.com/email.html
<j416> hekin: do you know the encoding?
<hekin> @j416 i have no idea what the encoding should be for this text …
<al2o3-cr> the encoding is utf8
mim1k has quit [Ping timeout: 260 seconds]
ozcanesen has joined #ruby
cow[baby] has quit [Quit: cow[baby]]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[baby] has joined #ruby
cow[baby] has quit [Client Quit]
thistle has quit [Read error: Connection reset by peer]
<al2o3-cr> "ÎҵĻØ" is utf8
thistle has joined #ruby
<al2o3-cr> "ÎҵĻØ" ascii-8bit is
<al2o3-cr> >> "ÎҵĻØ".b
charliesome has joined #ruby
<ytti> in my experience early UF8 adopters were people using 7bit ascii characters solely
VladGh has joined #ruby
<ytti> it took quite bit longer for people using umlauts etc to join the bandwagon
<al2o3-cr> yada yada yada
<al2o3-cr> no disrespect
h8niggggggers has joined #ruby
<al2o3-cr> >> "»".bytes
<al2o3-cr> >> "»".codepoints
<al2o3-cr> 1 byte vs 3 byte
cow[baby] has joined #ruby
<h8niggggggers> How do you call the interpreter bot?
<al2o3-cr> ban for u
jgt has quit [Ping timeout: 240 seconds]
<al2o3-cr> go hate somewhere else
<havenwood> !badnick h8niggggggers
<h8niggggggers> Hating niggers is hating crime and bad things
cow[baby] has quit [Client Quit]
<h8niggggggers> How is hating niggers bad again?
<h8niggggggers> Have wood your bot sux
h8niggggggers was banned on #ruby by havenwood [*!ac3a0c01@gateway/web/freenode/ip.172.58.12.1]
h8niggggggers was kicked from #ruby by havenwood [Your behavior is not conducive to the desired environment.]
* havenwood tries to wake ruby[bot] from slumber
s1kx has joined #ruby
<hfp> One more question... In my .profile, I'm setting a variable within an if statement with `_myvar=true`. Then I try to use it in my .bashrc and in the terminal with `echo $_myvar` but I'm getting an empty var. What am I missing?
thistle has quit [Read error: Connection reset by peer]
thistle has joined #ruby
<hekin> hfp: have you run `source ~/.bashrc`?
skweek has joined #ruby
SeepingN has joined #ruby
<hfp> hekin: I'm sorry, did I ask a bash question here just now? If so, I meant to post it in #bash :s
Guest916 has joined #ruby
<al2o3-cr> hfp: you sure did
<al2o3-cr> but no worries, you is legit
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hfp> haha sorry about that, bash is /4 in my IRC client, and ruby is /14... I guess I got confused
<al2o3-cr> you got to many channels :)
<al2o3-cr> shit, weechat doesn't alphabetize