ChanServ changed the topic of #ruby-lang to: Ruby 1.9.3-p125: http://ruby-lang.org | Paste >3 lines of text on http://pastie.org or use a gist
mrb_bk has joined #ruby-lang
akahn has joined #ruby-lang
agib has joined #ruby-lang
davesq has joined #ruby-lang
abuiles has joined #ruby-lang
_santana has joined #ruby-lang
tomzx has joined #ruby-lang
WillMarshall has joined #ruby-lang
shevy has joined #ruby-lang
John_____ has joined #ruby-lang
tla_ has joined #ruby-lang
brushbox has joined #ruby-lang
Joeysomo has joined #ruby-lang
wallerdev has joined #ruby-lang
takaokouji has joined #ruby-lang
savage- has joined #ruby-lang
sj26 has joined #ruby-lang
<jacktrick> Night all!
QoQOoO has joined #ruby-lang
QoQOoO has quit [#ruby-lang]
fgomez has joined #ruby-lang
S1kx has joined #ruby-lang
arooni-mobile has joined #ruby-lang
wubino has joined #ruby-lang
havenn has joined #ruby-lang
srbaker has joined #ruby-lang
tr-808 has joined #ruby-lang
tomzx has joined #ruby-lang
savage- has joined #ruby-lang
arooni-mobile has joined #ruby-lang
shtirlic_ has joined #ruby-lang
MopMopperton14 has joined #ruby-lang
Tearan has joined #ruby-lang
andrewhl has joined #ruby-lang
wyhaines has joined #ruby-lang
<lordzero> the amount of netsplits on freenode are rediculous...
reeze_xia has joined #ruby-lang
jmfcool has joined #ruby-lang
necromancer has joined #ruby-lang
Jade has joined #ruby-lang
lordzero has quit [#ruby-lang]
fayimora_ has joined #ruby-lang
postmodern has joined #ruby-lang
John has joined #ruby-lang
krz has joined #ruby-lang
<_santana> yes, it are
imrohit has joined #ruby-lang
imperator has joined #ruby-lang
<imperator> greetings minions
<Boohbah> eating onions
tenderlove has joined #ruby-lang
pygmael has joined #ruby-lang
gnufied has joined #ruby-lang
wyhaines has joined #ruby-lang
dr0id has joined #ruby-lang
looopy has joined #ruby-lang
imperator has quit ["Leaving"]
jarred_ has joined #ruby-lang
gabeanzelini has joined #ruby-lang
igotnolegs has joined #ruby-lang
rippa has joined #ruby-lang
[[thufir]] has joined #ruby-lang
Zolrath has joined #ruby-lang
imrohit has joined #ruby-lang
nofxx has joined #ruby-lang
brownies has joined #ruby-lang
gix has joined #ruby-lang
znz_jp has joined #ruby-lang
indeterminate has joined #ruby-lang
chendo_ has joined #ruby-lang
chendo_ has joined #ruby-lang
reeze_xia has joined #ruby-lang
bryanl has joined #ruby-lang
havenn has joined #ruby-lang
yxhuvud has joined #ruby-lang
banisterpig has joined #ruby-lang
<banisterpig> anyone here?
<fowl> yes pig
<havenn> aye
<Boohbah> hello
<dr0id> hi
Tukeke has joined #ruby-lang
andrewhl has joined #ruby-lang
dc5ala has joined #ruby-lang
Indian has joined #ruby-lang
x0F_ has joined #ruby-lang
rue has joined #ruby-lang
gregmoreno has joined #ruby-lang
jbsan has joined #ruby-lang
neoesque has joined #ruby-lang
QoQOoO has joined #ruby-lang
QoQOoO has quit [#ruby-lang]
solars has joined #ruby-lang
senthil has joined #ruby-lang
imrohit has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
Joeysomo has joined #ruby-lang
JohnBat26 has joined #ruby-lang
imrohit has joined #ruby-lang
knu has joined #ruby-lang
jbsan has joined #ruby-lang
Defusal has joined #ruby-lang
jenrzzz_ has joined #ruby-lang
bglusman has joined #ruby-lang
elj has joined #ruby-lang
elj has quit [#ruby-lang]
QoQOoO has joined #ruby-lang
QoQOoO has quit [#ruby-lang]
imrohit has joined #ruby-lang
chimkan has joined #ruby-lang
SubSpawn has joined #ruby-lang
morozovm has joined #ruby-lang
Torrieri has joined #ruby-lang
dhruvasagar has joined #ruby-lang
hzlocky has joined #ruby-lang
<hzlocky> Hi, guys.
francisfish has joined #ruby-lang
thrcka has joined #ruby-lang
heftig has joined #ruby-lang
francisfish has joined #ruby-lang
woollyams has joined #ruby-lang
brushbox has joined #ruby-lang
gnufied has joined #ruby-lang
<hzlocky> Guys I got problem with http://pastebin.com/XDUWrXD9 . I understand that class variable is beeing setted into module, but how I can set class variables of extended classes instead?
imrohit1 has joined #ruby-lang
rue has joined #ruby-lang
morozovm has joined #ruby-lang
tekin has joined #ruby-lang
QoQOoO has joined #ruby-lang
QoQOoO has quit [#ruby-lang]
workmad3 has joined #ruby-lang
imrohit has joined #ruby-lang
jsaak has joined #ruby-lang
judofyr has joined #ruby-lang
imrohit has joined #ruby-lang
futurechimp has joined #ruby-lang
<manveru> sorry, but why do you use class variables?
<hzlocky> problem solved
<hzlocky> thanks
<hzlocky> )
<manveru> :)
imrohit1 has joined #ruby-lang
imrohit has joined #ruby-lang
L0rdShrek has joined #ruby-lang
Dreamer3 has joined #ruby-lang
olesu has joined #ruby-lang
imrohit has joined #ruby-lang
robwilliamsukio has joined #ruby-lang
<hzlocky> us
LanceHaig has quit ["Ex-Chat"]
Hakon|mbp has joined #ruby-lang
d3vic3 has joined #ruby-lang
sdeobald has joined #ruby-lang
Banistergalaxy has joined #ruby-lang
jordan` has joined #ruby-lang
francisfish has joined #ruby-lang
<andrewvos> morning
<andrewvos> Have I missed any ruby drama over the weekend?
<shevy> only imperator force choking himself in order to become oxygen deprived for the extra kick
<tobiasvl> ...
<injekt> erikh: oh nice
gjaldon has joined #ruby-lang
<banisterpig> injekt: are there still a bunch of gems using slop v2 ?
<banisterpig> injekt: https://rubygems.org/gems/slop/stats hell yeah
<banisterpig> injekt: so we're likely to break more shit if we upgrade to 3.0 than we stayed on 2
<andrewvos> banisterpig: What's with the pig?
<banisterpig> andrewvos: just something different to 'fiend'
<banisterpig> injekt: so we dont know whether we should upgrade or not, what do u think?
<injekt> banisterpig: yeah, 2.x will still be maintained separately for a long time, soon
<injekt> so you're upgrading for features only
<injekt> I would of course recommend upgrading because it's upgrading
<injekt> but yes a lot will break
<banisterpig> injekt: the curernt issue is that we restrict slop version to < 3, so it means if there's a gem in someone's project that requires slop >= 3 then it'll conflict
yawn has joined #ruby-lang
gianlucadv has joined #ruby-lang
<yawn> i'm trying to make a multipart request (with faraday) using different content types / part - anyone does this already?
<banisterpig> injekt: how many projects that use slop 2 would just work on slop 3 do u think? or would most of them break?
<injekt> banisterpig: most of them would probably break, but quietly. Some of the config variables have changed, the api has been cleaned up massively
<injekt> banisterpig: most of those slop v2 downloads are probably pry, though
<banisterpig> injekt: so, since most gems are still on slop 2, we should probably stick to slop 2 as well?
<banisterpig> injekt: yeah i wasn't sure about that
<injekt> banisterpig: I dont think most are, I think only about 20ish gems depend on slop, and pry is the largest, so I would say those stats are mostly based on pry
<injekt> anyone who grabs the gem from now will use v3
<injekt> and v2 wont recieve much love in the form of features
<injekt> I would recommend upgrading to v3 because it's more likely for people to use v3 from now on, but it's not going to be a 2 minute job
<banisterpig> injekt: so you think it's safe for us to upgrade ? it woudl be good to know if those dl are really just for pry, because if it turns out that we only account for half of them then there's going to be a lot of breakages and angry people. Do you have a list of the gems that use slop?
<banisterpig> i wonder if gemnasium can tell me that
<injekt> I think the ruby toolbox can
<injekt> pry, earthquake, update, update, noah, pry-remote, stasis, real-growl, jenkins-plugin-runtime, encbs, moneyrail, snp-search, pingfm, distillery, adyen-skinbuilder
<injekt> to list a view
imrohit1 has joined #ruby-lang
<injekt> there are 43 gems that depend on slop
<banisterpig> thx
imrohit has joined #ruby-lang
tekin has joined #ruby-lang
imrohit has joined #ruby-lang
imrohit has joined #ruby-lang
imrohit1 has joined #ruby-lang
sora_h has joined #ruby-lang
zmack has joined #ruby-lang
imrohit has joined #ruby-lang
imrohit1 has joined #ruby-lang
<shevy> slop 3 works on ruby < 1.9 ?
Guest87241 has joined #ruby-lang
havenn has joined #ruby-lang
Hakon|mbp has joined #ruby-lang
tbuehlmann has joined #ruby-lang
<injekt> shevy: yes
<shevy> okies
<injekt> 187,192,193,head,jruby18,jruby19,rbx18 http://travis-ci.org/#!/injekt/slop
charper has joined #ruby-lang
Defusal has joined #ruby-lang
shtirlic has joined #ruby-lang
zmack has joined #ruby-lang
Spooner has joined #ruby-lang
Nss has joined #ruby-lang
imrohit has joined #ruby-lang
<judofyr> injekt: Y U NO SUPPORT 1.8.6? IT'S THE FUTURE, UKR?
<injekt> I support 1.8.6 in another life
<injekt> the life where I am a worse person
<shevy> haha
imrohit has joined #ruby-lang
srbartlett has joined #ruby-lang
Defusal has joined #ruby-lang
Wardrop has joined #ruby-lang
Guedes has joined #ruby-lang
jkprg has joined #ruby-lang
rolfb has joined #ruby-lang
Wardrop has quit [#ruby-lang]
My_Hearing has joined #ruby-lang
naz has joined #ruby-lang
imrohit has joined #ruby-lang
PsiliPharm has joined #ruby-lang
tekin has joined #ruby-lang
jmfcool has joined #ruby-lang
tekin has joined #ruby-lang
dave_miles has joined #ruby-lang
<whitequark> banisterpig: pry is incompatible with padrino
<banisterpig> whitequark: in what way
<whitequark> undefined method `split' for /wtf([?!]*)/:Regexp (NoMethodError)
<whitequark> this is indeed a wtf :D
<banisterpig> hehehe
<banisterpig> cute it should choose that command to bug out on :)
<whitequark> so, what the f pry is trying to do?..
<whitequark> I'll save you a few clicks
<whitequark> that code in reloader.rb iterates ObjectSpace
<whitequark> pretty evil I'd say
rue has joined #ruby-lang
<banisterpig> whitequark: are there simple repro steps?
<banisterpig> just starting padrino can repro it?
<whitequark> I guess yes
<whitequark> ah, nevermind, it's fixed in padrino master
<whitequark> hail bundle exec
<banisterpig> whitequark: cool, so likely a bug in padrino itself then i guess?
<banisterpig> clearly :)
<whitequark> yeah, I've caught it on other occasions too
<whitequark> that's why I have master in gemfile
<whitequark> ah
<whitequark> there's another quirk, and it is clearly a bug in pry
<whitequark> $ pry
<whitequark> req = 1
<whitequark> (I discovered it while playing with x509 certificate requests.)
<whitequark> banisterpig: also there's a possible bug in colorizer (I'm not exactly sure if it is because I don't know implementation details)
<banisterpig> whitequark: yeah, that's a command conflict, there's a command called 'req'
<banisterpig> whitequark: we have a config option that can indicate where there's possible command/variable conflicts
<whitequark> banisterpig: well, this is just a bug
<whitequark> a very unexpected behavior
<whitequark> I type in a ruby console. I expect it to behave like ruby.
<whitequark> ruby would set a variable even if there'd be a function.
<banisterpig> whitequark: Yeah, we have a couple of things you can do currently to deal with this command/code conflict. You can set a Pry.config.command_prefix = '%' option which will force commands to be invoked with a prefix, reducing chance of conflict
<banisterpig> whitequark: so you' have to type: %ls instead of just ls
<banisterpig> whitequark: this would then allow u to go: ls = "hello" without problems
<whitequark> banisterpig: that should be the default.
<whitequark> valid ruby code should work like valid ruby code. period.
<whitequark> it is a ruby console.
<banisterpig> whitequark: well i asked around what people thought, and most people said that conflict was relatively rare and they liked the convenience of just typing ls and having it just work
<banisterpig> whitequark: well im not against it, i just go with what the majority tell me
<banisterpig> and i did a lot of research on this point before i decided which way to go
<banisterpig> whitequark: hopefully we can just get more robust heuristics in the future so pry can figure out what you mean
<whitequark> this is clearly a bug. not a feature. not a "conflict". ruby console should eat valid ruby code, or otherwise it isn't a ruby console.
<whitequark> the main function of pry is being a ruby console (at least I hope so)
<whitequark> and now it doesn't do it good.
<whitequark> what if I'd invoke it via binding.pry and there will be a variable named req?
<whitequark> I have those in several places
<banisterpig> whitequark: you can get to the variable by prepending a space in front of the 'req', 'req' only triggers the command if you have no leading space
<banisterpig> whitequark: but yes, we are workign on the conflict issue
<banisterpig> we'll have a better solution in an upcoming release
<whitequark> putting a space in front is indeed a very obvious solution for a problem which doesn't name itself or lead to any docs
<whitequark> I'll open an issue on github
<banisterpig> whitequark: there are docs on the wiki that discusses all this but perhaps it should have a more prominent place, your'e right
<whitequark> I think that you can override operator | to achieve interesting effects within ruby code
<whitequark> through I'm not really sure if you should do that
<whitequark> but you can just extend singleton_class of the Strings returned by commands
<rue> Maybe a pseudo-object like local.
mssola has joined #ruby-lang
<rue> The problem (or promise) with pipes isn't really whether they can use | or not
<whitequark> banisterpig: well ok, I understand the issue now
<banisterpig> whitequark: yeah we've been too distracted to work on pipes, but we really need them
<banisterpig> they'd be seriously kickass
<whitequark> banisterpig: I maybe know an idea for fixing commands
<whitequark> it's a bit hacky, but should work flawlessly given that pry is a debug environment
<banisterpig> sure
ahf has joined #ruby-lang
QoQOoO has joined #ruby-lang
QoQOoO has quit [#ruby-lang]
<whitequark> extend Kernel with a module implementing method_missing. Make a killswitch in that module which only gets enabled when it is a Pry shell. Check the caller to ensure that you indeed got called directly from pry prompt and not some inner method.
<whitequark> this way commands become just ruby methods
robwilliamsukio has joined #ruby-lang
<whitequark> and they won't show up in the global namespace
<banisterpig> it's clever
<banisterpig> whitequark: but the problem is that how do you invoke them if there's a method of the same name in the current scope?
<banisterpig> pry commands always get precedence, so there're always invokable
<whitequark> banisterpig: and that's wrong!
<whitequark> but
<whitequark> you still have the %-notation
<whitequark> ruby code cannot begin with %, so if it does, chop it off and eval as a command
<whitequark> now people know how commands work. they know what to look for. they type a google query like "pry invoke command with name of a local" and get a meaningful answer.
woollyams has joined #ruby-lang
<rippa> whitequark: ruby code can begin with %
<rippa> %%% is valid ruby
<whitequark> rippa: oh.
<whitequark> damn it :D
<rippa> not that it's used often
<rippa> because why would you have string literal on start of the line
<banisterpig> whitequark: tbh, i actually do intend pry to be used in production at some point (we're not quite at this stage yet) and also a debug environment i dont like pry to monkey patch things or modify things to keep the environment exactly as it was before pry found it, so im philosophically against your suggestion, even though i think it's clever. I also like the command syntax, ls -l instead of ls '-l'
<banisterpig> whitequark: futher, pry commands can be regexes, i guess you could use method_missing to implement some methods are regexes too though
<banisterpig> as*
<whitequark> banisterpig: well, this monkeypatch is almost undetectable, but I understand your concerns
<whitequark> hm
* whitequark sighs
<whitequark> well, there is also a not-so-good but working solution
<banisterpig> whitequark: well we can just make methods/vars take precedence over pry commands as they are
<whitequark> if respond_to?(possible_command) || binding.locals.include?(possible_command); eval possible_command
<banisterpig> and require %command to invoke the command in case of conflict
<whitequark> you got the idea
<banisterpig> Yeah
<banisterpig> whitequark: using: defined?() is probably easier
<whitequark> ah sure. I always forget about it
<banisterpig> that's what i use with the: Pry.config.collsion_warnings test
<whitequark> also, notice that!
<banisterpig> if you set Pry.config.collision_warnings = true you shoudl get warnings when there's collision, but we could also use the same test just to give priority to ruby code
<whitequark> there _are_ valid cases when you'll want to have a literal at the beginning of a string
<banisterpig> rather than just warning
<whitequark> %x{curl -XPOST "some_weird_data"}, for example
<rippa> true
<whitequark> so I think that you should check for them too
<rippa> %%#{<all of my code>}%
<rippa> because ican
<whitequark> but I guess that there is no pry commands with names like [[:alnum:]][[:special:]]
<whitequark> so if the "command" is being 1-symbol long, eval it too
<whitequark> % smth
urbanmonk has joined #ruby-lang
<whitequark> (a space before and after "smth")
<whitequark> evals to "smth"
<whitequark> weird
<banisterpig> whitequark: gotta go for a while sorry, but if you come up with any ideas file an issue, and feel free to see us on #pry though we're mostly all asleep now
<banisterpig> bbs :)
<whitequark> ah ok
<whitequark> later
<rippa> and pry eats the last space
<rippa> so you have to do
<rippa> % derp ;
<banisterpig> rippa: you can file an issue about that if u want, i dont see any reason we need to eat the last space, we're probably just overzealous with the rstrip
futurechimp has joined #ruby-lang
<banisterpig> whitequark: oh one other point, commadns can do things that methods cant
Sailias has joined #ruby-lang
Guedes has joined #ruby-lang
Guedes has joined #ruby-lang
<whitequark> like what ?
<banisterpig> whitequark: if we just made them methods they wouldn't be able to modify the input buffer and clever things like that, see the amend-line command, https://github.com/pry/pry/wiki/User-Input#wiki-Amend_line
<banisterpig> whitequark: basically during the multiline input (when the user is entering a method definition for example) the user can execute pry commands
<whitequark> oh yes I see
<banisterpig> those pry commands can reflect on the curernt state of teh input buffer and modify it
<whitequark> consider embedding vi :D
<banisterpig> that's very powerful
<banisterpig> whitequark: you already can :P https://github.com/pry/pry/wiki/User-Input#wiki-Edit_input_buffer
<whitequark> or, for extra confusion, embed `ed' and make it the default
<banisterpig> whitequark: just set Pry.config.editor = 'vi'
<banisterpig> and you can use vi as much as u like
<whitequark> heh
toretore has joined #ruby-lang
d3vic3 has joined #ruby-lang
anachronistic has joined #ruby-lang
anachronistic has quit [#ruby-lang]
Defusal has joined #ruby-lang
Defusal has joined #ruby-lang
olesu has joined #ruby-lang
heftig has joined #ruby-lang
rolfb has joined #ruby-lang
heftig_ has joined #ruby-lang
futurechimp has joined #ruby-lang
tekin has joined #ruby-lang
Sailias has joined #ruby-lang
uniqanomaly has joined #ruby-lang
gianlucadv has joined #ruby-lang
bglusman has joined #ruby-lang
<shevy> I want a ruby vi!
<judofyr> ri!
<shevy> lol
bglusman has joined #ruby-lang
<matti> rei -- Ruby Editor
<matti> ;p
<matti> Like vi but with ri
<matti> ;p
<matti> WIN-WIN
jbwiv has joined #ruby-lang
bglusman_ has joined #ruby-lang
frem has joined #ruby-lang
apeiros_ has joined #ruby-lang
heftig_ has joined #ruby-lang
codewrangler has joined #ruby-lang
vmoravec has joined #ruby-lang
gabeanzelini has joined #ruby-lang
dv310p3r has joined #ruby-lang
wyhaines has joined #ruby-lang
robwilliamsukio has joined #ruby-lang
<shevy> man matti
<shevy> sometimes I wonder if you are on drugs :D
fgomez has joined #ruby-lang
shtirlic has joined #ruby-lang
Joeysomo has joined #ruby-lang
justinxreese has joined #ruby-lang
qwerxy has joined #ruby-lang
Sailias has joined #ruby-lang
outoftime has joined #ruby-lang
SkramX has joined #ruby-lang
<whitequark> shevy: I do not wonder if you are on drugs :D
mistym has joined #ruby-lang
agib has joined #ruby-lang
reeze_xia has joined #ruby-lang
ankurgel has joined #ruby-lang
enebo has joined #ruby-lang
<matled> nooo, this is so annoying
<matled> "This file was generated by RubyGems. [..] if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then"
<matled> this code fails due to encoding hell
JEG2 has joined #ruby-lang
slyphon has joined #ruby-lang
<shevy> ahhhh it always makes me happy to see others have Encoding issues :)
<shevy> sorry matled
<banisterpig> shevy: maybe if you spoke a foreign language, such as german, you'd encounter encoding issues too
<banisterpig> :P
<matled> shevy: that's what I've always hated about python and loved about ruby 1.8. as long as I'm using ascii/utf-8/binary I don't have to care much about and encoding and ruby did not get in my way.
<shevy> banisterpig sure, the umlauts are not existing in english
<banisterpig> shevy: and that terrifying "B" the germans use that is pronounced like an "S"
charper has joined #ruby-lang
<shevy> yup matled. My plan is to become the longest living man on earth to still use 1.8.x
<shevy> with # Encoding: ASCII-8BIT you can go only so far
<matled> I thought about setting external and internal encoding to binary and not care about anyone doing otherwise...
<shevy> Banistergalaxy, why do i get tab completed to two of you, that is annoying
<erikh> ß
<erikh> ßansiterfiend
Dreamer3 has joined #ruby-lang
ankurgel has joined #ruby-lang
mccraig has joined #ruby-lang
cesario has joined #ruby-lang
simon_weber has joined #ruby-lang
Guest38111 has joined #ruby-lang
davesq has joined #ruby-lang
cldwalker has joined #ruby-lang
<banisterpig> erikh: can u comment on this issue
<banisterpig> erikh: it's turned into quite the lolfeset https://github.com/pry/pry/issues/497
<banisterpig> fest
<andrewvos> banisterpig: is that some sort of troll?
<banisterpig> andrewvos: poorly expressed i think hehe, i meant to focus on the content in the 'edit' but i managed to emphasize the wrong use cas
<banisterpig> e
L0rdShrek has joined #ruby-lang
mssola has joined #ruby-lang
akahn has joined #ruby-lang
mrb_bk has joined #ruby-lang
jxie has joined #ruby-lang
msisk has joined #ruby-lang
UziMonkey has joined #ruby-lang
UziMonkey has joined #ruby-lang
UziMonkey has joined #ruby-lang
<erikh> IDGI
<erikh> anyhow I've gotta work
Sailias_ has joined #ruby-lang
<irisplay> IDGI ?
abuiles has joined #ruby-lang
<frem> (I Don't Get It)
udzinari has joined #ruby-lang
adambeynon has joined #ruby-lang
Sailias_ has joined #ruby-lang
Sailias_ has joined #ruby-lang
Sailias_ has joined #ruby-lang
<rue> Don't get what?
toretore has joined #ruby-lang
<shevy> yes
chimkan has joined #ruby-lang
<dr0id> no
gokul has joined #ruby-lang
pw_ has joined #ruby-lang
io_syl has joined #ruby-lang
Face_Is__ has joined #ruby-lang
pw_ has joined #ruby-lang
bcardarella has joined #ruby-lang
<bcardarella> would there ever be a case where threads would become orphans and continue to run after the program has exited?
Defusal has joined #ruby-lang
Defusal has joined #ruby-lang
ericmuyser has joined #ruby-lang
rippa has joined #ruby-lang
Sailias has joined #ruby-lang
arooni-mobile has joined #ruby-lang
ankurgel has quit [#ruby-lang]
darkf has joined #ruby-lang
<darix> bcardarella: you are sure those are threads and not subprocesses?
<bcardarella> I'm not certain.
<darix> i would check that first
<bcardarella> I pushed a small sinatra app to Heroku that was also doing some threading. I have stopped the app but the threads are still doing work
<bcardarella> how do I check the subprocesses?
olesu has joined #ruby-lang
<matled> is there any difference between "module A; class B; end; end" and "module A; end; class A::B; end"?
jml75 has joined #ruby-lang
gokul has joined #ruby-lang
hagabaka has joined #ruby-lang
hagabaka has joined #ruby-lang
<jml75> Hi guys !
<jml75> I need some help with a little problem I have with md5 hases.
<jml75> I need to be able to convert existing md5 hexdigests to raw digests. Is this possible?
<jml75> I'll explain. If I do : Digest::MD5.digest('password'), I get a raw MD5 digest...
<jml75> Then if I do : Digest::MD5.digest('password').unpack("H*")[0], then I get the same output that if I did Digest::MD5.hexdigest('password')...
<jml75> But how can I do the opposite in ruby ? How can I go from an hexdigested MD5 string to the raw form ?
imajes has joined #ruby-lang
<matti> jml75: Grab raw digest first, save on the side.
<matti> Eh
<matti> He's dead, Jim
sora_h has joined #ruby-lang
wyhaines has joined #ruby-lang
dr0id has joined #ruby-lang
jonathan__ has joined #ruby-lang
_yawn has joined #ruby-lang
<shevy> not sure matled
<shevy> intuitively I would say yes
imajes has joined #ruby-lang
sodani has joined #ruby-lang
futurechimp has joined #ruby-lang
<sodani> is there some vim plugin for ruby that people recommend? where if you write a 'def method' it automatically enters in the 'end'?
<shevy> hmmm when I have index.cgi, File.extname tells me .cgi, is there a way to get the part
<shevy> "index"
<andrewvos> sodani: endify?
<andrewvos> sodani: vim-endwise
yibe has joined #ruby-lang
<sodani> andrewvos: i'll check it out. thanks.
Jake232 has joined #ruby-lang
dejongge has joined #ruby-lang
gianlucadv has joined #ruby-lang
chimkan_ has joined #ruby-lang
frangiz has joined #ruby-lang
lsegal has joined #ruby-lang
tenderlove has joined #ruby-lang
savage- has joined #ruby-lang
darkf_ has joined #ruby-lang
bcardarella has quit [#ruby-lang]
crudson has joined #ruby-lang
<shevy> hmm when I have a var like @foo and set this to nil, a pp on that object will still show @foo=nil? is there a way to completely kill @foo so that it is not even known as nil?
outoftime has joined #ruby-lang
SuperTaz_work has joined #ruby-lang
<tbuehlmann> shevy, what else shall it be then?
<shevy> it shall enter the honourable path of all the things that are not to be anymore
<shevy> I'll just use remove_instance_variable
deryl has joined #ruby-lang
<tbuehlmann> it will be nil afterwards anyhow
ddfreyne has joined #ruby-lang
<rue> nil is nothing
<rue> If you've given it other meaning, that's too bad
<matti> NULL is something
<matti> :)
<matti> rue: IIRC, nil == NotInitialised?
<rue> No, it's nothing
<shevy> yup, I am happy. it is not even nil now, it is entirely gone.
<rue> Unfortunately, people use it as a valid value
pemeon has joined #ruby-lang
gabeanze1ini has joined #ruby-lang
morozovm has joined #ruby-lang
sandbags has joined #ruby-lang
kitallis has joined #ruby-lang
rdavila has joined #ruby-lang
Spooner has joined #ruby-lang
<sodani> got a question, how can I get 1/2 to return 0.5 as opposed to a fixnum
<rippa> sodani: 1.0/2
<rippa> 1/2.0
<Mon_Ouie> You can't. You can use fdiv, or floats
<rippa> 1.fdiv 2
<Mon_Ouie> Well, you can do about everything in Ruby, but that doesn't mean you should
<sodani> think i'll try a float
<rippa> redefine Fixnum#/
<Mon_Ouie> Plus I think that would, apart from breaking many existing code, greatly reduce performance
<Mon_Ouie> Since some method calls on fixnums are optimized unless they have been redefined
<rue> x / y.to_f might be clearest
<rue> Actually x.to_f / y
toertore has joined #ruby-lang
<sodani> rue: that seems to work. thanks
<rue> sodani: Either way would work, but I think the former reads semantically better
<rue> Or whatever
jmfcool has joined #ruby-lang
rolfb has joined #ruby-lang
<sodani> ah, yes you're right :-)
otertore has joined #ruby-lang
olesu has joined #ruby-lang
necromancer has joined #ruby-lang
phaedrix has joined #ruby-lang
butchanton has joined #ruby-lang
Jake232 has joined #ruby-lang
solars has joined #ruby-lang
dejongge has joined #ruby-lang
dejongge1 has joined #ruby-lang
leafac has joined #ruby-lang
mztriz has joined #ruby-lang
olesu has joined #ruby-lang
nofxx has joined #ruby-lang
dustacio has joined #ruby-lang
takaokouji has joined #ruby-lang
takaokouji has joined #ruby-lang
Carnage\ has joined #ruby-lang
tekin has joined #ruby-lang
looopy has joined #ruby-lang
toretore has joined #ruby-lang
dhruvasagar has joined #ruby-lang
achiu has joined #ruby-lang
Swimming_Bird has joined #ruby-lang
futurechimp has joined #ruby-lang
`micro has joined #ruby-lang
<`micro> greetings
<`micro> have just started reading about ruby from 7 langs in 7 weeks.
<`micro> in irb (ruby 1.9.3p125) Proc.methods.sort does not show :curry as a method
<`micro> is this normal?
<andrewvos> `micro: It's not a class method.
<andrewvos> `micro: Know what that means?
<`micro> A method belonging to the class Proc.
<`micro> what type of method is it?
<andrewvos> `micro: If not, find out what instance methods and class methods are.
<`micro> andrewvos: thank you.
corecode has joined #ruby-lang
<`micro> andrewvos: I take it that it's an instance method - only belonging to the object (after instantiation)
<corecode> seems there is a semantic difference between {} and do end?
<andrewvos> `micro: Indeed.
<`micro> andrewvos: many thanks.
<andrewvos> corecode: Well, they both have their use cases.
<andrewvos> corecode: For example, when it's a one liner use {} because it reads better.
<corecode> yes
<rippa> they have different precedence
<corecode> proc doesn't take do;end
<rippa> proc takes anything
<andrewvos> corecode: It doesn't?
<matled> corecode: 'proc do end' works for me
RORgasm has joined #ruby-lang
brianpWins has joined #ruby-lang
<rippa> proc is being deprecated though
<rippa> use Proc.new
<andrewvos> Hey is #fork something we should use? I see people use it over Process.fork quite often.
<matled> rippa: source?
<andrewvos> I prefer to reference the class directly.
<corecode> tried to create Proc object without a block (ArgumentError)
<corecode> meh
<rippa> looks like Matz said that somewhere
sepp2k has joined #ruby-lang
<rippa> also, proc works differently in 1.8 and 1.9
<rippa> in 1.8 it returns lambda
dreinull has joined #ruby-lang
morozovm has quit [#ruby-lang]
<matled> so if I want to use a lamba instead of a proc as a block argument I'd write foo &-> { }?
gsav has joined #ruby-lang
qwerxy has joined #ruby-lang
tonesfrommars has joined #ruby-lang
wmoxam has joined #ruby-lang
<necromancer> corecode: kinda...
<necromancer> corecode: in reference to corecode> seems there is a semantic difference between {} and do end?
imrohit has joined #ruby-lang
<necromancer> corecode: they are the same thing, but for example... @collection.each {|k,v| expression} works but @collection.reduce [] {|m, i| expression; m} doesn't.
gianlucadv has joined #ruby-lang
<necromancer> corecode: to remedy this, you need to do @collection.reduce([]) {|m, i| expression; m}
<necromancer> and this makes sense for Ruby because it avoids some ambiguity issues that could arise
<necromancer> Ruby being "the compiler" :)
JohnBat26 has joined #ruby-lang
Xzyx987X_ has joined #ruby-lang
nebbie`` has joined #ruby-lang
olesu has joined #ruby-lang
dvorak has joined #ruby-lang
joshkraemer has joined #ruby-lang
TTilus has joined #ruby-lang
MrPunkin has joined #ruby-lang
<MrPunkin> if I'm trying to extend a class from a separate place, like a lib file, and use the extend / self.extended methods how can I add attr_accessors to the class? Do they need to be included in the list of instance methods, or do I need to run them on the base object direct, or what?
dabradley has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has joined #ruby-lang
<rue> necromancer: There's no semantic difference, there's a *precedence* difference.
Nisstyre has joined #ruby-lang
rdavila has joined #ruby-lang
JEG2 has joined #ruby-lang
dfr|mac has joined #ruby-lang
ilyam has joined #ruby-lang
olesu has joined #ruby-lang
<necromancer> rue: there's a proper place to use them and a proper place not to use them, yes
<necromancer> but personally i never use do/end
<rue> That's not really true
<necromancer> except in some instances
<rue> They're completely interchangeable.
<necromancer> rue: right but they're intended for different uses
<rue> No
<necromancer> personally i use brackets all the time
<necromancer> i don't like do/end it makes me feel like i'm writing AppleScript ;-)
<necromancer> i need brackets so ruby is a serious language tbh
<rue> There are some - disparate - conventions about using them, but you can use either in place of the other. Everywhere.
<necromancer> yes that was what i was trying to convey to corecode
wallerdev has joined #ruby-lang
<necromancer> brackets are faster to type out and easier to turn into 1 line for insertion into IRB
<qwerxy> use {} for a one liner, otherwise use do..end << that's the most common convention
jmontross has joined #ruby-lang
kyrylo has joined #ruby-lang
kyrylo has joined #ruby-lang
mssola has joined #ruby-lang
havenn has joined #ruby-lang
<MrPunkin> is there a trick to overwriting a protected method on a class that is redefined in an included module?
<MrPunkin> the original class method is running, not my version that should be included
<rue> What's protected have to do with this?
Tearan has joined #ruby-lang
olesu has joined #ruby-lang
pgpkeys has joined #ruby-lang
t has joined #ruby-lang
<rippa> rue: {} and do end have different "precedence"
<rue> They do indeed
<MrPunkin> I don't know what it has to do with it… I'm just trying to figure out why my method isn't being used, and the original classes method is.
<MrPunkin> rue: ^
<rue> class C; include M; end # None of C's instance methods are overridden by M
roadkith has joined #ruby-lang
looopy_ has joined #ruby-lang
wyhaines_ has joined #ruby-lang
<MrPunkin> rue: so you can add new methods, but not overwrite methods?
<rue> The precise mechanic is that M is inserted above C in the inheritance chain
<rue> I.e., it comes after C in method lookup
<MrPunkin> gotcha. So if you want to overwite a method what is the proper way to do so?
<MrPunkin> Just re-open the class and redefine it?
<rue> You can always do that, but if you have a module, you have two basic ways
<rue> One is to extend objects, the other has to do with inheritance
olesu has joined #ruby-lang
wyhaine__ has joined #ruby-lang
francisfish has joined #ruby-lang
justinmcp has joined #ruby-lang
mztriz has joined #ruby-lang
mztriz has quit [#ruby-lang]
<MrPunkin> so how would you go about it rue?
fukushima has joined #ruby-lang
virunga has joined #ruby-lang
Carnage\ has joined #ruby-lang
lperry65 has joined #ruby-lang
dejongge has joined #ruby-lang
pygmael has joined #ruby-lang
apeiros_ has joined #ruby-lang
virunga_ has joined #ruby-lang
outoftime has joined #ruby-lang
sodani has quit [#ruby-lang]
RORgasm has joined #ruby-lang
wdperson has joined #ruby-lang
Jade has joined #ruby-lang
tenderlove has joined #ruby-lang
RORgasm_ has joined #ruby-lang
woollyams has joined #ruby-lang
sdeobald has joined #ruby-lang
<andrewvos> TIL: rue is a character in The Hunger Games :/
Defusal_ has joined #ruby-lang
Defusal_ has joined #ruby-lang
<rue> Hunger Games is like Battle Royale, but shit?
retro|cz has joined #ruby-lang
<andrewvos> rue: Correct.
nofxx has joined #ruby-lang
gianlucadv has joined #ruby-lang
<yorickpeterse> h
<yorickpeterse> ffff, wrong window
tjadc has joined #ruby-lang
jaimef has joined #ruby-lang
WillMarshall has joined #ruby-lang
dfr|mac has joined #ruby-lang
brushbox has joined #ruby-lang
virunga has joined #ruby-lang
dr_bob has joined #ruby-lang
havenn has joined #ruby-lang
uniqanomaly has joined #ruby-lang
tla has joined #ruby-lang
gabeanzelini has joined #ruby-lang
postmodern has joined #ruby-lang
gabeanze1ini has joined #ruby-lang
outoftime has joined #ruby-lang
S1kx has joined #ruby-lang
S1kx has joined #ruby-lang
thone has joined #ruby-lang
Faris has joined #ruby-lang
Faris has quit [#ruby-lang]
pygmael has joined #ruby-lang
ilyam has joined #ruby-lang
<MrPunkin> Is the only way to read a URL's data as binary to use Net::HTTP within a block for an file opened with binary access?
<dr_bob> MrPunkin: you can also use open-uri
<drbrain> MrPunkin: seems that the body is always US-ASCII
<dr_bob> Then: dat = open("http://foo", &:read)
<drbrain> so, it should write to binary just fine
<MrPunkin> it doesn't seem to be working. It's telling me it can't convert the ACII-8BIT to UTF-8… but I don't need it to, it just needs to take the binary data and write to a binary file
<drbrain> ruby -r net/http -e 'p Net::HTTP.get_response(URI("http://google.co.jp")).body.encoding'
<drbrain> MrPunkin: ruby -r net/http -e 'open "binary", "wb" do |io| io.write Net::HTTP.get_response(URI("http://www.google.co.jp")).body end'
<drbrain> MrPunkin: my LANG="en_US.UTF-8"
qwerxy has joined #ruby-lang
<drbrain> MrPunkin: can you show your example that fails?
dreinull has joined #ruby-lang
<MrPunkin> drbrain: http://pastie.org/3674313
<MrPunkin> drbrain: still trying to convert to UTF-8 somewhere… probably in the temp file creation that open-uri seems to use.
<drbrain> MrPunkin: I ran this and got: No such file or directory - http://farm8.static.flickr.com/7054/6914233347_c2c374a193.jpg (Errno::ENOENT)
<drbrain> MrPunkin: if you're using open-uri, you need to include that
<MrPunkin> drbrain: works fine in browser
<drbrain> MrPunkin: also, you can't use puts
<drbrain> that appends a newline
<drbrain> MrPunkin: you have a browser that runs ruby?
<MrPunkin> drbrain: no. I'm saying its a valid HTTP url / response
macmartine has joined #ruby-lang
<MrPunkin> so what do you use in place of puts, print?
<drbrain> MrPunkin: I get no failure with ruby 1.9.2p290 nor 1.9.3p125 nor 2.0.0dev
<drbrain> MrPunkin: write
<drbrain> but I had to run it: ruby -ropen-uri t.rb
<drbrain> MrPunkin: please show your output when running that program
<MrPunkin> I figured it out. It was actually a problem somewhere else where it was using old cold that didn't write to a file opened with binary access
<MrPunkin> sorry for the wasted time on this.
<drbrain> MrPunkin: yay!
nofxx has joined #ruby-lang
<rue> The old cold strikes again
<erikh> ?
<erikh> oh, ha.
<rue> MrPunkin: Depends on the situation; overriding should be pretty explicit.
Zolrath has joined #ruby-lang
publicvoid_ has joined #ruby-lang
tr-808 has joined #ruby-lang
dan00 has joined #ruby-lang
<dan00> whois dan00
<drbrain> ENOSLASH
<erikh> youis dan00
<dan00> ^^
<outoftime> msg dan00 be sure to always prepend a slash to IRC commands
<dan00> msg outoftime thx! long time no usage of irc. I used it alot 10 years ago in quakenet ^^
woollyams has joined #ruby-lang
Giddeon has joined #ruby-lang
Spooner has joined #ruby-lang
<dan00> anyone using tmux?
<andrewvos> dan00: EVERYONE
<dan00> ah ok nice
<andrewvos> dan00: Try #tmux. The guy who wrote it is usually there and is very responsive.
Defusal has joined #ruby-lang
markb has joined #ruby-lang
dan00 has joined #ruby-lang
<dan00> can one ask any questions concerning ruby in here?
<erikh> nope just me
<erikh> (just kidding)
<erikh> what question(s) do you have?
<deryl> Please ask SICCO questions :) Specific, Informative, Concise, Complete, and On-Topic. This means we need a description of the problem, it's symptoms, what you have tried, and MAKE SURE you've searched for answers on your own FIRST! GOOGLE IS YOUR FRIEND! Without this information, we can not assist you since we can not troubleshoot a problem if we have no info regarding what it should be doing and is not. :)
Defusal_ has joined #ruby-lang
<deryl> makes it so much easier to help people
<dan00> alright
<drbrain> deryl: wow, that was a huge wall of text
<deryl> drbrain: err? under the 400 chars for a single irc post
<deryl> and its hardly a wall of text. reading what it says clearly shows what is needed for someone to assist
<drbrain> deryl: yeah, but I didn't bother to read all that because it took up most of my IRC window
<deryl> what are you on? a 320x160 screen?
Guest38111 has joined #ruby-lang
Guest38111 has joined #ruby-lang
<drbrain> deryl: it can be intimidating to newbs
<lianj> using irc on a calculator again
<deryl> drbrain: oh please.
<drbrain> deryl: no, my IRC window is almost twice that tall!
<drbrain> the rest of my screen is busy doing other things
<deryl> so you're ircing from a little phone. use a real system
<drbrain> deryl: nope, not on a phone
<lianj> lets get to dan00's question…
<jmontross> a ti - 83?
<deryl> yes, lets
<drbrain> deryl: it would have been easier to say, "yes, we will answer your questions, but please provide examples we can reproduce" or similar
<wmoxam> drbrain: to be honest my eyes glaze over when I see that
<wmoxam> er
<wmoxam> deryl: ^^
<drbrain> deryl: and, don't insult your fellow channel members
<deryl> drbrain: its a pretty simple declaration of what will help and whats expected for people TO help. and i hardly insulted.
<dan00> ^^
wyhaines has joined #ruby-lang
<drbrain> deryl: "use a real system" is an insult, no matter how small
<deryl> not really. it matters if you're on a little assed screen like an iphone compared to a full computer system. not going to argue the point anymore
Defusal has joined #ruby-lang
<lianj> \o/
<drbrain> deryl: I'm not on an iphone
<deryl> good for you
<drbrain> nor any other phone
<deryl> now, dan00 what's the issue?
<deryl> now that we've wasted time arguing over what someone should or should not say to garner the needed info TO help you
<rue> corundum: ask?
<corundum> ask is Just ask, someone'll answer sooner or later. If you have a problem, include as much info as possible. If you have code (always good), paste it up on http://gist.github.com or another paste site and link to it.
<deryl> OMG! wall of text. not reading
<deryl> dan00: j/k. :) whats the issue?
<dan00> ok thx
<dan00> no question at this time but thx for asking
zenspider has joined #ruby-lang
<deryl> umm.. ok..
<andrewvos> Now don't you all feel a little silly.
<lianj> so much win
<andrewvos> Literally "laughing out loud" over here.
<deryl> hehe
<rue> This'd be bash.org if it was in any way relevant anymore
<andrewvos> rue: It's just too much text for bash.
<zenspider> hrmmm I think I smell someone being an asshole in here...
wyhaines has joined #ruby-lang
<zenspider> and not actually funny
WillMarshall has joined #ruby-lang
<andrewvos> I don't know about that. I'm still chuckling a bit.
<erikh> wow
RickHull has joined #ruby-lang
<erikh> either way, if that isn't a ragequit I don't know what is
<RickHull> can anyone recommend a postgres lib? any libs to avoid?
<erikh> RickHull: pg is good and maintained.
<erikh> also the author is in here regularly (ged)
<RickHull> nice, thx :)
<andrewvos> erikh: Who rage quit?
<ged> RickHull: Yeah, let me know if you need anything. :P
<zenspider> drbrain: now THAT is passive-aggressive... :P
<RickHull> thanks. i just realized i'm on shared host and may have to jump through some hoops to stay current. pg 0.10.0 is installed on the system
Gekz has joined #ruby-lang
Gekz has joined #ruby-lang
<erikh> andrewvos: deryl did.
<drbrain> I want us to help people by saying "yes you can ask a question" then guiding them to the information they or we need
<erikh> sorry if I inflamed that, I was just trying to be funny.
darkf_ has joined #ruby-lang
<drbrain> rather than pasting a wall of text they need to follow upfront
<drbrain> "sure, ask your question" … "ok, can you do X and give us a paste?"
<havenn> drbrain: His 'helpful' tag did seem semi-condescending and verbose to me, but the emoticons suggest he meant it well. Prolly just got feeling hurt by being told off and logged to avoid conflict.
<drbrain> havenn: yeah… it's just that we've been doing it the "just ask" way for years now and it's worked out great
<erikh> I think he's new
<erikh> deryl that is
<havenn> drbrain: agreed, it is really a pleasant way
<erikh> not that it excuses him, but he probably just needs to see more examples of people helping people
<erikh> dunno. would prefer for this to smooth over, he's not a bad guy; just misguided on this one
<drbrain> yeah :/
brownies has joined #ruby-lang
<andrewvos> I feel as if dan00 is the *real* winner here.
<andrewvos> He's probably gone to #python.
<havenn> Just discovered today that pip (latest? Python package manager) has no way to update all packages... there is a patch for 'pip upgrade --all' but there is much consternation about the One True Way to do it...
looopy has joined #ruby-lang
<drbrain> havenn: actually, I *can* imagine
<drbrain> havenn: RubyGems allows multiple installed versions and figures it out at runtime, so upgrading everything is easy
<drbrain> I don't know pip, but if you only allow one active version at a time, I can see how there would be problems
<drbrain> TIL: [0].pack "U # one unicode character"
<drbrain> you can put comments in pack format strings!
<drbrain> (and spaces)
<brownies> pip is kind of hackish, although at least it's better than virtualenv
<erikh> drbrain: ooh, I wonder if it'll accept heredocs
<erikh> I mean, actually use them, etc
<drbrain> erikh: yes, the comment will run up to the next newline
<erikh> niiiice.
<drbrain> so foo.pack <<-FORMAT is allowed
<erikh> right
<drbrain> and spaces are free, too
Swimming_Bird has joined #ruby-lang
<corsican> is there anything bad about continuing to run ruby 1.8.x?
<erikh> corsican: it's EOL in june, I think.
<erikh> the exact date is on the ruby-lang homepage.
<corsican> I haven't yet upgraded to 1.9 because I have a bunch of code that doesn't play well with the new string/encoding expectations
<drbrain> corsican: the EOL in June means you won't get security fixes
<corsican> ah okay
<corsican> I figured there'd be something like that
<drbrain> corsican: other than that there's no reason to stop using it
<rue> Might be worth trying to upgrade again… typically it's not been *that* bad to get things running on 1.9
<rue> So much so that there aren't really that many guides for 1.8 -> 1.9
<drbrain> I think the most annoying thing I ran into was String#each vs String#each_line
<drbrain> and the similar assumptions about what \n meant
<erikh> I ran into some string vs. symbol issues inside Class and Module, but those aren't really used that often.
retro|cz has joined #ruby-lang
<erikh> get_instance_variable and the like. (I guess that's on Object)
<drbrain> yeah
brushbox has joined #ruby-lang
havenn has joined #ruby-lang
<zenspider> rue: LIES! it is a serious PITA imhfo
<rue> Some cases are…but overall it seemed to go pretty smoothly
<andrewvos> This is the only thing that really fucked me over from 1.8.7 to 1.9.2 https://gist.github.com/2210661
sora_h has joined #ruby-lang
<injekt> meh, that one never really got me
<zenspider> that one bit me all over too
<zenspider> lots of encoding bullshit bit me all over... I'm STILL dealing with it
<injekt> got bitten by encoding a shit ton
<erikh> you can [0,0] there to fix that, right?
<injekt> yeah
<erikh> been a while since i had to port anything.
<injekt> rather [0, 1]
nofxx has joined #ruby-lang
<erikh> ah
gryfft has joined #ruby-lang
retro|cz has joined #ruby-lang
<erikh> [0].chr should work too, no? although probably slower.
<injekt> it should yeah
<erikh> sorry, frantically checking my email, so I'm passing the time by chatting.
<injekt> or [0].ord whichever way you want to go
<zenspider> I benched them back in the day... should prolly do that again
<injekt> I have always used [index, length] for splicing strings, and using start_with? and end_with? for those comparisons
<injekt> except when I went through a stage of using str[0] == ?- because I was uber cool
vpamulap has joined #ruby-lang
<zenspider> injekt: I don't believe you because you've been around longer than start_with?/end_with?
WillMarshall has joined #ruby-lang
Jade has joined #ruby-lang
Jade has joined #ruby-lang
<injekt> zenspider: haha, ok so I make sure I use start_with? and end_with? now
H2H has joined #ruby-lang
gryfft has quit [#ruby-lang]
deryl has joined #ruby-lang
SuperTaz_work has joined #ruby-lang
Sailias has joined #ruby-lang
Nisstyre has joined #ruby-lang