apeiros_ changed the topic of #ruby-lang to: Ruby 1.9.3-p327: http://ruby-lang.org (ruby-2.0.0-preview2) || Paste >3 lines of text on http://gist.github.com
gsav has quit [Ping timeout: 256 seconds]
gsav_ has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby-lang
heftig has joined #ruby-lang
jtoy has quit [Quit: jtoy]
<soahccc> Is there a way to get rid of this message as it just seems to be a simple warning which doesn't alter anything: /Users/chaos/.rbenv/versions/1.9.2-p320/lib/ruby/1.9.1/shellwords.rb:80: warning: regexp match /.../n against to UTF-8 string
sockmonk has joined #ruby-lang
<drbrain> soahccc: try upgrading ruby
cantonic_ has joined #ruby-lang
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
x0F_ is now known as x0F
cantonic has quit [Read error: Operation timed out]
cantonic_ is now known as cantonic
<soahccc> drbrain: Well I actually need this version as a gem breaks it's behaviour on 1.9.3 which I can't fix now. Can't I just catch them somehow? Are they rescuable?
_malte has joined #ruby-lang
postmodern has joined #ruby-lang
viking has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 276 seconds]
spuk has joined #ruby-lang
<drbrain> $-w = 0
<drbrain> (I think)
slyphon_ has joined #ruby-lang
<drbrain> there's a way to disable all warnings
mammoth_tusk has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 240 seconds]
_malte has quit [Ping timeout: 250 seconds]
<soahccc> hmm
Mon_Ouie has joined #ruby-lang
<zzak> what is bc math?
<drbrain> zzak: man bc
<zzak> genius!
<soahccc> what does the /n actually mean though? Isn't mentioned in the doc as far as I can see
<drbrain> IIRC, n is binary
<drbrain> ah, no encoding
<whitequark> soahccc: def $stderr.write(str); return if str =~ /regexp match \/\.\.\.\/n against to UTF-8 string/; end
<soahccc> whitequark: well, pragmatic :)
<soahccc> drbrain: How do you managed to find that info? Google sucks for coding related things in some cases
oddmunds has quit [Ping timeout: 240 seconds]
<drbrain> soahccc: ri Regexp, scroll to Constants
<soahccc> ._.
oddmunds has joined #ruby-lang
<soahccc> Could've been mentioned here imho --> http://www.ruby-doc.org/core-1.9.3/Regexp.html#label-Options
mrsolo has quit [Quit: Leaving]
havenn has quit [Ping timeout: 246 seconds]
jackhammer2022 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
cirenyc has quit [Quit: Leaving...]
zhul_mechanos has quit [Quit: zhul_mechanos]
<drbrain> soahccc: they may be deprecated, can you create as issue at bugs.ruby-lang.org?
jtoy has joined #ruby-lang
pangel has quit [Ping timeout: 265 seconds]
wyhaines_ has joined #ruby-lang
wyhaines has quit [Ping timeout: 252 seconds]
<soahccc> drbrain: I will if I still remember it tomorrow ;-) It works now so I can let the script running while I finally get to bed.
jackhammer2022 has joined #ruby-lang
mammoth_tusk has left #ruby-lang [#ruby-lang]
thone has joined #ruby-lang
havenn has joined #ruby-lang
enebo has quit [Quit: enebo]
sockmonk has quit [Ping timeout: 264 seconds]
thone_ has quit [Ping timeout: 240 seconds]
_malte has joined #ruby-lang
_malte has quit [Ping timeout: 250 seconds]
tjadc has joined #ruby-lang
mjio has quit []
wyhaines_ has quit [Remote host closed the connection]
jtoy has quit [Quit: jtoy]
joevandyk has quit [Quit: joevandyk]
mercwithamouth has quit [Ping timeout: 250 seconds]
tenderlove has joined #ruby-lang
havenn_ has joined #ruby-lang
havenn has quit [Ping timeout: 276 seconds]
<zzak> IRB.conf[:PROMPT] is interesting
<zzak> drbrain: is "customizing the prompt" a good place for the module definition, or specifically IRB.conf?
<zzak> i cant decide
<zzak> maybe IRB.conf so i can link to it
<drbrain> I like links!
<zzak> me too, i wish there was way to have ToC in module/class definition like with README
srbaker has quit [Quit: Computer has gone to sleep.]
<zzak> and create links
<drbrain> it's there
<drbrain> at least, it's supposed to be
<drbrain> maybe I'm missing it from the header stuff, I'll check it out tonight
<zzak> it's heading defined, right?
<drbrain> you can still create links to headings, though
<drbrain> yes
<zzak> like = Some Big Idea
srbaker has joined #ruby-lang
mjio has joined #ruby-lang
<zzak> yeh, #label-Usage
_malte has joined #ruby-lang
srbaker has quit [Client Quit]
srbaker has joined #ruby-lang
<zenspider> please rip new up
lcdhoffman has joined #ruby-lang
ryanf has quit [Quit: leaving]
<zenspider> oops... ignore the #anchor thingy
<zenspider> what other ways might the quickref be improved?
<zzak> drbrain: can you use label links from another page? I tried something like: "See IRB#label-Usage" but nothing
<Spaceghostc2c> zenspider: Stupid thing: Can you 'indent' the h4's on the page?
<drbrain> zzak: Try: See Usage@IRB
<Spaceghostc2c> Visual break of some kind.
<zzak> zenspider: is that pdf up to date?
<zenspider> zzak: no, prolly very out of date
<zzak> drbrain: no link, parses as "IRB at Usage"
<zzak> could be your email obfuscator broke it
<zzak> zenspider: then i would remove it
<drbrain> if it switches to IRB at Usage it's going through the link parser
_malte has quit [Ping timeout: 276 seconds]
datanoise has joined #ruby-lang
<zzak> zenspider: colors are pretty, 'require "English"' block seems to be indented one extra
<zzak> zenspider: also, see "Defining a Method" > "Access Restriction": below private theres a random <ul>
<zenspider> zzak: English indentation? you mean the "code"? that's to align with the header, which is a comment, so it needs 2 spaces
<drbrain> zzak: I got it backwards, IRB@Usage
datanoise has quit [Ping timeout: 244 seconds]
<zenspider> zzak: "Restriction used w/o arguments set the default access control." ?
<zzak> zenspider: yah
<drbrain> zzak: fourth paragraph
<zzak> drbrain: :D awesome!
<zzak> it works
<zenspider> I should prolly just make those comments in the code
<zzak> decided to go with a table for stdlib eh?
<havenn_> Did I just imagine that Set was getting bumped to first-class citizen in 2.0.0? I'd have sworn..
<drbrain> havenn_: I don't think so
<havenn_> drbrain: Hrm, maybe I'm thinking of someone's wishlist. I just thought it didn't need 'require "set"' anymore but preview1 & 2 say otherwise!
wmoxam has quit [Read error: Connection reset by peer]
<zzak> zenspider: other than that, it looks great
havenn has joined #ruby-lang
<drbrain> havenn_: it may have been on a wishlist
<Spaceghostc2c> zenspider: I guess 'no' then?
chimkan has quit [Quit: chimkan]
justinseiter has quit [Remote host closed the connection]
davidbalbert is now known as davidbalber|away
mjio has quit []
nerd has quit [Quit: WeeChat 0.3.9.2]
havenn_ has quit [Ping timeout: 246 seconds]
mpan has joined #ruby-lang
blazes816 has quit [Quit: blazes816]
s0ber_ has joined #ruby-lang
levicole has quit [Ping timeout: 244 seconds]
snk has quit [Ping timeout: 244 seconds]
s0ber has quit [Ping timeout: 252 seconds]
s0ber_ is now known as s0ber
levicole has joined #ruby-lang
robotmay has quit [Remote host closed the connection]
mercwithamouth has joined #ruby-lang
_malte has joined #ruby-lang
gregmoreno has quit [Ping timeout: 265 seconds]
snk has joined #ruby-lang
_malte has quit [Ping timeout: 244 seconds]
sent-hil has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
mwjcomputing has joined #ruby-lang
Spaceghost|cloud has joined #ruby-lang
whiteknight has joined #ruby-lang
cirwin has quit [Ping timeout: 248 seconds]
whiteknight has left #ruby-lang [#ruby-lang]
wknight8111 has joined #ruby-lang
<wknight8111> is there anybody here who can answer a newbie question?
<Spaceghost|cloud> Nope, we all died early, hipsters that we are.
<havenn> wknight8111: What is your question?
mjio has joined #ruby-lang
<wknight8111> havenn: Some behavior that I don't understand. http://pastie.org/5514012.
<wknight8111> if I comment out line 4, it returns the ordered list of posts as I expect. If that line is in, it returns nill
<wknight8111> or maybe an array of nil
<havenn> wknight8111: Better try #RubyOnRails or #Railsnoob since it's Rails.
<wknight8111> oh, that changes the way these things work?
drbrain has quit [Remote host closed the connection]
<wknight8111> #Railsnoob sounds like my speed
krz has joined #ruby-lang
_malte has joined #ruby-lang
madish has quit [Quit: ChatZilla 0.9.89 [Firefox 16.0.1/20121026125834]]
zarubin has joined #ruby-lang
krohrbaugh has quit [Quit: Leaving.]
dreamfactory has joined #ruby-lang
mindbender1 has quit [Ping timeout: 252 seconds]
_malte has quit [Ping timeout: 252 seconds]
sent-hil has quit [Remote host closed the connection]
mjio has quit []
<zzak> this is gonna be a big commit :|
wmoxam has joined #ruby-lang
chaosis has joined #ruby-lang
alvaro_o has quit [Quit: Ex-Chat]
brianpWins has joined #ruby-lang
brianpWins has quit [Client Quit]
havenn has quit [Remote host closed the connection]
jbsan has quit [Ping timeout: 252 seconds]
crazyhorse18 has joined #ruby-lang
wknight8111 has quit [Quit: Leaving]
tjadc has quit [Ping timeout: 255 seconds]
<crazyhorse18> does anyone know if there is a way of changing db's with the PG gem
<crazyhorse18> doesn't seem like it
<crazyhorse18> but i want to login as a superuser
<crazyhorse18> and then just switch dbs
drbrain has joined #ruby-lang
jds_ has quit [Read error: Operation timed out]
jds_ has joined #ruby-lang
ejholmes has quit [Quit: ejholmes]
<crazyhorse18> answer is no :)
agarie has joined #ruby-lang
rsl has quit [Quit: Computer has gone to sleep.]
_malte has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
coliflor has quit [Ping timeout: 245 seconds]
cirenyc has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
cirenyc has quit [Client Quit]
_malte has quit [Ping timeout: 248 seconds]
drbrain has quit [Read error: Connection reset by peer]
drbrain has joined #ruby-lang
klebervi_ has quit [Remote host closed the connection]
klebervirgilio has joined #ruby-lang
srbaker has joined #ruby-lang
klebervirgilio has quit [Ping timeout: 260 seconds]
srbaker has quit [Quit: Computer has gone to sleep.]
lsegal has joined #ruby-lang
seanstickle has joined #ruby-lang
krohrbaugh has joined #ruby-lang
blowmage has quit [Ping timeout: 248 seconds]
_malte has joined #ruby-lang
_malte has quit [Ping timeout: 248 seconds]
datanoise has joined #ruby-lang
lcdhoffman has joined #ruby-lang
lcdhoffman has quit [Client Quit]
datanoise has quit [Ping timeout: 264 seconds]
esad has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mwjcomputing has quit [Quit: Leaving]
agarie has quit [Remote host closed the connection]
seanstickle has quit [Quit: seanstickle]
_malte has joined #ruby-lang
mjio has joined #ruby-lang
<postmodern> banging my head on this
<postmodern> what is the most FHS compliant place to install a bunch of rubies, for switching between them?
_malte has quit [Ping timeout: 252 seconds]
<postmodern> /opt is for "add-on packages"
<postmodern> /usr/local is the local version of /usr
<postmodern> /usr/local/opt is used by homebrew
<postmodern> /opt/local is used by macports
mercwithamouth has quit [Quit: leaving]
mercwithamouth has joined #ruby-lang
datanoise has joined #ruby-lang
blowmage has joined #ruby-lang
gsav has joined #ruby-lang
Swimmin__ has quit [Quit: Computer has gone to sleep.]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
zzak has quit [Quit: leaving]
<zenspider> ask in #some-linux-channel
zzak has joined #ruby-lang
Mon_Ouie has quit [Read error: Connection reset by peer]
<zenspider> zzak: thanks for that. you have a good eye.
Mon_Ouie has joined #ruby-lang
<zzak> zenspider: anytime, thank you
<tpope> postmodern: I would probably say /opt
<tpope> /usr/local would be fine if you're doing it yourself
jobicoppola has joined #ruby-lang
havenn has joined #ruby-lang
<postmodern> tpope, ok
<postmodern> tpope, that's where im unclear on
rohit has joined #ruby-lang
<postmodern> tpope, Linux FHS states /usr/local is for "adminstrator installed software"
<postmodern> tpope, but also states "no other directories may be added"
<postmodern> tpope, implying it must be a local equivalent of /usr
<tpope> err, I guess I'm a little fuzzy on that
<tpope> you could probably just bury it under /usr/local/lib, no?
<postmodern> tpope, i guess, but it's not entirely lib code
<postmodern> tpope, BSD's manuals are also kind of lax
<havenn> Canonical location?: /thingies/rubies/
<tpope> rubies is an rvmism, no?
<tpope> never seen it anywhere else
<postmodern> tpope, they don't even define a /opt, but state the administrator can do basically whatever he wants later
<postmodern> i've seen some people with ~/.rubies/
<havenn> tpope: Wherever it comes from, plural of Ruby is Rubies.
<postmodern> basically makes it easy to do for ruby in rubies/*
<tpope> yeah I get it
<tpope> it just looks a bit weird
<tpope> which is fine
<havenn> tpope: But I think rubies/ is better than ruby/? Granted not exactly perfect.
banisterfiend has quit [Ping timeout: 264 seconds]
<tpope> contrast .rbenv/versions
<tpope> where "ruby" is implied by the parent directory
banisterfiend has joined #ruby-lang
<postmodern> tpope, downside is that is application specific
<tpope> I really don't care
<tpope> just don't release a package that installs stuff to /usr/local
<postmodern> tpope, ~/.rbfu/rubies
<postmodern> tpope, nor do I :)
<tpope> heroku :(
<postmodern> tpope, but but when I do, it's in the form of instructions
<havenn> tpope: Tell meteor guys that! :P
<tpope> I don't know meteor
<havenn> Not Ruby, JS.
<postmodern> haha i remember that project
<postmodern> are they still working on adding authentication? :P
<postmodern> and not exposing the entire DB to the internet
<tpope> yeah that's exactly the sort of shit I hate
_malte has joined #ruby-lang
datanoise has quit [Ping timeout: 264 seconds]
<havenn> postmodern: Haha, yeah the finer points...
jobicoppola has quit [Ping timeout: 252 seconds]
<charliesome> meteor represents everything that is wrong with the web development scene these days
crazyhorse18 has quit [Remote host closed the connection]
<havenn> charliesome: I dunno, pretty elegant compared to much of the web.
<havenn> Like comparing a slug to a pidgeon.
_malte has quit [Ping timeout: 252 seconds]
<havenn> s/pidgeon/pigeon
<charliesome> the web would be a better place is js was much slower
<charliesome> then people would only use it for shit where it actually does a good thing
yfeldblum has quit [Ping timeout: 240 seconds]
<zenspider> yes, because the web in 1996 was a Good Thing™
yfeldblum has joined #ruby-lang
yfeldblum has quit [Ping timeout: 240 seconds]
banisterfiend has quit [Ping timeout: 276 seconds]
banisterfiend has joined #ruby-lang
yfeldblum has joined #ruby-lang
gsav_ has joined #ruby-lang
gsav has quit [Ping timeout: 250 seconds]
dzhulk has joined #ruby-lang
otherj has joined #ruby-lang
briantrust has quit [Remote host closed the connection]
<otherj> is there an easy way to compare an object parameter against a hash and if it matches use the hashe's value to,set the value of a different object?
yfeldblum has quit [Ping timeout: 240 seconds]
_malte has joined #ruby-lang
setmeaway has joined #ruby-lang
_malte has quit [Ping timeout: 255 seconds]
ejholmes has joined #ruby-lang
joooooo has quit [Ping timeout: 276 seconds]
yfeldblum has joined #ruby-lang
<zenspider> otherj: define "object parameter"
otherj has left #ruby-lang [#ruby-lang]
datanoise has joined #ruby-lang
havenn has quit [Remote host closed the connection]
datanoise has quit [Ping timeout: 264 seconds]
sush24 has joined #ruby-lang
burgestrand has joined #ruby-lang
<zenspider> or don't
_malte has joined #ruby-lang
rippa has joined #ruby-lang
_malte has quit [Ping timeout: 240 seconds]
datanoise has joined #ruby-lang
burgestrand has quit [Quit: Leaving.]
rohit has quit [Quit: Leaving]
mistym has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 250 seconds]
gsav_ has quit [Read error: Connection reset by peer]
datanoise has quit [Ping timeout: 252 seconds]
heftig has quit [Quit: leaving]
slaytanic has quit [Ping timeout: 260 seconds]
_malte has joined #ruby-lang
micaeked has quit [Quit: WeeChat 0.3.9.2]
Fretta has quit [Quit: Fretta]
_malte has quit [Ping timeout: 244 seconds]
havenn has joined #ruby-lang
LanceHaig has left #ruby-lang ["Leaving"]
zarubin has quit []
mjio has quit []
rippa has quit [Ping timeout: 248 seconds]
jxie has quit [Quit: leaving]
gsav has joined #ruby-lang
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby-lang
datanoise has joined #ruby-lang
datanoise has quit [Ping timeout: 264 seconds]
gsav has quit [Read error: Connection reset by peer]
_malte has joined #ruby-lang
gsav has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
Dan- has quit [Ping timeout: 255 seconds]
jashank has quit [Quit: ZNC - http://znc.in]
_malte has quit [Ping timeout: 276 seconds]
jashank has joined #ruby-lang
rohit has joined #ruby-lang
cantonic_ has joined #ruby-lang
JohnBat26 has joined #ruby-lang
cantonic has quit [Ping timeout: 264 seconds]
cantonic_ is now known as cantonic
kitallis has joined #ruby-lang
gsav has quit [Read error: Connection reset by peer]
dabradley has quit [Ping timeout: 265 seconds]
burgestrand has joined #ruby-lang
havenn has quit [Remote host closed the connection]
io_syl has quit [Ping timeout: 252 seconds]
havenn has joined #ruby-lang
havenn has quit [Ping timeout: 255 seconds]
chendo_ has quit [Quit: Leaving...]
sush24 has quit [Quit: This computer has gone to sleep]
postmodern has quit [Ping timeout: 250 seconds]
_malte has joined #ruby-lang
cirwin has joined #ruby-lang
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
rohit has quit [Ping timeout: 250 seconds]
areil has joined #ruby-lang
coliflor has joined #ruby-lang
rohit has joined #ruby-lang
bluepojo has quit [Quit: Leaving.]
briantrust has joined #ruby-lang
wardrop has quit [Quit: wardrop]
postmodern has joined #ruby-lang
vlad_starkov has joined #ruby-lang
havenn has joined #ruby-lang
charliesome has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
mjbamford has joined #ruby-lang
vlad_starkov has joined #ruby-lang
BigO has joined #ruby-lang
gmci_ has quit [Quit: Computer has gone to sleep.]
BigO has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
havenn has quit [Ping timeout: 240 seconds]
ttilley has quit [Quit: ttilley]
rohit has quit [Ping timeout: 240 seconds]
mistym has quit [Remote host closed the connection]
tenderlove has quit [Remote host closed the connection]
rohit has joined #ruby-lang
io_syl has joined #ruby-lang
faces has joined #ruby-lang
havenn has joined #ruby-lang
facest has quit [Ping timeout: 252 seconds]
schaerli has joined #ruby-lang
coliflor has quit [Ping timeout: 245 seconds]
rohit has quit [Quit: Leaving]
havenn has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby-lang
headius has joined #ruby-lang
tenderlove has joined #ruby-lang
<yorickpeterse> Morning folks
postmodern has quit [Quit: Leaving]
_malte has quit [Remote host closed the connection]
_malte has joined #ruby-lang
solars has joined #ruby-lang
_malte has quit [Ping timeout: 248 seconds]
jashank has quit [Changing host]
jashank has joined #ruby-lang
workmad3 has quit [Ping timeout: 252 seconds]
ephemerian has joined #ruby-lang
dc5ala has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
<whitequark> zenspider: yes, because the fact that twitter can easily eat up 20GB of RAM is definitely a very good thing
<whitequark> we need more websites like that. travis, for example, is absolutely awesome.
<whitequark> yay jquery programmers.
vlad_starkov has quit [Remote host closed the connection]
<whitequark> this is also the reason that mozilla thingy called B2G is an utterly idiotic idea. yeah, let's get everything which is slow in the web and put it on slow low-cost hardware. it's already laggy on SGS2, which at the point of its release was the fastest smartphone on market.
<whitequark> but It Contains JavaScript. how that couldn't be a good thing.
<whitequark> now everyone can write shitty slow applications and cause even more frustration to their users.
<whitequark> </rant>
<yorickpeterse> tbh I think Firefox OS/boot 2 gecko is quite a neat idea
<yorickpeterse> But I'll wait to see how well/bad it performs
<whitequark> yorickpeterse: HTML is an awful thing to write complex layouts in.
<whitequark> I've had a neat picture somewhere, a tabbed pane with tabs on each of the four sides of it
robotmay has joined #ruby-lang
<whitequark> useless from the point of UX, but it took no more than a 2 MHz CPU to render, and it was fast.
<yorickpeterse> It depends on how you write it and what tools you use
postmodern has joined #ruby-lang
<yorickpeterse> though I do feel that it can learn a lot from how desktop apps are built
<whitequark> and now for some stupid reason that shouldn't even exist in the first place you need a shitload of JS and CSS3 and (oh god) GPU acceleration
<whitequark> and transparent PNGs
<whitequark> and suddenly you get 20GB-sized twitter which is slow on my i7, which is still fastest 4-core CPU ever been put into a notebook
<whitequark> *.
<whitequark> good job,
<whitequark> android didn't even have jit until very recently, and it worked quite well, especially when you take into account that it, until 4th version, wasn't an OS built for touchscreen devices at all
dr_bob has joined #ruby-lang
<whitequark> yorickpeterse: HTML simply isn't good for layouts, because it is a markup language. the fact that you can position elements neatly if you fuck with it long enough is a mere side effect
<yorickpeterse> What would you rather write layouts in?
<yorickpeterse> Don't say "Glade" or something like that
faces has quit [Read error: Connection reset by peer]
<whitequark> yorickpeterse: android layout engine is nice. qt's one is pretty good either.
faces has joined #ruby-lang
<yorickpeterse> Hm, haven't used either
<whitequark> didn't work with glade, but gtk is generally very poorly designed, as every other thing gnu, so I doubt it's any good.
<yorickpeterse> it's shit
<yorickpeterse> Typical case of "Lets abuse XML for evil"
Averna has quit [Quit: Leaving.]
sepp2k has joined #ruby-lang
<whitequark> well, android loves XML, but they do it quite wisely. their Java code doesn't tend to contain FactoryFactories as well; it's quite a pleasure to work with, if that term could ever be applied to any Java code at all.
<yorickpeterse> careful there
<whitequark> http://developer.android.com/guide/components/index.html you're welcome to read that yourself and evaluate
brianpWins has joined #ruby-lang
fushi has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
judofyr has joined #ruby-lang
wudofyr has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
Axsuul has quit [Ping timeout: 244 seconds]
wudofyr has joined #ruby-lang
rue|w has joined #ruby-lang
gnufied has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
burgestrand has quit [Quit: Leaving.]
wudofyr has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
wudofyr has quit [Remote host closed the connection]
wudofyr has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
dzhulk has quit [Quit: Leaving.]
wudofyr has joined #ruby-lang
ryanf has joined #ruby-lang
rohit has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
rcvalle has joined #ruby-lang
wudofyr has joined #ruby-lang
rolfb has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
wudofyr has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
z3r00ld has joined #ruby-lang
z3r00ld has left #ruby-lang [#ruby-lang]
toretore has joined #ruby-lang
wudofyr has joined #ruby-lang
vlad_starkov has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
wudofyr has joined #ruby-lang
cirwin has quit [Ping timeout: 240 seconds]
wudofyr has quit [Remote host closed the connection]
io_syl has quit [Quit: Computer has gone to sleep.]
wudofyr has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
wudofyr has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
wudofyr has joined #ruby-lang
blacktulip has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
wudofyr has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
wudofyr has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
rohit has quit [Read error: No buffer space available]
jackhammer2022 has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
wudofyr has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
Weems has quit [Read error: Connection reset by peer]
wudofyr has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
wudofyr has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
wudofyr has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 240 seconds]
wudofyr has quit [Remote host closed the connection]
wudofyr has joined #ruby-lang
mpfundstein has joined #ruby-lang
s1n4 has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
wudofyr has joined #ruby-lang
wudofyr has quit [Remote host closed the connection]
wudofyr has joined #ruby-lang
npj has joined #ruby-lang
vmoravec has quit [Remote host closed the connection]
wudofyr has quit [Remote host closed the connection]
dzhulk has joined #ruby-lang
slyphon_ has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
slyphon_ has joined #ruby-lang
ddd1 has joined #ruby-lang
ddd has quit [Ping timeout: 245 seconds]
headius has quit [Quit: headius]
wallerdev has quit [Quit: wallerdev]
fushi has quit [Quit: fushi]
jxie has joined #ruby-lang
vmoravec has joined #ruby-lang
thone has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby-lang
zmack has joined #ruby-lang
chaseston has joined #ruby-lang
klebervi_ has joined #ruby-lang
kleberv__ has joined #ruby-lang
sush24 has quit [Ping timeout: 255 seconds]
GarethAdams has joined #ruby-lang
klebervi_ has quit [Ping timeout: 256 seconds]
thone has joined #ruby-lang
sush24 has joined #ruby-lang
heftig has joined #ruby-lang
sush24_ has joined #ruby-lang
sush24 has quit [Ping timeout: 250 seconds]
kleberv__ has quit [Read error: Connection timed out]
klebervi_ has joined #ruby-lang
slyphon__ has joined #ruby-lang
<kith> does scruffy require imagemagick?
slyphon_ has quit [Ping timeout: 245 seconds]
setmeaway has quit [Read error: Connection reset by peer]
kleberv__ has joined #ruby-lang
setmeaway has joined #ruby-lang
klebervi_ has quit [Ping timeout: 255 seconds]
yxhuvud has quit [Read error: Connection reset by peer]
yxhuvud has joined #ruby-lang
khaase has quit [Ping timeout: 245 seconds]
randym has quit [Ping timeout: 245 seconds]
masterkorp has quit [Ping timeout: 245 seconds]
khaase has joined #ruby-lang
randym has joined #ruby-lang
matthewd has quit [Remote host closed the connection]
matthewd_ has joined #ruby-lang
masterkorp has joined #ruby-lang
mindbender1 has joined #ruby-lang
kleberv__ has quit [Read error: Connection timed out]
klebervi_ has joined #ruby-lang
Guest31858 has joined #ruby-lang
burgestrand has joined #ruby-lang
chaseston has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby-lang
x0F has quit [Read error: Connection reset by peer]
x0F has joined #ruby-lang
npj has quit [Quit: Page closed]
burgestrand1 has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
dr_bob has quit [Ping timeout: 240 seconds]
sush24_ has quit [Ping timeout: 252 seconds]
burgestrand has quit [Ping timeout: 240 seconds]
dr_bob has joined #ruby-lang
sush24_ has joined #ruby-lang
burgestrand1 has quit [Read error: Connection reset by peer]
burgestrand has joined #ruby-lang
sush24_ has quit [Ping timeout: 248 seconds]
gnufied has joined #ruby-lang
blacktul_ has joined #ruby-lang
tbuehlmann has joined #ruby-lang
sush24_ has joined #ruby-lang
blacktulip has quit [Ping timeout: 248 seconds]
nazty has quit [Read error: Connection reset by peer]
nazty has joined #ruby-lang
dr_bob has quit [Ping timeout: 240 seconds]
krz has quit [Quit: krz]
nazty has quit [Read error: Connection reset by peer]
dr_bob has joined #ruby-lang
nazty has joined #ruby-lang
slaytanic has joined #ruby-lang
ruskie has quit [Read error: Operation timed out]
niteshnarayanlal has joined #ruby-lang
leopard_me has joined #ruby-lang
sush24_ has quit [Quit: This computer has gone to sleep]
faustman has joined #ruby-lang
ruskie has joined #ruby-lang
coolbananas118 has joined #ruby-lang
Guest31858 has left #ruby-lang [#ruby-lang]
JohnBat26 has quit [Remote host closed the connection]
<niteshnarayanlal> hi I was getting usr/local/share/gems/gems/bundler-1.2.3/lib/bundler/spec_set.rb:90:in `block in materialize': Could not find multi_json-1.3.6 in any of the sources (Bundler::GemNotFound)
<niteshnarayanlal> from /usr/local/share/gems/gems/bundler-1.2.3/lib/bundler
matthewd_ has quit [Ping timeout: 259 seconds]
<niteshnarayanlal> this error although I had installed rubygem-multi_json
faustman has quit [Ping timeout: 250 seconds]
<niteshnarayanlal> I tried to use gem install multi_json but getting `require': cannot load such file -- json/pure (LoadError)
kurko_ has joined #ruby-lang
kurko_ has quit [Client Quit]
<yorickpeterse> Did you add the Gem to your Gemfile?
JohnBat26 has joined #ruby-lang
kurko_ has joined #ruby-lang
rolfb has quit [Quit: Linkinus - http://linkinus.com]
Banistergalaxy has quit [Ping timeout: 276 seconds]
<niteshnarayanlal> yorickpeterse, no I have't done that
<niteshnarayanlal> sorry but was not very sure of that
<judofyr> yorickpeterse: but it seems like he's just trying to invoke Bundler?
<judofyr> or, no
<judofyr> my mistake
<niteshnarayanlal> earlier also I got few errors
<judofyr> niteshnarayanlal: yes, you'll have to put it in your Gemfile
<niteshnarayanlal> I installed them using gem install
Banistergalaxy has joined #ruby-lang
<coolbananas118> Is it ok to ask Ruby NOOB questions? I want to know what #{name} syntax means? Is it injecting the class variable value?
<niteshnarayanlal> I am asking that only :P
<niteshnarayanlal> judofyr, sry but can u point me to some reference
<niteshnarayanlal> from where I can learn about how to setup and to add gems to Gemfile
<judofyr> coolbananas118: #{} is string interpolation. it's only valid inside a string
<judofyr> niteshnarayanlal: http://gembundler.com/
matthewd has joined #ruby-lang
<judofyr> coolbananas118: it evaluates the expression and puts it into the string: "1 + 1 = #{1 + 1}"
<tockitj_> coolbananas118, it calls .to_s and interpolates that
<judofyr> coolbananas118: it's similar to "1 + 1 = " + (1 + 1).to_s
<coolbananas118> great, thanks everyone for the help :)
dr_bob has quit [Quit: Leaving.]
faustman has joined #ruby-lang
sepp2k has quit [Quit: Leaving.]
dr_bob has joined #ruby-lang
brunocoelho has joined #ruby-lang
slaytanic has quit [Read error: Connection reset by peer]
slaytanic has joined #ruby-lang
brunocoelho has quit [Remote host closed the connection]
<niteshnarayanlal> hey not sure what the error means I mean I again tried gem install bundler
<niteshnarayanlal> and got the same error cannot load such file -- json/pure (LoadError)
manveru has quit [Ping timeout: 240 seconds]
manveru has joined #ruby-lang
<yorickpeterse> What's the output of `ruby --version` (minus the quotes)
<niteshnarayanlal> ruby 1.9.3p327
<yorickpeterse> Can you pastie the code you're trying to run?
jxie has quit [Quit: leaving]
<yorickpeterse> e.g. gist.github.com or pastie.org
<niteshnarayanlal> give me a min plz brb
<yorickpeterse> No probs
vlad_starkov has quit [Remote host closed the connection]
ddd1 is now known as ddd
vlad_starkov has joined #ruby-lang
cored has quit [Ping timeout: 252 seconds]
coolbananas118 has quit [Ping timeout: 240 seconds]
sush24 has joined #ruby-lang
banisterfiend has quit [Remote host closed the connection]
mwjcomputing has joined #ruby-lang
banisterfiend has joined #ruby-lang
gmci has joined #ruby-lang
gmci is now known as Guest78419
dr_bob has quit [Quit: Leaving.]
Banistergalaxy has quit [Ping timeout: 250 seconds]
s1n4 has quit [Quit: leaving]
faces has quit [Read error: Connection reset by peer]
sepp2k has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
faces has joined #ruby-lang
x0F_ is now known as x0F
AndChat| has joined #ruby-lang
<niteshnarayanlal> actually I was working on this
dr_bob has joined #ruby-lang
<niteshnarayanlal> and when I tried to run
<niteshnarayanlal> bin/sbapp new APP_SLUG
Banistergalaxy has quit [Ping timeout: 244 seconds]
<niteshnarayanlal> bundler-1.2.3/lib/bundler/spec_set.rb:90:in `block in materialize': Could not find multi_json-1.3.6 in any of the sources (Bundler::GemNotFound)
<niteshnarayanlal> got this error
pound has joined #ruby-lang
<niteshnarayanlal> and then when I tired to install
<niteshnarayanlal> gem install multi_json
<niteshnarayanlal> then I got the error
<niteshnarayanlal> /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- json/pure (LoadError)
<niteshnarayanlal> yorickpeterse, ^^
<yorickpeterse> Did you run `bundle install`?
mwjcomputing has quit [Read error: Connection reset by peer]
<niteshnarayanlal> yeap I tried gem install bundler
<niteshnarayanlal> http://fpaste.org/NXVO/
pound has quit [Client Quit]
<yorickpeterse> Not just installing it, you also have to run that command
<niteshnarayanlal> yeah but first it should be installed properly isn
<niteshnarayanlal> *isn't
<niteshnarayanlal> or am I missing any step there
<yorickpeterse> Hm, I think in that case your Ruby is borked
mwjcomputing has joined #ruby-lang
<niteshnarayanlal> hmm then prbly I need to re install it after removing it
wyhaines has joined #ruby-lang
carloslopes has joined #ruby-lang
Technodrome has joined #ruby-lang
<Technodrome> Good day
<Technodrome> ruby brush up 101. why is the :: operatior used, such as Math::PI ? not Math.pi ?
<Technodrome> its actually kinda hard to google something with ::
banisterfiend has quit [Ping timeout: 255 seconds]
<andrewvos> Technodrome: It's there to seperate modules/classes etc
<yorickpeterse> Technodrome: because it's a namespace separator
<andrewvos> Technodrome: I can't remember why. Ask judofyr
<andrewvos> Or him
<judofyr> Technodrome: well, it's actually a constant lookup
<judofyr> Technodrome: Math::PI is a constant. . only works on methods
<Technodrome> hmm….so there can only be one constant called PI ?
<judofyr> yes
<judofyr> or, there can be an Integer::PI and Math::PI
<Technodrome> even if its not in a module, anywhere, there can only be ne?
<Technodrome> one*
<Technodrome> hmm
<apeiros_> per namespace
<apeiros_> there can be Math::PI, Foo::PI and Whatever::PI
<Technodrome> ah ok …so if i do include Math
<Technodrome> and try to redefine PI it wouldn't allow me right?
<andrewvos> Wrong
<andrewvos> I think
<apeiros_> it would
<apeiros_> local one takes precedence over included
<Technodrome> i'm still not seeing the point of it being :: then
<Technodrome> hmm
<lianj> 14:35 < yorickpeterse> Technodrome: because it's a namespace separator
<judofyr> Technodrome: `PI = …` defines the constant under the current scope
<lianj> module Foo; PI = :a; def self.PI; :b; end; end; [Foo::PI, Foo.PI]
<judofyr> Technodrome: Math::PI is the canonical name
<ddd> because its not about being googleable its about the language. google isn't a concern. the :: was chosen for the language
<yorickpeterse> Math::PI translates to "Do something with PI that is defined under Math"
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
<yorickpeterse> Math.PI would mean "Call PI that is defined under Math"
<yorickpeterse> fun fact: both can be used for constants
<yorickpeterse> and methods
krz has joined #ruby-lang
<Technodrome> ddd: its just hard to google in general
<Technodrome> i get it now
mjbamford has quit [Quit: Leaving...]
carloslopes has quit [Read error: Connection reset by peer]
carloslopes has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
dc5ala has quit [Quit: Ex-Chat]
madish has joined #ruby-lang
sush24 has joined #ruby-lang
schaerli has joined #ruby-lang
Technodrome has quit [Quit: Leaving.]
sush24 has quit [Client Quit]
heftig has quit [Quit: leaving]
Guest78419 has quit [Ping timeout: 244 seconds]
slyphon__ has quit [Ping timeout: 244 seconds]
rsl has joined #ruby-lang
mwjcomputing has quit [Read error: Connection reset by peer]
mwjcomputing has joined #ruby-lang
spectra- has quit [Ping timeout: 246 seconds]
carloslopes has quit [Remote host closed the connection]
JohnHirbour has joined #ruby-lang
wyhaines has quit [Remote host closed the connection]
mercwithamouth has joined #ruby-lang
spectra has joined #ruby-lang
sush24 has joined #ruby-lang
slyphon__ has joined #ruby-lang
slyphon_wtf has joined #ruby-lang
postmodern has quit [Quit: Leaving]
slyphon__ has quit [Ping timeout: 245 seconds]
srbaker has joined #ruby-lang
Denommus has joined #ruby-lang
madish has quit [Read error: Connection reset by peer]
madish has joined #ruby-lang
<Denommus> guys
<Denommus> I'm trying to test a sinatra application called webirc
<Denommus> but all its require use the format "lib/<some lib>", and ruby can't find them
<Denommus> how do I make it find?
<andrewvos> Denommus: require_relative might work
<andrewvos> Denommus: Or add the lib directory to the load path
<tbuehlmann> or using $LOAD_PATH.unshift(File.dirname(__FILE__)) beforehand
areil_ has joined #ruby-lang
wyhaines has joined #ruby-lang
<workmad3> Denommus: the 'lib/' prefix is likely to be unnecessary, as the normal convention is for the lib/ path in a gem or app to be on the load path
<Denommus> workmad3: I wasn't the one to make the application
areil has quit [Ping timeout: 252 seconds]
sailias has joined #ruby-lang
<Denommus> tbuehlmann's solution worked very well
havenn has joined #ruby-lang
areil has joined #ruby-lang
havenn has quit [Remote host closed the connection]
<Denommus> thank you, tbuehlmann
<tbuehlmann> welcome!
areil_ has quit [Ping timeout: 264 seconds]
slyphon_wtf has quit [Ping timeout: 245 seconds]
dabradley has joined #ruby-lang
banister_ has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 248 seconds]
areil has quit []
slyphon_wtf has joined #ruby-lang
matthewd has quit [Ping timeout: 259 seconds]
matthewd has joined #ruby-lang
nwertman has joined #ruby-lang
<andrewvos> workmad3: That's only really for gems though. In a sinatra app you have to do it yourself.
<workmad3> andrewvos: ah, fair enough
wyhaines has quit [Remote host closed the connection]
<workmad3> andrewvos: I'm used to rails apps too, where that's done for you, and app templates that set up lib/ on your load_path for you too :)
<andrewvos> workmad3: Oh yeah and rails. I've never worked with rails properly.
<workmad3> andrewvos: I did say it was a normal convention rather than completely automatic though ;)
<workmad3> andrewvos: but I guess that assumes a fair bit about normalcy
<andrewvos> workmad3: Well yeah, it's normal to add lib to your load path. I get that, I was just implying that you will often have to do it for your personal projects.
<workmad3> yeah, I forget that bit :)
<andrewvos> workmad3: Rails is good at making you unlearn things :)
<andrewvos> Rails is not unlike Charles Manson.
slyphon_wtf has quit [Ping timeout: 245 seconds]
yalue has joined #ruby-lang
faustman has quit [Read error: Operation timed out]
<workmad3> :P
jtoy has joined #ruby-lang
banister_ has quit [Read error: Connection timed out]
banisterfiend has joined #ruby-lang
carloslopes has joined #ruby-lang
davidbalber|away is now known as davidbalbert
elico has joined #ruby-lang
dreamfactory has quit [Remote host closed the connection]
Denommus has quit [Remote host closed the connection]
Denommus has joined #ruby-lang
rcvalle has quit [Ping timeout: 276 seconds]
burgestrand has quit [Quit: Leaving.]
sush24 has quit [Quit: This computer has gone to sleep]
Denommus has quit [Remote host closed the connection]
nwertman has quit [Ping timeout: 255 seconds]
havenn has joined #ruby-lang
slyphon_wtf has joined #ruby-lang
sush24 has joined #ruby-lang
gnufied has quit [Quit: Leaving.]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
outoftime has joined #ruby-lang
wyhaines has joined #ruby-lang
carloslopes has quit [Ping timeout: 240 seconds]
MaddinXx has joined #ruby-lang
gnufied has joined #ruby-lang
heftig has joined #ruby-lang
sush24 has quit [Ping timeout: 276 seconds]
carloslopes has joined #ruby-lang
Swimming_Bird has joined #ruby-lang
slyphon_wtf_ has joined #ruby-lang
havenn has left #ruby-lang ["Leaving..."]
havenn has joined #ruby-lang
slyphon_wtf has quit [Ping timeout: 245 seconds]
sush24 has joined #ruby-lang
gjaldon has joined #ruby-lang
Stereokitsune has left #ruby-lang [#ruby-lang]
gsav has joined #ruby-lang
enebo has joined #ruby-lang
BigO has joined #ruby-lang
gjaldon has quit [Ping timeout: 264 seconds]
bastilian has joined #ruby-lang
rippa has joined #ruby-lang
davidbalbert is now known as davidbalber|away
intellitech has joined #ruby-lang
davidbalber|away is now known as davidbalbert
voker57_ has left #ruby-lang [#ruby-lang]
jxie has joined #ruby-lang
wyhaines has quit [Read error: Connection reset by peer]
banisterfiend has quit [Remote host closed the connection]
wyhaines has joined #ruby-lang
<masterkorp> Hello, can anyone recomend me some doc about making my classes iterabale ?
carloslopes has quit [Remote host closed the connection]
gjaldon has joined #ruby-lang
<whitequark> masterkorp: define #each, yield a block there, include Enumerable
<whitequark> that's all
<gjaldon> hi all. could someone take a look at my code and identify what the problem is with my specs? it keeps producing nil
<andrewvos> gjaldon: Put it on gist.github.com
gsav_ has joined #ruby-lang
<gjaldon> my prob is I'm getting a 'got: nil (using ==)' in my spec which leads to a failure
<gjaldon> andrewvos, let me know if you need any more details
davidbalbert is now known as davidbalber|away
<yorickpeterse> gjaldon: turn on syntax highlighting
<yorickpeterse> (change the extension to .rb)
wyhaines has quit [Read error: Connection reset by peer]
<andrewvos> gjaldon: you're not returning any sort of object in your registration_confirmation method?
<andrewvos> gjaldon: RestClient.post will not have a .to method
<andrewvos> gjaldon: I mean, the result of RestClient.post will not have a .to method
<judofyr> andrewvos: it's ActionMailer magic
<andrewvos> judofyr: You are taking the piss?
<judofyr> andrewvos: oh, but yeah, there's something funky here
<andrewvos> judofyr: It turns a post call into an object?
wyhaines has joined #ruby-lang
<yorickpeterse> andrewvos: hint: /^action_.+/
<yorickpeterse> METHOD MISSING EVERYWHERE
<yorickpeterse> I better not put that on Twitter otherwise I might be told to go fuck myself
<andrewvos> judofyr: I'm inclined to say "off to #RubyOnRails with you"
gsav has quit [Quit: Lost terminal]
elico has quit [Quit: Elico]
<judofyr> andrewvos: oh wait, I completely misunderstood. I think you're not supposed to actually send it in in the method definition. it should only build the mail.
<judofyr> gjaldon: ^
headius has joined #ruby-lang
<judofyr> gjaldon: you can setup ActionMailer to use Mailgun's STMP instead.
<gjaldon> andrewvos: I see. so how do I test if subject, from and to are correct?
<andrewvos> gjaldon: There's an example there
<gjaldon> judofyr, andrewvos: i used the HTTP API cos it said in Mailgun's docs that it's easier and more 'advisable'. Is there no way to test them or does it actually make sense to test them since it's probably well-tested already?
bastilian has quit [Quit: Linkinus - http://linkinus.com]
<judofyr> gjaldon: you might be able to write a custom delivery method that POSTs
<andrewvos> gjaldon: There's no harm in testing your code
<gjaldon> judofyr, andrewvos: how do I go about writing a custom delivery method that POSTs? sorry quite new here. maybe you could point me to a resource I could read up?
<judofyr> gjaldon: I actually have no idea :)
<andrewvos> gjaldon: Well thenyou don'tneed action mailer if you don't use their method of mailing
<judofyr> heh, true
klebervi_ has quit [Remote host closed the connection]
klebervirgilio has joined #ruby-lang
<gjaldon> andrewvos, judofyr: so you mean it's useless to have the class RegistrationMailer to inherit from ActionMailer::Base
<gjaldon> ?
<andrewvos> gjaldon: Exactly
<judofyr> gjaldon: yes. you're not using anything in ActionMailer
<gjaldon> andrewvos, judofyr: thanks, guys. :-) would never have realized that.lol was too concerned about my tests returning nil
<gjaldon> and now I know why
<andrewvos> gjaldon: Unless of course Rails is all like "YOU CAN ONLY USE ACTIONMAILER DON'T USE ANYTHING ELSE EVER"
nazty has quit [Ping timeout: 264 seconds]
<gjaldon> andrewvos: :-) so how to test my registration_confirmation method?
krohrbaugh has quit [Quit: Leaving.]
<andrewvos> gjaldon: Well, you want to be sure that it's posting the correct values right?
JohnHirbour has left #ruby-lang [#ruby-lang]
<gjaldon> andrewvos: yes, thats right
klebervirgilio has quit [Ping timeout: 276 seconds]
<andrewvos> gjaldon: You could do (and I hate you for making me write rspec) something like `RestClient.should_receive(:post), :with => {:to => "andrew@vos.com"}`
solars has quit [Ping timeout: 252 seconds]
headius has quit [Quit: headius]
headius has joined #ruby-lang
<judofyr> gjaldon: don't worry, he doesn't really hate you
<gjaldon> lol judofyr
<judofyr> (andrewvos: right?)
<injekt> rspec D:
<andrewvos> hehe yes judofyr
<andrewvos> I'm South African, I say rude things without noticing.
<oddmunds> andrewvos: what do you prefer to rspec?
<yorickpeterse> bacon
<gjaldon> andrewvos, the help's all the more appreciated then. :-) so I guess you prefer Test::Unit(not sure if that's the one)?
<injekt> minitest
yfeldblum has quit [Ping timeout: 240 seconds]
<havenn> +1 minitest/spec
<injekt> gjaldon: test/unit pre 1.9, minitest post
<gjaldon> thanks injekt ! minitest the
<gjaldon> *then
zhul_mechanos has joined #ruby-lang
<oddmunds> i wanted to start a fight
<andrewvos> gjaldon: Yes minitest is great, although banisterfiend has made me like bacon lately.
<injekt> gjaldon: use whatever you find best, though
<andrewvos> injekt: Yes. As long as it is only minitest or spec right? :)
<oddmunds> andrewvos: you hate rspec, but like the rspec clone?
<injekt> andrewvos: exactly
<injekt> oddmunds: to be fair to him, bacon adds 2(?) methods to Object
<injekt> and it's tiny
<gjaldon> thanks for the inputs andrewvos and injekt. will check out banisterfriend and minitest
<oddmunds> am i looking at the right thing? https://github.com/chneukirchen/bacon
<injekt> gjaldon: banisterfiend is a person
<injekt> lol
<injekt> oddmunds: yeah
<havenn> I never thought of using banisterfiend to test!
<yorickpeterse> gjaldon: banister is a person
<gjaldon> lol
rue|w has quit [Ping timeout: 264 seconds]
<yorickpeterse> haha
<rking> havenn: Results would be unreliable.
<Phrogz> But awesome.
<havenn> rking: haha!
<Phrogz> And fast.
<gjaldon> LOL should have checked the channel list
krz has quit [Quit: krz]
<oddmunds> gjaldon: i'd skip checking out banisterfiend
schaerli has quit [Remote host closed the connection]
<havenn> gjaldon: Just don't use any frameworks named after vegetables, and you'll be good.
<gjaldon> i meant check out 'bacon' :-)
<gjaldon> misunderstood it on my first read
<oddmunds> gjaldon: you might want to check out pry, though. it's his baby.
<havenn> Pry is awesome.
<gjaldon> havenn, i didn't like cucumber. seemed to be too long
<havenn> gjaldon: It also violates the vegetables rule!
jbwiv has quit [Ping timeout: 240 seconds]
ejholmes has quit [Quit: ejholmes]
<andrewvos> havenn: Now thinking of writing a banisterfiend gem just to take the name first and troll him
ejholmes has joined #ruby-lang
<gjaldon> havenn, the only testing framework I know that's named after vegetables. Pry is whose project?
<injekt> banisterfiends
sent-hil has joined #ruby-lang
<andrewvos> oddmunds: I haven't used it yet, but I did like the looks of it. And it runs very fast.
<injekt> his name is annoying to write without tab completion
<andrewvos> (bacon)
mcmullins has joined #ruby-lang
<gjaldon> andrewvos, sounds like a great idea. let me know if you'd start on that. would love to contribute
<injekt> bacon is nice, but I really dont like 'should', should should not be used when testing
<andrewvos> injekt: YESSSSSSSSSS
<andrewvos> injekt: FUCK YEAH
<injekt> D:
<andrewvos> Most useless word in programming
<andrewvos> It's so uncertain
<andrewvos> Like "my object should do something. not really sure if it's going to. either way, meh"
<injekt> I believe that's how minitest/spec started using 'must'
<injekt> yeah exactly
<injekt> don't like that
<havenn> andrewvos: That is a pretty epic troll. :)
<injekt> I prefer "foo" equals foo, or foo includes "foo" not "foo should include foo"
<andrewvos> havenn: When you run it, it makes quotes about famous authors or just sends you pics of porn
<injekt> or joins your irc server and trolls the hell out of everyone
<andrewvos> haha
scampbell has joined #ruby-lang
io_syl has joined #ruby-lang
yfeldblum has joined #ruby-lang
<injekt> this is interesting https://github.com/ryanb/mustard kinda like bacon but with must
<injekt> "like bacon but with must" i dont think these words have been uttered before
<andrewvos> It's like a race to see who gets the yummiest test framework name.
<judofyr> injekt: so, it's just like Bacon?
<judofyr> but with magic be_gt stuff
<injekt> judofyr: i haven't looked into it enough to say that, but seems so yes
<yorickpeterse> assert_should_must_equal(foo)
<yorickpeterse> everybody happy
<injekt> no
zmack has quit [Remote host closed the connection]
<injekt> foo.should_must_equal
<injekt> much better
<yorickpeterse> foo.should_must_eq_equal ==
<judofyr> foo.assert_should_must_equal(foo, "foo")
<injekt> :D
<judofyr> method transplanting looks cool
<yorickpeterse> AssertionFactory::Factory.createAssertionFactory(ShouldMustEqualAssetion).shouldMustEqual(foo, 'foo')
<injekt> oh god
<blowmage> MiniTest::Shouldify.register! "would_you_please", "rather_you_wouldnt"
<yorickpeterse> haha
<injekt> @foo.bar.would_you_please_equal "bar"
<injekt> so polite
<blowmage> works with matchers too
<blowmage> would_you_please { be_equal_to("bar") }
<blowmage> rather_you_wouldnt { be_equal_to("baz") }
<injekt> I love the project description
<injekt> "This is a bad idea."
<blowmage> totes
<mcmullins> I have a few questions about the Dir class if anyone has the time
<injekt> mcmullins: ask away
<andrewvos> mcmullins: We always do
<blowmage> sadly, 264 total downloads https://rubygems.org/gems/minitest-shouldify
<mcmullins> I posted a stackoverflow question about it yesterday http://stackoverflow.com/questions/13828924/how-do-ruby-directories-work
<mcmullins> there seems to be some confusion on whether Dirs are streams IOs or what
ottbot has quit [Ping timeout: 264 seconds]
<mcmullins> they open and close like an IO and even raise IOErrors
<mcmullins> but don't inherit from the IO class
<injekt> "Objects of class Dir are directory streams representing directories in the underlying file system"
<mcmullins> where'd you read that from?
<injekt> guess!
<mcmullins> somewhere in the documentation >_<
<injekt> :P
<injekt> `ri Dir`
<mcmullins> so do they have the same type of consiquences when a stream is left unclosed?
<mcmullins> types*
<andrewvos> mcmullins: I guess not
<andrewvos> mcmullins: Is it affecting your code somehow?
<mcmullins> well no, I'm just trying to figure out what the purpose of the open and close methods are
scampbell has quit [Quit: Leaving]
<mcmullins> if Dir wasn't a stream they would make sense
<mcmullins> but I also don't want to leave closing to garbage collection if it is a stream
slyphon has joined #ruby-lang
<andrewvos> mcmullins: "ri Dir.open"
<mcmullins> also to clarify I'm working on a file-handling library
<mcmullins> which is why I'm trying to figure out the details
scampbell has joined #ruby-lang
Uranio has joined #ruby-lang
<injekt> mcmullins: no you can't think about it like that
Phrogz has left #ruby-lang [#ruby-lang]
slyphon_wtf_ has quit [Ping timeout: 245 seconds]
<injekt> Dir.open doesn't open a 'stream' or sorts, it does a Dir.new on the directory and yields it to the block
ottbot has joined #ruby-lang
<judofyr> TIL I learned about Dir.open
<judofyr> I've actually only used Dir.glob
<injekt> yeah
<injekt> as people should
datanoise has joined #ruby-lang
<sent-hil> is `each` iterator built on `for`? i'm asking b/c i noticed the scope varies for each and for
<injekt> sent-hil: i like the part where the code is readable
<sent-hil> injekt: ?
<mcmullins> random question
<mcmullins> it seems I didn't install ruby with ri docs
<injekt> sent-hil: yes those are the only differences
<mcmullins> is there anyway to dowload them post install?
<injekt> mcmullins: gem install ri-data rdoc-data
<zzak> mcmullins: howd you install ruby?
<mcmullins> rvm
<mcmullins> I do some rails from time to time
<judofyr> sent-hil: `for` invokes #each
<zzak> also, good morning!
<mcmullins> alright thank you for your help
<zzak> i need to get my hot chocolate coffee going
<mcmullins> I wish I knew a little bit more about C++
<mcmullins> but I'll see if I can figure out what #close is trying to do
<injekt> mcmullins: I showed you the code (and it's C :)
Verdi_ has joined #ruby-lang
<mcmullins> ahh see
<mcmullins> I wish I knew how to interpret the difference between C++ and C then >_<
<injekt> mcmullins: it calls closedir() whcih is a C function that frees the buffer that readding the dir uses
<mcmullins> ahh sweet
<mcmullins> thank you, that's good to know
judofyr has quit [Remote host closed the connection]
<injekt> so Dir#close fetches the dir, frees the memory and removes references to the underlying dir object
<injekt> so you dont need to do anything gc related yourself
dzhulk has quit [Quit: Leaving.]
sepp2k has quit [Quit: Leaving.]
Uranio has quit [Quit: WeeChat 0.3.8]
<mcmullins> ok
<mcmullins> I know this is probably out of the channels scope
<mcmullins> but where can I find the C documentation?
<injekt> mcmullins: man closedir
davidbalber|away is now known as davidbalbert
<injekt> " The closedir() function closes the named directory stream and frees the
<injekt> structure associated with the dirp pointer, returning 0 on success. On
<injekt> failure, -1 is returned and the global variable errno is set to indicate the
<injekt> error."
<injekt> sorry
<injekt> bah
<yorickpeterse> paste fail
<injekt> aye
<mcmullins> thank y'all so much!
taf2 has joined #ruby-lang
<taf2> here's a question… i have a string of digits e.g. "1234567890" and I'd like to expand that string of digits into an array of increasing sequence of digits e.g. ['1', '12','123','1234','12345','123456','1234567','12345678','123456789',…]
<taf2> anyone can think of a clever way to express that in ruby
<andrewvos> taf2: loop?
<taf2> input is string, output is array
carloslopes has joined #ruby-lang
<taf2> andrewvos: yes loop but can you what's the least complex way?
<taf2> e.g. is this an O(n) problem or O(n^2) or O(n^m) ?
<injekt> str.size.times.map { |i| str[0..i] }
<taf2> nice
<injekt> #=> ["1", "12", "123", "1234", "12345", "123456", "1234567", "12345678", "123456789", "1234567890"]
<injekt> if that's what you wanted
<taf2> injekt: yeah
<injekt> o/
<injekt> blah n+1 queries are biting me so hard today
<taf2> str = '9282312'; str.size.times.map {|i| str[0..i] }
<taf2> => ["9", "92", "928", "9282", "92823", "928231", "9282312"]
<taf2> cool
gjaldon has quit [Quit: Leaving]
<apeiros_> taf2: and the solution would be O(n). I'm hard pressed to figure how you'd do a more complex solution for this kind of problem :)
<apeiros_> *I'd
<taf2> deprive your brain of sleep for multiple days on end and then start thinking about how to solve the easiest of problems and get creative :D
BigO has quit [Remote host closed the connection]
krohrbaugh has joined #ruby-lang
Uranio has joined #ruby-lang
BigO has joined #ruby-lang
davidbalbert is now known as davidbalber|away
sush24 has quit [Read error: Connection reset by peer]
stardiviner has joined #ruby-lang
<havenn> apeiros_: Here my attempt at an insane :P solution: str.each_char.each_with_index.map { |_, index| @ary ||= []; @ary << str[0..index] }.first.first(str.size)
wyhaines has quit [Read error: Connection reset by peer]
wyhaines_ has joined #ruby-lang
sush24 has joined #ruby-lang
mpfundstein has quit [Ping timeout: 250 seconds]
Fretta has joined #ruby-lang
briantrust has quit [Remote host closed the connection]
joevandyk has joined #ruby-lang
alvaro_o has joined #ruby-lang
<apeiros_> havenn: lol
kain has quit [Ping timeout: 244 seconds]
davidbalber|away is now known as davidbalbert
Verdi_ has quit [Quit: Textual IRC Client: www.textualapp.com]
db1382 has joined #ruby-lang
klebervirgilio has joined #ruby-lang
sent-hil has quit [Remote host closed the connection]
sent-hil has joined #ruby-lang
blazes816 has joined #ruby-lang
klebervirgilio has quit [Read error: Connection reset by peer]
klebervirgilio has joined #ruby-lang
jtoy has quit [Read error: Connection reset by peer]
jtoy has joined #ruby-lang
eric_ has joined #ruby-lang
intellitech has quit [Quit: intellitech]
BigO has quit [Remote host closed the connection]
banisterfiend has joined #ruby-lang
klebervi_ has joined #ruby-lang
BigO has joined #ruby-lang
klebervirgilio has quit [Ping timeout: 246 seconds]
sepp2k has joined #ruby-lang
ddfreyne has quit [Excess Flood]
tenderlove has quit [Remote host closed the connection]
BigO has quit [Remote host closed the connection]
tenderlove has joined #ruby-lang
Fretta_ has joined #ruby-lang
ddfreyne has joined #ruby-lang
Fretta has quit [Ping timeout: 244 seconds]
Fretta_ is now known as Fretta
mcmullins_ has joined #ruby-lang
brianpWins has joined #ruby-lang
<mcmullins> Do y'all know of any ruby file-handling libraries/gems out there?
<injekt> File :P
mcmullins_ has quit [Client Quit]
<injekt> mcmullins: what exactly are you looking for?
<mcmullins> >_<
<mcmullins> ya, I know ruby makes it pretty easy compared to most languages
<injekt> if you want a little more, check out FileUtils it's in stdlib
<mcmullins> I was just wondering if there were any libraries where someone tried to add extra functionality or make it easier in any way
<mcmullins> and ya, I've been looking at FileUtils
<injekt> mcmullins: just fileutils, unless you want something specific then there might be something, but there's not much to go by right now :)
dzhulk has joined #ruby-lang
BigO has joined #ruby-lang
gregmoreno has joined #ruby-lang
dr_bob has quit [Quit: Leaving.]
<mcmullins> I guess I'm just looking for inspiration on useful extensions to normal file and dir handling
<mcmullins> sorry, I don't really have specifics :S
sent-hil has quit [Remote host closed the connection]
<injekt> mcmullins: that could be a long road ;P
vlad_starkov has quit [Remote host closed the connection]
gnufied has quit [Quit: Leaving.]
mpfundstein has joined #ruby-lang
Nisstyre has quit [Quit: Leaving]
mwjcomputing has quit [Quit: Leaving]
AntonioJose has joined #ruby-lang
AntonioJose has quit [Quit: Leaving.]
Mon_Ouie has joined #ruby-lang
GarethAdams has quit [Quit: Leaving...]
tonni_ has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
carloslopes has quit [Remote host closed the connection]
tonni has quit [Ping timeout: 240 seconds]
gaveen has joined #ruby-lang
gaveen has quit [Changing host]
gaveen has joined #ruby-lang
mindbender1 has quit [Ping timeout: 264 seconds]
mcmullins has quit [Quit: Leaving]
__butch__ has joined #ruby-lang
carloslopes has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Nisstyre has joined #ruby-lang
kitallis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
sent-hil has joined #ruby-lang
datanoise has quit [Ping timeout: 252 seconds]
ebouchut has joined #ruby-lang
headius has quit [Quit: headius]
ryanf has quit [Quit: leaving]
headius has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
Sambalero has joined #ruby-lang
Sambalero has quit [Remote host closed the connection]
cirwin has joined #ruby-lang
tenderlove has quit [Remote host closed the connection]
pangel has joined #ruby-lang
mrsolo has joined #ruby-lang
cirwin has quit [Ping timeout: 260 seconds]
wallmani has left #ruby-lang ["WeeChat 0.4.0-dev"]
workmad3 has quit [Ping timeout: 250 seconds]
eric_ is now known as rhizmoe
_malte has joined #ruby-lang
sent-hil has quit [Remote host closed the connection]
s1n4 has joined #ruby-lang
datanoise has joined #ruby-lang
briantrust has joined #ruby-lang
sent-hil has joined #ruby-lang
_malte has quit [Remote host closed the connection]
_malte has joined #ruby-lang
ebouchut has quit [Quit: This computer has gone to sleep]
kith_ has joined #ruby-lang
datanoise has quit [Ping timeout: 256 seconds]
mpfundstein has quit [Ping timeout: 250 seconds]
Austin__ has joined #ruby-lang
_malte has quit [Read error: Operation timed out]
sent-hil has quit [Remote host closed the connection]
sush24 has quit [Quit: This computer has gone to sleep]
kith has quit [Ping timeout: 260 seconds]
sent-hil has joined #ruby-lang
BigO has quit [Remote host closed the connection]
BigO has joined #ruby-lang
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
havenn has quit [Read error: No route to host]
sush24 has joined #ruby-lang
BigO has quit [Ping timeout: 244 seconds]
havenn has joined #ruby-lang
benanne has joined #ruby-lang
andrew has joined #ruby-lang
andrew is now known as Guest34772
jtoy has quit [Quit: jtoy]
Guest34772 is now known as andrewhl
coliflor has joined #ruby-lang
wallerdev has joined #ruby-lang
kobaltz has joined #ruby-lang
kobaltz has left #ruby-lang [#ruby-lang]
kobaltz has joined #ruby-lang
kobaltz has quit [Client Quit]
<zzak> zenspider: ping! can we make the minitest readme .rdoc? it seems like it's already using rdoc internally, so either extension or modeline patch welcome?
mindbender1 has joined #ruby-lang
<drbrain> zzak: in the ruby source the minitest readme is displayed via :include:
muji has joined #ruby-lang
<drbrain> so we shouldn't list it as a page
<drbrain> lunch time
muji has quit [Client Quit]
vlad_starkov has quit [Ping timeout: 250 seconds]
crankharder has quit [Ping timeout: 265 seconds]
vlad_starkov has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
<zzak> poop
drbrain has quit [Remote host closed the connection]
drbrain has joined #ruby-lang
benwoody has left #ruby-lang [#ruby-lang]
drbrain has quit [Read error: Connection reset by peer]
carloslopes has quit [Remote host closed the connection]
drbrain has joined #ruby-lang
carloslopes has joined #ruby-lang
benwoody has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
crankharder has joined #ruby-lang
elico has joined #ruby-lang
wallerdev has joined #ruby-lang
drbrain has quit [Ping timeout: 264 seconds]
Denommus has joined #ruby-lang
robotmay has quit [Ping timeout: 240 seconds]
cirwin has joined #ruby-lang
ebouchut has joined #ruby-lang
<tockitj_> if there is a base class Base with two methods method_one and method_two, and another class Derived implements method_one which calls super, then how should method_two (which is aliased method_one in Derived) behave ?
<tockitj_> should super call execute Base#method_one or Base#method_two ?
jaimef_ has quit [Excess Flood]
jaimef has joined #ruby-lang
robotmay has joined #ruby-lang
<tockitj_> Derived class inherits Base class
ebouchut has quit [Client Quit]
sush24 has quit [Quit: This computer has gone to sleep]
johndozzz has quit []
<apeiros_> tockitj_: super always calls the method of the same name
jtoy has joined #ruby-lang
<tockitj_> nice
<apeiros_> and calling a method on the object always goes through the whole stack
srbaker has joined #ruby-lang
banisterfiend has quit [Ping timeout: 246 seconds]
dzhulk has quit [Quit: Leaving.]
ebouchut has joined #ruby-lang
ryanf has joined #ruby-lang
Denommus has quit [Remote host closed the connection]
_malte has joined #ruby-lang
<tockitj_> apeiros_, is there a way for method to figure out under which name it was called ?
joevandyk has quit [Quit: joevandyk]
Denommus has joined #ruby-lang
dzhulk has joined #ruby-lang
datanoise has joined #ruby-lang
herpless_ is now known as herpless
_malte has quit [Ping timeout: 252 seconds]
mistym has joined #ruby-lang
<tockitj_> if Derived were to include Base (instead of inherit), should it still work ?
<injekt> tockitj_: try it?
ryanf has quit [Quit: broken pipes |||]
<tockitj_> NoMethodError: super: no superclass method `assignment_handler'
mpan has quit [Quit: Leaving]
joevandyk has joined #ruby-lang
<injekt> there's your answer, your superclass doesn't contain that method
defishguy has joined #ruby-lang
bluepojo has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
<tockitj_> question is should it behave like this
<injekt> tockitj_: why dont you show us some code I have no idea what you're doing
AndChat| has quit [Remote host closed the connection]
<tockitj_> injekt, http://pastebin.com/phGkUYFM
<tockitj_> its not very dried out example :?
<injekt> tockitj_: right, so there is no 'assignment_handler' method in the superclass chain of T
<tockitj_> but there should not be any
<injekt> what?
<tockitj_> i haven't called assignment_handler method
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
leopard_me has quit [Quit: Computer has gone to sleep.]
<injekt> tockitj_: you alias the method in props, and then call it...
Denommus has left #ruby-lang ["ERC Version 5.3 (IRC client for Emacs)"]
<injekt> prop = is executing 'assignment_handler'
<tockitj_> correct
<injekt> ...
<injekt> then what are you confused about?
rindolf has joined #ruby-lang
<rindolf> Hi all.
niteshnarayanlal has quit [Remote host closed the connection]
<tockitj_> should not super invoke modules prop= method ?
<injekt> no
<injekt> apeiros_ already told you this
<injekt> 'super' will call the method of the same name
<injekt> the method is called 'assignment_handler'
<tockitj_> name of method called is 'prop='
<injekt> dude
<tockitj_> check line #33
<injekt> you're calling 'super' in 'assignment_handler'
<injekt> tockitj_: line #33 is calling prop= which is aliased to 'assignment_handler' so the method is assignment_handler
<tockitj_> 'super' will call the method of same name (not method in which it was defined) ?
<tockitj_> ok
ryanf has joined #ruby-lang
<tockitj_> what does alias_method do exactly ?
<tockitj_> redirect call or create new method with same definition ?
<injekt> tockitj_: `ri alias_method`
havenn has quit [Ping timeout: 276 seconds]
<tockitj_> Makes new_name a new copy of the method old_name. This can be used to retain access to methods that are overridden.
<tockitj_> implementation is in rb_alias(...)
<injekt> that's essentially what you're doing, and you're expecting it to call 'bar'
<tockitj_> i'm not expecting anything.. i'm would just want to clarify how it behave
<injekt> That's how it behaves :)
<tockitj_> what is exactly semantic of alias ?
<tockitj_> is it just a new method name that calls old method ?
<tockitj_> or does it have real definition under that name
banisterfiend has joined #ruby-lang
<tockitj_> why is current behavior more desirable than one in last example
carloslopes has quit [Remote host closed the connection]
<injekt> because it makes more sense, andprobably other reasons you would have to ask matz for
<tockitj_> injekt, thank you
<tockitj_> i'm still curious if someone else has different opinion on this
sent-hil has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
rcvalle has joined #ruby-lang
<defishguy> I'm having a challenge with gitlab authenticating to FreeIPA (389ds). The ldap server is reporting "failed to decode LDAP controls" and will not authenticate a user. Help?
davidbalbert is now known as davidbalber|away
mjbamford has joined #ruby-lang
davidbalber|away is now known as davidbalbert
coliflor has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Remote host closed the connection]
ebouchut has quit [Quit: This computer has gone to sleep]
havenn has joined #ruby-lang
Darkspiel has joined #ruby-lang
srbaker has joined #ruby-lang
gaveen has quit [Remote host closed the connection]
Darkspiel_ has joined #ruby-lang
sent-hil has joined #ruby-lang
Darkspiel_ has quit [Client Quit]
jasonthesensei has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
Darkspiel_ has joined #ruby-lang
davidbalbert is now known as davidbalber|away
davidbalber|away is now known as davidbalbert
Darkspiel has quit [Ping timeout: 252 seconds]
jasonthesensei has left #ruby-lang [#ruby-lang]
havenn has quit [Read error: No route to host]
Banistergalaxy has joined #ruby-lang
havenn has joined #ruby-lang
havenn has quit [Ping timeout: 260 seconds]
davidbalbert is now known as davidbalber|away
robotmay has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
sepp2k1 has joined #ruby-lang
cantonic has quit [Quit: cantonic]
sepp2k has quit [Ping timeout: 248 seconds]
briantrust has quit [Read error: Connection reset by peer]
rhizmoe has quit [Ping timeout: 256 seconds]
rhizmoe has joined #ruby-lang
briantrust has joined #ruby-lang
mjbamford has quit [Ping timeout: 248 seconds]
havenn has joined #ruby-lang
rcvalle has quit [Quit: Leaving]
yalue has quit [Read error: Connection reset by peer]
slyphon has quit [Read error: Connection reset by peer]
srbaker has quit [Quit: Computer has gone to sleep.]
joevandyk has quit [Quit: joevandyk]
joevandyk has joined #ruby-lang
ryanlecompte has joined #ruby-lang
srbaker has joined #ruby-lang
chimkan has joined #ruby-lang
rcvalle has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
headius has quit [Quit: headius]
s1n4 has quit [Quit: leaving]
vlad_starkov has quit [Remote host closed the connection]
Kruppe has joined #ruby-lang
BigO_ has joined #ruby-lang
rcvalle has quit [Quit: Leaving]
workmad3 has joined #ruby-lang
AndChat| has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 260 seconds]
rindolf has quit [Quit: Yay! I'm a llama again. http://www.shlomifish.org/]
WillMarshall has joined #ruby-lang
taf2 has quit [Quit: taf2]
Xzyx987X has joined #ruby-lang
Xzyx987X_ has quit [Ping timeout: 248 seconds]
chimkan has quit [Quit: chimkan]
workmad3 has quit [Ping timeout: 250 seconds]
blacktul_ has quit [Remote host closed the connection]
jtoy_ has joined #ruby-lang
rcvalle has joined #ruby-lang
blacktulip has joined #ruby-lang
drbrain has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
jtoy has quit [Ping timeout: 276 seconds]
jtoy_ is now known as jtoy
banisterfiend has joined #ruby-lang
elico has quit [Quit: Elico]
datanoise has quit [Ping timeout: 244 seconds]
sailias has quit [Quit: Leaving.]
mjio has joined #ruby-lang
vlad_starkov has joined #ruby-lang
srbaker has joined #ruby-lang
srbaker has quit [Client Quit]
mercwithamouth has joined #ruby-lang
sent-hil has quit [Remote host closed the connection]
sent-hil has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 250 seconds]
rcvalle has quit [Quit: Leaving]
<CoverSlide> Free Indian Pale Ale?
<CoverSlide> Sounds good to me!
<oddmunds> does anyone know how i could get distance_of_time_in_words without resorting to including Rails in my irc bot?
Swimming_Bird has quit [Quit: Computer has gone to sleep.]
<sent-hil> oddmunds: include active_support
wardrop has joined #ruby-lang
agarie has joined #ruby-lang
<oddmunds> i'd rather have just the time thing
banister_ has joined #ruby-lang
banisterfiend has quit [Read error: Connection reset by peer]
Technodrome has joined #ruby-lang
Technodrome has quit [Changing host]
Technodrome has joined #ruby-lang
<oddmunds> thanks, i changed my mind. going with activesupport :)
<drbrain> you can include only the parts of activesupport you need
ttilley has joined #ruby-lang
datanoise has joined #ruby-lang
akamike has quit [Ping timeout: 264 seconds]
flori has quit [Ping timeout: 264 seconds]
masterkorp has quit [Ping timeout: 264 seconds]
Muz has quit [Ping timeout: 264 seconds]
flori has joined #ruby-lang
Muz has joined #ruby-lang
masterkorp has joined #ruby-lang
benanne has quit [Quit: kbai]
<sent-hil> oddmunds: if it's just one method, just copy and paste it
<sent-hil> it's not recommended, but i do it sometimes
davidbalber|away is now known as davidbalbert
<oddmunds> sigh
<oddmunds> i just want #ago, but for the future
<oddmunds> instead of "five minutes ago" i want "in five minutes"
akamike has joined #ruby-lang
<sent-hil> oddmunds: couldn't just add 5.minutes
<cirwin> 5.minutes.from_now
<oddmunds> i want my bot to tell me how far some Time object is from now
blacktulip has quit [Ping timeout: 248 seconds]
<cirwin> oh, like pretty time
<oddmunds> maybe
<cirwin> surely it has that
datanoise has quit [Ping timeout: 244 seconds]
datanoise has joined #ruby-lang
<yorickpeterse> there's a gem for that
blacktulip has joined #ruby-lang
<yorickpeterse> though I can't remember the name
<oddmunds> an intensely undocumented one
<yorickpeterse> https://github.com/progressions/natural_time this might help
<oddmunds> ah, thanks man
<oddmunds> this looks better
<oddmunds> fourth time is the charm, hopefully
<oddmunds> :|
<oddmunds> natural_time requires natural_time (>= 0)
ejholmes has quit [Quit: ejholmes]
ejholmes has joined #ruby-lang
<yorickpeterse> lol wat
<yorickpeterse> s.add_runtime_dependency(%q<natural_time>, [">= 0"])
<yorickpeterse> haha wtf
mjio has quit []
<oddmunds> this is not my day
mjio has joined #ruby-lang
<oddmunds> i'm going to make a Spec_22 module that adds gems as their own dependency
jtoy has quit [Quit: jtoy]
BigO_ has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 260 seconds]
scampbell has quit [Quit: Leaving]
BigO_ has joined #ruby-lang
BigO_ has quit [Remote host closed the connection]
davidbalbert is now known as davidbalber|away
sailias has joined #ruby-lang
burgestrand has joined #ruby-lang
sent-hil has quit [Remote host closed the connection]
lcdhoffman has joined #ruby-lang
sent-hil has joined #ruby-lang
sent-hil has quit [Remote host closed the connection]
sent-hil has joined #ruby-lang
datanoise has quit [Ping timeout: 248 seconds]
havenn has quit [Remote host closed the connection]
blacktulip has quit [Remote host closed the connection]
cantonic has joined #ruby-lang
sepp2k1 has quit [Remote host closed the connection]
esad has joined #ruby-lang
banister_ has quit [Ping timeout: 244 seconds]
ejholmes has quit [Quit: ejholmes]
andrewhl has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
__butch__ has quit [Quit: Leaving.]
srbaker has joined #ruby-lang
mercwithamouth has quit [Ping timeout: 276 seconds]
Austin__ has quit [Ping timeout: 265 seconds]
havenn has joined #ruby-lang
sent-hil has quit [Remote host closed the connection]
sent-hil has joined #ruby-lang
WillMarshall has quit [Quit: Computer has gone to sleep.]
gsav_ has quit [Ping timeout: 244 seconds]
agarie has quit [Remote host closed the connection]
havenn has quit [Read error: Connection reset by peer]
havenn has joined #ruby-lang
joevandyk has quit [Quit: joevandyk]
drbrain_ has joined #ruby-lang
drbrain has quit [Killed (calvino.freenode.net (Nickname regained by services))]
drbrain_ is now known as drbrain
ejholmes has joined #ruby-lang
headius has joined #ruby-lang
mercwithamouth has joined #ruby-lang
Darkspiel_ has quit [Ping timeout: 252 seconds]
datanoise has joined #ruby-lang
robotmay has joined #ruby-lang
banisterfiend has joined #ruby-lang
mpfundstein has joined #ruby-lang
Nisstyre has quit [Ping timeout: 244 seconds]
toretore has quit [Quit: Leaving]
hakunin has quit [Read error: Connection reset by peer]
hakunin has joined #ruby-lang
CaptainJet has joined #ruby-lang
davidbalber|away is now known as davidbalbert
lcdhoffman has quit [Quit: lcdhoffman]
Darkspiel_ has joined #ruby-lang
davidbalbert is now known as davidbalber|away
methods has joined #ruby-lang
<methods> can i iterate a list of defined classes in the file ?
dankest has joined #ruby-lang
datanoise has quit [Ping timeout: 244 seconds]
jackhammer2022 has joined #ruby-lang
Kruppe has quit [Ping timeout: 244 seconds]
Technodrome has quit [Quit: Leaving.]
<darix> methods: why would you need that?
sent-hil has quit [Remote host closed the connection]
<methods> idk just curious
<methods> not really just a file but for instance a unit tester can enumerate all classes that sub classes a specific class
<banisterfiend> methods: using pry apis you can, but that's probably not what you want
<drbrain> you can do it by overriding require, but you probably don't want that either
<drbrain> I think active support does it
<banisterfiend> methods: all top-level classes can be done this way: Object.constants.select { |v| v.is_a?(Class) }.map { |v| Pry::WrappedModule(v) }.select { |o| o.source_file == "your_fave_file" }
Feocco has joined #ruby-lang
<methods> thanks !!
brianpWins has quit [Quit: brianpWins]
<zenspider> at the very least you guys could file a bug on natural_time
<zenspider> done