apeiros_ changed the topic of #ruby to: Ruby 2.1.2; 2.0.0-p481; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
sepp2k1 has joined #ruby
timonv has joined #ruby
unop_ has joined #ruby
yubrew has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
sepp2k has quit [Ping timeout: 245 seconds]
atmosx has joined #ruby
qhartman has quit [Quit: Ex-Chat]
Takle has joined #ruby
Zenigor has joined #ruby
Deele has quit [Ping timeout: 255 seconds]
deathknight has joined #ruby
timonv has quit [Ping timeout: 245 seconds]
<deathknight> is this channel also the central channel for RoR speak?
dc has joined #ruby
d34th4ck3r has joined #ruby
<superscott[8]> deathknight: no - there is a #rubyonrails channel for that
nmokru has quit [Quit: nmokru]
yubrew has quit [Ping timeout: 264 seconds]
gwb3 has quit [Quit: leaving]
<deathknight> thank you superscott
yfeldblum has quit [Quit: Leaving...]
yfeldblum has joined #ruby
dc has quit [Remote host closed the connection]
andrewlio has quit [Quit: Leaving.]
oo_ has joined #ruby
testcore has quit [Quit: [BX] Reserve your copy of BitchX-1.3-git for the Commodore 64 today!]
lw has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
gondalier has joined #ruby
Takle has quit [Ping timeout: 244 seconds]
_djbkd has quit [Remote host closed the connection]
danman has joined #ruby
djbkd has joined #ruby
Inside has joined #ruby
lw has joined #ruby
lewix has joined #ruby
lewix has joined #ruby
* Inside shakes supa
jmbrown412 has quit [Remote host closed the connection]
<et09> mystartend = /,[0-9, ]*,[0-9, ]*,/.match(mylink.attributes['onclick'].to_s).to_s.split(",").map{|x|x.strip}.select{|x|x != ""}.map{|x|x.to_i} # jesus christ
danman has quit [Client Quit]
danman has joined #ruby
ehlovader has joined #ruby
willbarrettdev has quit [Quit: Leaving]
<ehlovader> evening everyone
aspires has quit []
hermanmunster has joined #ruby
toastynerd has quit [Remote host closed the connection]
<ehlovader> trying to setup rvm through ansible and am running into a small problem. the /usr/bin/env rvm isn't availble immediately
<ehlovader> any good way to do this? has anyone setup rvm through ansible?
phoo1234567 has quit [Quit: Leaving]
Zenigor has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
baroquebobcat has joined #ruby
gondalier has quit []
<ehlovader> hmm
<ehlovader> maybe, that seems to set the environment within the scope of a module though
<ehlovader> if I am setting the rvm env I may as well just use /usr/local/bin/rvm which I think is what it is by default
danman has quit [Ping timeout: 244 seconds]
<et09> just guessing
<ehlovader> yeah, thanks for the input
gondalier has joined #ruby
<ehlovader> it works the next time..
<ehlovader> like it isn't exporting the value into the current session
gondalier has quit [Client Quit]
<et09> does that fix it? heh
Kricir has quit [Remote host closed the connection]
<benzrf> wtf
Kricir has joined #ruby
DanielI has joined #ruby
DanielI has joined #ruby
DanielI has quit [Changing host]
<benzrf> why does sequel complain about a column being a restricted primary key
gondalier has joined #ruby
<et09> benzrf: in what context?
<benzrf> i'm using create
<matti> et09: Wow regex. Such code. Much redundancy.
<matti> et09: Re: the thing you've pasted ;]
GriffinHeart has quit [Ping timeout: 240 seconds]
<benzrf> oh
<benzrf> it thinks i shouldnt specify them
* benzrf rolls Eyes
Photism_ has joined #ruby
arrubin has joined #ruby
red_hulk has joined #ruby
red_hulk has quit [Read error: Connection reset by peer]
sdwrage_ has joined #ruby
ddv has quit [Ping timeout: 245 seconds]
alexju has joined #ruby
kaleido has quit [Ping timeout: 240 seconds]
dc has joined #ruby
ddv has joined #ruby
<et09> is there some limit to how much you can paste into an irb console
<et09> it seems to be hitting one
Gowie has quit [Ping timeout: 240 seconds]
<et09> (i guess the doge meme is already out in the open )
Photism has quit [Ping timeout: 240 seconds]
sdwrage has quit [Ping timeout: 240 seconds]
senayar has quit []
zz_karupa is now known as karupa
shinobi_one has quit [Quit: shinobi_one]
Hobogrammer has quit [Ping timeout: 264 seconds]
lewix has quit [Ping timeout: 245 seconds]
gwb3 has joined #ruby
DanielI has quit [Quit: Leaving]
spastorino has quit [Quit: Connection closed for inactivity]
noob101 has quit [Quit: Page closed]
<matti> et09: LOL
sepp2k1 has quit [Read error: Connection reset by peer]
<matti> et09: 1) Get pry; 2) Learn about "edit"; 3) Benefit.
sdwrage_ has quit [Quit: This computer has gone to sleep]
<et09> hmm?
<matti> et09: I mean, irb... man, so '70s ;]
mercwithamouth has joined #ruby
hpoydar has joined #ruby
<matti> et09: But to be serious.
<et09> edit? what?
<matti> et09: It's more likely that the terminal buffering works against you.
<et09> sounds about right
<matti> et09: I moved to pry with "edit" - this will start $EDITOR (vim) and then I can paste more sensibly if needed to.
sdwrage_ has joined #ruby
t_3212 has quit [Ping timeout: 264 seconds]
<et09> ohh.
<et09> well i'm using rails c, more accurately
<matti> Rails c?
<et09> console
<matti> Ah.
baroquebobcat has quit [Ping timeout: 264 seconds]
noob101 has joined #ruby
hpoydar has quit [Ping timeout: 240 seconds]
dc has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 272 seconds]
mercwithamouth has joined #ruby
cpruitt has joined #ruby
x1337807x has joined #ruby
d34th4ck3r has quit [Quit: zzz]
ephemerian has quit [Quit: Leaving.]
vt102 has quit [Ping timeout: 272 seconds]
lewix has joined #ruby
Arkaniad has quit [Ping timeout: 260 seconds]
mikepack_ has joined #ruby
abstrakt has joined #ruby
Hobogrammer has joined #ruby
pietr0 has quit [Quit: pietr0]
x1337807x has quit [Ping timeout: 255 seconds]
andrewjanssen has quit [Quit: Leaving...]
mikepack has quit [Ping timeout: 240 seconds]
spicerack has joined #ruby
RyanV has joined #ruby
andrewjanssen has joined #ruby
mikepack_ has quit [Ping timeout: 244 seconds]
nateberkopec has quit [Quit: Leaving...]
CaptainJet has quit [Ping timeout: 255 seconds]
gondalier has quit []
sdwrage_ has quit [Quit: This computer has gone to sleep]
hello_nate has joined #ruby
deathknight has quit [Ping timeout: 244 seconds]
marr has quit [Ping timeout: 240 seconds]
Zebroid has joined #ruby
gondalier has joined #ruby
hello_nate has quit [Remote host closed the connection]
andrewjanssen has quit [Ping timeout: 240 seconds]
dayepa has quit [Quit: dayepa]
<xybre> dorei: If you find that unicode gem let me know, it sounds useful. If you can't find it, it might be possible to make one without too much grief.
jtiggo has joined #ruby
chrstphrhrt has quit [Quit: chrstphrhrt]
Kricir has quit [Remote host closed the connection]
CodeBunny has quit [Ping timeout: 245 seconds]
<xybre> et09: pry-rails
<xybre> et09: if you're on OSX you can use iTerm's "paste slowly" option in the edit menu. You might be running up against the readline limit though.
ahmed_ has joined #ruby
ahmed_ has left #ruby [#ruby]
sinkensabe has joined #ruby
diegoviola has joined #ruby
b00stfr3ak has quit [Ping timeout: 272 seconds]
bmurt has joined #ruby
Kricir has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
Zebroid has quit [Ping timeout: 272 seconds]
Rahul_Roy has quit [Quit: Connection closed for inactivity]
jonahR has quit [Remote host closed the connection]
yubrew has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
jonahR has joined #ruby
edgarjs is now known as edgarjs_afk
sinkensabe has quit [Ping timeout: 255 seconds]
sevenseacat has joined #ruby
francisfish has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
jonahR has quit [Ping timeout: 255 seconds]
d34th4ck3r has joined #ruby
francisfish has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
sopheny has joined #ruby
SilverKey has joined #ruby
SilverKey has quit [Max SendQ exceeded]
chrstphrhrt has joined #ruby
bbloom has quit [Quit: Computer has gone to sleep.]
bricker`work has quit [Ping timeout: 255 seconds]
jfelchner999 has joined #ruby
<et09> can i get the mime type of a url without downloading it?
jfelchner999 has quit [Client Quit]
lewix has quit [Ping timeout: 255 seconds]
jfelchner999 has joined #ruby
<DouweM> et09: how would that work?
yakko_ has joined #ruby
<DouweM> MIME type is a property of the file, not of the URL per se
Rollabunna has joined #ruby
<DouweM> extension may hint at it, but the URL doesn't necessarily have an extension and the extension isn't necessarily correct
fluve has joined #ruby
Alina-malina has quit [Ping timeout: 255 seconds]
GeraldoRamos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dideler has joined #ruby
Alina-malina has joined #ruby
sgen has joined #ruby
jfelchner999 is now known as jfelchner
kireevco has quit [Quit: Leaving.]
tkuchiki has joined #ruby
yakko has quit [Ping timeout: 245 seconds]
<et09> that's annoying, ok
saarinen has quit [Quit: saarinen]
<et09> DouweM: possibly in the headers, OPTIONS or osmething, i dunno
bradleyp_ has joined #ruby
superscott[8] has quit []
mgberlin has joined #ruby
<DouweM> hmm, you could do a HEAD request and hope the server properly implements it. It'd still be downloading, but you won't need the entire file
<DouweM> (I thought you meant no downloading at all, just parsing the URL somehow)
Hanmac1 has joined #ruby
bradleyprice has quit [Read error: Connection reset by peer]
mjsmith2 has joined #ruby
<et09> probably too risky
Rollabunna has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
Hanmac has quit [Ping timeout: 244 seconds]
rlazoti has quit [Quit: Lingo - http://www.lingoirc.com]
jfelchner has quit [Remote host closed the connection]
jfelchner has joined #ruby
<havenwood> et09: HEAD is widely supported. Good way to get mime type methinks.
<havenwood> et09: Arbitrary URLs?
<xybre> Risky how??
kaihara has joined #ruby
Kricir has quit [Remote host closed the connection]
<et09> maybe i'll try that then
<toretore> supported, but most likely it will just cut off the rendered body from the app server
<et09> that's OK
<toretore> so it's not "cheaper"
<DouweM> cheaper for the server no, cheaper for the connection and the client yes
cpruitt has quit [Quit: cpruitt]
danijoo has quit [Read error: Connection reset by peer]
_djbkd has joined #ruby
danijoo has joined #ruby
jfelchner999 has joined #ruby
_djbkd has quit [Read error: Connection reset by peer]
_djbkd has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
naiyte has quit [Remote host closed the connection]
djbkd has quit [Ping timeout: 240 seconds]
spicerack has quit [Quit: Textual IRC Client: www.textualapp.com]
jfelchner has quit [Ping timeout: 244 seconds]
Kricir has joined #ruby
dc has joined #ruby
GriffinHeart has joined #ruby
lw has quit [Quit: s]
ixti has quit [Ping timeout: 272 seconds]
lw has joined #ruby
lw has quit [Client Quit]
deric_skibotn has quit [Ping timeout: 272 seconds]
gtc has quit [Remote host closed the connection]
robustus has quit [Ping timeout: 252 seconds]
cpruitt has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
deathknight has joined #ruby
robustus has joined #ruby
cpruitt has quit [Client Quit]
benzrf is now known as benzrf|offline
benlieb has joined #ruby
gtc has joined #ruby
andrewjanssen has joined #ruby
jonahR has joined #ruby
cpruitt has joined #ruby
Arkaniad has joined #ruby
therealGent has quit [Ping timeout: 255 seconds]
freeone3000 has joined #ruby
Kricir has quit [Remote host closed the connection]
<freeone3000> Why can https://gist.github.com/freeone3000/149f65fe9f7a8fa094ed not find HTTParty?
aspires has joined #ruby
icole has quit [Remote host closed the connection]
phinfonet has quit []
<sevenseacat> the file to require is probably not called HTTParty
CaptainJet has joined #ruby
Gowie has joined #ruby
Tricon has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
benzrf|offline is now known as benzrf
brookeas01 has quit [Quit: WeeChat 0.4.2]
GeraldoRamos has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
kaihara has quit [Quit: Leaving...]
<freeone3000> xybre: Well, it... ah, right, works on windows due to case-insensitivity. Thanks.
sopheny has quit [Quit: Quitte]
<sevenseacat> case-insensitive filesystems are a huge wtf
chrishough has quit [Quit: chrishough]
fresham has joined #ruby
<xybre> Filesystems are a huge WTF.
yetanotherdave has quit [Ping timeout: 264 seconds]
FrediVosberg has quit [Ping timeout: 244 seconds]
<ari-_-e> the upper/lower case distinction is a huge wtf
<ari-_-e> natural language is a huge wtf
zerolith has joined #ruby
<xybre> The real WTF is that we use bits of text to emulate filing cabinets and still can't figure out where the hell we put anything.
<freeone3000> Have you ever found something in a filing cabinet?
sdwrage has joined #ruby
johnmolina has joined #ruby
<xybre> Yes. Files.
bmurt has quit []
zerolith has left #ruby [#ruby]
<ari-_-e> I found some files on my filesystem
<xybre> I found some systems in my system files.
<shevy> I found some cats in my system.
<shevy> xybre that recently bit me actually
<shevy> a few months ago I changed a few paths to images
jarto has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
<shevy> then I found myself running grep to find all files that still linked to the old, changed path now
<shevy> hardcoding links can be annoying
baroquebobcat has joined #ruby
fresham has left #ruby [#ruby]
sdwrage has quit [Client Quit]
andrewjanssen has joined #ruby
timonv has joined #ruby
Georg3 has joined #ruby
<xybre> ouch
sdwrage has joined #ruby
Zebroid has joined #ruby
edgarjs_afk is now known as edgarjs
IceDragon has quit [Ping timeout: 240 seconds]
IceDragon has joined #ruby
edgarjs is now known as edgarjs_afk
MissionCritical has quit [Ping timeout: 276 seconds]
dc has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 272 seconds]
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
chrstphrhrt has quit [Quit: chrstphrhrt]
northfurr has quit [Read error: Connection reset by peer]
Zebroid has quit [Ping timeout: 244 seconds]
gondalier has quit []
jahkobi has quit [Quit: jahkobi]
<RubyPanther> shevy: just skip grep and go straight to sed
little_fu has quit [Remote host closed the connection]
edgarjs_afk is now known as edgarjs
northfurr has joined #ruby
<xybre> no
<xybre> ag
<xybre> or just perl :p
<xybre> aka sed++
mjsmith2 has quit [Remote host closed the connection]
cpruitt has quit [Quit: cpruitt]
<Georg3> hey xybre do you know how you could have the working directory in macvim?
<Georg3> like for the current open file.
<abstrakt> Georg3, what do you mean by "could have it"
Gowie has quit [Quit: leaving]
<abstrakt> Georg3, :pwd will tell you where you are right now
maestrojed has joined #ruby
_djbkd has quit [Remote host closed the connection]
<Georg3> abstrakt: sorry that's a dumb way to put it, I know pwd will show me it, but I'm saying in the editor say on the bottom line, have it show the current file path.
<abstrakt> Georg3, I usually launch macvim from the terminal after I cd in to whatever folder is relevant
<xybre> Georg3: :pwd shows the directory, :cd changes it.
<abstrakt> Georg3, it does that already, at least it does for me, look at :help statusline
<xybre> Georg3: Oh you want a status line
<Georg3> ah ya that seems like it's it, let me see how to enable it.
chrstphrhrt has joined #ruby
edgarjs is now known as edgarjs_afk
<abstrakt> Georg3, incidentally my title bar shows my my pwd, while my statusline shows me the relative path to the current file, from the pwd
<abstrakt> Georg3, something like this aughta do it
<abstrakt> Georg3, :set statusline=[%n]\ %<%.99f\ %h%w%m%r%y%=%-16(\ %l,%c\ %)%P
<Georg3> both right now just show me "index.html"
Avahey_ has joined #ruby
<xybre> Georg3: Mine works like abstrakt's, I use https://github.com/bling/vim-airline#vim-airline- though.
andrewjanssen has quit [Quit: Leaving...]
Skymaster has joined #ruby
<Skymaster> sup noobs
<abstrakt> Skymaster, howdy there super wanker
<abstrakt> Skymaster, got anything to contribute other than insults?
dayepa has joined #ruby
<Skymaster> I see ruby has a community social problem. I'm gonna try and fix that
<Skymaster> this is even worse than the common lisp community social problem.
<xybre> apeiros can help you with that Skymaster
<sevenseacat> oh he changed his name, but same old schtick
<Skymaster> I'm Sky. That's all you need to know.
<Skymaster> I'm trying to help people migrate away from ruby and it's toxic community and sub-par language.
<sevenseacat> good luck with that.
troyready has quit [Remote host closed the connection]
<Georg3> ultimate troll?
<sevenseacat> <3 ruby
mgberlin has quit [Remote host closed the connection]
<xybre> Just /ignore it.
baroquebobcat has quit [Quit: baroquebobcat]
<Skymaster> Ignoring reality doesn't solve the ruby problem.
Kricir has joined #ruby
<Skymaster> Luckily there is a solution. Java.
<xybre> Georg3: I should check out the cryptic code for statuslines. It reminds me of prompt code mixed with sprintf format.
<Skymaster> As twitter discovered, Java hast he ability to solve all of ruby's shortcomings.
tus has quit []
<Skymaster> not gonna bother. Ruby community is unsavable. I'm outta here.
Kricir has quit [Read error: Connection reset by peer]
Skymaster has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
<sevenseacat> that guy's hilarious.
<xybre> I have his IP now.
Kricir has joined #ruby
freeone3000 has quit [Ping timeout: 245 seconds]
<toretore> don't hack him
hamakn has quit [Remote host closed the connection]
<pontiki> dammit, i miss all the fun
<sevenseacat> ruby is dead. long live ruby.
<xybre> In my meaner days I'd log into one of the less friendly networks throug ha proxy and taunt script kiddies and then when they ask for my IP I'd give them someone else's.
braincra- has joined #ruby
<xybre> Only those deserving of course.
PanPan has joined #ruby
Atrumx has joined #ruby
<abstrakt> ruby might be slow, but its community is 10x better than Java's
kireevco has joined #ruby
Kricir has quit [Ping timeout: 240 seconds]
<xybre> Java has a community?
<Georg3> =P
<Georg3> xybre: would you recommend nerd tree?
<xybre> Georg3: Not really, Vim has a directory viewer that ships with it.
braincrash has quit [Ping timeout: 245 seconds]
<Georg3> xybre: wow vim really is this endless pit of discovery.
<xybre> Georg3: Truer words never spoken
<abstrakt> Georg3, yes
<abstrakt> Georg3, the vim directory thing sucks
<abstrakt> nerdtree = win
<abstrakt> Georg3, and go to #vim this is off topic in #ruby
MissionCritical has joined #ruby
momomomomo has quit [Quit: momomomomo]
<Georg3> abstrakt: you're right, my bad. I thought I'd give here a try since #vim seems like a bike gang where locals are not welcome =P
<abstrakt> Georg3, that makes no sense at all but ok
<xybre> I :e . often, but never found the desire for more than netrw.
<abstrakt> Georg3, #vim is pretty friendly if (like any other channel) you can do a little bit to help yourself and you're not a total idiot/help-vampire
cpruitt has joined #ruby
<abstrakt> xybre, to each their own, nerdtree still has features that :e does not
<Georg3> abstrakt: it was my poor attempt at my joke. I'll give it a check if I get stuck.
<Georg3> abstrakt: appreciate the advice.
<abstrakt> Georg3, and don't just give it a check if you get stuck, it's a useful place all round
therealGent has joined #ruby
rkazak_ has quit [Quit: rkazak_]
<abstrakt> Georg3, i.e. it's OT here so just go there and hang out for a bit
Arkaniad has quit [Ping timeout: 272 seconds]
<Georg3> abstrakt: will do. sorry I'm not certain on what OT means?
<abstrakt> Georg3, off topic
AlSquire has joined #ruby
<Georg3> abstrakt: got it.
lewix has joined #ruby
aspires has quit []
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kyb3r_ has quit [Read error: Connection reset by peer]
tjcravey has quit [Quit: Textual IRC Client: www.textualapp.com]
mgberlin has joined #ruby
abstrakt has quit [Quit: Leaving]
kireevco has quit [Quit: Leaving.]
kyb3r_ has joined #ruby
goleldar has quit [Ping timeout: 240 seconds]
dorei has quit []
hamakn has joined #ruby
rezzack has quit [Quit: Leaving.]
papercode has quit [Quit: WeeChat 0.4.3]
aniM has joined #ruby
jfelchner999 has quit [Ping timeout: 244 seconds]
lw has joined #ruby
Georg3 has quit [Quit: Georg3]
MetaCosm has joined #ruby
Georg3 has joined #ruby
deathknight has quit [Ping timeout: 244 seconds]
brunops has quit [Ping timeout: 240 seconds]
Cache_Money has joined #ruby
johnmolina has quit [Remote host closed the connection]
M-Technic has quit [Quit: leaving]
johnmolina has joined #ruby
johnmolina has quit [Read error: Connection reset by peer]
johnmolina has joined #ruby
fgo has joined #ruby
ghr has joined #ruby
brunops has joined #ruby
sdwrage_ has joined #ruby
yubrew has joined #ruby
sdwrage has quit [Ping timeout: 255 seconds]
bbloom has joined #ruby
chrishough has joined #ruby
stytown has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
sdwrage_ has quit [Ping timeout: 240 seconds]
andrewjanssen has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
Zebroid has joined #ruby
ari-_-e has quit [Ping timeout: 272 seconds]
datafirm has quit [Quit: Computer has gone to sleep.]
glebm_ has joined #ruby
datafirm has joined #ruby
<Georg3> Hey so I'm going through the learn ruby testfirst.org course, and I need to have all the RSpec's test. So in this test, I get a new time object, yield the block, then get another new time and subtract the difference. So it works fine, but on the later tests they use a stub on a time object, can someone point me in the right direction in using that to calculate the time it takes to yield the given block?
tokik has joined #ruby
andrewjanssen has quit [Quit: Leaving...]
CorpusCallosum has quit [Read error: Connection reset by peer]
zkay11 has joined #ruby
<Georg3> I assume I refer to it via the symbol it's assigned? Here's the pastebin of the two tests - http://pastebin.com/EQShRg9X - the second one is the one I'm having trouble understanding.
glebm has quit [Ping timeout: 264 seconds]
yetanotherdave has joined #ruby
sinkensabe has joined #ruby
nicar has quit [Ping timeout: 240 seconds]
<shevy> wat
ari-_-e has joined #ruby
machete has quit [Ping timeout: 252 seconds]
nicar has joined #ruby
<shevy> so what is the precise question
Zebroid has quit [Ping timeout: 240 seconds]
baroquebobcat has joined #ruby
machete has joined #ruby
codeurge has joined #ruby
<Georg3> sorry one sec let me try and clarify that.
<pontiki> Georg3: the stub is returning the same value every time Time.now is called, whatever the value of @eleven_am is
<pontiki> so the different between @eleven_am and @eleven_am must be 0 (zero)
MindfulMonk has quit [Ping timeout: 260 seconds]
M-Technic has joined #ruby
<pontiki> regardless of what happens in the block
datafirm has quit [Ping timeout: 272 seconds]
<pontiki> to see this, put `sleep 5` inside the stubbed block
<pontiki> it should still pass
<Georg3> sorry this is the test I'm having trouble with
nug has quit [Ping timeout: 260 seconds]
sinkensabe has quit [Ping timeout: 264 seconds]
mattstratton has joined #ruby
Davey has quit [Ping timeout: 260 seconds]
<pontiki> ah, ok
<Georg3> do I really need to check for a "fake_time"
<Georg3> ?
francisfish has joined #ruby
<pontiki> you are not checking for fake_time, you're reassigning it
yeltzooo has quit [Ping timeout: 260 seconds]
jonahR has quit [Quit: ¡Adios amigos, me fui para el carajo!]
kireevco has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<Georg3> here's what I have now, it passes the first four tests. - http://pastebin.com/aNNp8W7Y
lethjakman has joined #ruby
<pontiki> the first time Time.now gets called, fake_time should have the value @eleven_am. the second time it's called after the block, it should be @eleven_am plus 60 seconds
radic has quit [Ping timeout: 240 seconds]
<pontiki> you're calling Time.new, which isn't stubbed
djbkd has joined #ruby
yeltzooo has joined #ruby
gnarld_ has joined #ruby
Davey has joined #ruby
<Georg3> pontiki: I'm thinking I don't get how I'm supposed to utilize the Time.stub which they call before the call my method?
radic has joined #ruby
<Georg3> Here's the entire spec.rb
Takle has joined #ruby
Kricir has joined #ruby
MindfulMonk has joined #ruby
<pontiki> then read up some more on stubs, mocks and doubles
francisfish has quit [Ping timeout: 272 seconds]
<pontiki> look at line 27. you are directing the method :now to be a stub which returns the value @eleven_am. But your code under test is not using Time.now, it's using Time.new.
<pontiki> do you see the difference?
<Georg3> Absolutely
<pontiki> so why do you expect Time.new to use the stub set for Time.now?
<Georg3> how would I access the method :now (isn't :now actually a symbol?) - it's not passed into the method I'm writing which is measure
<pontiki> Time.now
<pontiki> or Time.send(:now)
ixti has joined #ruby
<Georg3> ok and since there isn't always a stub being used, would I want to first check to see if it exists? otherwise generate a new time?
braincra- has quit [Quit: bye bye]
brain_shim has joined #ruby
<pontiki> no, the point of a stub is that your code shouldn't care at all
<pontiki> Time.now returns the current time
<Georg3> correct, hmm ok 1 sec I think I've got it.
jarto has joined #ruby
djbkd has quit [Ping timeout: 272 seconds]
Takle has quit [Ping timeout: 264 seconds]
Rollabunna has joined #ruby
braincrash has joined #ruby
ascarter has joined #ruby
duncannz has quit [Ping timeout: 240 seconds]
<Georg3> ok I got it, I don't know why it was hard for me to wrap my head around that...
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maestrojed has quit [Quit: Computer has gone to sleep.]
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
Rollabunna has quit [Ping timeout: 264 seconds]
Kricir has quit [Remote host closed the connection]
<Georg3> Thanks pontiki - got em all to pass with http://pastebin.com/bWq8dcRw
sdwrage has quit [Quit: This computer has gone to sleep]
Arkaniad has joined #ruby
bradleyp_ has quit [Remote host closed the connection]
Arkaniad|Laptop has joined #ruby
bradleyprice has joined #ruby
NivenHuH has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lethjakman has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
shevy has quit [Ping timeout: 244 seconds]
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradleyprice has quit [Ping timeout: 244 seconds]
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdwrage has quit [Client Quit]
ixti has quit [Ping timeout: 264 seconds]
yfeldblum has quit [Remote host closed the connection]
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> great
St_Marx has joined #ruby
jumblemuddle has quit [Quit: Death]
freerobby has quit [Quit: Leaving.]
johnmolina has quit []
Georg3 has quit [Quit: Georg3]
j_mcnally has joined #ruby
timonv has joined #ruby
shevy has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
sdwrage has joined #ruby
coderhs has joined #ruby
GriffinHeart has joined #ruby
coderhs has quit [Client Quit]
timonv has quit [Ping timeout: 272 seconds]
relajo has joined #ruby
sgen has quit [Quit: Leaving]
zkay11 has quit [Quit: Leaving.]
lewix has quit [Remote host closed the connection]
kaihara has joined #ruby
lewix has joined #ruby
hamakn has quit [Remote host closed the connection]
djbkd has joined #ruby
Zebroid has joined #ruby
GeraldoRamos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kaihara has quit [Client Quit]
lewix has quit [Ping timeout: 240 seconds]
Steve21 has joined #ruby
kaihara has joined #ruby
pietr0 has joined #ruby
kireevco has quit [Quit: Leaving.]
kireevco has joined #ruby
Steve21 has quit [Client Quit]
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
arrubin has quit [Quit: Textual IRC Client: www.textualapp.com]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
Zebroid has quit [Ping timeout: 245 seconds]
aniM has quit [Ping timeout: 264 seconds]
bmurt has joined #ruby
ninegrid has quit [Ping timeout: 255 seconds]
gnarld_ is now known as nug
ninegrid has joined #ruby
ari-_-e has quit [Ping timeout: 245 seconds]
Georg3 has joined #ruby
bmurt has quit [Client Quit]
ari-_-e has joined #ruby
d34th4ck3r has quit [Quit: zzz]
kaihara has quit [Quit: Leaving...]
kaihara has joined #ruby
kaihara has quit [Client Quit]
bluOxigen has joined #ruby
AlexRussia has quit [Read error: Connection reset by peer]
abstrakt has joined #ruby
chipotle has quit [Quit: cya]
yfeldblum has quit [Ping timeout: 252 seconds]
Tricon has quit [Quit: Linkinus - http://linkinus.com]
jarto has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
benlieb has quit [Quit: benlieb]
AlexRussia has joined #ruby
Solnse has quit [Quit: Leaving.]
abstrakt has quit [Quit: Leaving]
zkay11 has joined #ruby
krz has joined #ruby
lethjakman has joined #ruby
Georg3 has quit [Quit: Georg3]
relajo has quit [Read error: Connection reset by peer]
mgberlin_ has joined #ruby
sdwrage has quit [Remote host closed the connection]
relajo has joined #ruby
Kricir has joined #ruby
mgberlin has quit [Ping timeout: 240 seconds]
mocchi has joined #ruby
shevy has quit [Ping timeout: 240 seconds]
mocchi has quit [Client Quit]
mocchi has joined #ruby
kireevco has quit [Quit: Leaving.]
bradleyprice has joined #ruby
lw has quit [Quit: s]
therealGent has quit [Changing host]
therealGent has joined #ruby
cpruitt has quit [Quit: cpruitt]
mocchi has quit [Client Quit]
fgo has quit [Remote host closed the connection]
Kricir has quit [Remote host closed the connection]
Georg3 has joined #ruby
hamakn has joined #ruby
s2013 has joined #ruby
<s2013> if i have a piece of code that repeats a lot how do i dry it up? stupid question but i cant seem to figure it out
<s2013> i tried putting it in a separate file and the nrequiring it
hamakn has quit [Read error: Connection reset by peer]
yacks has joined #ruby
kireevco has joined #ruby
hamakn has joined #ruby
MZAWeb has joined #ruby
hamakn has quit [Remote host closed the connection]
yubrew has joined #ruby
hamakn has joined #ruby
shevy has joined #ruby
pontiki has quit [Ping timeout: 245 seconds]
pontiki has joined #ruby
kireevco has quit [Client Quit]
hamakn has quit [Read error: Connection reset by peer]
<Georg3> This is probably a silly question that I'm just overlooking but if I create a class and when someone instantiates an object from it, then sets an attribute say "title". How would I take that title and run it through my method and reassign it to the new title?
hamakn has joined #ruby
therealGent has quit [Ping timeout: 240 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
fgo has joined #ruby
<Georg3> nvm I figured it out, but it's a little unclear
mocchi has joined #ruby
yubrew has quit [Ping timeout: 255 seconds]
<fluve> GOT
gigetoo has quit [Remote host closed the connection]
<fluve> sorry, wrong window
aniM has joined #ruby
gigetoo has joined #ruby
<mozzarella> Georg3: not sure what you mean
aspires has joined #ruby
<Georg3> mozzarella: this is the first test I need to pass. How do I both accept an input and run a method on it reassigning itself after the method runs on the input. - http://pastebin.com/wxVHUEQR
yfeldblum has joined #ruby
benzrf is now known as benzrf|offline
<Georg3> if that doesn't make sense, I'll try to reword it.
ghr has joined #ruby
<pontiki> Georg3: book.title= is a different method that book.title
<Georg3> pontiki: ah, that explains a lot.
<mozzarella> still not sure I understand correctly, but you can use the ! methods to modify it, or even do string.clear << 'new string'
<pontiki> title= sets the internal value, title gets the value
Avahey_ has quit [Quit: Connection closed for inactivity]
<Georg3> pontiki: Ok that makes sense but for some reason I can't wrap my head around how you manage that inside the class
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 245 seconds]
et09 has quit [Ping timeout: 244 seconds]
<Georg3> so say in the title methdo you'd accept an input aka "book title" at the end of your title = method what would you assign the new title?
<Georg3> an instance variable?
<pontiki> in the Book class, you could have def title=(x); @title = x.to_s.capitalize ; end; def title; @title; end
<Georg3> ah ok
<pontiki> those are typically knows as accessors
mgberlin_ has quit [Remote host closed the connection]
<Georg3> really? so attr_reader / writer / accessor :title is the same thing as @title?
yfeldblum has quit [Remote host closed the connection]
<pontiki> they are accessor methods that work *with* the instance variable @title
<pontiki> not exactly "the same thing as"
<Georg3> got it.
<Georg3> Once again, thank you. That helped.
<pontiki> you can say attr_reader :title, and define the title= method directly
yfeldblum has joined #ruby
<pontiki> attr_writer will create def title=(x); @title=x; end
zkay11 has quit [Remote host closed the connection]
ziyadb has joined #ruby
<pontiki> since the test seems to indicate that somehow the title is supposed to be capitalized, the explicit title= method needs to be written by you
mgberlin has joined #ruby
mgberlin has quit [Read error: Connection reset by peer]
Zebroid has joined #ruby
mgberlin has joined #ruby
<Georg3> correct, I create the title= method, do the operations to transform the title then assign the instance variable or accessor rather @title
pietr0 has quit [Quit: pietr0]
<Georg3> Slowly but surely I'll get this =)
lewix has joined #ruby
aniM has quit [Ping timeout: 255 seconds]
yetanotherdave has quit [Quit: leaving]
datafirm has joined #ruby
<Georg3> pontiki: you said attr_writer will create @title=x; but just cause @title exists, doesn't mean you can inspect it. It would have to have the attr_reader or attr_accessor method correct?
mgberlin has quit [Remote host closed the connection]
jshjsh has joined #ruby
<pontiki> attr_accessor creates both methods. attr_reader creates the title method, attr_writer the title= method
Zebroid has quit [Ping timeout: 272 seconds]
<Georg3> got it
toastynerd has joined #ruby
<pontiki> the instance varialbe @title's existence is independent of any of those
<pontiki> good
gwb3 has quit [Quit: leaving]
francisfish has joined #ruby
blueOxigen has joined #ruby
gwb3 has joined #ruby
d34th4ck3r has joined #ruby
bluOxigen has quit [Ping timeout: 272 seconds]
francisfish has quit [Ping timeout: 244 seconds]
robbyoconnor has quit [Ping timeout: 272 seconds]
aganov has joined #ruby
timonv has joined #ruby
Inside has quit [Ping timeout: 244 seconds]
robbyoconnor has joined #ruby
aniM has joined #ruby
Rollabunna has joined #ruby
agent_white has quit [Quit: gnight]
toastynerd has quit [Remote host closed the connection]
benlieb has joined #ruby
tobago has joined #ruby
Rollabunna has quit [Ping timeout: 240 seconds]
aniM has quit [Ping timeout: 245 seconds]
cina has joined #ruby
d34th4ck3r has quit [Quit: zzz]
Hanmac has joined #ruby
MZAWeb has quit [Ping timeout: 264 seconds]
toastynerd has joined #ruby
d34th4ck3r has joined #ruby
aspires has quit []
Hanmac1 has quit [Ping timeout: 240 seconds]
<Georg3> how come, x = "20" - x.capitalize! == nil but x = x.capitalize == "20"?
s2013 has quit [Ping timeout: 244 seconds]
<pontiki> that doesn't really make much sense
<pontiki> why are you subtracting x.capitalize! from "20" ?
Morkel has joined #ruby
<Georg3> pontiki: sorry i was trying to format it here, I'm not subtracting
<Georg3> x = "20"
<Georg3> x.capitalize! == nil
<pontiki> if you want to separate statements on a line, use ;
<Georg3> x = x.capitalize == "20"
<Georg3> oh ok, my bad.
<pontiki> no, you're learning :) you're good
<Georg3> I read somewhere that sometimes bang methods (.method!) can cause nil - should I use the second way of doing this instead just to avoid edge cases like that?
mr_snowf1ake has quit [Ping timeout: 272 seconds]
apeiros has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
<pontiki> x.capitalize! returns nil when it doesn't change x (first char not lower case). but x is still unchanged
toastynerd has quit [Remote host closed the connection]
<pontiki> >> x = "20"; puts x.capitalize! ; puts x;
<eval-in> pontiki => ... (https://eval.in/166213)
yubrew has joined #ruby
<Georg3> ah hmm, trying to think of a way around this in a map method
JasmeetQA has joined #ruby
<Georg3> cause when I map the array and come to a number in a string, it returns nil and not just the original value
timonv has quit [Remote host closed the connection]
<pontiki> map collects the return values of the expression in the block
<Georg3> I could just use what I said about - x = x.capitalize that way it doesn't return nil if nothing changes but is there a better way of goign about this?
AlexRussia has quit [Ping timeout: 240 seconds]
<Georg3> oh, what if I did x.capitalize!; x;
danijoo has quit [Read error: Connection reset by peer]
<pontiki> >> %w[a few choice words].map{|x| x.capitalize}
<eval-in> pontiki => ["A", "Few", "Choice", "Words"] (https://eval.in/166214)
<Georg3> it'd return the last line by default which would = x.
<sevenseacat> why do youi insist on using the bang version?
<Georg3> sevenseacat: It's just eaiser than using x = x.capitalize
danijoo has joined #ruby
<sevenseacat> if you're in a map, you dont want to do that
dreamchaser has joined #ruby
d34th4ck3r has quit [Quit: zzz]
yubrew has quit [Ping timeout: 264 seconds]
elricsfate has quit [Ping timeout: 264 seconds]
dukedave has quit [Ping timeout: 245 seconds]
<pontiki> you wouldn't do x = x.capitalize in a map either
<pontiki> oops
<Georg3> sevenseacat: this works and passes all tests, is this improper? http://pastebin.com/qW9TfPaP
<pontiki> what sevenseacat said before my lag bit me
<sevenseacat> urgh
dc has joined #ruby
<pontiki> it's a long way 'round something simple
<gr33n7007h> >> %w(my example string).map(&:capitalize)
<eval-in> gr33n7007h => ["My", "Example", "String"] (https://eval.in/166215)
<Georg3> >> %w(what i wish i knew when i was 20).map(&:capitalize)
<eval-in> Georg3 => ["What", "I", "Wish", "I", "Knew", "When", "I", "Was", "20"] (https://eval.in/166216)
<Georg3> let me eval 1 more...
<Georg3> >> %w(the man in the iron mask).map(&:capitalize)
<eval-in> Georg3 => ["The", "Man", "In", "The", "Iron", "Mask"] (https://eval.in/166217)
<xybre> Georg3: btw http://pryrepl.org/
<sevenseacat> or just irb
timonv has joined #ruby
Zebroid has joined #ruby
<gr33n7007h> pry is awesome
<pontiki> pry is
tagrudev has joined #ruby
<xybre> pry
<Georg3> pontiki: how is it a long way around this - these are the tests it must pass... http://pastebin.com/jm1sXnXA
dc has quit []
<Georg3> maybe I'm missing something but I don't see how I could've done it in less code?
<pontiki> the code you wrote to pass the tests
<pontiki> that's what i mean
Cache_Money has quit [Quit: Cache_Money]
cina has quit [Ping timeout: 255 seconds]
MZAWeb has joined #ruby
aspires has joined #ruby
<Georg3> pontiki: yeah exactly, is there something more simple that would pass the same tests?
<sevenseacat> i think your setter could be about five lines of code
dc has joined #ruby
benlieb has quit [Quit: benlieb]
benlieb has joined #ruby
<sevenseacat> readable code, that is..... you could make it much shorter
<Georg3> sevenseacat: do you have a minute to take a stab at it? I would love to see it simplified, I feel like thats what I have the most trouble doing
<pontiki> the setter should be one line, and it should call a method to title-ize
<sevenseacat> we're not using activesupport methinks
cina_ has joined #ruby
Poky has joined #ruby
jtiggo has quit []
<Georg3> sorry, not exactly sure what you mean.
saarinen has joined #ruby
<benlieb> what's the best way to handle a class that has groups of methods related to different "contexts"? I've separated out the methods for different contexts into separate modules, but the class itself has enough methods that I want to be careful not to accidentally overwrite other methods. So I've started a kind of "namespacing" convention in the method naming, like context_y_title. But this seems redundant in some way, since the Modul is alr
<benlieb> called ContextY.
ghr has joined #ruby
<benlieb> Is there a better way to "namespace" the methods? Time to subclass?
<Georg3> pontiki: it would be better to create a titlize method then call ~~ def title=(book_title); book_title.titlize; end ?
Cache_Money has joined #ruby
<sevenseacat> titleize will also capitalize all words, including the stop words
cina_ has quit [Client Quit]
cina has joined #ruby
kireevco has joined #ruby
kenneth has joined #ruby
<Georg3> sevenseacat: that's true, forgot about the titlize method. What did you mean "not using activesupport methinks"?
<sevenseacat> well titleize is part of activesupport, not ruby
ghr has quit [Ping timeout: 245 seconds]
<Georg3> ah I messed up, I think pontiki wasnt saying ot use the titlize method but use a method that does what I want on the setter so ~~ def title=(book_title); book_title.proper_title; end
<sevenseacat> why would you do that :/
doev has joined #ruby
<benlieb> i think you are all spelling titleize wrong btw :)
<benlieb> or some ;)
<Georg3> I am - duh! my bad and sevenseacat I don't know I don't agree with that and he's smart so I'm probably misinterpreting him but he said "the setter should be one line, and it should call a method to title-ize"
heftig has quit [Quit: Quitting]
<havenwood> i'd go further and say that isn't even a word
<sevenseacat> she
<Georg3> she*
danijoo has quit [Read error: Connection reset by peer]
<pontiki> i wasn't speaking of the activesupport titleize string method
danijoo has joined #ruby
<Georg3> correct, you were talking about a method I write to rewrite the title how I needed correct?
wowXiDD has quit []
<pontiki> just that saving the value and converting a string to a proper title are two operations
wow has joined #ruby
<Georg3> pontiki: but if I always want the title to be set as per my requirements wouldn't it just make sense to put it that way in the setter?
lethjakman has quit [Ping timeout: 272 seconds]
<pontiki> you may want other things like that as well
<Georg3> hmm ok, I guess that's true
<pontiki> it's not wrong, per se
<sevenseacat> then when you do, its time to refactor :)
cina has quit [Ping timeout: 272 seconds]
<Georg3> No I understand what you're saying though
<pontiki> ^
RyanV has quit [Quit: Lingo - http://www.lingoirc.com]
<Georg3> ok so real quick back to what you guys said, in what ways aside from that could it be simplified? I feel I took the shortest route while making it 100% fool proof to any title?
<sevenseacat> in the map, have a simple if/else to check if the word is included the array of stop words
<Georg3> I don't mean this in a challenging way, you guys humble the crap out of me but do you think you could write it more refined?
<sevenseacat> then have a simple capitalize at the end
<Georg3> sevenseacat: but isnt that just more memory? vs super quick checks?
dreamchaser has quit [Ping timeout: 264 seconds]
<sevenseacat> huh?
<pontiki> after the join? capitalize will turn it all back to lower case except the initial
<Georg3> but stop words are capitalized if they are the first word
<pontiki> yes, exactly
<sevenseacat> ah it will too
S4R4 has joined #ruby
julian-delphiki has quit [Ping timeout: 244 seconds]
<sevenseacat> just upcase the first letter then
<pontiki> i do this as a reduce
<pontiki> but someone i'm sure would yell at me for offering it up as an improper use
<Georg3> pontiki: capitalize all and then work backwards?
<pontiki> no, just one pass through like you do with map
apeiros has quit [Remote host closed the connection]
julian-delphiki has joined #ruby
apeiros has joined #ruby
<Georg3> sevenseacat: what I mean't was, rather than use another bit of memory to store the stop words, would comparing them like I did be slower?
<sevenseacat> i dont know about efficiency, its probably about the same, but your way is much uglier to read
<Georg3> I know we're probably nitpicking hairs at this point, but I'm honestly interested in there is a clear winner in terms of performance
timonv has quit [Remote host closed the connection]
fluve has quit []
<Georg3> sevenseacat: agreed, hmm ok. I guess also if you were to go back and alter the list, an array is much easier to parse than an ugly list.
bal has joined #ruby
charliesome has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
a13x2121 has quit [Ping timeout: 264 seconds]
dangerousdave has joined #ruby
danijoo has joined #ruby
<sevenseacat> nice
apeiros has quit [Ping timeout: 240 seconds]
<sevenseacat> not sure i'd do it that way, but nice :P
Zebroid has quit [Remote host closed the connection]
<Georg3> ahh very nice =)
saarinen has quit [Quit: saarinen]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Georg3> exactly what I wanted to see, thank you!
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
matkal has quit [Quit: Ex-Chat]
sinkensabe has joined #ruby
cephalopod has joined #ruby
kireevco has quit [Quit: Leaving.]
anarang has joined #ruby
julian-delphiki has quit [Ping timeout: 264 seconds]
subraminion has joined #ruby
saarinen has joined #ruby
saarinen has quit [Client Quit]
CaptainJet has quit []
duncannz has joined #ruby
ylluminate has quit [Quit: Bye!]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
stytown has quit [Quit: stytown]
user33 has joined #ruby
yubrew has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
aspires has quit []
kenneth has joined #ruby
Shidash has joined #ruby
jottr_ has joined #ruby
Mooneye has joined #ruby
chrstphrhrt has quit [Quit: chrstphrhrt]
Arkaniad has quit [Quit: Leaving]
brain_shim has quit [Ping timeout: 240 seconds]
<user33> would somebody show me an example how I can initialize RSpec::Core::Runner with a custom config and custom options and the run it with a testfile over RSpec::Core::Runner.run("a_spec.rb"). tired runner = RSpec::Core::Runner.initialize(myObject, Rspec.configuration, nil) and then runner.run("a.txt") but cot: raised #<NoMethodError: private method `initialize' called for RSpec::Core::Runner:Class>
lewix has quit [Ping timeout: 240 seconds]
Mooneye has quit [Client Quit]
yubrew has quit [Ping timeout: 255 seconds]
<Georg3> im off to bed, thanks anyone who gave me a hand today, it's greatly appreciated! Unfortunately... I'll be back tomorrow =)
Georg3 has quit [Quit: Georg3]
kwd has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
Cache_Money has quit [Quit: Cache_Money]
JohnBat26 has joined #ruby
stytown has joined #ruby
Eyes has quit [Read error: Connection reset by peer]
Shidash has quit [Ping timeout: 240 seconds]
Thermo has joined #ruby
Thermo has quit [Client Quit]
Eyes has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
d34th4ck3r has joined #ruby
julian-delphiki has joined #ruby
Eyes has quit [Remote host closed the connection]
Eyes has joined #ruby
kilk__ has joined #ruby
user_ has joined #ruby
brain_shim has joined #ruby
relajo has quit [Ping timeout: 255 seconds]
fella5s has quit [Ping timeout: 240 seconds]
hpoydar has joined #ruby
posixpascal has joined #ruby
dangerou_ has joined #ruby
decoponio has joined #ruby
fella5s has joined #ruby
apeiros has joined #ruby
lewix has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
MZAWeb has quit [Ping timeout: 272 seconds]
havenwood has quit [Remote host closed the connection]
a13x212 has joined #ruby
parduse is now known as Guest16992
Guest16992 has quit [Killed (hobana.freenode.net (Nickname regained by services))]
parduse has joined #ruby
kenneth has joined #ruby
<user33> http://pastebin.com/ZK0GeMgv how can I assign a custom object to the rspec tests, so that I cann access it in the tests? tired around with a new runner object, but I didn't get it. I'am a ruby beginner.
dangerousdave has quit [Ping timeout: 264 seconds]
hpoydar has quit [Ping timeout: 240 seconds]
parduse is now known as Guest86178
MZAWeb has joined #ruby
wow is now known as wowXD
Macaveli has joined #ruby
ghr has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
Hanmac1 has joined #ruby
echevemaster has quit [Read error: Connection reset by peer]
Hanmac has quit [Ping timeout: 255 seconds]
ghr has quit [Ping timeout: 255 seconds]
lewix has quit [Remote host closed the connection]
lewix has joined #ruby
MZAWeb has quit [Ping timeout: 272 seconds]
anarang has quit [Quit: Leaving]
<user33> no one?
subraminion_ has joined #ruby
lewix has quit [Ping timeout: 245 seconds]
subraminion_ has quit [Remote host closed the connection]
subraminion has quit [Read error: Connection reset by peer]
subraminion_ has joined #ruby
francisfish has joined #ruby
zigomir has joined #ruby
NivenHuH has joined #ruby
Xeago has joined #ruby
fgo has quit [Read error: Connection reset by peer]
fgo has joined #ruby
fabrice31 has joined #ruby
Zebroid has joined #ruby
NivenHuH has quit [Client Quit]
garndt has quit [Quit: Connection closed for inactivity]
SlvrDragn has quit [Read error: Connection reset by peer]
francisfish has quit [Ping timeout: 244 seconds]
_m_g_ has joined #ruby
posixpascal has quit [Ping timeout: 252 seconds]
francisfish has joined #ruby
Zebroid has quit [Ping timeout: 245 seconds]
Shidash has joined #ruby
posixpascal has joined #ruby
anarang has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
Rollabunna has joined #ruby
AlexRussia has joined #ruby
havenwood has joined #ruby
weirdpercent has joined #ruby
Shidash1 has joined #ruby
weirdpercent has quit [Client Quit]
Shidash has quit [Ping timeout: 264 seconds]
andrewlio has joined #ruby
yubrew has joined #ruby
aniM has joined #ruby
alex88 has joined #ruby
Rollabunna has quit [Ping timeout: 272 seconds]
sk87 has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
yubrew has quit [Ping timeout: 240 seconds]
maloik has joined #ruby
anarang has quit [Quit: Leaving]
mijicd has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
mocchi has quit [Ping timeout: 245 seconds]
anarang has joined #ruby
Shidash1 has quit [Quit: Leaving.]
mocchi has joined #ruby
aniM has quit [Ping timeout: 244 seconds]
wowXD has quit [Remote host closed the connection]
Takle has joined #ruby
dangerou_ has quit [Read error: Connection reset by peer]
jaiks has joined #ruby
dangerousdave has joined #ruby
weirdpercent has joined #ruby
timonv has joined #ruby
Hien has quit [Ping timeout: 272 seconds]
francisfish has quit [Remote host closed the connection]
AndChat| has quit [Ping timeout: 264 seconds]
foooobear has joined #ruby
duncannz has quit [Ping timeout: 240 seconds]
rdark has joined #ruby
LiohAu has joined #ruby
lolmaus has quit [Remote host closed the connection]
Takle has quit [Ping timeout: 245 seconds]
fumduq has quit [Ping timeout: 245 seconds]
<daxroc> Morning all
timonv has quit [Ping timeout: 244 seconds]
kilk__ has quit [Ping timeout: 244 seconds]
Mooneye has joined #ruby
<stian> good morning
djbkd has quit [Remote host closed the connection]
<daxroc> I'm working with a library that's outputting xml content to stdout. It does accept a custom logger object, how would/should I selectively parse the output for details I need ?
northfurr has quit [Quit: northfurr]
fumduq has joined #ruby
lolmaus has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<stian> I have no idea but if I were to guess you could try assigning the data to an xml file where you define what you want?
dANOKELOFF has joined #ruby
user33 has quit [Quit: Page closed]
Hobogrammer has quit [Ping timeout: 255 seconds]
<daxroc> stian, as in write the streamed output to file and poll the file for content I want ?
prathamesh has joined #ruby
vifino has joined #ruby
Hien has joined #ruby
jprovazn has joined #ruby
fella6s has joined #ruby
havenwood has joined #ruby
hpoydar has joined #ruby
<Hanmac1> daxroc why not use nokogiri?
blackmesa has joined #ruby
fella5s has quit [Ping timeout: 264 seconds]
<weirdpercent> yeah nokogiri is a lot faster and easier
qba73 has joined #ruby
<weirdpercent> for selectively parsing
dumdedum has joined #ruby
hpoydar has quit [Remote host closed the connection]
hpoydar has joined #ruby
mehlah has joined #ruby
nickenchuggets has quit [Ping timeout: 264 seconds]
<stian> :)
hpoydar has quit [Ping timeout: 255 seconds]
alem0lars has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
dr0ff has left #ruby [#ruby]
sigurding has joined #ruby
nfk has joined #ruby
alexju has quit [Remote host closed the connection]
IceDragon has quit [Quit: Space~~~]
hermanmunster has quit [Remote host closed the connection]
hermanmunster has joined #ruby
spider-mario has joined #ruby
Joulse has joined #ruby
mijicd has quit [Remote host closed the connection]
olivier_bK has joined #ruby
ziyadb has quit [Quit: Connection closed for inactivity]
r08o has joined #ruby
wowXD has joined #ruby
hermanmunster has quit [Ping timeout: 255 seconds]
jhass|off is now known as jhass
mercerist has quit [Quit: Computer has gone to sleep.]
<r08o> In a case switch, I have some string, that I want "partial" match on. Lets say I have ["carpool","carwash","truckwash"] and I want to match on just the ones starting with "car". How is this done? case string when "car" naturally doesn't work.
<tobiasvl> when /^car.*/
<tobiasvl> ?
stytown has quit [Quit: stytown]
<tobiasvl> or just /^car/ ofc
wowXD has quit [Ping timeout: 240 seconds]
ARCADIVS has quit [Quit: WeeChat 0.4.3]
<r08o> tobiasvl: thanks a lot.
<r08o> Exactly what I was looking for. Had tried something very familiar, but this was the right way.
ghr has joined #ruby
Arkaniad|Laptop has quit [Ping timeout: 252 seconds]
Zebroid has joined #ruby
timonv has joined #ruby
strax has joined #ruby
d34th4ck3r has quit [Quit: zzz]
fgo has quit [Remote host closed the connection]
yubrew has joined #ruby
Zebroid has quit [Ping timeout: 244 seconds]
ephemerian has joined #ruby
alex88 has quit [Quit: Leaving...]
mikecmpbll has joined #ruby
alex88 has joined #ruby
elaptics`away is now known as elaptics
moritzs has joined #ruby
nfk has quit [Quit: yawn]
roolo has joined #ruby
mailo has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
nfk has joined #ruby
Takle has joined #ruby
Xeago has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
jackneill has joined #ruby
ikaros has joined #ruby
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
datafirm has quit [Quit: Computer has gone to sleep.]
datafirm has joined #ruby
LadyRainicorn has joined #ruby
Hanmac has joined #ruby
weirdpercent has quit [Quit: Leaving]
Hanmac1 has quit [Ping timeout: 272 seconds]
thesheff17 has quit [Ping timeout: 240 seconds]
datafirm has quit [Ping timeout: 240 seconds]
thesheff17 has joined #ruby
mijicd has joined #ruby
chth0n has joined #ruby
sigurding has quit [Quit: sigurding]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
xpbatj has joined #ruby
xcv has joined #ruby
sigurding has joined #ruby
francisfish has joined #ruby
nfk has quit [Quit: yawn]
francisfish has quit [Ping timeout: 244 seconds]
torstein has joined #ruby
roolo has quit [Quit: Leaving...]
mailo has quit [Quit: Leaving...]
nfk has joined #ruby
sk87 has joined #ruby
Zebroid has joined #ruby
DouweM has quit [Ping timeout: 255 seconds]
francisfish has joined #ruby
fgo has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
Zebroid has quit [Ping timeout: 272 seconds]
wald0 has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
tjr9898 has joined #ruby
nfk has quit [Quit: yawn]
Takle has quit [Read error: Connection reset by peer]
subraminion_ has quit [Quit: Computer has gone to sleep.]
diegoviola has quit [Read error: Connection reset by peer]
Takle has joined #ruby
tjr9898 has quit [Ping timeout: 272 seconds]
doev has quit [Remote host closed the connection]
vyorkin has joined #ruby
Takle has quit [Remote host closed the connection]
wallerdev has joined #ruby
fjfish has joined #ruby
jonasbjork has joined #ruby
Mooneye has quit [Quit: Leaving]
d34th4ck3r has joined #ruby
francisfish has quit [Ping timeout: 244 seconds]
marr has joined #ruby
trepidaciousMBR has joined #ruby
nemesit|znc has quit [Ping timeout: 255 seconds]
quietone has joined #ruby
wowXD has joined #ruby
Takle has joined #ruby
alem0lars has quit [Quit: Going AFK...]
workmad3 has joined #ruby
nemesit|znc has joined #ruby
<quietone> hi, probably a simple thing but I don't know ruby. How to fix rake output "NameError: uninitialized constant CoffeeScript"
RyanV has joined #ruby
alem0lars has joined #ruby
wowXD has quit [Ping timeout: 245 seconds]
nfk has joined #ruby
<jhass> require 'coffeescript' ?
duncannz has joined #ruby
yubrew has joined #ruby
<Hanmac> ping shevy
Takle has quit [Read error: Connection reset by peer]
Takle has joined #ruby
roolo has joined #ruby
<workmad3> ah yeah, shevy loves coffeescript
nfk has quit [Client Quit]
mailo has joined #ruby
<sevenseacat> lol
oo_ has quit [Remote host closed the connection]
snath has quit [Ping timeout: 240 seconds]
nfk has joined #ruby
<apeiros> workmad3: because it's utf-8 only :)
oo_ has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
Mooneye has joined #ruby
fgo has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
chrishough has quit [Ping timeout: 240 seconds]
mercerist has joined #ruby
Rollabunna has joined #ruby
cephalopod has quit [Ping timeout: 240 seconds]
hpoydar has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
wald0_ has joined #ruby
wald0_ has quit [Client Quit]
<quietone> jhass, thx but I don't understand. I'm just trying to install a redmine plugin by following instructions
<Hanmac> workmad3 & apeiros for your own ruby projects do you often use require_relative? and maybe it has many tiny files? because i try to write a little script that scans the a dir and output the wich file require which other file as a dot grapth ... ;P
brtdv has joined #ruby
<workmad3> Hanmac: I don't use require_relative
<workmad3> Hanmac: I dislike the way it creates a hidden 2-way directory structure dependency
<jhass> quietone: complain to the author that the instructions don't work?
<Hanmac> imo it makes sense ... require for extern and require_relative for internal
Rollabunna has quit [Ping timeout: 272 seconds]
wallerdev has quit [Quit: wallerdev]
sevenseacat has quit [Remote host closed the connection]
chrishough has joined #ruby
kaspergrubbe has joined #ruby
hpoydar has quit [Ping timeout: 245 seconds]
wowXD has joined #ruby
<quietone> jhass, lol. But they do when I installed redmine from tar file. It fails on a different site installed from debian backports
subraminion_ has joined #ruby
subraminion_ has quit [Remote host closed the connection]
<workmad3> quietone: I wouldn't trust adding plugins to a redmine install from a debian repository personally
datafirm has joined #ruby
<workmad3> quietone: I have no idea how they've carved things up to package redmine, but if it's anything like how they've usually carved up ruby, it'll be a nightmare to add to :)
subraminion_ has joined #ruby
Takle has quit [Read error: Connection reset by peer]
<quietone> workmad3, redmine is installed from repo. the plugin was git cloned
<workmad3> quietone: yeah, that's the setup I'd be dubious about ;)
fgo has joined #ruby
roolo has quit [Quit: Linkinus - http://linkinus.com]
chrishough_ has joined #ruby
klaut has joined #ruby
Takle has joined #ruby
roolo has joined #ruby
chrishough has quit [Ping timeout: 272 seconds]
chrishough_ is now known as chrishough
<apeiros> Hanmac: I never use require_relative
<quietone> workmad3, ok, thx. But for me, no matter how I install Redmine itself it has been ... troublesome ...
relix has joined #ruby
<workmad3> quietone: yeah, I never found redmine docs to be particularly brilliant... haven't touched it for quite a few years now, but the few people I encounter trying it out tend to hit issues still
danijoo has quit [Quit: Leaving...]
datafirm has quit [Ping timeout: 240 seconds]
danijoo has joined #ruby
<quietone> workmad3, which is a shame because I actually like using it
<workmad3> quietone: I found the issue tracker in github to be great for my needs in the end :)
Vivekananda has quit [Ping timeout: 264 seconds]
klaut has quit []
klaut has joined #ruby
dANOKELOFF has quit [Remote host closed the connection]
Rainicorn has joined #ruby
dANOKELOFF has joined #ruby
zarubin has quit []
<wasamasa> I hope that github clone in go is decent
havenwood has joined #ruby
LadyRainicorn has quit [Disconnected by services]
Rainicorn is now known as ladyrainicorn
ladyrainicorn is now known as LadyRainicorn
Takle has quit [Remote host closed the connection]
et09 has joined #ruby
kilk__ has joined #ruby
d34th4ck3r has quit [Quit: zzz]
snath has joined #ruby
r08o has quit [Ping timeout: 240 seconds]
subraminion_ has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Ping timeout: 264 seconds]
Xeago has quit [Remote host closed the connection]
Poky has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
subraminion_ has joined #ruby
subraminion_ has quit [Remote host closed the connection]
subraminion_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
kilk__ has quit [Ping timeout: 244 seconds]
Zebroid has joined #ruby
danijoo has joined #ruby
ridget has joined #ruby
havenwood has joined #ruby
marr has quit [Ping timeout: 244 seconds]
Zebroid has quit [Ping timeout: 244 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
prathamesh has quit [Ping timeout: 272 seconds]
juco has quit [Quit: Leaving...]
edwardly has quit [Ping timeout: 252 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
byteoverfl0w has joined #ruby
jonasbjork has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonasbjork has joined #ruby
et09 has quit [Ping timeout: 264 seconds]
byteoverfl0w has quit [Client Quit]
mbuf has joined #ruby
kilk__ has joined #ruby
`jpg has joined #ruby
havenwood has quit [Remote host closed the connection]
shredding has joined #ruby
Darkchaos has joined #ruby
yubrew has joined #ruby
<mbuf> how can I suppress printing of \n and escaping of " with \" in output of doc.to_xml when using Nokogiri?
<canton7> mbuf, are you printing that string using 'p', 'puts', 'write', etc?
<mbuf> canton7, puts doc.to_xml
<canton7> mbuf, are you *sure* you're not using 'p', or simply letting irb print it out?
<mbuf> canton7, never mind, I used print and it prints it nicely
<canton7> mbuf, essentially, a newline is a special ascii character. how it's actually rendered depends on what's doing the rending
<canton7> 'p' will render it as "\n". 'puts' will render it as an actual newline
<canton7> 'p' will also escape " with \"
tjr9898 has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
eka has joined #ruby
nateberkopec has joined #ruby
jottr_ is now known as jottr
tjr9898 has quit [Read error: Connection reset by peer]
Mooneye has quit [Quit: Leaving]
fgo has quit [Remote host closed the connection]
skaflem has joined #ruby
oo_ has quit [Remote host closed the connection]
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
fabrice31 has quit [Remote host closed the connection]
JasmeetQA has quit [Read error: Connection reset by peer]
dangerou_ has joined #ruby
sigurding has quit [Read error: Connection reset by peer]
fluve has joined #ruby
dangerousdave has quit [Ping timeout: 264 seconds]
tvw has joined #ruby
snath has quit [Ping timeout: 272 seconds]
snath has joined #ruby
Deele has joined #ruby
duncannz has quit [Ping timeout: 255 seconds]
datafirm has joined #ruby
oo_ has joined #ruby
fabrice31 has joined #ruby
havenwood has joined #ruby
<shevy> dumdedum
foooobear has quit [Quit: Computer has gone to sleep.]
r08o has joined #ruby
datafirm has quit [Ping timeout: 255 seconds]
<dumdedum> dumdedum
tus has joined #ruby
LadyRainicorn has quit [Read error: Connection reset by peer]
brtdv has quit []
<shevy> lol
<shevy> that's not your regular IRC nick is it?
<matti> shevy: Did you get A+? ;]
<shevy> nah
LadyRainicorn has joined #ruby
<shevy> I'd usually only learn to narrowly pass
<shevy> or work :P
havenwood has quit [Ping timeout: 264 seconds]
trepidaciousMBR has quit [Quit: trepidaciousMBR]
LadyRainicorn has quit [Read error: Connection reset by peer]
Takle has joined #ruby
LadyRainicorn has joined #ruby
benlieb has quit [Quit: benlieb]
trepidaciousMBR has joined #ruby
<stian> I've only gotten one A in my life, fuck school
<stian> lol
Rainicorn has joined #ruby
PanPan has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
nateberkopec has quit [Quit: Leaving...]
lkba has joined #ruby
oo_ has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
Rainicorn is now known as LazyRainicorn
LadyRainicorn has quit [Ping timeout: 264 seconds]
shredding has quit [Quit: shredding]
dANOKELOFF has quit [Remote host closed the connection]
nateberkopec has joined #ruby
nateberkopec has quit [Client Quit]
postmodern has quit [Quit: Leaving]
Takle has quit [Read error: Connection reset by peer]
fgo has joined #ruby
Zebroid has joined #ruby
Takle has joined #ruby
LekeFly has joined #ruby
MZAWeb has joined #ruby
marr has joined #ruby
Zebroid has quit [Ping timeout: 240 seconds]
fgo has quit [Ping timeout: 264 seconds]
anaeem1_ has joined #ruby
Takle_ has joined #ruby
hy2guru_ has joined #ruby
r08o has quit [Ping timeout: 244 seconds]
Takle has quit [Read error: Connection reset by peer]
Takle_ has quit [Read error: Connection reset by peer]
Takle has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yubrew has joined #ruby
Darryl has quit [Quit: Connection closed for inactivity]
sk87 has joined #ruby
Deejay_ has joined #ruby
tokik has quit [Ping timeout: 244 seconds]
nateberkopec has joined #ruby
datafirm has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
ixti has joined #ruby
bal has quit [Quit: bal]
bal has joined #ruby
keen_ has joined #ruby
nateberkopec has quit [Client Quit]
keen________ has quit [Ping timeout: 240 seconds]
jmurray has joined #ruby
jmurray has quit [Client Quit]
TheKruex has joined #ruby
MZAWeb has quit [Ping timeout: 240 seconds]
datafirm has quit [Ping timeout: 240 seconds]
hermanmunster has joined #ruby
nateberkopec has joined #ruby
chrishough has quit [Quit: chrishough]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
ixti has quit [Ping timeout: 264 seconds]
jprovazn has quit [Quit: Leaving]
Mattias has quit [Ping timeout: 245 seconds]
mbuf has left #ruby ["Leaving"]
rdark has quit [Ping timeout: 245 seconds]
rdark has joined #ruby
Mattias has joined #ruby
Photism_ has quit [Read error: Connection reset by peer]
Photism_ has joined #ruby
Takle has quit [Remote host closed the connection]
unop_ has quit [Ping timeout: 240 seconds]
foooobear has joined #ruby
dANOKELOFF has joined #ruby
Rollabunna has joined #ruby
bal has quit [Quit: bal]
slacko has joined #ruby
ridget has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chth0n has quit [Ping timeout: 264 seconds]
RyanV has quit [Quit: Lingo - http://www.lingoirc.com]
Takle has joined #ruby
Rollabunna has quit [Ping timeout: 255 seconds]
r08o has joined #ruby
bal has joined #ruby
<shevy> stian it often depends on the teacher/professor in question
<shevy> I remember one exam about biotechnology in rural science, I got an A+ but he did not read it exactly
`jpg has left #ruby ["Textual IRC Client: www.textualapp.com"]
<shevy> if he would have read it it would have been a B or C; the thing is he did not have enough time available to properly read, he had to evaluate at one glance and move on to the next exam
aniM has joined #ruby
fgo has joined #ruby
chth0n has joined #ruby
karupa is now known as zz_karupa
autonomousdev has joined #ruby
aniM has quit [Ping timeout: 264 seconds]
<shevy> so in the end it's all about doing a show
<shevy> oral presentations are even worse
sigurding has joined #ruby
roolo has quit [Quit: Leaving...]
mailo has quit [Quit: Leaving...]
r08o has quit [Ping timeout: 272 seconds]
jprovazn has joined #ruby
user_ is now known as relajo
S4R4 has quit [Quit: leaving]
blackmesa has joined #ruby
Iuz has quit [Ping timeout: 244 seconds]
alem0lars has quit [Quit: Going AFK...]
Zebroid has joined #ruby
roolo has joined #ruby
mailo has joined #ruby
shredding has joined #ruby
Zebroid has quit [Ping timeout: 245 seconds]
yubrew has joined #ruby
DrCode has quit [Write error: Connection reset by peer]
skammer has joined #ruby
DrCode has joined #ruby
oo_ has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
MZAWeb has joined #ruby
xcv has quit [Remote host closed the connection]
brtdv has joined #ruby
xcv has joined #ruby
stormy3_ is now known as stormy3
xcv_ has joined #ruby
yubrew has quit [Ping timeout: 264 seconds]
doev has joined #ruby
solars has joined #ruby
xcv has quit [Ping timeout: 240 seconds]
phoo1234567 has joined #ruby
<solars> quick question: arr.push method rescue '' won't work as push is not called in the case of an exception - how can I catch this exception in a one-liner way instead of using begin/rescue/end?
rdark_ has joined #ruby
rdark has quit [Ping timeout: 240 seconds]
alem0lars has joined #ruby
s2013 has joined #ruby
datafirm has joined #ruby
himsin has joined #ruby
LazyRainicorn has quit [Read error: Connection reset by peer]
LadyRainicorn has joined #ruby
JasmeetQA has joined #ruby
autonomousdev has quit [Quit: Textual IRC Client: www.textualapp.com]
Takle has quit [Remote host closed the connection]
autonomousdev has joined #ruby
sk87 has joined #ruby
et09 has joined #ruby
yakko_ has quit [Ping timeout: 264 seconds]
_maes_ has joined #ruby
jespada has joined #ruby
<tagrudev> ideas ?
<tagrudev> sqlite3 database
LadyRainicorn has quit [Read error: Connection reset by peer]
datafirm has quit [Ping timeout: 240 seconds]
LadyRainicorn has joined #ruby
jmurray has joined #ruby
Poky has joined #ruby
MZAWeb has quit [Ping timeout: 245 seconds]
JasmeetQA has quit [Read error: Connection reset by peer]
andrewjanssen has joined #ruby
andrewjanssen has quit [Client Quit]
hamakn has quit [Remote host closed the connection]
ascarter has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
havenwood has joined #ruby
s2013 has quit [Remote host closed the connection]
tvw has quit []
phutchins has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
TheKruex has quit [Read error: Connection reset by peer]
Takle has joined #ruby
yfeldblum has joined #ruby
zorak has quit [Ping timeout: 255 seconds]
andrewjanssen has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblu_ has joined #ruby
andrewjanssen has quit [Client Quit]
blackmesa has quit [Ping timeout: 245 seconds]
grn has joined #ruby
hamakn has joined #ruby
<grn> Do self.name in a class definition and @@name in an instance method refer to the same thing?
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
chth0n has quit [Ping timeout: 244 seconds]
dreamchaser has joined #ruby
<oz> grn: no they don't
yfeldblu_ has quit [Ping timeout: 244 seconds]
MissionCritical has quit [Ping timeout: 264 seconds]
<grn> oz, what's the difference between them?
top4o has joined #ruby
top4o has quit [Client Quit]
<oz> grn: self.name is a method, but @@name is a class variable
<oz> class variables are like globals for an inheritance tree, to use with caution. :)
<oz> (meaning if Foo defines @@bar, then the same @@bar is shared by all Foo subclasses)
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<grn> oz, what happens when I do name=value inside a class definition?
s2013 has joined #ruby
<Hanmac> grn & oz : there is also a difference between class variable and class instance variables ... in 99% of the cases you want the later one
LadyRainicorn has quit [Read error: Connection reset by peer]
b00stfr3ak has joined #ruby
skammer has quit [Quit: Textual IRC Client: www.textualapp.com]
LadyRainicorn has joined #ruby
zorak has joined #ruby
Rollabunna has joined #ruby
<oz> grn: it depends of what name is
datafirm has joined #ruby
jazz5150 has joined #ruby
<oz> this does not do much: class Foo; name = "value"; end
ldnunes has joined #ruby
<grn> oz, but what's name in this case? Is it a local variable? If so, is it accessible from defs inside the class definition?
dreamchaser has quit [Read error: Connection reset by peer]
fgo has quit [Remote host closed the connection]
<apeiros> grn: with `foo = val`, foo is *always* a local variable
<apeiros> foo= methods require an explicit receiver.
datafirm has quit [Ping timeout: 255 seconds]
<apeiros> that is, e.g. `self.foo = val` or `some_obj.foo = val`. Now it's a method call.
Darryl has joined #ruby
relix has joined #ruby
yubrew has joined #ruby
chth0n has joined #ruby
MissionCritical has joined #ruby
tkuchiki_ has joined #ruby
diegoviola has joined #ruby
<wasamasa> hmm
shvelo has joined #ruby
<wasamasa> finally managed to use the jsnice api via curl
<wasamasa> they're weird, not accepting normal post headers
<wasamasa> anyways, now that I figured out how it should be possible to wrap it up into usage with a ruby http library
Zebroid has joined #ruby
tkuchiki has quit [Ping timeout: 240 seconds]
lxsameer has quit [Quit: Leaving]
cpruitt has joined #ruby
yubrew has quit [Ping timeout: 244 seconds]
krz has quit [Quit: WeeChat 0.4.3]
kaspergrubbe has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
tkuchiki_ has quit [Ping timeout: 245 seconds]
Zebroid has quit [Ping timeout: 240 seconds]
diegovio1 has joined #ruby
diegoviola is now known as Guest32933
diegovio1 is now known as diegoviola
Guest32933 has quit [Ping timeout: 272 seconds]
blackmesa has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fjfish has quit [Remote host closed the connection]
fgo has joined #ruby
shredding has quit [Ping timeout: 255 seconds]
relix has joined #ruby
Joulse has quit [Ping timeout: 272 seconds]
fluve has quit []
shredding has joined #ruby
francisfish has joined #ruby
lolmaus has quit [Ping timeout: 245 seconds]
lolmaus has joined #ruby
lewix has joined #ruby
lewix has joined #ruby
lewix has quit [Changing host]
Joulse has joined #ruby
tkuchiki has joined #ruby
dblessing has joined #ruby
brasten has joined #ruby
francisfish has quit [Remote host closed the connection]
deathknight has joined #ruby
ziyadb has joined #ruby
qwyeth has joined #ruby
et09 has quit [Read error: Connection reset by peer]
hy2guru_ has quit [Quit: Connection closed for inactivity]
roolo has quit [Quit: Leaving...]
mailo has quit [Quit: Leaving...]
roolo has joined #ruby
mailo has joined #ruby
Takle has quit [Remote host closed the connection]
quietone has quit [Quit: Leaving]
blackmesa has quit [Ping timeout: 244 seconds]
Takle has joined #ruby
bmurt has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
strax has quit [Quit: Connection closed for inactivity]
sinkensabe has joined #ruby
sinkensabe has quit [Client Quit]
libsys has joined #ruby
sk87 has joined #ruby
luksaur has joined #ruby
luksaur has quit [Changing host]
luksaur has joined #ruby
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
crazedpsyc has quit [Ping timeout: 245 seconds]
lewix has quit [Ping timeout: 244 seconds]
jhon has joined #ruby
blueOxigen has quit [Ping timeout: 264 seconds]
jespada has quit [Remote host closed the connection]
blackmesa has joined #ruby
<jhon> can I ask an activerecord related question here?
Morkel has quit [Quit: Morkel]
<jhon> or is there a dedicated rails channel? (rubyonrails does not seem to work...)
<wasamasa> hum
<wasamasa> so apparently most ruby http libraries leave out file upload support
yfeldblum has quit [Ping timeout: 240 seconds]
<wasamasa> weird
<apeiros> Jhon: you have to be registered with nickserv to join it
LadyRainicorn has quit [Ping timeout: 264 seconds]
<jhon> apeiros thanks for the input. I'll do that. :)
hamakn has quit [Remote host closed the connection]
<wasamasa> I just want to get `curl -X POST -H 'Transfer-Encoding: chunked' -T ugly.js 'http://jsnice.org/beautify??pretty=1&rename=1&types=1&suggest=1'` to work in ruby ._.
<jhon> apeiros tx again. registering worked, I'm in there now. :)
snath has quit [Ping timeout: 264 seconds]
slacko has quit [Quit: Connection closed for inactivity]
kaspergr_ has joined #ruby
vpretzel_ has quit [Remote host closed the connection]
centrx has joined #ruby
kasperg__ has joined #ruby
Zenigor has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
vpretzel has joined #ruby
Edelwin has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
Takle has quit [Remote host closed the connection]
kaspergrubbe has quit [Ping timeout: 264 seconds]
kasper___ has joined #ruby
Xeago has joined #ruby
northfurr has joined #ruby
ARM9 has joined #ruby
kaspergr_ has quit [Ping timeout: 264 seconds]
thesheff17 has quit [Ping timeout: 240 seconds]
mjsmith2 has joined #ruby
Xeago has quit [Remote host closed the connection]
setra has joined #ruby
Xeago has joined #ruby
diegoviola has quit [Remote host closed the connection]
kasperg__ has quit [Ping timeout: 264 seconds]
thesheff17 has joined #ruby
jerius has joined #ruby
ehc has joined #ruby
lewix has joined #ruby
sailias has joined #ruby
lewix has quit [Client Quit]
sevenseacat has joined #ruby
diegoviola has joined #ruby
datafirm has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has joined #ruby
dreamchaser has joined #ruby
jorendorff has joined #ruby
setra has quit [Ping timeout: 272 seconds]
kaspergrubbe has joined #ruby
kasper___ has quit [Read error: Connection reset by peer]
jhon has quit [Remote host closed the connection]
iamjusthatdude has joined #ruby
autonomousdev has joined #ruby
aniM has joined #ruby
mocchi has quit [Quit: ZNC - http://znc.in]
mailo has quit [Quit: Leaving...]
roolo has quit [Quit: Leaving...]
mocchi has joined #ruby
hpoydar has joined #ruby
datafirm has quit [Ping timeout: 244 seconds]
b00stfr3ak has quit [Ping timeout: 240 seconds]
dangerou_ has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
noop has joined #ruby
mikesplain has joined #ruby
chepre has joined #ruby
iamjusthatdude has quit [Ping timeout: 240 seconds]
maasha has joined #ruby
Zebroid has joined #ruby
mary5030 has joined #ruby
Alina-malina has quit [Read error: Connection timed out]
vt102 has joined #ruby
<maasha> hi
jonahR has joined #ruby
Alina-malina has joined #ruby
Xeago has joined #ruby
SilverKey has joined #ruby
s2013 has quit [Ping timeout: 255 seconds]
<maasha> This line: status << Marshal.load(File.read(file)) gives me this error: ArgumentError: marshal data too short, but only sometimes. What can be done?
<maasha> Me thinks something is accessing the file
Takle has quit [Remote host closed the connection]
kaspergrubbe has quit [Remote host closed the connection]
Zebroid has quit [Ping timeout: 240 seconds]
kaspergrubbe has joined #ruby
charliesome has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
<pontiki> wasamasa: you could look at curb gem
<pontiki> wrapper for libcurl
himsin has quit [Quit: himsin]
<wasamasa> I'm actually doing that right now
mercerist has quit [Quit: Computer has gone to sleep.]
<wasamasa> looking through the source to figure out how exactly it maps the options to curl
hamakn has joined #ruby
foooobear has quit [Quit: Computer has gone to sleep.]
chrstphrhrt has joined #ruby
mercerist has joined #ruby
jonasbjork has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has joined #ruby
aniM has quit [Ping timeout: 264 seconds]
Stalkr_ has joined #ruby
Stalkr_ has joined #ruby
maestrojed has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
<maasha> hm, fixed with rescue ArgumentError; retry; end
shredding has joined #ruby
zB0hs has joined #ruby
libsys has quit [Ping timeout: 240 seconds]
<maasha> next issue. What is the most elegant way to alert during gem installation if a third party binary is missing? I want to include rgplot in my gemspec file, but that requires gnuplot to be installed.
Xeago has quit [Read error: Connection reset by peer]
Ankhers has joined #ruby
anarang has quit [Ping timeout: 272 seconds]
northfurr has quit [Quit: northfurr]
hpoydar has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
hpoydar has joined #ruby
momomomomo has joined #ruby
Takle has joined #ruby
jottr has quit [Ping timeout: 244 seconds]
dEPy has joined #ruby
ylluminate has joined #ruby
aniM has joined #ruby
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago has joined #ruby
lemur has joined #ruby
fgo has quit [Remote host closed the connection]
spastorino has joined #ruby
hpoydar has quit [Ping timeout: 240 seconds]
|RicharD| has joined #ruby
noop has quit [Ping timeout: 240 seconds]
M-Technic has quit [Quit: leaving]
enebo has joined #ruby
ari-_-e has quit [Ping timeout: 255 seconds]
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
autonomousdev has joined #ruby
yfeldblum has joined #ruby
hamakn has quit [Remote host closed the connection]
|RicharD| has quit [Client Quit]
hamakn has joined #ruby
RaCx has joined #ruby
diegoviola has quit [Ping timeout: 264 seconds]
jespada has joined #ruby
yubrew has joined #ruby
jonahR has quit [Remote host closed the connection]
codeurge has joined #ruby
LekeFly_ has joined #ruby
jonahR has joined #ruby
havenwood has joined #ruby
vpretzel_ has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
<Macaveli> Can you specify a new array if it does not exist already? Meaning you can put this in one line - > https://gist.github.com/YOUConsulting/4bcf1071b37918f3c138
Squarepy has joined #ruby
Squarepy has quit [Changing host]
Squarepy has joined #ruby
NukePuppy has joined #ruby
lw has joined #ruby
jheg has joined #ruby
ascarter has joined #ruby
Squarepy has quit [Remote host closed the connection]
dreamchaser has quit [Quit: Textual IRC Client: www.textualapp.com]
<Sou|cutter> Macaveli: error_msg = ["hello"]
Squarepy has joined #ruby
dreamchaser has joined #ruby
Squarepy has quit [Remote host closed the connection]
LekeFly has quit [Ping timeout: 272 seconds]
diegoviola has joined #ruby
alexju has joined #ruby
xpbatj has quit [Ping timeout: 264 seconds]
Squarepy has joined #ruby
<Macaveli> Sou|cutter, more specific it looks like this so that's not an option: https://gist.github.com/YOUConsulting/4bcf1071b37918f3c138
vpretzel has quit [Ping timeout: 244 seconds]
yekta has joined #ruby
krz has joined #ruby
<Sou|cutter> Macaveli: each_with_object probably
<Macaveli> euhm Sou|cutter ?
orionstein_away is now known as orionstein
jonahR_ has joined #ruby
<Macaveli> don't follow there
dukedave has joined #ruby
jonahR has quit [Ping timeout: 240 seconds]
yakko has joined #ruby
<Sou|cutter> oh maybe that's just rails
<centrx> map flatten works too
wendly has joined #ruby
<centrx> each_with_object is in core Ruby now
<Sou|cutter> oh no
<Macaveli> the each do is fine
<centrx> I would use map/flatten personally
<Macaveli> I just want to be able not to define the Array at first
kevind has joined #ruby
* apeiros introduces centrx to flat_map
<apeiros> also, map + flatten == YOUDIDITWRONG!
<apeiros> IMO
<apeiros> (yes, no H. I have no humble opinions)
<Macaveli> aaand I'm not following again :p
jobewan has joined #ruby
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
garndt has joined #ruby
<Macaveli> why the flatten?
<Sou|cutter> because a regular map would return an array of arrays
ixti has joined #ruby
freeone3000 has joined #ruby
<workmad3> Sou|cutter: each_with_object is in ruby core now btw ;)
tobago has quit [Remote host closed the connection]
<Sou|cutter> workmad3: yeah, I wasn't sure - just saw that
nickgartmann has left #ruby [#ruby]
<Sou|cutter> I mostly do rails, so I get confused
<Macaveli> Hanmac, centrx so I ended up with this now -> https://gist.github.com/YOUConsulting/4bcf1071b37918f3c138
<Macaveli> and that looks freaking sexy!
<workmad3> Macaveli: you could do error_msg = @user.personal_info.errors.messages.inject([]) {|ary, msgs| ary.concat(msgs)}
deathknight has quit [Ping timeout: 240 seconds]
freeone3000 has quit [Client Quit]
<workmad3> oh wait, missed the stuff inside the inner loop
LekeFly_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sk87 has joined #ruby
<Hanmac> Macaveli: you use flat_map above, so you dont need a flatten below
<workmad3> error_msg = @user.personal_info.errors.messages.inject([]) {|ary, msgs| ary.concat(msgs.map{|msg| I18n.t(:"errors.format", {:default => "%{attribute} %{message}", :attribute => PersonalInfo.translated_attr(attr), :message => msg})})}... looks less nice now :)
djcp has joined #ruby
djcp has left #ruby [#ruby]
ari-_-e has joined #ruby
blackmesa has joined #ruby
<workmad3> Macaveli: that said... isn't this what errors.full_messages does?
<Macaveli> we are arguing about something that is already great
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Macaveli> how are you going to make it even more superior than?
doev has quit [Ping timeout: 255 seconds]
jhass is now known as jhass|off
<Macaveli> great and readable workmad3 :p
roolo has joined #ruby
mailo has joined #ruby
<workmad3> Macaveli: error_msg = @user.personal_info.errors.full_messages ? ;)
doev has joined #ruby
<apeiros> workmad3: why use inject with concat? why not with +?
ARM9 has left #ruby ["Leaving"]
<apeiros> if you use concat, use each_with_object IMO
edwardly has joined #ruby
<workmad3> apeiros: because I meant to use each_with_object :)
<apeiros> eye C
pu22l3r has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<Sou|cutter> Macaveli: I would argue that the original version was superior since you understood it and didn't need to rack your brain to find a single-chain version
<workmad3> Macaveli: heh :) it even looks like you've copied code out of errors.full_message(:attr) in order to construct that :)
<Macaveli> I have workmad3 :)
pu22l3r has joined #ruby
dEPy has quit [Quit: Lingo - http://www.lingoirc.com]
<workmad3> Macaveli: so again... why not just use .full_messages ? ;)
<Sou|cutter> ah, well maybe you didn't understand it
<Macaveli> translations
<workmad3> Macaveli: full_messages uses translations...
<Macaveli> not in my scenario atm ;)
<Macaveli> difficult to explain :p
<workmad3> Macaveli: so why not monkey-patch full_message to handle your translation?
<workmad3> Macaveli: and then use full_messages? ;)
tagrudev has quit [Remote host closed the connection]
hpoydar has joined #ruby
gypsydave5 has joined #ruby
<Macaveli> NO Monkey PATCHING
<Macaveli> *error*errror*does*not*compute*error*error*
<Macaveli> i'm not falling for your trickery :D
jottr has joined #ruby
asteve has joined #ruby
<workmad3> heh
* apeiros is currently monkey patching JS
<apeiros> JS core method support is horrible
<workmad3> apeiros: is it really monkey patching when 'objects' are pretty much just hashes and you're swapping out an attribute value? :)
momomomomo has quit [Quit: momomomomo]
<apeiros> workmad3: wrong assumption
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<apeiros> I change Object.prototype, Array.prototype etc.
libsys has joined #ruby
<workmad3> apeiros: heh
<apeiros> so yes, it is *really* monkey patching
<apeiros> just in prototypical OO way :)
subraminion_ has quit [Quit: Lingo - http://www.lingoirc.com]
sk87 has joined #ruby
GeraldoRamos has joined #ruby
<apeiros> I managed to break jQuery 3 times so far :D
<workmad3> woo!
trepidaciousMBR has quit [Quit: trepidaciousMBR]
<apeiros> first one was clearly my fault, though
<apeiros> I just added the functions to the prototype instead of properly using defineProperty
momomomomo has joined #ruby
Zebroid has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
<wasamasa> hmpf
<wasamasa> I think I'll just shell out to curl this time
SBoolean has joined #ruby
<wasamasa> almost had it with curb, but it doesn't allow to override the http method used in a simple manner
mikecmpbll has quit [Ping timeout: 240 seconds]
<csmrfx> apeiros: do your instances serielize
<matti> Shelling out :(
<apeiros> csmrfx: what do you mean?
kevind_ has joined #ruby
<csmrfx> the JSON.Stringify test
datafirm has joined #ruby
<csmrfx> hehe off topic
<apeiros> you mean whether JSON.stringify({a: 1}) still // => '{"a":1}' ?
Xeago has quit [Read error: Connection reset by peer]
<apeiros> sure. that's part of the point of using defineProperty
mikecmpbll has joined #ruby
Xeago has joined #ruby
<apeiros> though, just tested - still works like that if you do it improperly
GeraldoRamos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoviola has quit [Quit: WeeChat 0.4.3]
phoo1234567 has quit [Remote host closed the connection]
kevind has quit [Ping timeout: 240 seconds]
<csmrfx> if errors or circular refs
phoo1234567 has joined #ruby
kevind_ is now known as kevind
Takle has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
centrx has quit [Quit: Mission accomplished. Ready for self-termination.]
fgo has joined #ruby
anaeem1__ has joined #ruby
datafirm has quit [Ping timeout: 240 seconds]
phinfonet has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
aganov has quit [Remote host closed the connection]
anaeem1_ has quit [Ping timeout: 245 seconds]
Macaveli has quit [Ping timeout: 252 seconds]
sailias has quit [Read error: Connection reset by peer]
fgo has quit [Ping timeout: 240 seconds]
codeurge has quit [Quit: Quit.]
dachi has quit [Quit: ...]
doev has quit [Read error: Connection reset by peer]
jprovazn is now known as jprovazn_afk
doev has joined #ruby
mikecmpbll has joined #ruby
rayners has joined #ruby
jonasbjork has joined #ruby
chepre has quit [Quit: This computer has gone to sleep]
mikespla_ has joined #ruby
Takle has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
mikesplain has quit [Ping timeout: 240 seconds]
dwayhs has joined #ruby
jonasbjork has quit [Client Quit]
mikespla_ has quit [Read error: Connection reset by peer]
mikesplain has joined #ruby
ffranz has joined #ruby
deathknight has joined #ruby
vyorkin has quit [Ping timeout: 244 seconds]
jobewan has quit [Quit: Leaving]
mikepack has joined #ruby
jobewan has joined #ruby
jonahR_ is now known as jonahR
jobewan has quit [Client Quit]
jobewan has joined #ruby
<lagweezle> aaauuurgh
shvelo has quit [Ping timeout: 240 seconds]
<lagweezle> Methinks I'm having some namespace problems. I think I know how to solve it--Instead of Spacing::WORD use NovelCompression::Spacing::WORD--but I dislike that solution as it is awfully damned wordy.
shvelo has joined #ruby
mikespla_ has joined #ruby
mikesplain has quit [Read error: Connection reset by peer]
jottr has joined #ruby
mikespla_ has quit [Read error: Connection reset by peer]
jobewan has quit [Client Quit]
<lagweezle> https://github.com/ncolton/dailyprogrammer/tree/extract_spacing_logic for the code; specifically for spec/lib/novel_compression/spacing_spec.rb -- Failure/Error: let(:stack) { [Spacing::WORD, Spacing::NEWLINE] } NameError: unitialized constant Spacing
jobewan has joined #ruby
mikesplain has joined #ruby
jobewan has quit [Read error: Connection reset by peer]
geopet has joined #ruby
<lagweezle> I suspect if I added a module line (stanza?) in there somewhere it would be happy, but not sure where or how ...
<lagweezle> Halp?
maasha has quit [Ping timeout: 246 seconds]
tier has joined #ruby
squaresurf has joined #ruby
mgberlin has joined #ruby
dukedave has quit [Ping timeout: 244 seconds]
squaresurf has left #ruby [#ruby]
lmickh has joined #ruby
ascarter has joined #ruby
jobewan has joined #ruby
bal has quit [Quit: bal]
lkba has quit [Read error: Connection reset by peer]
zigomir has quit [Remote host closed the connection]
AndChat| has joined #ruby
kwd has quit [Quit: kwd]
zigomir has joined #ruby
Sharker has joined #ruby
zigomir has quit [Read error: Connection reset by peer]
terrellt has joined #ruby
zigomir has joined #ruby
<workmad3> lagweezle: you could introduce at the top of the describe block 'let(:spacing) {NovelCompression::Spacing}'
mgberlin has quit [Remote host closed the connection]
<workmad3> lagweezle: then your stack could be 'let(:stack) {[spacing::WORD, spacing::WORD]}'
dik_dak has joined #ruby
olivier_bK has quit [Ping timeout: 240 seconds]
<inukshuk> lagweezle: you could wrap your describe with `module NovelCompression` then the lookup should work, no?
<inukshuk> lagweezle: like you, i would add it at the top
<lagweezle> workmad3: I get what you're saying; will be trying inukshuk as, to me, at least, it ends in a clearer statement of what is going on by structure
sailias has joined #ruby
<lagweezle> inukshuk: That appears to have done it.
<lagweezle> I knew it was something simple...
<lagweezle> Namespaces still confound me.
<inukshuk> lagweezle: you can then also just say `describe Spacing`
<lagweezle> Hmm.
nickenchuggets has joined #ruby
chrstphrhrt has quit [Read error: Connection reset by peer]
<lagweezle> Nope. Can't swap the module for a 'describe NovelCompression do' line. Heh.
<lagweezle> Thank you, both of you!
<lagweezle> Now to hastily commit before my train stop! @.@
snath has joined #ruby
pu22l3r has quit [Ping timeout: 244 seconds]
<lagweezle> JUST in time! See you all in a few minutes.
stytown has joined #ruby
sevenseacat has quit [Ping timeout: 240 seconds]
chrstphrhrt has joined #ruby
jaiks has quit [Ping timeout: 255 seconds]
dc has quit [Remote host closed the connection]
vyorkin has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
trepidaciousMBR has joined #ruby
fgo has joined #ruby
edgarjs_afk is now known as edgarjs
RaCx has quit [Ping timeout: 240 seconds]
RaCx has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gazarsgo has left #ruby [#ruby]
cmhobbs has joined #ruby
posixpascal has quit [Ping timeout: 252 seconds]
cmhobbs has quit [Client Quit]
j_mcnally has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
cmhobbs has joined #ruby
cmhobbs has quit [Changing host]
cmhobbs has joined #ruby
stytown has quit [Quit: stytown]
wendly has quit [Remote host closed the connection]
jfran has joined #ruby
deathknight has quit [Ping timeout: 272 seconds]
jfran has quit [Client Quit]
mattstratton has joined #ruby
Kruppe has quit [Quit: ZNC - http://znc.in]
libsys has quit [Remote host closed the connection]
<lagweezle> @whee
vyorkin has quit [Ping timeout: 244 seconds]
olivier_bK has joined #ruby
fabrice31 has quit [Remote host closed the connection]
zigomir has quit [Ping timeout: 244 seconds]
Kruppe has joined #ruby
Takle has quit [Remote host closed the connection]
hpoydar has quit [Remote host closed the connection]
LekeFly has joined #ruby
hpoydar has joined #ruby
rkazak_ has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
relajo has quit [Ping timeout: 255 seconds]
asteve has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
george2 has joined #ruby
b00stfr3ak has joined #ruby
djbkd has joined #ruby
hpoydar has quit [Ping timeout: 272 seconds]
Squarepy has quit [Remote host closed the connection]
dumdedum has quit [Quit: foo]
shenk has joined #ruby
shenk has quit [Max SendQ exceeded]
top4o has joined #ruby
aspires has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gr33n7007h> anyone tell me why this gives me a Dnsruby::ResolvError? https://gist.github.com/anonymous/aaaa3f1bdec15f852ddc
baroquebobcat has joined #ruby
amargherio has joined #ruby
apeiros has quit [Remote host closed the connection]
ccolorado has joined #ruby
apeiros has joined #ruby
benzrf|offline is now known as benzrf
saarinen has joined #ruby
chrishough has joined #ruby
<gr33n7007h> nvm i'm being a dumb shit
zigomir has joined #ruby
yeticry has quit [Ping timeout: 245 seconds]
dukedave has joined #ruby
apeiros has quit [Ping timeout: 245 seconds]
<ccolorado> Hi, I am trying to downcase the names of all the subdirectories on a specific path. I am having an error with one of the strings, I dont understand why ruby is referencing a method when I am using a string https://gist.github.com/anonymous/488d32551689e73d6ad8
hamakn_ has joined #ruby
<ccolorado> Can someone help me understand what it is going on ?
hamakn has quit [Read error: Connection reset by peer]
cory_ has joined #ruby
yeticry has joined #ruby
edgarjs is now known as edgarjs_afk
Takle has joined #ruby
datafirm has joined #ruby
timonv has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
b00stfr3ak has quit [Ping timeout: 244 seconds]
iceden has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
stytown has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
zigomir has quit [Ping timeout: 240 seconds]
b00stfr3ak has joined #ruby
blackmesa has joined #ruby
hpoydar has joined #ruby
zigomir has joined #ruby
banister has joined #ruby
Hobogrammer has joined #ruby
datafirm has quit [Ping timeout: 255 seconds]
Zebroid has quit [Remote host closed the connection]
mordof_work has quit [Read error: Connection reset by peer]
jazz5150 has left #ruby [#ruby]
dANOKELOFF has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
brtdv has quit [Ping timeout: 255 seconds]
dideler has quit [Ping timeout: 240 seconds]
Tricon has joined #ruby
Xeago has quit [Remote host closed the connection]
Kricir has joined #ruby
qba73 has quit []
<havenwood> ccolorado: You forgot the comma between params: FileUtils.mv site_path,<-- new_site_path
saarinen has quit [Quit: saarinen]
momomomomo has joined #ruby
<olivier_bK> do you know how to display with TkListbox a hash ?
solars has quit [Ping timeout: 272 seconds]
<havenwood> ccolorado: so it parsed as `FileUtils.mv(site_path(new_site_path))` instead of the intended `FileUtils.mv(site_path, new_site_path)`
jfran has joined #ruby
mercerist has quit [Quit: Computer has gone to sleep.]
dc has joined #ruby
b00stfr3ak has quit [Read error: Connection reset by peer]
<benzrf> ccolorado: have you been using haskell lately
<ccolorado> havenwood: I see thanks
<benzrf> or an ML
St_Marx has quit [Quit: Ex-Chat]
<ccolorado> benzrf: not really
LekeFly has joined #ruby
francisfish has joined #ruby
<benzrf> ok
jaiks has joined #ruby
<benzrf> just thought that was a possible cause of trying to separate args with spaces
<benzrf> :p
deric_skibotn has joined #ruby
hy2guru_ has joined #ruby
kotk_ has joined #ruby
lkba has joined #ruby
dreamchaser has quit [Read error: Connection reset by peer]
lesilu has joined #ruby
kotk has quit [Ping timeout: 244 seconds]
nateberkopec has quit [Quit: Leaving...]
b00stfr3ak has joined #ruby
jmurray has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
AndChat| has quit [Ping timeout: 264 seconds]
mikesplain has quit []
maximski has joined #ruby
hpoydar has quit [Remote host closed the connection]
posixpascal has joined #ruby
hpoydar has joined #ruby
apeiros has joined #ruby
sevenseacat has joined #ruby
yekta has quit [Quit: yekta]
yfeldblum has quit [Ping timeout: 264 seconds]
shredding has quit [Quit: shredding]
alem0lars has quit [Quit: alem0lars]
hpoydar has quit [Ping timeout: 255 seconds]
kireevco has joined #ruby
jhass|off is now known as jhass
niftylettuce_ has joined #ruby
rippa has joined #ruby
tkuchiki has quit [Remote host closed the connection]
rkazak_ has quit [Quit: rkazak_]
mikepack_ has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
CaptainJet has joined #ruby
Jeticus has joined #ruby
jahkobi has joined #ruby
shvelo has quit [Ping timeout: 272 seconds]
amargherio has quit [Remote host closed the connection]
sdouglas has joined #ruby
pietr0 has joined #ruby
tier has quit [Remote host closed the connection]
hpoydar has joined #ruby
bricker`work has joined #ruby
sevenseacat has quit [Quit: Leaving.]
fgo has joined #ruby
mikepack has quit [Ping timeout: 244 seconds]
sailias has quit [Read error: Connection reset by peer]
sailias1 has joined #ruby
sailias1 is now known as sailias
havenwood has quit [Remote host closed the connection]
CaptainJet has quit [Ping timeout: 244 seconds]
wowXD has quit [Remote host closed the connection]
hpoydar has quit [Remote host closed the connection]
hpoydar has joined #ruby
tier has joined #ruby
squaresurf has joined #ruby
Poky has quit [Remote host closed the connection]
red_hulk has quit [Quit: Leaving]
xcv_ has quit [Ping timeout: 240 seconds]
beneggett has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
zigomir has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
RaCx has joined #ruby
zigomir has joined #ruby
francisfish has joined #ruby
ClarusCogitatio has quit [Ping timeout: 272 seconds]
maletor has joined #ruby
SCHAAP137 has joined #ruby
pothibo has joined #ruby
amargherio has joined #ruby
goleldar has joined #ruby
edgarjs_afk is now known as edgarjs
hpoydar has quit [Ping timeout: 255 seconds]
chth0n has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby
larissa has joined #ruby
deathknight has joined #ruby
elricsfate has joined #ruby
kevind has quit [Quit: kevind]
St_Marx has joined #ruby
alex88 has quit [Quit: Leaving...]
squaresurf has left #ruby [#ruby]
kaspergrubbe has quit [Remote host closed the connection]
kevind has joined #ruby
carraroj has joined #ruby
zigomir has quit [Ping timeout: 245 seconds]
kaspergrubbe has joined #ruby
RaCx_ has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 244 seconds]
RaCx_ is now known as RaCx
francisfish has quit [Ping timeout: 255 seconds]
<dukedave> I'd like a subset of an array, between two elements. Can anyone suggest something nicer than this (or is this the 'way to do it')?
<dukedave> > x = [1,2,3,4,5,6]; x[x.find_index(3), x.find_index(5)]
<dukedave> >> x = [1,2,3,4,5,6]; x[x.find_index(3), x.find_index(5)]
<eval-in> dukedave => [3, 4, 5, 6] (https://eval.in/166412)
xcv has joined #ruby
blackmesa has quit [Ping timeout: 272 seconds]
rippa has quit [Ping timeout: 244 seconds]
pu22l3r has joined #ruby
Doppp has quit [Ping timeout: 240 seconds]
pu22l3r has quit [Remote host closed the connection]
maximski has quit [Read error: Connection reset by peer]
pu22l3r has joined #ruby
Alina-malina has quit [Max SendQ exceeded]
maximski has joined #ruby
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
geopet has quit []
Kricir has quit [Remote host closed the connection]
Alina-malina has joined #ruby
<jhass> >> (1..6).select {|x| x if x==3..x==5 }
<eval-in> jhass => [3, 4, 5] (https://eval.in/166416)
<daxroc> How do I dump all characters, newlines etc in a string ? need to see whats added to a $stdin.gets.chomp
rippa has joined #ruby
<jhass> I'm just messing with you, #index (no need for the find_) is fine ;)
Joulse has quit [Quit: Joulse]
s2013 has joined #ruby
<jhass> daxroc: p gets.chomp
<dukedave> jhass, ah, I never realized find_ was an alias
<dukedave> Thanks :)
axl_ has joined #ruby
<elricsfate> Hass anyone here successfully compiled 1.8.7 on CentOS?
papercode has joined #ruby
<jhass> probably, but 1.8.7 is out of support anyway
<elricsfate> I'm running into a bug with the open ssl code. I found a patch but it doesn't seem to be working.
ClarusCogitatio has joined #ruby
andrewjanssen has joined #ruby
<elricsfate> jhass, I'm aware but it's the installed version on CentOS 6.5
<elricsfate> jhass, If you can point me to a repository with later RPMs then I'll be sure to use it
<jhass> I avoid Cent
<stian> lol rpmr
<stian> *rmps
<matti> dukedave: x[x.index(3)..x.index(5)]
<stian> I can't even spell :(
<matti> dukedave: Oh, jhass told you already ;S
<matti> Bah.
<dukedave> matti, thanks nonetheless :)
<elricsfate> This is the error I see if anyone can offer input
<stian> no new packages for ruby in CenOS, elricsfate ?
<stian> :(
jottr has quit [Ping timeout: 272 seconds]
Takle has quit [Remote host closed the connection]
<elricsfate> stian, There are some later packages but they won't replace the "regular" package
<stian> replace?
<elricsfate> I was going to handle things with rbenv/rvm but puppet doesn't play nice with them
<elricsfate> stian, Tl;DR it's called by a different name than /usr/bin/ruby
<stian> sure that's just not a matter of setting your paths correctly?
<elricsfate> stian, Yes
<stian> well fuckit, overwrite it or create a new symlink to /usr/bin/ruby> :P
<elricsfate> stian, Multiple different apps would need to have paths changed and then I would have to do that every single time
<elricsfate> stian, Still doesn't work
<stian> yeah that sounds like a pain in the ass
<stian> hmm
<elricsfate> stian, Puppet installs stuff into a certain ruby directory based off of version
datafirm has joined #ruby
<elricsfate> Same thing with facter, hiera, and it's supporters
<stian> I don't use puppet, so I'm sorry I don't know :/
posixpascal has quit [Ping timeout: 252 seconds]
<elricsfate> I'm trying to recompile so I can get rid of pthreads
hpoydar has joined #ruby
<stian> ugh, sounds like you're in for some pian
<stian> *pain
<elricsfate> stian, Well I know how puppet works, I just need to get ruby compiled :)
<stian> indeed haha
pu22l3r has quit [Remote host closed the connection]
<stian> well good luck! :)
mikepack_ has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
mattmcclure has joined #ruby
mikepack has joined #ruby
prathamesh has joined #ruby
<elricsfate> This is the issue I seem to be hitting but I can't get the patch to work. Is there any certain way I should be applying it? I'm pretty sure I just got to the source directory and patch -p0 < patchname
Takle has joined #ruby
sailias has quit [Read error: Connection reset by peer]
lkba has joined #ruby
jmurray has joined #ruby
stytown has quit [Quit: stytown]
foooobear has joined #ruby
<stian> I dunno elricsfate :/
<elricsfate> Feelsbadman
stytown has joined #ruby
<stian> sorry to be that guy
<elricsfate> Going to try and apply this manually
foooobear has quit [Client Quit]
<stian> do that, and if that doesn't work use a different distro? :P
noop has joined #ruby
trepidaciousMBR has quit [Quit: trepidaciousMBR]
<elricsfate> stian, I may, but this is going to potentially be important infrastructure.
s2013_ has joined #ruby
datafirm has quit [Read error: Connection reset by peer]
codeurge has joined #ruby
agent_white has joined #ruby
kotk has joined #ruby
datafirm has joined #ruby
klaut has quit [Remote host closed the connection]
mijicd has quit [Remote host closed the connection]
sailias has joined #ruby
lxsameer has joined #ruby
s2013 has quit [Ping timeout: 255 seconds]
klaut has joined #ruby
havenwood has joined #ruby
Arkaniad|Laptop has joined #ruby
kotk_ has quit [Ping timeout: 240 seconds]
olivier_bK has quit [Ping timeout: 272 seconds]
Zebroid has joined #ruby
andikr has joined #ruby
Deejay_ has quit [Quit: Computer has gone to sleep.]
klaut has quit [Remote host closed the connection]
andrewjanssen has quit [Quit: Leaving...]
hpoydar has quit [Remote host closed the connection]
hpoydar has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Zebroid_ has joined #ruby
datafirm has quit [Quit: Computer has gone to sleep.]
Doc_X has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
Zebroid has quit [Ping timeout: 245 seconds]
datafirm has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
blackmesa has joined #ruby
deathknight has quit [Remote host closed the connection]
Vivekananda has joined #ruby
gondalier has joined #ruby
yfeldblum has joined #ruby
andikr has quit [Remote host closed the connection]
codeurge has quit [Quit: Quit.]
naiyte has joined #ruby
Hanmac has quit [Quit: Leaving.]
hpoydar has quit [Ping timeout: 272 seconds]
Hanmac has joined #ruby
datafirm has quit [Ping timeout: 255 seconds]
<wasamasa> hmm
<wasamasa> my hoster I'm still on uses centos, compiles their own ruby and offers it to customers by modifying $PATH
sdouglas has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 255 seconds]
s2013_ is now known as s2013
andrewjanssen has joined #ruby
<havenwood> wasamasa: they should just put it in /usr/local
<elricsfate> wasamasa, Yes. They are likely using either rbenv or rvm
<elricsfate> havenwood, That doesn't make sense for hosts
<havenwood> elricsfate: then chruby :P
<elricsfate> They often have customers who need multiple versions of Ruby for different customs
gondalier has quit []
andrewjanssen has quit [Client Quit]
<wasamasa> elricsfate: they recommend using rbenv :P
<havenwood> elricsfate: makes sense if they're providing a single Ruby, which granted they should have multiple
<wasamasa> elricsfate: and discourage from rvm
<havenwood> shims.. >.>
<wasamasa> elricsfate: and have some extra advice for certain gems that fail to compile on centos
momomomomo has quit [Quit: momomomomo]
Xeago has joined #ruby
<elricsfate> Can't a guy just make install anymore
baroquebobcat has quit [Quit: baroquebobcat]
<havenwood> wasamasa: check out chruby as a shimless rbenv alternative
<wasamasa> havenwood: I've deferred the decision what to go for for now
codeurge has joined #ruby
<wasamasa> havenwood: and use gem with local installation
baroquebobcat has joined #ruby
sdouglas_ has joined #ruby
robbyoconnor has quit [Excess Flood]
<wasamasa> havenwood: chruby indeed looks good, I'm coming from python and am used to having virtualenv and pip
<wasamasa> havenwood: one to set up a "sandbox" I explicitly activate and deactivate, the other to install packages in it
robbyoconnor has joined #ruby
<havenwood> mmhmm
<wasamasa> as I understand it rubyists don't really use sandboxes
<Sou|cutter> wasamasa: it varies widely
pu22l3r has joined #ruby
stytown has quit [Quit: stytown]
<wasamasa> and rather install the gems for the ruby version they need
troyready has joined #ruby
exgf has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
xcv_ has joined #ruby
whomp__ has joined #ruby
Zebroid_ has quit [Remote host closed the connection]
kidoz has joined #ruby
paf0 has joined #ruby
Notte has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
rippa has quit [Ping timeout: 264 seconds]
stytown has joined #ruby
SilverKey has quit [Quit: Halted.]
dc has quit [Remote host closed the connection]
xcv has quit [Ping timeout: 240 seconds]
zigomir has joined #ruby
m8 has joined #ruby
mailo has quit [Quit: Leaving...]
roolo has quit [Quit: Leaving...]
gondalier has joined #ruby
Hobogrammer_ has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
benlieb has joined #ruby
jrhe has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GriffinHeart has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
<elricsfate> Anyone else that has luck compiling Ruby on CentOS?
<elricsfate> I'm currently locked up trying to finish this one step so I can continue a project XD
Notte has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 255 seconds]
carraroj has quit [Ping timeout: 240 seconds]
datafirm has joined #ruby
gondalier has quit [Client Quit]
Hobogrammer_ has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
GriffinHeart has quit [Ping timeout: 240 seconds]
bahar has quit [Ping timeout: 255 seconds]
<elricsfate> Are there any devs in here perhaps?
<lxsameer> hey guys, When I was listening to latest Ruby5. they made a joke about no one is using Mongodb any more. is it correct?
kaspergrubbe has joined #ruby
cmhobbs has quit [Ping timeout: 244 seconds]
wowXD has joined #ruby
robbyoconnor has quit [Excess Flood]
robbyoconnor has joined #ruby
nmokru has joined #ruby
<wasamasa> lxsameer: hi
bahar has joined #ruby
<lxsameer> wasamasa: hi
<wasamasa> elricsfate: I think you need to be a bit more specific than that
<wasamasa> elricsfate: there's enough people in here developing who get paid for it
fgo has quit [Ping timeout: 240 seconds]
<elricsfate> wasamasa, I thought the implied meaning would be understood, my apologies
nanoyak has joined #ruby
<elricsfate> Are any of the ruby devs or contributors in here?
Spami has joined #ruby
saarinen has joined #ruby
tacos1de has quit [Ping timeout: 264 seconds]
nanoyak has quit [Client Quit]
nanoyak has joined #ruby
<slash_nick> elricsfate: are you using chruby, rvm, anything like that? or are you just trying "yum install ruby"?
djbkd has joined #ruby
<elricsfate> slash_nick, Neither
<elricsfate> slash_nick, Well, none of that I mean
<elricsfate> slash_nick, I'm attempting to compile from SRPM
<slash_nick> elricsfate: is this a development or production env?
wowXD has quit [Ping timeout: 272 seconds]
<elricsfate> slash_nick, This will be production
<elricsfate> Currently it's still being provisioned/staged
<slash_nick> thanks for the info, it'll probably help others help you
<elricsfate> slash_nick, WEll thank you :). I'm pretty sure I listed all that earlier but I may have either forgotten or it may be too spread out.
<elricsfate> *Well
tacos1de has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
Takle has quit [Remote host closed the connection]
<brain_shim> elricsfate: Just clearly state what your problem is and you will probably get a clear answer in response. It's not productive to ask whether there is someone in the room who can answer a question you haven't even asked. ;)
<brain_shim> elricsfate: See: https://mikeash.com/getting_answers.html
Hobogrammer has joined #ruby
<elricsfate> brain_shim, I understand entirely. If you go further up you'll see that my problem has been stated and I've provided a pastebin to boot
Takle has joined #ruby
RaCx has joined #ruby
elaptics is now known as elaptics`away
Morkel has joined #ruby
<brain_shim> elricsfate: Cool cool. It's just such solid advice I hazard to link it on the off chance.
<elricsfate> In short I am trying to compile on CentOS 6.5 from the srpm. I believe I am running into a bug with openssl which leads to this error on compile http://fpaste.org/112691/40363049/. I believe the bug is fixed by this patch https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/41808/diff?utf8=%E2%9C%93&type=sbs. With that said, I've attempted patching both manually and automatically and I'm
<elricsfate> still getting the same error.
carlyle has joined #ruby
mityaz has joined #ruby
rotor has quit [Quit: roev]
<whomp__> sometimes it's like my ruby is two steps behind my file system... when i run a system command with the ` char that generates files, ruby may or may not in the next step see those files, when i run another command with the ` char. is this possible?
<agent_white> whomp__: What's your code?
<whomp__> i think it may be because of Benchmark.measure
binaryhat has joined #ruby
shredding has joined #ruby
<agent_white> Which line is having the issue?
<agent_white> 4-5?
steeve_ has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
<wasamasa> hello, agent_white
<agent_white> wasamasa: Heya!
steeve_ has quit [Client Quit]
dangerousdave has joined #ruby
<wasamasa> I remember seeing your nick somewhere else on freenode
<wasamasa> #archlinux I assume
steeve_ has joined #ruby
<whomp__> agent_white, 8 generates files which 15 needs to see (they start with Ozone)
<csmrfx> whomp__: perhaps your system command didnt work
<agent_white> wasamasa: #archlinuz I believe as well :D
<whomp__> csmrfx, no it did, because right after i ran the same exact command, and boom there are the files i was trying to find with ls
<csmrfx> nothing happened, now what
<whomp__> and sometimes it works
codeurge has quit [Ping timeout: 264 seconds]
binaryhat has quit [Client Quit]
<csmrfx> it works, except it didn't work, huh
codeurge has joined #ruby
gondalier has joined #ruby
<whomp__> yeah it's like there's a race condition
<whomp__> or something
<whomp__> do i have to sleep in between things
<whomp__> ?
<csmrfx> did you read ri Kernel.spawn
<csmrfx> uh, Proc.system
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
shredding has quit [Quit: shredding]
prathamesh has quit [Read error: Connection reset by peer]
<shevy> Kernel.sex
<shevy> System.finger
<shevy> and let's not forget .mount
<shevy> man, ruby is indeed a sexy language
<QKO> you mean hard.mount?
<shevy> nah
<shevy> you must be gentle
<shevy> things get smaller and smaller, and fragile
<shevy> SSD flash disk or however these small things are clalled
<shevy> *called
<whomp__> csmrfx, i don't see anything that would explain this behavior
mityaz has quit [Quit: See ya!]
<whomp__> the same thing happens with sed, too. i do sed ... > file && mv file other_file, but sometimes mv doesn't think file exists
<whomp__> just fyi this is on a dreamhost dedicated server
shinobi_one has joined #ruby
<csmrfx> you mean *gasp* that sometimes the prerequisite command fails?
jprovazn_afk has quit [Quit: Odcházím]
<whomp__> no, or else mv wouldn't get called
<whomp__> otherwise i wouldn't know what sed thought
jonasbjork has joined #ruby
<whomp__> *mv thought
maximski has quit [Read error: Connection reset by peer]
Zebroid has joined #ruby
<csmrfx> thats kinda true
<csmrfx> fail can occur even if command succeeds
djbkd has quit [Remote host closed the connection]
hermanmu_ has joined #ruby
maximski has joined #ruby
rkazak has joined #ruby
<shevy> QKO too scared to click on that link
RaCx has quit [Quit: Computer has gone to sleep.]
<whomp__> could it be an issue with the server, a corrupted file system or something?
<whomp__> hard disk failure?
kidoz has quit [Quit: Ухожу я от вас]
alem0lars has joined #ruby
<whomp__> sometimes i see a file for two seconds, then i ls again and it's not there
<QKO> shevy: tenacious D
<csmrfx> do you even test if the curl downloads something or not
<QKO> old music video
<whomp__> i see dead files... creepy
jonasbjork has quit [Client Quit]
Zebroid has quit [Remote host closed the connection]
<csmrfx> your approach seems sloppy, blame yourself
<whomp__> csmrfx, yeah i always ls afterwards just to see what it should've found. and the mv issue is ridiculous
pu22l3r has quit [Ping timeout: 244 seconds]
<QKO> shevy: contains some good lessons!
moted has joined #ruby
pothibo has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<shevy> hey I grew up with music like "93 Til Infinity" from souls of mischief
hermanmunster has quit [Ping timeout: 264 seconds]
<whomp__> csmrfx, still looking for a solution though...
x1337807x has joined #ruby
<csmrfx> seems to me your avoiding your task at hand
icole has joined #ruby
<whomp__> csmrfx, which is what
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
x1337807x has quit [Client Quit]
<csmrfx> ok I'm out!
alem0lars has quit [Client Quit]
<csmrfx> ta!
niharvey is now known as niharvey|screenc
Takle has quit [Remote host closed the connection]
rkazak has left #ruby [#ruby]
mg^ has joined #ruby
doev has quit [Quit: Verlassend]
zmack__ has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
x1337807x has joined #ruby
djbkd has joined #ruby
foooobear has joined #ruby
razrunelord has joined #ruby
jheg_ has joined #ruby
Xeago has joined #ruby
SilverKey has joined #ruby
JBreit has joined #ruby
maximski has quit []
Takle has joined #ruby
momomomomo has joined #ruby
razrunelord has quit [Client Quit]
razrunelord has joined #ruby
zmack__ has quit [Quit: Textual IRC Client: www.textualapp.com]
foooobear has quit [Quit: Computer has gone to sleep.]
marr has quit [Ping timeout: 272 seconds]
zmack__ has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
rdark_ has quit [Quit: leaving]
rdark has joined #ruby
rdark has quit [Client Quit]
foooobear has joined #ruby
djbkd has quit [Quit: My people need me...]
djbkd has joined #ruby
kaspergrubbe has joined #ruby
vyorkin has joined #ruby
wowXD has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
mikepack has quit [Remote host closed the connection]
lxsameer has quit [Quit: Leaving]
supermat has quit [Ping timeout: 272 seconds]
nanoyak has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
end_guy has quit [Ping timeout: 264 seconds]
mehlah has quit [Quit: Leaving...]
wowXD has quit [Ping timeout: 240 seconds]
olivier_bK has joined #ruby
Zebroid has joined #ruby
kirun has joined #ruby
noop has quit [Ping timeout: 240 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
end_guy has joined #ruby
supermat has joined #ruby
chepre has joined #ruby
hy2guru_ has quit [Quit: Connection closed for inactivity]
yfeldblum has joined #ruby
<elricsfate> I think I may have finally gotten it to compile.
<elricsfate> I sourced the patch from a different location and everything looks to be compiling now.
JohnFord has joined #ruby
gondalier has quit []
ashleah_ is now known as ashleah{K}
carraroj has joined #ruby
whomp__ has quit [Quit: Lost terminal]
RaCx has joined #ruby
diegoviola has quit [Ping timeout: 245 seconds]
spastorino has quit [Quit: Connection closed for inactivity]
fgo has joined #ruby
moritzs has quit [Ping timeout: 245 seconds]
gondalier has joined #ruby
dANOKELOFF has joined #ruby
jonasbjork has joined #ruby
diegoviola has joined #ruby
binaryhat has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andrewjanssen has joined #ruby
JasonG_ has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
djbkd has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
testcore has joined #ruby
rippa has joined #ruby
djbkd has joined #ruby
baroquebobcat has joined #ruby
carlyle has quit [Remote host closed the connection]
ghr has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
<shevy> can one of you translate this perl to me
<JasonG_> hello #ruby, would anyone be able to guide me on how I can make base64.encode64 read the string as unicode instead of ascii?
Ankhers has joined #ruby
<shevy> my $target = shift;
jeregrine has joined #ruby
Kricir has joined #ruby
zmack__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lolmaus has joined #ruby
momomomomo has quit [Quit: momomomomo]
binaryhat has quit [Quit: Leaving]
ghr has quit [Ping timeout: 244 seconds]
dANOKELOFF has quit [Remote host closed the connection]
<hoelzro> shevy: that's usually used to bind $target to a subroutine argument
<hoelzro> shift removes the first member of the given array and returns it
paf0 has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
<hoelzro> if there's no array provided and it's in a subroutine, it operates on @_ (the argument list)
<hoelzro> if outside of a subroutine, it operates on @ARGV
niftylettuce_ has quit [Quit: Connection closed for inactivity]
codeurge has quit [Ping timeout: 244 seconds]
<shevy> hmm
<JohnFord> @shevy if memory serves, that pops the first (or next available) argument off of the argument array of the enclosing function and assigns it to $target.
<shevy> in ruby this would be akin to ARGV.shift ?
<JohnFord> Ahh, nevermind. Was scrolled up and didn't see others were helping you.
<jhass> JasonG_: what do you mean? Can you show code and an error message?
<agent_white> JasonG_: Wait like... Base64.encode64("string").encode("UTF-8") ?
Shidash has joined #ruby
<hoelzro> shevy: yes
JBreit has left #ruby ["Leaving"]
<hoelzro> if it's outside of a sub
<shevy> ok thanks hoelzro and JohnFord
chepre has quit [Quit: Leaving]
<hoelzro> np
spastorino has joined #ruby
paf0 has joined #ruby
pu22l3r has joined #ruby
paf0 has quit [Remote host closed the connection]
djbkd has joined #ruby
paf0 has joined #ruby
stytown has quit [Quit: stytown]
cnj has quit [Ping timeout: 255 seconds]
diegoviola has quit [Read error: Connection reset by peer]
<JasonG_> Base64.encode64($a) it interprets $a as ascii even if i force encoding to utf-8
codeurge has joined #ruby
<jhass> uh, don't use globals
<jhass> ever
<jhass> also proper variable names
<jhass> and as said, ideally give us something we can reproduce
sdouglas_ has quit [Remote host closed the connection]
<agent_white> JasonG_: What's your ENV["LANG"] show?
chrstphrhrt has quit [Quit: chrstphrhrt]
<JasonG_> "en_US.UTF-8"
chrstphrhrt has joined #ruby
jtiggo has joined #ruby
<shevy> good old UTF problems - they never go away don't they :D
pu22l3r has quit [Ping timeout: 264 seconds]
jespada has quit [Ping timeout: 240 seconds]
tris has joined #ruby
<jhass> shevy: only because we have to support anything else
ehlovader has quit [Ping timeout: 272 seconds]
<shevy> oh the excuses! ;)
yetanotherdave has joined #ruby
<shevy> JasonG_ you can also use .valid_encoding?
dwayhs has quit [Read error: Connection reset by peer]
jespada has joined #ruby
<shevy> usually .encode! and .force_encoding should work
alem0lars has joined #ruby
dwayhs has joined #ruby
matson has joined #ruby
supermat has quit [Quit: ZNC - http://znc.in]
<JasonG_> irb(main):006:0> Base64.decode64((Base64.encode64("test".force_encoding("UTF-8")))).encoding
<JasonG_> => #<Encoding:ASCII-8BIT>
supermat has joined #ruby
zmack_ has joined #ruby
<apeiros> JasonG_: of course. base64 does not contain encoding information of the original data
codeurge has quit [Ping timeout: 264 seconds]
<apeiros> and it is often used to encode binary data too. so binary is the only resulting encoding which makes sense.
maximski has joined #ruby
<Mon_Ouie> Notice the encoding is not ASCII, it's ASCII 8-bit, which means binary
maximski has quit [Max SendQ exceeded]
<JasonG_> in powershell I would [convert]::tobase64string([text.encoding]::unicode.getbytes('test')), need to find a ruby equiv
gondalier has quit []
maximski has joined #ruby
sdouglas has joined #ruby
<Mon_Ouie> In your example you are setting the encoding of the input string, which I assume was already set properly, so that's useless. You need to change the encoding of the output string, by calling #force_encoding on it.
codeurge has joined #ruby
mnemon2 has joined #ruby
kenneth has joined #ruby
<JasonG_> is there builtin lib to base64 a byte array in ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Mon_Ouie> There's the one you're using right now. A string with encoding set to binary is just a byte array.
sdouglas has quit [Remote host closed the connection]
voodoofish430 has quit [Ping timeout: 272 seconds]
sepp2k has joined #ruby
Olipro has quit [*.net *.split]
mnemon has quit [*.net *.split]
<JasonG_> i dont believe force_encoding is changing it. if I do StringVar.bytes.to_a, its the same whether its ascii or utf-8
andrewjanssen has quit [Quit: Leaving...]
gondalier has joined #ruby
<Mon_Ouie> Of course it is, UTF-8 is ASCII compatible. Furthermore, force_encoding is about changing the way bytes are interpreted. To convert between two encodings, you'd use #encode.
Deejay_ has joined #ruby
atraylen has joined #ruby
wizzywoZzy has joined #ruby
scarolan has joined #ruby
havenwood has quit []
scarolan has left #ruby [#ruby]
chrstphrhrt has quit [Quit: chrstphrhrt]
marr has joined #ruby
ehlovader has joined #ruby
custompro98 has joined #ruby
x1337807x has joined #ruby
<JasonG_> hmm ok, same result as before w/ encode. I will have to find another way. The base64 is not being decoded by ruby and requires that the original string be unicode. Thanks for the help though.
niharvey|screenc is now known as niharvey
custompro98 has left #ruby ["Leaving"]
artmann_ has quit [Ping timeout: 240 seconds]
kaspergr_ has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
momomomomo has joined #ruby
voodoofish430 has joined #ruby
chrstphrhrt has joined #ruby
voodoofish4301 has joined #ruby
kaspergrubbe has quit [Ping timeout: 240 seconds]
rippa has quit [Ping timeout: 272 seconds]
artmann has joined #ruby
mattstra_ has joined #ruby
beneggett has joined #ruby
nanoyak has joined #ruby
GriffinHeart has joined #ruby
heftig has joined #ruby
mattstra_ has quit [Client Quit]
emptyflask has joined #ruby
catblade has joined #ruby
catblade has left #ruby [#ruby]
mjuszczak has joined #ruby
<elricsfate> Can anyone confirm if the above is part of a regular ruby compile? It's been sitting there for awhile now.
rezzack has joined #ruby
voodoofish430 has quit [Ping timeout: 264 seconds]
<Mon_Ouie> I don't think running tests is part of the normal compilation — then again, here there are failing tests…
chrishough has quit [Quit: chrishough]
<elricsfate> Mon_Ouie, This is being done via a rpmbuild
<Mon_Ouie> What version are you compiling?
<elricsfate> Mon_Ouie, Latest version on CentOS I believe it's a patch level of 1.8.7
jonasbjork has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ddv> ruby 1.8.7?
wowXD has joined #ruby
anaeem1__ has quit [Read error: Connection reset by peer]
<elricsfate> ddv: Yes.
<ddv> that is ancient
<elricsfate> I am aware
anaeem1_ has joined #ruby
<elricsfate> ddv, It's what comes with CentOS
<elricsfate> ddv, I just need to get this compile wokring so I can disable this damn option
comingHome has joined #ruby
<elricsfate> I've been on this for 8+ hours now
beneggett has quit [Read error: Connection reset by peer]
GriffinHeart has quit [Ping timeout: 245 seconds]
<elricsfate> I couldn't even get it to start compiling openssl before and I finally fixed that with a patch.
beneggett has joined #ruby
bbloom has quit [Ping timeout: 240 seconds]
carlyle has joined #ruby
<Mon_Ouie> Well, since tests are failing there most certainly is a problem — I'm just more enclined to think it would be in your setup than in Ruby itself
<elricsfate> Mon_Ouie, "My Setup"?
<Mon_Ouie> It would help to know what tests are failing
<shevy> is 'test/unit' a good way to test?
<Mon_Ouie> I mean things like the versions of external libraries that are used by Ruby
beneggett has quit [Client Quit]
<elricsfate> Mon_Ouie, Is there a way to obtain that information (failing tests)?
jonasbjork has joined #ruby
jonasbjork has quit [Client Quit]
<elricsfate> I can paste more of the build output if that will help.
razrunelord has quit [Remote host closed the connection]
skaflem has quit [Quit: Leaving]
<Mon_Ouie> It's stuck on that screen that you showed us? Normally I assume it would print all of that at the end or when it is interrupted.
wowXD has quit [Ping timeout: 240 seconds]
razrunelord has joined #ruby
<elricsfate> Mon_Ouie, It's just sitting here. Every few minutes it will output another "E"
<elricsfate> Current ........................................................EEEEEEEEE
<elricsfate> That is the current read at the bottom
beneggett has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
Kricir has quit [Remote host closed the connection]
<axl_> It seems that DateTime used to be a class is ruby 1.9.x but was removed in 2.x ?
alvaro_o has joined #ruby
<axl_> Where can I find the reason for that ?
<jhass> it's still there, you need to require 'date'
Takle has quit [Remote host closed the connection]
<elricsfate> Mon_Ouie, I'm seeing multiple instances of RPM build for some reason. Let me look at some things really quick.
aspires has quit []
<JasonG_> why is this true? "test".encode!("Utf-8").bytes.to_a == "test".encode!("ascii").bytes.to_a
razrunelord has quit [Ping timeout: 255 seconds]
mercerist has joined #ruby
<tus> anyone here us aptana as IDE?
Olipro has joined #ruby
paf0 has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jaiks has left #ruby [#ruby]
jaiks has joined #ruby
gondalier has quit []
_justin has joined #ruby
<shevy> tus I use bluefish 1.0.7
<Mon_Ouie> JasonG_: Because UTF-8 is ASCII compatible. UTF-8 strings that can be represented in ASCII use the exact same representation.
Takle has joined #ruby
<elricsfate> Mon_Ouie, I'm going to rerun it now. Just rebooted to make sure nothing leftover was running in background. If it reaches that again do you want me to kill the process and see what it loks out?
mehlah has joined #ruby
<elricsfate> *logs out?
baroquebobcat has quit [Quit: baroquebobcat]
fgo has joined #ruby
<Mon_Ouie> elricsfate: Yes, that should work
<axl_> jhass: Thanks so much!
<elricsfate> Mon_Ouie, Awesome. Thanks for the help. it's really appreciated.
baroquebobcat has joined #ruby
x1337807x has joined #ruby
fgo has quit [Read error: No route to host]
Takle has quit [Remote host closed the connection]
x1337807x has quit [Client Quit]
<JasonG_> yes, but unicode is not 1 byte per char like ascii. i should be seeing 00 in the bytes D:
<axl_> jhass: re DateTime. I thought that irb wouldn’t need me to require ‘date’… why is it that I should require ‘date’ to get DateTime, but not Date ?
fgo has joined #ruby
<Mon_Ouie> JasonG_: No you shouldn't. In UTF-8, some characters need multiple bytes but some need only one.
<shevy> axl_ it's one of the few inconsistencies in ruby stdlib
<jhass> axl_: Date is in core, require 'date' adds additional functionality to it
<Mon_Ouie> Specifically, all characters that are also part of the ASCII charset are only 1-byte
cobakobodob has quit [Ping timeout: 272 seconds]
<axl_> shevy: thanks!
<axl_> jhass: Thanks! That helps. I find it strange though… It’s not obvious…
<jhass> yes, as shevy said one of the few inconsistencies
asteve has quit [Quit: Textual IRC Client: www.textualapp.com]
Spami has quit [Quit: This computer has gone to sleep]
<shevy> axl_ one day it will hopefully be cleaned up, perhaps when the whole stdlib of ruby becomes gem-like
<axl_> jhass: Thanks again!
<axl_> shevy: thanks for answering my questions! :)
<shevy> require 'optparse'; OptionParser.new
<axl_> appreciate the help guys!
dc has joined #ruby
djbkd has quit [Remote host closed the connection]
<shevy> require 'getoptlong'; GetoptLong.new
<shevy> two option parsers in stdlib, two different ways to require and use them
<elricsfate> Mon_Ouie, That is what I get when I ctrl+c
<elricsfate> Mon_Ouie, Is that of any help or can I provide something else?
fgo has quit [Ping timeout: 255 seconds]
dc has quit [Remote host closed the connection]
dc has joined #ruby
diegoviola has joined #ruby
jaiks has quit [Quit: Leaving.]
djbkd has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
ghr has joined #ruby
<Mon_Ouie> Oh, I was hoping it would print the test results using an at_exit hook but it doesn't look like that's the case. Anyway it seems to get stuck when trying to use OpenSSL. You mentioned you needed a patch to get it to compile, are you sure that did not introduce your problem?
<elricsfate> Mon_Ouie, It's possible it did but I doubt it. Regardless, I could not get it to even get this far without the patch
dc has quit [Remote host closed the connection]
Zebroid has quit [Remote host closed the connection]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dc has joined #ruby
binaryhat has joined #ruby
kenneth has joined #ruby
<elricsfate> Mon_Ouie, This is the patch I used. This was a recorded bug where you couldn't compile ruby due to a bug in the OpenSSL library
<elricsfate> The patch I used SHOULD have fixed that so thigns worked correctly
<elricsfate> Mon_Ouie, I just have no clue where or what to look at now
cnj has joined #ruby
<elricsfate> All I need is to get this working without pthread enabled
paf0 has joined #ruby
Steve21 has joined #ruby
sdouglas has joined #ruby
dc has quit [Remote host closed the connection]
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
pu22l3r has joined #ruby
<elricsfate> I'm using this RPM directly from the repositories.
<elricsfate> *SRPM
ghr has quit [Ping timeout: 240 seconds]
axl_ has quit [Quit: axl_]
ajf- has quit [Ping timeout: 252 seconds]
jahkobi has quit [Quit: jahkobi]
<elricsfate> Actually, that seems to be 1 revision later
<elricsfate> Let me try that one
axl_ has joined #ruby
<Mon_Ouie> I'm not familiar enough with the actual implementation to know what the source of the problem is. All I can tell from that is that the SSL connect method takes too long to execute which triggers a timeout exception which is why all the drb/ssl tests are going to take a long time before failing
dc has joined #ruby
_justin has quit [Quit: _justin]
Zebroid has joined #ruby
Zebroid has quit [Remote host closed the connection]
<elricsfate> Mon_Ouie, That tells me a good bit
<elricsfate> Mon_Ouie, Let me try with this newer SRPM, I'm willing to bet that will fix the issue
jxf has joined #ruby
RaCx has joined #ruby
jespada has quit [Ping timeout: 240 seconds]
pu22l3r has quit [Ping timeout: 255 seconds]
shvelo has joined #ruby
djbkd has quit [Remote host closed the connection]
segv has quit [Ping timeout: 264 seconds]
<elricsfate> Trying to build it with 0 changes. just downloading the srpm and rebuilding it to see if things work.
krz has quit [Quit: WeeChat 0.4.3]
<elricsfate> It does look like the SSL issue was patched out of this version because I didn't need to fix that for it to proceed. If this portion works then I'm willing to bet changing the flag and compiling will work too.
ynkbs has joined #ruby
benlieb has quit [Quit: benlieb]
zenojis has quit [Read error: Connection reset by peer]
<ynkbs> Hello I must decide to learn ruby while coding cgi application in C is nightmare to accomplish.
<ynkbs> Should I dive into?
<ddv> of course
benlieb has joined #ruby
<ynkbs> Or better: A tutorial who is not teaching basics of programming at all. Suggestions?
Kricir has joined #ruby
datafirm has quit [Quit: Computer has gone to sleep.]
Steve21 has quit [Quit: Steve21]
datafirm has joined #ruby
segv has joined #ruby
icole has quit [Remote host closed the connection]
Spami has joined #ruby
edgarjs is now known as edgarjs_afk
maximski has quit []
Shidash has quit [Ping timeout: 240 seconds]
<ynkbs> I know I can't use search engines :)
Mooneye has joined #ruby
<slash_nick> ynkbs: ruby koans
alem0lars has quit [Quit: Going AFK...]
tiguser has quit [Ping timeout: 264 seconds]
datafirm has quit [Ping timeout: 255 seconds]
mikepack has joined #ruby
Notte has joined #ruby
edgarjs_afk is now known as edgarjs
cobakobodob has joined #ruby
jtiggo has left #ruby [#ruby]
casheew_ has quit [Quit: leaving]
<j_mcnally> when building ruby from source i get
<j_mcnally> mkmf.rb can't find header files for ruby at /usr/share/ruby/include/ruby.h
<j_mcnally> when installing gems
<elricsfate> This version compiled! Now to change the flag
<j_mcnally> any ideas?
aboudreault has quit [Ping timeout: 240 seconds]
sunya7a has joined #ruby
LoRdToLsToI has quit [Ping timeout: 240 seconds]
carraroj has quit [Quit: Konversation terminated!]
<Hanmac> j_mcnally: what version do you use? did you change somehing with the flags? because the path is wrong
dukedave has quit [Ping timeout: 272 seconds]
mikepack has quit [Ping timeout: 255 seconds]
paf0 has quit [Remote host closed the connection]
casheew has joined #ruby
e4xit has quit [Remote host closed the connection]
mapimopi has joined #ruby
e4xit has joined #ruby
stytown has joined #ruby
sfr^ has quit [Quit: ZNC - http://znc.in]
cmhobbs has joined #ruby
cmhobbs has quit [Changing host]
cmhobbs has joined #ruby
sunya7a has quit [Client Quit]
charliesome has joined #ruby
qqw has quit [Remote host closed the connection]
<j_mcnally> nvm im an idiot Hanmac
teras is now known as poimen
<j_mcnally> yum's ruby was screwing everything up
mapimopi has left #ruby [#ruby]
Rahul_Roy has joined #ruby
sunya7a has joined #ruby
zz_jrhorn424 has quit [Quit: ZNC - http://znc.in]
ajf- has joined #ruby
mapimopi has joined #ruby
unop_ has joined #ruby
iamayam has quit [Ping timeout: 252 seconds]
mikepack has joined #ruby
<shevy> hah
<shevy> always the system ruby isn't it
binaryhat has quit [Quit: Leaving]
JaTochNietDan has quit [Quit: Right.]
<shevy> ynkbs ruby has cgi support integrated; I use it still for my local knowledge base
sfr^ has joined #ruby
zmack_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
connor_goodwolf has quit [Ping timeout: 245 seconds]
Lulzon has joined #ruby
wlanboy has quit [Quit: ZNC - http://znc.in]
mr_rich101 has joined #ruby
aspires has joined #ruby
jtz has quit [Ping timeout: 264 seconds]
zmack_ has joined #ruby
solars has joined #ruby
ixti has quit [Ping timeout: 255 seconds]
wowXD has joined #ruby
ghr has joined #ruby
wlanboy has joined #ruby
wlanboy has quit [Changing host]
wlanboy has joined #ruby
dc has quit [Remote host closed the connection]
hellome has joined #ruby
badosu has joined #ruby
datafirm has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoviola has quit [Quit: WeeChat 0.4.3]
kevind has quit [Quit: kevind]
wowXD has quit [Ping timeout: 264 seconds]
squaresurf has joined #ruby
gondalier has joined #ruby
sivoais has quit [Remote host closed the connection]
wald0 has quit [Quit: Lost terminal]
tyfighter has joined #ruby
testcore has quit [Ping timeout: 264 seconds]
razrunelord has joined #ruby
mijicd has joined #ruby
testcore has joined #ruby
kenneth has joined #ruby
axl_ has quit [Quit: axl_]
squaresurf has left #ruby [#ruby]
<tus> hey, new to ruby. what does this exactly mean? trap("INT") - trapping errors/interrupts so i can like do something myself?
Guest3776 has quit [Ping timeout: 252 seconds]
razrunelord has quit [Remote host closed the connection]
phutchins has quit [Ping timeout: 245 seconds]
<apeiros> tus: yes
razrunelord has joined #ruby
<apeiros> tus: see docs for Kernel#trap
kalz has quit [Quit: exit]
<tus> thanks.
unop_ has quit [Ping timeout: 240 seconds]
zz_jrhorn424 has joined #ruby
fgo has joined #ruby
axl_ has joined #ruby
zigomir has quit []
<agent_white> `Array.new(x, 0){ Array.new(y, 0) }` gives me "block supersedes default value argument". What gives?
<agent_white> Just trying to seed this 2d array with default values of 0.
dc has joined #ruby
ccolorado has quit [Read error: Connection reset by peer]
connor_goodwolf has joined #ruby
<apeiros> agent_white: either a block, or a value, not both
nanoyak has joined #ruby
<apeiros> that is, either Array.new(x, 0), or Array.new(x) { …block… }
yekta has joined #ruby
<apeiros> what do you expect Array.new(5,0) { 3 } # to return anyway?
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<agent_white> Damned... caused it still works... just throws that error.
<slash_nick> >> Array.new(5,0) { 3 }
<eval-in> slash_nick => /tmp/execpad-83634cdafe59/source-83634cdafe59:2: warning: block supersedes default value argument ... (https://eval.in/166456)
<agent_white> Ahhh
<apeiros> agent_white: you mean a warning
<apeiros> an error would stop your program
<agent_white> apeiros: So basically I do `Array.new(5){ Array.new(5, 0) }` instead.
<agent_white> apeiros: Ah yes, a warning :)
<slash_nick> >> Array.new(5){ Array.new(5, 0) }
<eval-in> slash_nick => [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0]] (https://eval.in/166457)
CorpusCallosum has joined #ruby
<agent_white> ^ :D
fgo has quit [Ping timeout: 272 seconds]
CorpusCallosum has quit [Max SendQ exceeded]
<apeiros> agent_white: I'd assume that's what you want, yes.
<agent_white> Yup it is :) Thank you!
CorpusCallosum has joined #ruby
pu22l3r has joined #ruby
sigurding has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
beneggett has joined #ruby
vali has quit [Remote host closed the connection]
anaeem1__ has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
dc_ has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
dc has quit [Ping timeout: 244 seconds]
anaeem1__ has quit [Read error: Connection reset by peer]
pu22l3r has quit [Ping timeout: 264 seconds]
sputnik13 has joined #ruby
zmack_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xcv has joined #ruby
railzForDaiz has joined #ruby
jxf has quit [Ping timeout: 272 seconds]
_djbkd has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
fayimora has joined #ruby
xcv_ has quit [Ping timeout: 272 seconds]
exgf has joined #ruby
flipxfx has joined #ruby
LACP has quit [Remote host closed the connection]
foooobear has quit [Quit: Computer has gone to sleep.]
<shevy> man
chrstphrhrt has quit [Quit: chrstphrhrt]
<shevy> I tried to compily supybot just now
<shevy> but it failed; I wondered why, until I realized that I tried to compile supypot
foooobear has joined #ruby
posixpascal has joined #ruby
<shevy> that would make a great name for a ruby project
GeekOnCoffee has quit [Ping timeout: 244 seconds]
dc_ has quit [Remote host closed the connection]
zmack_ has joined #ruby
dc has joined #ruby
oso|away has joined #ruby
iamayam has joined #ruby
stnly_ has quit [Remote host closed the connection]
oso|away is now known as oso96_2000
j_mcnally has joined #ruby
paf0 has joined #ruby
<wasamasa> what?
sopheny has joined #ruby
<wasamasa> you tried to compile a python project, then realized it's name would be great for a ruby project, too?
dc_ has joined #ruby
sopheny has quit [Client Quit]
anaeem___ has joined #ruby
Stalkr_ has joined #ruby
Arkaniad|Laptop has quit [Ping timeout: 244 seconds]
foooobear has quit [Ping timeout: 255 seconds]
Stalkr_ has quit [Changing host]
Stalkr_ has joined #ruby
<xybre> You tried to compile and interpreted language and it failed and you can't figure out why?
<xybre> s/and/an
dblessing has quit [Quit: dblessing]
solars has quit [Ping timeout: 245 seconds]
dorei has joined #ruby
Notte has quit [Remote host closed the connection]
testcore has quit [Ping timeout: 264 seconds]
anaeem1 has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
dc has quit [Ping timeout: 260 seconds]
chrstphrhrt has joined #ruby
sunya7a has quit [Ping timeout: 244 seconds]
<wasamasa> also
<wasamasa> is optparse aka OptionParser my best bet?
<wasamasa> didn't find too many examples of its usage
<jhass> slop and trollop are popular alternatives
mercerist has quit [Remote host closed the connection]
<wasamasa> ah, nice
<wasamasa> thanks again
kyb3r_ has joined #ruby
<wasamasa> now, if only every gem linking to rubyforge would mark the link as broken
<wasamasa> I would be a very happy person
sunya7a has joined #ruby
<xybre> It's really not difficult to parse commandline options in Ruby anyway, but there's a few that actually add some nice to have features like automatic help text generation.
tiguser has joined #ruby
bradleyprice has quit []
<wasamasa> well, I just find it weird that optparse requires me to do everything not looking like a switch by hand
<wasamasa> that's all
bradleyprice has joined #ruby
yekta has quit [Quit: yekta]
_djbkd has quit [Remote host closed the connection]
Zenigor has quit [Remote host closed the connection]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kaspergr_ has quit [Ping timeout: 244 seconds]
GriffinHeart has joined #ruby
Hanmac1 has joined #ruby
djbkd has joined #ruby
jhass is now known as jhass|off
Hanmac has quit [Ping timeout: 240 seconds]
railzForDaiz has quit []
<tus> anyone aware of a proper nokogiri tutorial?
<shevy> wasamasa because I tried to compile it as "supypot" rather than "supybot"; I love the typo
razrunelord has quit [Remote host closed the connection]
<shevy> it really should be renamed to being a super pot
<shevy> but alas it's some python irc bot which is not very funny at all :(
beneggett has joined #ruby
badosu has left #ruby [#ruby]
motto has joined #ruby
dc_ has quit [Remote host closed the connection]
GriffinHeart has quit [Ping timeout: 240 seconds]
<wasamasa> I find #archlinux' phrik very funny
brunops has quit [Ping timeout: 244 seconds]
sdouglas has quit [Remote host closed the connection]
m8 has quit [Ping timeout: 240 seconds]
steeve_ has quit [Remote host closed the connection]
brunops has joined #ruby
dc has joined #ruby
brunops has quit [Changing host]
brunops has joined #ruby
steeve has joined #ruby
kaspergrubbe has joined #ruby
zwer has joined #ruby
steeve has quit [Remote host closed the connection]
steeve has joined #ruby
kalz has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
WormDrink has quit [Ping timeout: 272 seconds]
djbkd has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
jtiggo has joined #ruby
stytown has quit [Quit: stytown]
LBRapid has quit [K-Lined]
DarkFoxDK has quit [K-Lined]
lfox has quit [K-Lined]
Nightmare has quit [K-Lined]
hoelzro has quit [K-Lined]
Jello_Raptor has quit [K-Lined]
SBoolean has quit [Remote host closed the connection]
djbkd has joined #ruby
lfox has joined #ruby
DarkFoxDK has joined #ruby
Jello_Raptor has joined #ruby
testcore has joined #ruby
LBRapid has joined #ruby
unop_ has joined #ruby
paf0 has quit [Remote host closed the connection]
treehug88 has joined #ruby
Nightmare has joined #ruby
edgarjs is now known as edgarjs_afk
wowXD has joined #ruby
codeurge has quit [Ping timeout: 264 seconds]
dc has quit [Remote host closed the connection]
dc has joined #ruby
Takle has joined #ruby
alexju has quit [Remote host closed the connection]
flipxfx has quit [Quit: Leaving]
codeurge has joined #ruby
gondalier has quit []
dc has quit [Remote host closed the connection]
razrunelord has joined #ruby
aboudreault has joined #ruby
wowXD has quit [Ping timeout: 255 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
top4o has quit [Quit: ChatZilla 0.9.90.1 [Firefox 30.0/20140605174243]]
RaCx has quit [Quit: Computer has gone to sleep.]
MindfulMonk has quit [Remote host closed the connection]
RaCx has joined #ruby
iamjusthatdude has joined #ruby
nomadic_ has quit [Ping timeout: 272 seconds]
dukedave has joined #ruby
ghr has joined #ruby
fgo has joined #ruby
<iamjusthatdude> hello persons
<kaspergrubbe> hello that dude
RaCx has quit [Ping timeout: 244 seconds]
codabrink has quit [Ping timeout: 264 seconds]
keystonelemur has joined #ruby
Zebroid has joined #ruby
RaCx has joined #ruby
RaCx has quit [Client Quit]
<shevy> well well
fgo has quit [Ping timeout: 240 seconds]
ynkbs has quit [Ping timeout: 240 seconds]
jtz has joined #ruby
jtz has quit [Changing host]
jtz has joined #ruby
zenojis has joined #ruby
sailias has quit [Quit: Leaving.]
ldnunes has quit [Quit: Leaving]
codabrink has joined #ruby
RaCx has joined #ruby
gondalier has joined #ruby
nanoyak has joined #ruby
lemur has quit [Ping timeout: 264 seconds]
nomadic has joined #ruby
hoelzro has joined #ruby
edgarjs_afk is now known as edgarjs
NukePuppy has quit [Ping timeout: 255 seconds]
WormDrink has joined #ruby
trepidaciousMBR has joined #ruby
bbloom has joined #ruby
kalz has quit [Quit: exit]
b00stfr3ak has quit [Ping timeout: 245 seconds]
St_Marx has quit [Quit: Ex-Chat]
b00stfr3ak has joined #ruby
aspires has quit []
jheg has quit [Ping timeout: 240 seconds]
jheg_ is now known as jheg
wallerdev has joined #ruby
gr33n7007h has quit [Ping timeout: 245 seconds]
RaCx has quit [Quit: Computer has gone to sleep.]
sigurding has quit [Quit: sigurding]
Steve21 has joined #ruby
paf0 has joined #ruby
ridget has joined #ruby
kalz has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
postmodern has joined #ruby
beneggett has quit [Ping timeout: 264 seconds]
momomomomo has quit [Quit: momomomomo]
soulcake has joined #ruby
weems has quit [Changing host]
weems has joined #ruby
beneggett has joined #ruby
aspires has joined #ruby
icole has joined #ruby
nectarys has joined #ruby
RealMarc has joined #ruby
RaCx has joined #ruby
carlyle has quit [Remote host closed the connection]
ixti has joined #ruby
jeregrine has quit [Quit: Connection closed for inactivity]
stytown has joined #ruby
<iamjusthatdude> why attributes are important at all in ruby?
icedp has quit [Ping timeout: 264 seconds]
brasten_ has joined #ruby
brasten has quit [Ping timeout: 240 seconds]
brasten_ is now known as brasten
tier has quit []
dwayhs has quit [Read error: Connection reset by peer]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nectarys has quit [Max SendQ exceeded]
zz_LoRdToLsToI has joined #ruby
dwayhs has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
nectarys has joined #ruby
wldcordeiro has quit [Remote host closed the connection]
stytown has quit [Client Quit]
iamjusthatdude has quit []
alpha123 has joined #ruby
dwayhs has quit [Read error: Connection reset by peer]
dwayhs has joined #ruby
brasten has quit [Client Quit]
icole has quit [Remote host closed the connection]
dangerousdave has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
ehlovader has quit [Ping timeout: 240 seconds]
<xybre> Because they.. er.. nevermind.
kirun has quit [Quit: Client exiting]
ridget has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> hehe
<xybre> I'm actually not entirely sure what they meant by "attributes", instance variables maybe?
AlexRussia has quit [Quit: No Ping reply in 180 seconds.]
NukePuppy has joined #ruby
<katlogic> xybre: .. and properties ... are all basically same thing.
<mostlybadfly> hi all, I had a question on a rubymonk problem I bumped into. They are basically talking about Globals and want me to get the last error and the current script name
* mostlybadfly this is my answer
AlexRussia has joined #ruby
mapimopi has left #ruby [#ruby]
<mostlybadfly> the first one is right, but i'm getting a wrong answer on the second one, any thoughts?
ikaros has quit [Quit: Ex-Chat]
Doc_X has joined #ruby
<xybre> katlogic: Sorta, I don't know of anyone that calls them properties unless they're using a library that defines a properties DSL (Virtus maybe?).
<xybre> (in ruby)
<katlogic> xybre: It depends on language, in ruby it's attributes I believe.
<xybre> We use attr_* but they're called instance variables.
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<xybre> The vernacular of the community and that of the actual language don't always match up. this may lead to confusion for new people. :/
<katlogic> ah
motto has quit [Quit: Sto andando via]
testcore has quit [Ping timeout: 264 seconds]
ehlovader has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
<Steve21> anyone willing to do a few tests for me? just trying to run it through a few paces before starting to use it with some clients: https://github.com/StephenOTT/GitHub-Reminders. UI is very beta.
dwayhs has quit [Read error: Connection reset by peer]
dwayhs has joined #ruby
<apeiros> xybre: kudos for using "they". I still have to get used to it. confused me at first quite a bit :D
Olipro has quit [Ping timeout: 246 seconds]
dwayhs has quit [Client Quit]
NukePuppy has quit [Ping timeout: 255 seconds]
Photism_ has quit [Quit: Leaving]
<apeiros> xybre: actually, instance variables differ from attributes
<apeiros> attr_* defines methods (which access ivars)
djbkd has quit [Remote host closed the connection]
<apeiros> so an attribute is an externally accessible ivar
<katlogic> Semantics.
<apeiros> also behavior :)
cobolt has joined #ruby
<apeiros> you can't access an ivar from outside
<katlogic> Not in ruby anyway.
jmurray has quit [Quit: jmurray]
<apeiros> not in ruby at all
gondalier has quit []
<toretore> time to nitpick. it's not access to an ivar per se, it's just methods that returns and sets state on an object
<apeiros> toretore: I was talking about attr_*
<toretore> oh
<apeiros> and there it very much is ivars
<apeiros> but yes
<toretore> then you're correct ov course
<toretore> of
cobolt has quit [Client Quit]
<katlogic> toretore: Thats my beef with it. The attr_ just creates accessor methods, it does not magically create attributes.
<apeiros> since it's methods, it's perfectly sane to declare something an attribute which does more, or something different
bartdorsey has joined #ruby
cobolt has joined #ruby
<toretore> katlogic: there is no such thing as an attribute in ruby
<katlogic> So it becomes pointless argument of semantics.
<apeiros> toretore: anyway, I think we both agree that ivars != attributes, yes?
<katlogic> toretore: Yet the keyword involved is named like that *wink*
<toretore> apeiros: yes
<apeiros> yay! :)
<katlogic> See, it's turning into asperger's fest already.
djbkd has joined #ruby
<toretore> god damn it
<toretore> everybody agrees
<apeiros> katlogic: you aren't using that as a pejorative, are you?
pu22l3r has joined #ruby
cobolt has quit [Client Quit]
<katlogic> apeiros: Depends, is obsessing over something related to asperger's syndrome? :>
<toretore> with >900 people, it's likely that someone in here has asperger's
<toretore> and any other condition you want to make fun of
kith has joined #ruby
<apeiros> katlogic: I think it depends more on the intent of what you said than that
<alpha123> I was diagnosed with Apserger's when I was in 3rd grade, but I sort of doubt I have it. I'll count as the 1-in-900 if you want though. :P
<katlogic> toretore: Agreed. Perhaps I should use more accurate comparison. OCD perhaps? Anal-retentive?
posixpascal has quit [Ping timeout: 252 seconds]
sivoais has joined #ruby
<alpha123> katlogic: Could be OCPD, which is rather different from OCD
<katlogic> It's difficult to not offend when drawing up generalizing comparisons in a crowd of 900 people.
decoponio has quit [Quit: Leaving...]
<xybre> apeiros: I wasn't saying they were the same thing, but they are related topics and the attr_* will lead people to believe ivars are called attributes. The distinction is fuzzy. But I think this is mostly because the choice of terminology wasn't very well planned out.
spider-mario has quit [Remote host closed the connection]
Steve21 has quit [Quit: Steve21]
Kricir has quit [Remote host closed the connection]
<katlogic> xybre: It's rather unfortunate. Perhaps private/public instance members would be more accurate.
<katlogic> Again, they stand for the same thing, just different lingo.
<apeiros> xybre: ok, misunderstood you then
<apeiros> katlogic: that's not really it either IMO. on the outside it's all methods.
orionstein is now known as orionstein_away
<apeiros> i.e. on the outside, "attribute" is purely declarative
<katlogic> apeiros: Ruby is not the only language where assignment is enforced via setters.
<toretore> that doesn't make it an attribute
<apeiros> katlogic: sure, but we're not in #otherlanguages :-p
<xybre> katlogic: Sorta. I mean, all ivars are private members, always. attr_* set up accessor methods for the ivars, but doesn't change their "visibility" as such.
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
* katlogic sticks with source code lingo, 'attribute accesors'
<katlogic> whatever that means
wowXD has joined #ruby
JohnFord has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mjsmith2 has quit [Remote host closed the connection]
<xybre> It just means the object referenced by the ivar can be made available to the outside world, but not the ivar itself. Subtle distinction. But you can "access" the contents of an ivar using metaprogramming if you really want to do something nasty.
wowXD has quit [Read error: Connection reset by peer]
wowXD_ has joined #ruby
jerius has quit [Ping timeout: 264 seconds]
qwyeth has quit [Quit: Leaving]
jobewan has quit [Quit: Leaving]
trepidaciousMBR has quit [Quit: trepidaciousMBR]
testcore has joined #ruby
Zebroid has quit [Remote host closed the connection]
amargherio has quit [Read error: Connection reset by peer]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maroloccio has joined #ruby
MZAWeb has joined #ruby
charliesome has joined #ruby
momomomomo has joined #ruby
sputnik13 has quit [Ping timeout: 245 seconds]
wowXD_ has quit [Ping timeout: 255 seconds]
SCHAAP137 has quit [Remote host closed the connection]
vyorkin has quit [Ping timeout: 264 seconds]
fgo has joined #ruby
nectarys has quit [Remote host closed the connection]
atraylen has quit [Ping timeout: 240 seconds]
stytown has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
lw has quit [Quit: s]
<wasamasa> like, making 2+2 return 5?
coderhs has joined #ruby
<apeiros> don't need metaprogramming for that
Pyrotecnix has quit [Quit: Leaving]
fgo has quit [Ping timeout: 245 seconds]
Pyrotecnix has joined #ruby
bmurt has quit []
Pyrotecnix has quit [Client Quit]
Pyrotecnix has joined #ruby
jonahR has quit [Remote host closed the connection]
<slash_nick> >> class Fixnum;def inspect; "#{to_s(2)}" end end;2+2
<eval-in> slash_nick => 100 (https://eval.in/166478)
Pyrotecnix has quit [Client Quit]
riotjones has joined #ruby
bartdorsey has quit [Quit: Textual IRC Client: www.textualapp.com]
gregf has joined #ruby
Pyrotecnix has joined #ruby
CorySimmons has joined #ruby
kalz has quit [Ping timeout: 272 seconds]
Pyrotecnix has quit [Client Quit]
riotjone_ has quit [Ping timeout: 244 seconds]
Pyrotecnix has joined #ruby
<xybre> Yeah, mucking around with that stuff is easy.
Pyrotecnix has quit [Client Quit]
beneggett has joined #ruby
Pyrotecnix has joined #ruby
<slash_nick> >> class Fixnum;def inspect; "#{to_s(2)}" end end;2+2 == 4
<eval-in> slash_nick => true (https://eval.in/166479)
zmack_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<slash_nick> :)
jackneill has quit [Ping timeout: 255 seconds]
<slash_nick> I thought eval-in just said it was 100 ;)
Pyrotecnix has quit [Client Quit]
anaeem___ has quit [Remote host closed the connection]
Pyrotecnix has joined #ruby
mary5030_ has joined #ruby
jshjsh has quit [Ping timeout: 255 seconds]
Lucky__ has quit [Quit: Textual IRC Client: www.textualapp.com]
LACP has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
fayimora has quit [Quit: Connection closed for inactivity]
Olipro has joined #ruby
nanoyak has joined #ruby
Lucky__ has joined #ruby
cmhobbs has quit [Ping timeout: 240 seconds]
mary5030 has quit [Read error: Connection reset by peer]
Arkaniad has joined #ruby
jshjsh has joined #ruby
snath has quit [Ping timeout: 244 seconds]
foooobear has joined #ruby
nanoyak_ has joined #ruby
blackmesa has joined #ruby
yetanotherdave has quit [Ping timeout: 245 seconds]
buub has joined #ruby
nanoyak has quit [Ping timeout: 264 seconds]
mary5030_ has quit [Remote host closed the connection]
GriffinHeart has joined #ruby
dideler has joined #ruby
timgauthier has joined #ruby
mary5030 has joined #ruby
dc has joined #ruby
ehc has quit [Ping timeout: 245 seconds]
Zebroid_ has joined #ruby
foooobear has quit [Ping timeout: 264 seconds]
codeurge has quit [Ping timeout: 264 seconds]
s2013 has quit [Ping timeout: 240 seconds]
keystonelemur has quit [Remote host closed the connection]
jheg has quit [Quit: jheg]
benlieb has quit [Quit: benlieb]
codeurge has joined #ruby
Zebroid__ has joined #ruby
andrewlio has quit [Quit: Leaving.]
GriffinHeart has quit [Ping timeout: 255 seconds]
b1nd has quit [Remote host closed the connection]
tus is now known as tus_test
tus_test is now known as tus
intnsity has quit [Remote host closed the connection]
dangerousdave has quit [Read error: Connection reset by peer]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
snath has joined #ruby
kireevco has quit [Quit: Leaving.]
Zebroid_ has quit [Ping timeout: 244 seconds]
dangerousdave has joined #ruby
momomomomo has quit [Quit: momomomomo]
coderhs has quit [Quit: Leaving]
techmaverick has joined #ruby
tylersmith has joined #ruby
<shevy> hmmm
<shevy> if I have a ruby file called foo.rb
<xybre> I drew out what I was trying to explain. It's not a UML, but it should be self explanatory otherwise it fails as an aid. :p http://i.imgur.com/ssY6ziS.png
<shevy> and I invoke it like so:
<shevy> ruby foo.rb *
aniM has quit [Ping timeout: 244 seconds]
<shevy> there is no way for me to find out whether the user typed the * right?
Zebroid__ has quit [Ping timeout: 255 seconds]
Jeticus has quit []
<xybre> shevy: if they use quotes. The CLI expansion happens at the shell layer.
<xybre> So Ruby never sees it.
hermanmu_ has quit [Remote host closed the connection]
<shevy> yeah
<shevy> :(
OrionKissinger has joined #ruby
mary5030 has quit [Remote host closed the connection]
<xybre> someone was asking about that last week.
MZAWeb has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
yetanotherdave has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
csq has joined #ruby
<elico> anyone knows how to force on activerecord "update if exists?"
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
vali has joined #ruby
OrionKissinger has left #ruby [#ruby]
ffranz has quit [Quit: Leaving]
JaTochNietDan has joined #ruby
techmaverick has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jshjsh2 has joined #ruby
buub has quit [Quit: leaving]
buub has joined #ruby
diegoviola has joined #ruby
<slash_nick> elico: better to get help with rails in #rubyonrails
jshjsh has quit [Ping timeout: 255 seconds]
techmaverick has joined #ruby
stytown has quit [Quit: stytown]
rayners has quit [Remote host closed the connection]
Stalkr_ has quit [Quit: Leaving...]
LiohAu has quit [Quit: LiohAu]
IceDragon has joined #ruby
wowXD has joined #ruby
northfurr has joined #ruby
lmickh has quit [Read error: Connection reset by peer]
<elico> slash_nick: it's a ruby thing not rails..
<elico> But I figured it out..
<alpha123> elico: ActiveRecord is part of Rails....
stytown has joined #ruby
<j_mcnally> is rubyforge not a thing anymore?
<alpha123> As of 14.5, nope.
naw_ has joined #ruby
Kricir has joined #ruby
naw has quit [Read error: Connection reset by peer]
Darkchaos has quit [Ping timeout: 244 seconds]
<elico> alpha123: as far as I understand it might be considered but it's a gem for ruby..
johnmolina has joined #ruby
chridal has joined #ruby
<alpha123> elico: 'Rails' is just a collection of Ruby gems. :P
CorySimmons has quit [Quit: Bye!]
dangerousdave has quit [Ping timeout: 255 seconds]
<elico> indeed ...
Gadgetoid has quit [Ping timeout: 255 seconds]
<elico> I am using activerecord in a simple application that is not a part of any rails plarform..
<elico> but leave it for now
<elico> I am still not in an understanding why rubyforge was shutdown: Why?
ixti has quit [Read error: Connection reset by peer]
treehug88 has quit []
djbkd has quit [Remote host closed the connection]
<alpha123> I'm not sure anyone knows, actually. I think the person who ran it just gave a vague tweet that it was going down.
comingHome has quit [Quit: Lost terminal]
kireevco has joined #ruby
<elico> weird to think about it that a big site like this just went down on a "twit"
<xybre> Probably because it was expensive to keep up and little used.
<elico> this is a possibility
pu22l3r has quit [Remote host closed the connection]
mattstratton has joined #ruby
Kricir has quit [Ping timeout: 272 seconds]
icole has joined #ruby
kevind has joined #ruby
dideler has quit [Ping timeout: 245 seconds]
wallerdev has quit [Quit: wallerdev]
naw_ has quit [Ping timeout: 240 seconds]
Avahey_ has joined #ruby
x1337807x has joined #ruby
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has joined #ruby
gr33n7007h has joined #ruby
axl_ has left #ruby [#ruby]
djbkd has joined #ruby
obs has joined #ruby
vifino has quit [Quit: Ze Cat now leaves...]
fayimora has joined #ruby
<xybre> Still, its annoying how many maintainers of major projects just one day go "fuck it" and bail.
chrstphrhrt has quit [Quit: chrstphrhrt]
mjsmith2 has joined #ruby
djbkd has quit [Remote host closed the connection]
NukePuppy has joined #ruby
fgo has quit [Ping timeout: 245 seconds]
<xybre> Maybe the pressure is too great.
hadees has joined #ruby
yokel has quit [Remote host closed the connection]
<tus> when i write out @results i get 5 lines of text. is it possible to make it 1 line? this is the code:
<tus> @teamHash.each do |key, value|
<tus> @results = key.to_s + ': ' + value + ' '
<hadees> with out using activesupport is there someway I can tell the difference between date classes that have time and those that don’t?
ziyadb has quit [Quit: Connection closed for inactivity]
<hadees> I was thinking like foobar.respond_to?(:sec) or something
jonahR has joined #ruby
<hadees> I think rails did a trick like this but looks like they switched to true and false
<hadees> methods
nanoyak_ has quit [Read error: Connection reset by peer]
nanoyak has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
nectarys has joined #ruby
<bradleyprice> hadees: You mean the difference in Date and DateTime classes?
apeiros has quit [Remote host closed the connection]
kireevco has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
kireevco has joined #ruby
<hadees> bradleyprice: i’m trying to write a case statement that formats DateTime, Date, Time, ActiveSupport::TimeWithZone, and what ever other class might be a Date or a Date with a Time.
djbkd has joined #ruby
<hadees> bradleyprice: i’m thinking foobar.respond_to? :sec is what I want
<hadees> although not fool proof I think it handles my cases
nanoyak has quit [Client Quit]
shvelo has quit [Ping timeout: 255 seconds]
emptyflask has quit [Ping timeout: 272 seconds]
<bradleyprice> hadees: You should be able to just check the date.class to get the class. A date object doesn't have time. That would have to be a DateTime object, right?
wald0 has joined #ruby
jtiggo has quit [Remote host closed the connection]
<hadees> bradleyprice: yeah I could but then I have to explicitly state the classes and I don’t want to include activesupport so ActiveSupport::TimeWithZone wouldn’t work
Takle has quit [Remote host closed the connection]
nectarys has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
<hadees> is there anyway to do an is_a? that won’t fail if the constant is uninitialized constant
nanoyak has joined #ruby
<benzrf> hadees: why is that something you want
<hadees> benzrf: i’m submitting a patch to a gem and I don’t think they’ll accept it if I add activesupport as a requirement but I want to handle the case it gets passed a ActiveSupport::TimeWithZone
vpretzel_ is now known as vpretzel
earthquake has joined #ruby
unop_ has quit [Ping timeout: 240 seconds]
CaptainJet has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diegoviola has quit [Quit: WeeChat 0.4.3]
arrubin has joined #ruby
Inside has joined #ruby
<hadees> nm, ActiveSupport::TimeWithZone overrides is_a? and returns true for TIme
<hadees> so I don’t have to check for it
nfk has quit [Quit: yawn]
Spami has quit [Quit: This computer has gone to sleep]
freerobby has quit [Quit: Leaving.]
dvarrui has joined #ruby
stytown has quit [Quit: stytown]
pu22l3r has joined #ruby
ixti has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
dvarrui has quit [Remote host closed the connection]
chrstphrhrt has joined #ruby
Zebroid has joined #ruby
saarinen has quit [Quit: saarinen]
yakko has quit [Remote host closed the connection]
kalz has joined #ruby
cpruitt has quit [Quit: cpruitt]
naiyte has quit [Quit: Leaving.]
naiyte has joined #ruby
saarinen has joined #ruby
razrunelord has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ciao.]
alpha123 has quit [Ping timeout: 244 seconds]
Spami has joined #ruby
diegoviola has joined #ruby
<shevy> why do we have set_trace_func
hermanmunster has joined #ruby
benzrf is now known as benzrf|offline
Zebroid has quit [Ping timeout: 255 seconds]
enebo has quit [Quit: enebo]
xcv has quit [Remote host closed the connection]
bitcycle has joined #ruby
davedev24_ has quit []
davedev24_ has joined #ruby
<bitcycle> Hey all. I'm trying to install rice 1.4.3 gem to /opt/company/bin/ruby but it fails saying "checking for main() in -lrice... no" Has anyone else seen that before?
saarinen has quit [Quit: saarinen]
Mooneye has quit [Quit: Leaving]
NukePuppy has quit [Ping timeout: 255 seconds]
lemur has joined #ruby
mg^ has quit [Quit: Leaving]
chrishough has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
mikepack has quit [Ping timeout: 240 seconds]
mattstratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> I dont know rice
mattstratton has joined #ruby
<shevy> but it seems as if it tries to find librice.so
mattstratton has quit [Remote host closed the connection]
zkay11 has joined #ruby
chrstphrhrt has quit [Quit: chrstphrhrt]
tris has quit [Quit: Leaving]
aniM has joined #ruby
mattstratton has joined #ruby
luksaur has quit [Quit: gone]
blackmesa has quit [Ping timeout: 240 seconds]
tris has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
pu22l3r has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
diegoviola has joined #ruby
emptyflask has joined #ruby