apeiros_ changed the topic of #ruby-lang to: Ruby 1.9.3-p392: http://ruby-lang.org (ruby-2.0.0-rc2) || Paste >3 lines of text on http://gist.github.com
davidbalber|away is now known as davidbalbert
mistym has quit [Remote host closed the connection]
anonymuse has quit [Quit: Leaving...]
mpan has joined #ruby-lang
brianpWins has quit [Quit: brianpWins]
yfeldblum has joined #ruby-lang
dustint_ has quit [Quit: Leaving]
<andrewvos> apeiros_: quite sad you didn't choose my name for your gem :(
<apeiros_> :)
<apeiros_> srot
<andrewvos> I feel you made a grave mistake.
<havenwood> andrewvos: what was your name?
<andrewvos> srot
<andrewvos> srotter is good
<andrewvos> too*
<firefux> scrotum
<andrewvos> what's the tear emoticon?
<andrewvos> ERROR: Could not find a valid gem 'scrotum' (>= 0) in any repository
<andrewvos> ERROR: Possible alternatives: stratum
<andrewvos> I want to go to Norway it looks fun
<havenwood>
<andrewvos> …
wizonesolutions has quit [Quit: No Ping reply in 180 seconds.]
wizonesolutions has joined #ruby-lang
wizonesolutions has quit [Changing host]
wizonesolutions has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
havenwood has quit [Remote host closed the connection]
pkrnj has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
srbaker has quit [Quit: Computer has gone to sleep.]
heftig has quit [Ping timeout: 245 seconds]
sduckett has joined #ruby-lang
mrsolo has quit [Quit: Leaving]
_protagoras271_ has joined #ruby-lang
toretore has quit [Quit: Leaving]
Mawk has quit [Quit: Mawk]
sailias has joined #ruby-lang
Asher has quit [Quit: Leaving.]
Asher has joined #ruby-lang
dyln has joined #ruby-lang
crudson has left #ruby-lang [#ruby-lang]
justinram has quit [Remote host closed the connection]
benanne has quit [Quit: kbai]
<zenspider> hoe version 3.5.1 has been released! | software releases by ryan davis - http://blog.zenspider.com/releases/2013/02/hoe-version-3-5-1-has-been-released.html
marr has quit [Ping timeout: 248 seconds]
cirenyc has quit [Quit: Leaving...]
wmoxam has joined #ruby-lang
banister`sleep has joined #ruby-lang
ottbot has quit [Ping timeout: 244 seconds]
Sinestro has joined #ruby-lang
sduckett has quit [Ping timeout: 264 seconds]
<zenspider> omnifocus version 2.1.2 has been released! | software releases by ryan davis - http://blog.zenspider.com/releases/2013/02/omnifocus-version-2-1-2-has-been-released.html
gregmoreno has quit [Ping timeout: 245 seconds]
<zenspider> zenweb version 3.1.0 has been released! | software releases by ryan davis - http://blog.zenspider.com/releases/2013/02/zenweb-version-3-1-0-has-been-released.html
<zenspider> rawr
soypirate has joined #ruby-lang
bluepojo has quit [Ping timeout: 246 seconds]
mercwithamouth has quit [Ping timeout: 252 seconds]
sailias has quit [Ping timeout: 248 seconds]
pasties has quit [Ping timeout: 244 seconds]
davidbalbert is now known as davidbalber|away
havenwood has joined #ruby-lang
mpan has quit [Ping timeout: 248 seconds]
heftig has joined #ruby-lang
mpan has joined #ruby-lang
Graham_K has joined #ruby-lang
rwilcox has quit [Quit: Computer has gone to sleep.]
pasties has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
thone_ has joined #ruby-lang
arubin has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
thone has quit [Read error: Operation timed out]
lsegal has joined #ruby-lang
sailias has joined #ruby-lang
mercwithamouth has joined #ruby-lang
pkrnj has quit [Quit: Computer has gone to sleep.]
Graham_K has quit [Ping timeout: 252 seconds]
apeiros_ has quit [Remote host closed the connection]
jonahR has joined #ruby-lang
Qfwfq_ has joined #ruby-lang
Qfwfq_ has quit [Changing host]
Qfwfq_ has joined #ruby-lang
sn0wb1rd has joined #ruby-lang
gregmoreno has joined #ruby-lang
postmodern has joined #ruby-lang
iamjarvo has quit [Ping timeout: 264 seconds]
pr0ton has quit [Ping timeout: 252 seconds]
iamjarvo has joined #ruby-lang
sduckett has joined #ruby-lang
RickHull has quit [Quit: Leaving.]
charliesome has joined #ruby-lang
sduckett has quit [Ping timeout: 255 seconds]
gregmoreno has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
thufir_ has joined #ruby-lang
apeiros_ has joined #ruby-lang
cirenyc has joined #ruby-lang
apeiros_ has quit [Ping timeout: 246 seconds]
Qfwfq has quit [Quit: mailto:me@vikramverma.com]
Qfwfq_ is now known as Qfwfq
dankest has joined #ruby-lang
gregmoreno has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
nXqd has quit [Ping timeout: 264 seconds]
mpan has quit [Remote host closed the connection]
sush24 has quit [Quit: This computer has gone to sleep]
sn0wb1rd has quit [Ping timeout: 255 seconds]
gregmoreno has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 244 seconds]
dyln has quit [Remote host closed the connection]
gregmoreno has quit [Ping timeout: 245 seconds]
justinseiter has joined #ruby-lang
S1kx has joined #ruby-lang
S1kx has quit [Changing host]
S1kx has joined #ruby-lang
S2kx has quit [Ping timeout: 245 seconds]
rsl has quit [Quit: Computer has gone to sleep.]
stardiviner has joined #ruby-lang
_protagoras271_ has quit [Remote host closed the connection]
sush24 has joined #ruby-lang
sepp2k1 has quit [Remote host closed the connection]
bzalasky has quit [Remote host closed the connection]
dyln has joined #ruby-lang
nazty has joined #ruby-lang
dhruvasagar has joined #ruby-lang
_protagoras271_ has joined #ruby-lang
wizonesolutions has quit [Ping timeout: 256 seconds]
wizonesolutions has joined #ruby-lang
Qfwfq has quit [Ping timeout: 255 seconds]
nXqd has joined #ruby-lang
nXqd has quit [Ping timeout: 276 seconds]
jonahR has quit [Quit: jonahR]
jonahR has joined #ruby-lang
dankest has quit [Ping timeout: 252 seconds]
chendo__ has joined #ruby-lang
stardiviner has quit [Quit: my website: http://stardiviner.dyndns-blog.com/]
RickHull has joined #ruby-lang
dyln has quit [Remote host closed the connection]
dyln has joined #ruby-lang
dyln_ has joined #ruby-lang
dyln has quit [Read error: Connection reset by peer]
wmoxam has quit [Ping timeout: 260 seconds]
_protagoras271_ has quit [Quit: Konversation terminated!]
wmoxam has joined #ruby-lang
dyln_ has quit [Remote host closed the connection]
pkrnj has joined #ruby-lang
dyln has joined #ruby-lang
dyln has quit [Ping timeout: 256 seconds]
<RickHull> i'm troubleshooting a gem issue on a shared hosting account. it's likely their setup instructions aren't quite right. https://gist.github.com/rickhull/de235845c6350b8b75e6
brianpWins has joined #ruby-lang
<RickHull> after installing a gem, i get a "success" message, but then it doesn't seem to be installed anywhere
<RickHull> it's not in gem list
brianpWins has quit [Client Quit]
aedorn has quit [Read error: Connection reset by peer]
<RickHull> after Successfully installed pg-0.14.1\n1 gem installed, where can i look to see where it might be installed?
aedorn has joined #ruby-lang
[[johnonymous]] has joined #ruby-lang
[[johnonymous]] has quit [Client Quit]
[[johnonymous]] has joined #ruby-lang
[[johnonymous]] has quit [Client Quit]
soypirate has quit [Remote host closed the connection]
chendo__ has quit [Quit: Computer has gone to sleep.]
dankest has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
<RickHull> it's installed to ~/.gem/ruby/1.9.3/gems but my GEM_HOME is ~/.gems
dyln has joined #ruby-lang
retro|cz has joined #ruby-lang
<RickHull> gem list is apparently looking in GEM_HOME, but gem install isn't using GEM_HOME ?
wmoxam has quit [Ping timeout: 245 seconds]
jonahR has quit [Quit: jonahR]
hahuang65 has quit [Quit: Computer has gone to sleep.]
dyln has quit [Remote host closed the connection]
dyln has joined #ruby-lang
CLUSTERfoo has joined #ruby-lang
ryanf has quit [Quit: leaving]
ryanf has joined #ruby-lang
dyln has quit [Ping timeout: 260 seconds]
Qfwfq has joined #ruby-lang
Qfwfq has joined #ruby-lang
Qfwfq has quit [Changing host]
jonahR has joined #ruby-lang
<CLUSTERfoo> is there a reason this tells me "dodo" is undefined? : class Thing; def dodo(a); puts a; end; CONST = dodo "hi"; end
<CLUSTERfoo> I want to assign the output of the "dodo" method to the constant CONST, so that I can call Thing::CONST
<RickHull> dodo is an instance method, available to instantiated Things
<RickHull> t = Thing.new; t.dodo #ok
<RickHull> you can make it a class method instead: def self.dodo
dankest has quit [Ping timeout: 276 seconds]
<CLUSTERfoo> Works, thanks!
dyln has joined #ruby-lang
<CLUSTERfoo> Is it good practice to create a class with many self.methods for generating a bunch of related constants? I would never need a Thing.new, just its constants.
voker57 has joined #ruby-lang
dyln has quit [Remote host closed the connection]
Qfwfq has quit [Ping timeout: 255 seconds]
dyln has joined #ruby-lang
<RickHull> don't use a class if you're not going to instantiate it
<RickHull> make a module instead
<RickHull> module Thing; def self.dodo; # etc.
Qfwfq has joined #ruby-lang
Qfwfq has quit [Changing host]
Qfwfq has joined #ruby-lang
xalei has quit [Remote host closed the connection]
<RickHull> also, the idea of setting constants to method values seems pretty suspect to me. there's surely a better way to do it
<RickHull> can you paste (use a paste site) a more representive version of your code?
dyln has quit [Ping timeout: 264 seconds]
<CLUSTERfoo> It's not written yet :p. I've been trying to figure out the right way to do this. It's for a rakefile. I need to have methods that generate a various arrays of file paths following some pattern, then I need to assign those arrays a set of constants so I can use them.
<RickHull> you can set a constant to an expression
<RickHull> and you don't have to wrap that in a method
bzalasky has joined #ruby-lang
<RickHull> that won't handle parameters though, like your dodo example
<RickHull> but if you're passing parameters, you might just rather call the method at runtime. but I could see where caching the method result in a constant might make sense
Qfwfq has quit [Ping timeout: 255 seconds]
justinseiter has quit [Ping timeout: 276 seconds]
Qfwfq has joined #ruby-lang
Qfwfq has joined #ruby-lang
Qfwfq has quit [Changing host]
<CLUSTERfoo> thnx
countdigi has joined #ruby-lang
Qfwfq has quit [Ping timeout: 255 seconds]
Qfwfq has joined #ruby-lang
Qfwfq has quit [Ping timeout: 255 seconds]
slyphon has quit [Quit: slyphon]
cirenyc has quit [Quit: Leaving...]
Qfwfq has joined #ruby-lang
Qfwfq has joined #ruby-lang
Qfwfq has quit [Changing host]
mr_white_ has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
ryanf has quit [Ping timeout: 264 seconds]
davidbalber|away is now known as davidbalbert
davidbalbert is now known as davidbalber|away
CLUSTERfoo has quit [Quit: Leaving]
spacesuit has joined #ruby-lang
spacesuit has left #ruby-lang [#ruby-lang]
Qfwfq has quit [Ping timeout: 255 seconds]
Qfwfq has joined #ruby-lang
sush24 has quit [Quit: This computer has gone to sleep]
ryanf has joined #ruby-lang
mistym has quit [Remote host closed the connection]
chendo__ has joined #ruby-lang
zanegray has joined #ruby-lang
zanegray has left #ruby-lang [#ruby-lang]
sush24 has joined #ruby-lang
zanegray has joined #ruby-lang
zanegray has left #ruby-lang [#ruby-lang]
pkrnj has quit [Quit: Computer has gone to sleep.]
voker57 has quit [Read error: Connection reset by peer]
Qfwfq has quit [Ping timeout: 255 seconds]
Qfwfq has joined #ruby-lang
Qfwfq has joined #ruby-lang
Qfwfq has quit [Changing host]
spuk has quit [Quit: Human beings were created by water to transport it uphill.]
bzalasky has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 245 seconds]
cordax has joined #ruby-lang
dhruvasagar has joined #ruby-lang
wnd has quit [Excess Flood]
wnd has joined #ruby-lang
pkrnj has joined #ruby-lang
chendo__ has quit [Quit: Computer has gone to sleep.]
tomzx_mac has joined #ruby-lang
datanoise has quit [Ping timeout: 252 seconds]
io_syl has quit [Ping timeout: 256 seconds]
dhruvasagar has quit [Ping timeout: 255 seconds]
glebm has quit [Quit: Computer has gone to sleep.]
Qfwfq has quit [Ping timeout: 255 seconds]
Qfwfq has joined #ruby-lang
jarred has joined #ruby-lang
<jarred> Has anyone here managed to deploy Discourse?
<RickHull> i saw a few blog posts about the general topic. it's ruby (rails?) ?
amerine has quit [Quit: Computer has gone to sleep.]
<charliesome> magical ruby hax: http://i.imgur.com/uJbx2M6.png
srbaker has joined #ruby-lang
cordax has quit [Quit: Computer has gone to sleep.]
pkrnj has quit [Quit: Computer has gone to sleep.]
datanoise has joined #ruby-lang
pkrnj has joined #ruby-lang
srbaker has quit [Ping timeout: 252 seconds]
imajes has quit [Quit: Be Back Soon!]
<zzak> charliesome: :D
imajes has joined #ruby-lang
<charliesome> zzak: don't tell _ko1 he might fix it
<charliesome> this is a pretty great bug
<zzak> what is InternalHooks?
blacktulip has joined #ruby-lang
<charliesome> zzak: a little gem thing i wrote
<charliesome> it's in pure ruby
<zzak> nice, i just finished up some docs for thread and backtrace
<charliesome> sweet
<zzak> it was tough, i had to ask kosaki-san a lot of questions :D
apeiros_ has joined #ruby-lang
<zzak> they are all celebrating
d3vic3 has joined #ruby-lang
<zzak> i should just start backporting stuff to screw with yusuke
<zzak> charliesome: is your gem on rubygems.org?
<charliesome> zzak: not yet
<charliesome> i'm documenting it first!
<charliesome> except YARD is broken on ruby 2.0
<charliesome> so i have to fix that first
<charliesome> so many yaks
<zzak> you had me at documenting it first
<zzak> is there a ticket open for yard?
<zzak> ahh, loren only has 1.8 and 1.9 build matrixes
<charliesome> mm
<charliesome> i get green on 1.9
<charliesome> 7 failures on 2.0
<charliesome> $20 says it's either a respond_to? or /1\.9/ problem
<zzak> could be both
<charliesome> yeah
<charliesome> the number of gems i've seen go into 1.8 mode on 2.0....
<RickHull> you mean the old method_missing but forgot respond_to? problem?
<zzak> method visibility changed
<charliesome> RickHull: respond_to? only returns true for public methods in 2.0
stardiviner has joined #ruby-lang
<RickHull> ah
<charliesome> RickHull: in 1.9 it returned true for public and protected methods
Qfwfq has quit [Ping timeout: 255 seconds]
<RickHull> i have been out of the loop
<RickHull> i'm still on 1.8.7 in some major spots
<zzak> me too
<zzak> but i learn alot from contributing to trunk
<RickHull> i'm on 1.9.3 in my new spot though
<apeiros_> given that they went with send and public_send in 1.9, I wonder why they didn't go with respond_to? and public_respond_to?
<apeiros_> seems inconsistent to me
francisfish has joined #ruby-lang
<zzak> only ape knows
<apeiros_> (personally I'd prefer if they'd gone with send and private_send)
JohnBat26 has joined #ruby-lang
<apeiros_> the great ape? oh I've heard of him…
<RickHull> makes sense apeiros_
<charliesome> RickHull: time to upgrade
<zzak> :D
Sinestro has quit [Quit: Computer has gone to sleep.]
<charliesome> 1.8 needs to die
Nisstyre-laptop has quit [Quit: Leaving]
<RickHull> charliesome: yeah my major spot is at work, and I have managed to lose the mandate at work to curate the garden
<apeiros_> zzak: nice :)
<RickHull> so it's got weeds and no one cares except me :(
<apeiros_> zzak: thx for patching it in my name, but if you supply the patch, then I don't mind if you claim it ;-)
<charliesome> RickHull: in june/july 1.8 will be EOLed
<zzak> it's np
<charliesome> which means no more security patches
<RickHull> yeah that will be helpful actually
<zzak> apeiros_: thanks for the report!
<RickHull> i've done a fair amount of preliminary testing, made the requisite changes
Qfwfq has joined #ruby-lang
<RickHull> but nothing in the last 12 months, been reassigned basically
dzhulk has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
robbyoconnor has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 255 seconds]
<lsegal> charliesome there's that, there's also changes to the ripper parser in 2.0 with kwargs, and then rdoc changed again and so did rubygems, so those deps cause issues out of box
<charliesome> lsegal: ah right
<lsegal> they're mostly *test* failures though
<lsegal> except for that ripper thing
<charliesome> it's blowing up on a little thing i'm working on at the moment
<charliesome> because of the rdoc/markup/to_html changes
<lsegal> yea there's that. you can install an earlier version of rdoc to make that work though
<charliesome> rdoc gem/stdlib confuses me so much
<RickHull> i figured out my rubygems bug in #rubygems btw. commented out #gem: --user-install from my ~/.gemrc and things behave now. bug?
<lsegal> the "100% compatibility" statement in ruby 2.0 is kind of a lie in practice
Kevin has joined #ruby-lang
kevinfagan has quit [Read error: Connection reset by peer]
<charliesome> lsegal: totally
Kevin is now known as Guest35606
Qfwfq has quit [Ping timeout: 255 seconds]
<charliesome> i run 2.0.0-rc2 as my main ruby
<zzak> lsegal: <3
<charliesome> most things work out of the box
<charliesome> but there are the odd incompatibilities
Qfwfq has joined #ruby-lang
Qfwfq has quit [Changing host]
Qfwfq has joined #ruby-lang
solars has joined #ruby-lang
ddd has joined #ruby-lang
ddd is now known as Guest69401
Guest35606 has quit [Ping timeout: 248 seconds]
<apeiros_> oh, hi lsegal. I've got a question you might be able to answer. In https://github.com/apeiros/sorting/blob/master/lib/sorting/helpers.rb I'd like to doc #asc and #desc as if they were module functions on the Sorting::Helpers module
<apeiros_> I tried with https://github.com/apeiros/sorting/blob/master/development/TODO.txt#L4-10 - but that didn't work out.
ddd_ has quit [Ping timeout: 245 seconds]
<apeiros_> the methods turned up, but the doc above it was missing
<lsegal> parse uses the block as if it were real ruby code, so you'd have to have the docstring *in* the @!parse block as ruby comments
<lsegal> there is @!method though
setmeaway has quit [Quit: Leaving]
<lsegal> # @!method asc \n # @!method desc should work either attached to Helpers or inside the module block as lone comments
<RickHull> apeiros_: i like your comments
<apeiros_> I tried @!method too, don't remember what failed there. I'll try again and report
<apeiros_> RickHull: thanks :)
<RickHull> like, justifying why a proc?
kurko__ has joined #ruby-lang
<apeiros_> :D
<apeiros_> I try to spot non-obvious reasons and document them. Not always easy as the line of "not-obvious" is quite blur
<apeiros_> *blurry(?)
<RickHull> indeed
setmeaway has joined #ruby-lang
kurko__ has quit [Ping timeout: 255 seconds]
<apeiros_> lsegal: ah, right
<apeiros_> lsegal: it seems @!method requires a bit of actual code
<lsegal> hmm? it shouldn't
sush24 has quit [Ping timeout: 244 seconds]
<apeiros_> i.e., the following does not produce output in the generated docs: https://gist.github.com/apeiros/5019038#L40-46
<apeiros_> hm, no line marking in gists? :(
marr has joined #ruby-lang
sush24 has joined #ruby-lang
jonahR has quit [Quit: jonahR]
<apeiros_> hm, tested my theory - adding a bit of code below it didn't help, so I must be doing something else wrong
<lsegal> yard 0.8.4.1?
<lsegal> because i fixed a specific bug with lone comments at the end of module blocks in 0.8.4
justinram has joined #ruby-lang
<apeiros_> $ yard -v --> yard 0.8.4.1
<lsegal> hmm
<apeiros_> gaaah
<apeiros_> wait
<apeiros_> ok, my apologies. I tested yesterday whether you could generate the docs properly within the gem
<apeiros_> and I was still in that working dir :-S
<apeiros_> (i.e., whether all relevant files were distributed in the gem)
<apeiros_> ok, @!method works, but how do I mark the methods to be module_function's?
<apeiros_> hm, and do module_function's only get documented as class methods? o0
<lsegal> sort of. we don't display both the instance and class variant because that seems confusing. for yours you could use @!scope class
<lsegal> are they actually module functions in your codebase?
<lsegal> they just look like class methods
Qfwfq has quit [Ping timeout: 255 seconds]
<apeiros_> they are
<apeiros_> gah, should be, wth?
<apeiros_> oh my, why did I write private there instead of module_function? must have been late…
<apeiros_> that's what you get out of 1w of sleep deprivation I guess :-S
<lsegal> so, hm, i'd be curious what yard would do if you wrote module_function :asc\n module_function :desc outside of the block after the @!method directives
<lsegal> my feeling is it might recognize that
<apeiros_> lsegal: I find it reasonable to not do the full documentation twice, but I'd document both the instance and class method part, show its visibility and refer in one of the two to the other with the hint that it is a module_function
dyln has joined #ruby-lang
<lsegal> apeiros_ yea the template should maybe have a little [module function] note tag thing
<lsegal> or equivalent
<lsegal> there's room for improvement there
<apeiros_> lsegal: @!visibility might accept module_function too
<apeiros_> since that works similar to public/private/protected and also changes the visibility (instance method is private, class method is public)
<lsegal> that's an interesting question-- is it visibility, or is it scope? (it's actually both)
<lsegal> but yes, that would be useful too
<apeiros_> and yes, it recognizes module_function :asc, but it does not connect it with the @!method
<apeiros_> I'll see whether that changes with !@scope class
huydx has quit [Read error: Connection reset by peer]
<lsegal> it would have to be an instance method for yard to be able to turn it into a module func i'd think
<lsegal> oh and i actually think yard *might* display both methods if you turn on --private in your doc gen
huydx has joined #ruby-lang
<lsegal> since it actually is a private method
<apeiros_> ah!
<apeiros_> hm, is there a better way to hide certain methods?
<apeiros_> I don't want stuff like inspect to show up in the docs
<lsegal> @private or @api private
<apeiros_> I used @private, but that's IMO a bad
<lsegal> yea, it kind of is
<apeiros_> :-/
<lsegal> the cleaner way would be if someone combed through stdlibs and picked out those standard "hook" methods that have no value as overridden methods
<apeiros_> would be nice to have a tag which indicates "just like parent"
<lsegal> and submitted a patch to yard so we could recognize those :)
pkrnj has quit [Quit: Computer has gone to sleep.]
<lsegal> like @override?
<apeiros_> mhm, @override seems nice
<lsegal> the problem with that one is yard doesn't know about the parent for something like inspect
<lsegal> we'd need to have a model of the core classes, which we don't. would be awesome if we did though
<apeiros_> how about @ignore ?
<apeiros_> or @nodoc ?
<apeiros_> so a dev can manually hide it without abusing @private?
<lsegal> private is nodoc. they are inherently abusive
<apeiros_> I see a lot of value in @private to distinguish between "user" and "developer" of a library
<lsegal> that's what @api is
<lsegal> @api internal
<apeiros_> the problem is, #inspect is not internal
<apeiros_> it is explicitly external, but of no value in the docs
<lsegal> well api tags are freeform, you can call it what you like
<apeiros_> hm
pkrnj has joined #ruby-lang
<lsegal> imo from an implementation standpoint they are internal, though
<lsegal> they might be public methods but that actual implementation is an internal detail of the codebase. i think @api internal is a fine distinction
benanne has joined #ruby-lang
Qfwfq has joined #ruby-lang
Qfwfq has joined #ruby-lang
Qfwfq has quit [Changing host]
adambeynon has joined #ruby-lang
<apeiros_> lsegal: I'll try and see with what I feel comfortable. Thanks a lot for the support!
<lsegal> np!
setmeaway has quit [Ping timeout: 248 seconds]
francisfish has joined #ruby-lang
francisfish has quit [Remote host closed the connection]
francisfish has joined #ruby-lang
dyln has quit [Remote host closed the connection]
lcdhoffman has joined #ruby-lang
dyln has joined #ruby-lang
savagecroc has joined #ruby-lang
<savagecroc> is there anyway to see what code is inside a block?
toretore has joined #ruby-lang
ryez has quit [K-Lined]
Qfwfq has quit [Ping timeout: 255 seconds]
dyln has quit [Ping timeout: 246 seconds]
Qfwfq has joined #ruby-lang
Qfwfq has quit [Changing host]
Qfwfq has joined #ruby-lang
setmeaway has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
RickHull has left #ruby-lang [#ruby-lang]
savagecroc has quit [Remote host closed the connection]
dzhulk has quit [Quit: Leaving.]
sush24 has quit [Quit: Leaving]
francisfish has quit [Remote host closed the connection]
dzhulk has joined #ruby-lang
kurko__ has joined #ruby-lang
twintail has joined #ruby-lang
gustavnils has joined #ruby-lang
kurko__ has quit [Ping timeout: 252 seconds]
mercwithamouth has quit [Ping timeout: 260 seconds]
banister`sleep has quit [Read error: Connection reset by peer]
ikst has joined #ruby-lang
dzhulk has quit [Quit: Leaving.]
sush24 has joined #ruby-lang
Mon_Ouie has quit [Ping timeout: 264 seconds]
Qfwfq has quit [Ping timeout: 255 seconds]
Qfwfq has joined #ruby-lang
Qwak has joined #ruby-lang
maxmanders has joined #ruby-lang
nXqd has joined #ruby-lang
jarred1 has joined #ruby-lang
jarred1 has quit [Client Quit]
jarred has quit [Ping timeout: 252 seconds]
d3vic3 has quit [Quit: leaving]
dzhulk has joined #ruby-lang
tbuehlmann has joined #ruby-lang
kgrz has joined #ruby-lang
workmad3 has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
agarie has quit [Remote host closed the connection]
ottbot has joined #ruby-lang
ioga_wrk has quit [Ping timeout: 256 seconds]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
Banistergalaxy has joined #ruby-lang
twintail has quit [Ping timeout: 245 seconds]
<charliesome> '“Ruby performance tuning really feels like trying to get the best miles per gallon out of a tricycle.” — David R. MacIver' haha
<charliesome> /late
Qfwfq has quit [Ping timeout: 255 seconds]
<injekt> another ruby patch version... jeez
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
Qfwfq has joined #ruby-lang
stonerfish has quit [Ping timeout: 276 seconds]
kgrz has quit [Quit: Computer has gone to sleep.]
twintail has joined #ruby-lang
beiter has joined #ruby-lang
ikst has quit [Remote host closed the connection]
wobblini has joined #ruby-lang
<wobblini> ping
twintail has quit [Ping timeout: 260 seconds]
<injekt> um, pong?
<wobblini> injekt: just checking that as a registered user i can actually speak here
* wobblini is, or was at last report, the owner of this channel
<wobblini> but my previous nick was re-registered to someone else
Qfwfq has quit [Ping timeout: 255 seconds]
Qfwfq has joined #ruby-lang
Qfwfq has joined #ruby-lang
Qfwfq has quit [Changing host]
<injekt> I see
jbsan has quit [Quit: jbsan]
Banistergalaxy has quit [Ping timeout: 245 seconds]
Banistergalaxy has joined #ruby-lang
dblack_ has joined #ruby-lang
workmad3 has quit [Ping timeout: 264 seconds]
kurko__ has joined #ruby-lang
riffraff has joined #ruby-lang
kurko__ has quit [Ping timeout: 252 seconds]
ioga_wrk has joined #ruby-lang
Qfwfq has quit [Ping timeout: 255 seconds]
Qfwfq has joined #ruby-lang
Qfwfq has joined #ruby-lang
Qfwfq has quit [Changing host]
ikst has joined #ruby-lang
dblack_ has quit [Quit: dblack_]
ikst has quit [Remote host closed the connection]
MaddinXx has joined #ruby-lang
twintail has joined #ruby-lang
twintail has quit [Ping timeout: 260 seconds]
wobblini has quit [Ping timeout: 248 seconds]
ikst has joined #ruby-lang
justinseiter has joined #ruby-lang
lcdhoffman has quit [Quit: lcdhoffman]
Qfwfq has quit [Ping timeout: 255 seconds]
Qfwfq has joined #ruby-lang
sush24 has quit [Ping timeout: 256 seconds]
tbuehlmann has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
sush24 has joined #ruby-lang
tbuehlmann has joined #ruby-lang
ottbot has quit [Ping timeout: 260 seconds]
kurko__ has joined #ruby-lang
lcdhoffman has joined #ruby-lang
kogent has quit [Read error: Connection reset by peer]
kogent has joined #ruby-lang
jxie has quit [Quit: leaving]
Mon_Ouie has quit [Ping timeout: 255 seconds]
kurko__ has quit [Ping timeout: 252 seconds]
dzhulk has quit [Quit: Leaving.]
Qwak has quit [Ping timeout: 255 seconds]
dzhulk has joined #ruby-lang
thufir_ has quit [Quit: Leaving.]
KU0N has joined #ruby-lang
<imperator> mornin
beho has joined #ruby-lang
nXqd has quit [Remote host closed the connection]
<apeiros_> moin imperator
carloslopes has joined #ruby-lang
klebervirgilio has joined #ruby-lang
twintail has joined #ruby-lang
twintail has quit [Ping timeout: 256 seconds]
<imperator> how goes it apeiros_ ?
<apeiros_> fine, fine. just pushed sorting-0.0.2
<apeiros_> useful if you want to do stuff like foo.sort_by { |x| [asc(x.a), desc(x.b), asc(x.c, :nils_last), asc { x.expensive_call }] }
<apeiros_> and you?
maxmanders has quit [Quit: Computer has gone to sleep.]
<charliesome> oh TIL you can do a keyword splat in a hash
<charliesome> so like
<charliesome> a = { a:1 }; b = { b:2 }; c = {**a, **b}
<charliesome> that is so cool
<apeiros_> ah, ruby 2 - looking forward to have some time to look at it
<charliesome> i can't wait to use all this shit :~)
<apeiros_> ^^
<apeiros_> I'll have to
<apeiros_> if I do, I'll be devastated because I can't use it at work :(
<charliesome> apeiros_: are you on 1.9 at work?
<apeiros_> I mean, if I don't wait/use it immediately
<apeiros_> charliesome: soon completely, yes. just moving the last maintained project to 1.9
<charliesome> cool
<apeiros_> that is, I already moved it to 1.9, the migration to rails 3.2 is still in the works, but almost complete.
<charliesome> 2.0 is not a huge upgrade from 1.9
<apeiros_> ah, good. that'll make it easier.
<apeiros_> the 1.8 to 1.9 migration wasn't that big of an issue either. rails upgrades are the expensive ones :)
<apeiros_> 1.8 to 1.9 was mostly syck vs. psych issues and lots and lots of encoding issues
<apeiros_> (3rd party libs mostly)
<charliesome> the two biggest incompatibilities in 2.0 are:
iamjarvo has quit [Quit: Leaving.]
<charliesome> * respond_to? doesn't check protected methods
<charliesome> * "2.0" doesn't match /1\.9/
<apeiros_> yeah, people checking with /1\.9/ should be flogged anyway
<rking> Haha
<charliesome> unfortunately i have to use cucumber
<apeiros_> at least >= "1.9" (matz promised no 2-digit minors)
<charliesome> which thinks it's on 1.8 when running in 2.0
<charliesome> which is fun..
MaddinXx has quit [Remote host closed the connection]
wmoxam has joined #ruby-lang
francisfish has joined #ruby-lang
<apeiros_> which is another reason I'll not shed a tear on not using it anymore.
<imperator> apeiros_, not doing much programming lately, just a little bit with proc-wait3 and windows encryption lib
justinseiter has quit [Ping timeout: 244 seconds]
<rking> charliesome: Y u no P R that?
<charliesome> rking: i sent a patch
retro|cz has quit [Ping timeout: 276 seconds]
<rking> Aha.
<rking> charliesome: Hey, what about BetterErrors::Middleware.allow_ip! ?
<charliesome> very sorry about that, i've been busy attending rubyconf au!
<rking> (Speaking of PRs)
<charliesome> lemme check it
<rking> I thought it was cool how the CIDR notation stuff worked with no modifications (since it was previously using IPAddr#include? )
maxmanders has joined #ruby-lang
wmoxam has quit [Ping timeout: 264 seconds]
kurko__ has joined #ruby-lang
retro|cz has joined #ruby-lang
beho has quit [Remote host closed the connection]
wmoxam has joined #ruby-lang
kurko__ has quit [Ping timeout: 245 seconds]
ottbot has joined #ruby-lang
schaerli has joined #ruby-lang
<yxhuvud> apeiros: for us, rails upgrades are a lot simpler than the transition to 1.9 will be. mostly because we have to use the packaging of ruby that redhat/centos uses. They remade gem packaging from scratch between the releases ..
<yxhuvud> meaning lots and lots of meaningless packaging work because some smart guy decided that gems should be shared between different ruby versions.
iamjarvo has joined #ruby-lang
Qfwfq has quit [Ping timeout: 255 seconds]
Qfwfq has joined #ruby-lang
Qfwfq has quit [Changing host]
Qfwfq has joined #ruby-lang
<charliesome> rking: your stuff is in master
<rking> charliesome: Sweet. =)
<charliesome> i'll do a release in a sec
<rking> charliesome: The next step, which I didn't start on, would be giving a warning to the user when it was deciding not to show the page.
<charliesome> ah yeah
<charliesome> i'm undecided on that
<charliesome> on one hand it would be nicer for the user
<charliesome> on the other hand it might be useful to fall back to the default error page
klebervirgilio has quit [Ping timeout: 248 seconds]
<rking> Well, falling back is good -- but it'd be nice if it said, "better_errors disabled, because you're coming from IP: ENV["REMOTE_ADDR"]" at the top
<rking> (Then a link to the README section or something)
<rking> The current solution at least provides a way out, but it would be cooler to auto-doc its behavior on the condition that triggers it.
mytrile has joined #ruby-lang
twintail has joined #ruby-lang
imperator has left #ruby-lang ["Leaving"]
wmoxam has quit [Ping timeout: 264 seconds]
<charliesome> haha that didn't really work out: https://travis-ci.org/charliesome/better_errors
<charliesome> bloody rc1
<kalleth> better-errors is awesome
<kalleth> just sayin'
<kalleth> i first used php-style 'PUTS STATEMENTS' to debug
<kalleth> then i discovered pry
<kalleth> then i discovered better-errors
<kalleth> and now i love you, charliesome
<kalleth> be my valentine :x
<charliesome> :~)
Qfwfq has quit [Ping timeout: 255 seconds]
Qfwfq has joined #ruby-lang
Qfwfq has joined #ruby-lang
Qfwfq has quit [Changing host]
chendo__ has joined #ruby-lang
sush24 has quit [Ping timeout: 255 seconds]
chendo__ has quit [Client Quit]
beho has joined #ruby-lang
sush24 has joined #ruby-lang
nXqd has joined #ruby-lang
rippa has quit [Ping timeout: 240 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
<apeiros_> yxhuvud: sounds awesome :)
agile has quit [Remote host closed the connection]
dblack_ has joined #ruby-lang
dblack_ has quit [Client Quit]
lcdhoffman has joined #ruby-lang
Qfwfq has quit [Ping timeout: 255 seconds]
Qfwfq has joined #ruby-lang
<charliesome> rking: 0.7.0 is out with your stuff
<charliesome> night
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
sailias has quit [Ping timeout: 264 seconds]
corundum has quit [Ping timeout: 276 seconds]
mercwithamouth has joined #ruby-lang
srbaker has joined #ruby-lang
dzhulk has quit [Quit: Leaving.]
corundum has joined #ruby-lang
workmad3 has joined #ruby-lang
dzhulk has joined #ruby-lang
srbaker has quit [Ping timeout: 245 seconds]
srbaker has joined #ruby-lang
agile has joined #ruby-lang
Qfwfq has quit [Ping timeout: 255 seconds]
Qfwfq has joined #ruby-lang
sre-su has joined #ruby-lang
sre-su has left #ruby-lang [#ruby-lang]
postmodern has quit [Quit: Leaving]
srbaker has quit [Client Quit]
dhruvasagar has joined #ruby-lang
banister`sleep has joined #ruby-lang
benanne has quit [Quit: kbai]
reactormonk has quit [Ping timeout: 248 seconds]
carloslopes has quit [Remote host closed the connection]
intellitech has quit [Read error: Operation timed out]
[[johnonymous]] has joined #ruby-lang
workmad3 has quit [Ping timeout: 264 seconds]
Qfwfq has quit [Ping timeout: 255 seconds]
yianna has joined #ruby-lang
<yianna> Hey Everyone!
<yianna> About to finish my first Pragmatic Programmer book "Learning to Program" and evaluating which book should be next
<yianna> What do you guys think between these two books
<yianna> Or Matz's book on Ruby by O'Reilly
<yianna> Ruby is my first language and am leaning towards the command line apps. But would love someones opinion
banister`sleep has left #ruby-lang [#ruby-lang]
banisterfiend has joined #ruby-lang
<banisterfiend> yianna: matz's book
<yianna> ok right on
<banisterfiend> yianna: though i use it more of a reference, but it's concise and very readable
<banisterfiend> yianna: but ignore the ridiculous example at the start regarding the sudoku finder
<yianna> omg
<banisterfiend> i neither found that helpful or the code particularly good
<yianna> it's 4 pages long
<banisterfiend> yeah, it was stupid to just dump it there
<banisterfiend> just skip it :)
<yianna> tried reading it before the learn to program book
<yianna> it was like reading chinese =X
<banisterfiend> hehe
<yianna> but now much more readable
pbjorklund has quit [Quit: ZNC - http://znc.in]
<yianna> ok cool, he recommends not stressing out about getting every little aspect of the book. would you agree to just work through the stressfull "i don't get it times" and keep pushing
<yianna> before i would iterate over a chapter 4 or 5 times lol
<canton7> don't spend too much time on stuff that's nnot clicking imo.
<canton7> when you hit it irl you'll go back to the book
<canton7> and it'll make more sense then
intellitech has joined #ruby-lang
<yianna> ok great! that's sound advice!
<canton7> also the topics aren' necessarily in the righ order
<canton7> going back having read up on other supporting stuff often makes sense
<yianna> one more thing..... I have no RL experience with coding for anybody... What would you guys recommend someone new do?
<banisterfiend> yianna: yeah, the book goes into huge amount of detail about everything
Qfwfq has joined #ruby-lang
<yianna> omg the order for learning the language is different from whoever teaches it. Went through Ruby at Codeschool, rubymonk.com, screen casts.. all different
[[johnonymous]] has quit [Quit: Computer has gone to sleep.]
<antbody> yianna: If you want to learn programming then you start coding. Books and school are good suplements, but just by doing those you'll never learn programming.
<antbody> Start with something small that will not overwhelm you and keep doing it.
<banisterfiend> yianna: write a game, http://libgosu.org
<antbody> My dad tried to teach programming to me with c++ when I was like 6 and killed all my enthusiasm towards programming for years :/
<yianna> omg i want to write the game of life
<canton7> yeah, game of life's a good one
<canton7> quite a few good ways to write it too
<yianna> really want to write an app to queue up posts on tumblr for me
mattetti has joined #ruby-lang
<canton7> do it
stonerfish has joined #ruby-lang
<yianna> lol ok so i guess its time to start doing and stop reading as much
mattetti has left #ruby-lang [#ruby-lang]
<yianna> this has presented me with valid options and lots of direction. thanks!
<canton7> make sure you do keep readinh
<canton7> but the coding is more important
Qfwfq has quit [Ping timeout: 255 seconds]
Qfwfq has joined #ruby-lang
gregmoreno has joined #ruby-lang
Diana_Carolina has joined #ruby-lang
voker57 has joined #ruby-lang
voker57 has quit [Changing host]
voker57 has joined #ruby-lang
justinram has quit [Remote host closed the connection]
iamjarvo has quit [Quit: Leaving.]
klebervi_ has joined #ruby-lang
kleberv__ has joined #ruby-lang
klebervi_ has quit [Ping timeout: 256 seconds]
<firefux> yianna: The Pickaxe book is nice, I admint I read almost everything like 3 or 4 times
<firefux> s/admint/admit
kleberv__ has quit [Read error: Connection reset by peer]
banisterfiend has quit [Remote host closed the connection]
klebervi_ has joined #ruby-lang
<yianna> yeah but it takes forever to finish anything that way lol
kurko__ has joined #ruby-lang
mr_white has joined #ruby-lang
Banistergalaxy has quit [Ping timeout: 248 seconds]
kevinfagan has joined #ruby-lang
<yianna> firefux: do you get emotional while reading tech books? lol, i sure do
Banistergalaxy has joined #ruby-lang
mytrile has quit [Remote host closed the connection]
<yianna> hahahaha
<yianna> totally related
kleberv__ has joined #ruby-lang
klebervi_ has quit [Ping timeout: 256 seconds]
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
<firefux> I didn't read it 3 or 4 times linearly but came back to reread chapters randomly depending on what I was reading at the time
x0F_ is now known as x0F
kurko__ has quit [Quit: Computer has gone to sleep.]
kleberv__ has quit [Read error: Connection reset by peer]
klebervi_ has joined #ruby-lang
Qfwfq has quit [Ping timeout: 255 seconds]
<badeball> classic
gregmoreno has quit [Remote host closed the connection]
klebervi_ has quit [Read error: Connection reset by peer]
klebervi_ has joined #ruby-lang
pbjorklund has joined #ruby-lang
pbjorklund has quit [Client Quit]
dhruvasagar has quit [Ping timeout: 252 seconds]
banisterfiend has joined #ruby-lang
workmad3 has joined #ruby-lang
stonerfish has quit [Quit: Leaving.]
stonerfish has joined #ruby-lang
zwevans has joined #ruby-lang
wallerdev has joined #ruby-lang
iamjarvo has joined #ruby-lang
mytrile has joined #ruby-lang
bzalasky has joined #ruby-lang
sepp2k has joined #ruby-lang
wmoxam has joined #ruby-lang
<firefux> yianna: the Mats book doesn't cover Ruby 1.9
<banisterfiend> firefux: yes it does
<banisterfiend> (when she says 'matz' book i assume she means matz & flanagan, "the ruby programming language")
voker57 has quit [Ping timeout: 246 seconds]
Diana_Carolina has left #ruby-lang [#ruby-lang]
znz_jp has quit [Quit: kill -QUIT $$]
voker57_ has joined #ruby-lang
<firefux> banisterfiend: Oh really, I just look at the release date of the book (2008)
<firefux> banisterfiend: wasn't 1.9 released after that?
znz_jp has joined #ruby-lang
carloslopes has joined #ruby-lang
<banisterfiend> firefux: yeah, but prereleases were out, and since matz designed 1.9 he knew what was going to be in it :)
Qfwfq has joined #ruby-lang
Qfwfq has quit [Changing host]
Qfwfq has joined #ruby-lang
tomzx_mac has joined #ruby-lang
workmad3 has quit [Ping timeout: 260 seconds]
<firefux> banisterfiend: ok, so I maybe just missing sombe library stuff?
<firefux> s/I//
<banisterfiend> firefux: well it covered 1.9.1 which has a few differences to 1.9.2/1.9.3, but most of the major changes are tehre
carloslopes has quit [Ping timeout: 260 seconds]
<banisterfiend> firefux: i still use it, anyway :)
<firefux> banisterfiend: ok cool, I'll grap the ebook
<firefux> grab
Qfwfq has quit [Ping timeout: 255 seconds]
Qfwfq has joined #ruby-lang
<rking> When I first read that, I thought it was a typo for 'grep', and I thought that was pretty cool.
<rking> grepping any binary thing is a bold move.
intellitech has quit [Quit: intellitech]
goatish_mound has joined #ruby-lang
gregmoreno has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
dhruvasagar has joined #ruby-lang
Qfwfq has quit [Ping timeout: 255 seconds]
Qfwfq has joined #ruby-lang
vlad_starkov has joined #ruby-lang
Kevin has joined #ruby-lang
zanegray has joined #ruby-lang
xcombelle has joined #ruby-lang
Kevin is now known as Guest56426
<firefux> rking: ;)
setmeaway has quit [Ping timeout: 252 seconds]
tsou_ has quit [Quit: leaving]
kevinfagan has quit [Ping timeout: 252 seconds]
rippa has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
gregmoreno has quit [Remote host closed the connection]
schaerli has joined #ruby-lang
zanegray has left #ruby-lang [#ruby-lang]
dhruvasagar has quit [Ping timeout: 246 seconds]
wmoxam has quit [Ping timeout: 260 seconds]
kurko__ has joined #ruby-lang
slaytanic has quit [Ping timeout: 246 seconds]
maxmanders has quit [Ping timeout: 246 seconds]
solars has quit [Ping timeout: 264 seconds]
maxmanders has joined #ruby-lang
dhruvasagar has joined #ruby-lang
glebm has joined #ruby-lang
Qfwfq has quit [Ping timeout: 255 seconds]
Qfwfq has joined #ruby-lang
Qfwfq has joined #ruby-lang
Qfwfq has quit [Changing host]
Mon_Ouie has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
maxmanders has quit [Ping timeout: 255 seconds]
maxmanders has joined #ruby-lang
tbuehlmann has quit [Remote host closed the connection]
iamjarvo has quit [Quit: Leaving.]
bzalasky has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
sush24_ has joined #ruby-lang
sush24 has quit [Ping timeout: 264 seconds]
srbaker has joined #ruby-lang
breakingthings has joined #ruby-lang
klebervi_ has quit [Remote host closed the connection]
klebervirgilio has joined #ruby-lang
solars has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
Mon_Ouie has quit [Ping timeout: 260 seconds]
klebervirgilio has quit [Ping timeout: 260 seconds]
srbaker has quit [Quit: Computer has gone to sleep.]
io_syl has joined #ruby-lang
Mon_Ouie has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
MaddinXx has joined #ruby-lang
kurko__ has quit [Quit: Computer has gone to sleep.]
workmad3 has joined #ruby-lang
s1n4 has joined #ruby-lang
io_syl_ has joined #ruby-lang
s1n4 has quit [Client Quit]
d3vic3 has joined #ruby-lang
io_syl has quit [Ping timeout: 245 seconds]
io_syl_ is now known as io_syl
workmad3 has quit [Ping timeout: 245 seconds]
Qfwfq has quit [Ping timeout: 255 seconds]
slaytanic has joined #ruby-lang
Qfwfq has joined #ruby-lang
Qfwfq has joined #ruby-lang
Qfwfq has quit [Changing host]
kogent has quit [Quit: kogent]
wallerdev has joined #ruby-lang
wallerdev has quit [Client Quit]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
sush24_ has quit [Quit: This computer has gone to sleep]
Guest56426 has quit [Quit: Leaving...]
<zzak> banisterfiend: what is pry's deal on 2.0?
d3vic3 has quit [Quit: leaving]
<banisterfiend> zzak: it works, i addded support for refinements, and also updated binding_of_caller to use the new apis (https://github.com/banister/debug_inspector)
<banisterfiend> :)
<zzak> sweet
<banisterfiend> zzak: y?
<zzak> but why doesn't show-method work on source?
havenwood has joined #ruby-lang
<banisterfiend> zzak: on what source? ruby or c?
<banisterfiend> it should def. work on ruby source
<zzak> show-method Module#prepend
<banisterfiend> C source i haven't tested yet, but we need to update our C source database
<banisterfiend> zzak: yeah, our C source database is pretty out of date:)
<zzak> ahh
<zzak> i tried installing the gem on trunk and saw that
faustroll has joined #ruby-lang
faustroll has quit [Quit: Lost terminal]
<banisterfiend> zzak: prepend actually gives us some problems, http://bugs.ruby-lang.org/issues/7836
<banisterfiend> it would be cool if Method and UnboundMethod were more powerful
kith has quit [Read error: Connection reset by peer]
krohrbaugh has joined #ruby-lang
ottbot has quit [Ping timeout: 256 seconds]
riffraff has quit [Quit: Leaving]
krz has joined #ruby-lang
<zzak> did nobu's commit fix it?
kith has joined #ruby-lang
<banisterfiend> zzak: potentially, but i haven't made adjustments to our codebase to take that into account (im also not sure how reliable that is as marc reopened it and assigned matz)
iamjarvo has joined #ruby-lang
<banisterfiend> zzak: and even with nobu's changes klass.instance_methods(false) is no longer guaranteed to return just the methods defined on that class
<banisterfiend> so you have to do a test to check that the owner of the method is the same as the klass
<banisterfiend> which is doable but a bit annoying
<zzak> just an extra step
<zzak> klass.instance_methods(false) - klass.class.instance_methods?
<zzak> haha
justinram has joined #ruby-lang
<banisterfiend> that's true, but it was a fairly deep rooted assumption in the pry codebase that instance_methods(false) returns the methods strictly for that class, but it's not that hard to fix i guess
voker57_ has left #ruby-lang [#ruby-lang]
<zzak> i wish i had a better suggestion
workmad3 has joined #ruby-lang
<zzak> you might be able to get a bug fix in the next patch level release of 2.0
faustroll has joined #ruby-lang
cored has quit [Ping timeout: 255 seconds]
brianpWins has joined #ruby-lang
faustroll has left #ruby-lang [#ruby-lang]
cored has joined #ruby-lang
cored has quit [Changing host]
cored has joined #ruby-lang
Qfwfq has quit [Ping timeout: 255 seconds]
banisterfiend has quit [Read error: Connection reset by peer]
Qfwfq has joined #ruby-lang
kristofferrr has joined #ruby-lang
dblack_ has joined #ruby-lang
workmad3 has quit [Ping timeout: 260 seconds]
stonerfish has quit [Quit: Leaving.]
wmoxam has joined #ruby-lang
slyphon has joined #ruby-lang
twintail1 has joined #ruby-lang
twintail has quit [Ping timeout: 248 seconds]
d3vic3 has joined #ruby-lang
wallerdev has joined #ruby-lang
swav has quit [Remote host closed the connection]
kevinfagan has joined #ruby-lang
kristofferrr has quit [Quit: ❤]
brianpWins has quit [Quit: brianpWins]
Qwak has joined #ruby-lang
brianpWins has joined #ruby-lang
brianpWins has quit [Client Quit]
Qwak has quit [Ping timeout: 260 seconds]
countdig1 has joined #ruby-lang
countdigi has quit [Quit: leaving]
glebm has joined #ruby-lang
Stilo has joined #ruby-lang
Aria has joined #ruby-lang
kevinfagan has quit [Quit: Leaving...]
mytrile has quit [Remote host closed the connection]
intellitech has joined #ruby-lang
Nisstyre-laptop has joined #ruby-lang
reactormonk has joined #ruby-lang
dyln has joined #ruby-lang
kevinfagan has joined #ruby-lang
ottbot has joined #ruby-lang
spacesuit has joined #ruby-lang
d3vic3_ has joined #ruby-lang
dyln has quit [Remote host closed the connection]
<apeiros_> zzak: ping
<apeiros_> doc improvements incoming! :)
<zzak> woot
<apeiros_> Object#send, #instance_variable_* and other friends don't document that they accept strings
d3vic3 has quit [Ping timeout: 276 seconds]
<apeiros_> do you want to add that? or should I provide you with gists? or should I just fork ruby/ruby?
<zzak> apeiros_: if you want to work on them sure, gist or fork & patch, either works
<apeiros_> what's the most convenient for you?
<zzak> a commit on your fork
<zzak> i can get a patch that way
<apeiros_> kk
* apeiros_ forks
pbjorklund has joined #ruby-lang
<zzak> git diff | gist
<zzak> works too
<zzak> im not picky
<apeiros_> zzak++
pbjorklund has quit [Client Quit]
<zzak> apeiros_: thanks for working on this
<injekt> zzak: <3
<apeiros_> zzak: do you remember the style used for multiple possible argument types?
tdy has left #ruby-lang ["WeeChat 0.4.0"]
* apeiros_ is yardified and forgot all rdoc style guides…
<zzak> use call-seq
pbjorklund has joined #ruby-lang
<apeiros_> zzak: ah, that list is good. didn't find my issue, though
<apeiros_> wait, I'll illustrate it
zastern has joined #ruby-lang
slyphon has quit [Quit: slyphon]
Qfwfq has quit [Ping timeout: 255 seconds]
Qfwfq has joined #ruby-lang
<apeiros_> of course, Object#send is in vm_eval.c, not in object.c, how could I not know that…
<zzak> hah
<zzak> the rest should be in vm_method
RickHull has joined #ruby-lang
<apeiros_> zzak: http://pastie.org/6323624
<apeiros_> zzak: well, pry's `$ Object#send` to the rescue
tdy_ has joined #ruby-lang
beho has quit [Remote host closed the connection]
<zzak> apeiros_: the way you have it is fine
goatish_mound has quit [Quit: Computer has gone to sleep.]
<apeiros_> ok
* apeiros_ works
<zzak> line up the "-> obj"'s for bonus points
lsegal has joined #ruby-lang
tdy_ has quit [Client Quit]
<apeiros_> sublime to the rescue, achievment unlocked, auto-aligned
tdy_ has joined #ruby-lang
<zzak> flawless victory
<apeiros_> d'oh, autoalignment actually doesn't work for that. block edit did.
iamjarvo has quit [Quit: Leaving.]
<zzak> dont worry too much about style, i will check it before i commit
<apeiros_> commit message style relevant?
<apeiros_> seems '* <file>: <change>'
<zzak> i will do the changelog :)
<apeiros_> aaah, damn
workmad3 has joined #ruby-lang
<apeiros_> call-seq part got accidentally deindented (that was the autoalign, and I missed it when reverting the autoalign)
<zzak> :D
<apeiros_> wait…
Qfwfq has quit [Ping timeout: 255 seconds]
Qfwfq has joined #ruby-lang
Qfwfq has joined #ruby-lang
Qfwfq has quit [Changing host]
kevinfagan has quit [Quit: Leaving...]
swav has joined #ruby-lang
slyphon has joined #ruby-lang
krz has quit [Quit: krz]
dhruvasagar has quit [Read error: Operation timed out]
davidbalber|away is now known as davidbalbert
krz has joined #ruby-lang
swav has quit [Ping timeout: 260 seconds]
<apeiros_> *sob*, ok, this goes to show that I never use git for anything advanced… I fail to delete a commit on the remote
<yxhuvud> why are you trying to do that and what rights do you have on that remote?
<apeiros_> it's mine
<apeiros_> nobody cloned it
<badeball> apeiros_: 1) create a new commit which fixes your indenting 2) squash the two commits, creating one true commit (use git rebase -i HEAD~2) 3) push force it to github and show it to zzak (git push -f)
<apeiros_> badeball: that sounds like a workable solution. I know how to squash branches - how do I squash commits?
d3vic3_ has quit [Quit: leaving]
<badeball> git rebase -i HEAD~2 will give you an interactive (sort of) interface, enabling you to work with the two last commits.
<badeball> it really just opens a text editor, in which you create replace 'pick' with 'squash' and save it
<badeball> s/create//
<yxhuvud> how is it sort of interactive? it uses what you have in EDITOR variable.
<yxhuvud> You can also edit commits that way btw
dzhulk has quit [Quit: Leaving.]
<zzak> or i can just fix the indenting :)
<apeiros_> zzak: sure, or I could learn a thing doing this ;-)
<zzak> do it!
<badeball> yxhuvud: I don't know, just felt kind wierd calling it an interactive interface, but I guess in that case that the parentheses should have been after 'interface'
<badeball> one does indeed interact with it, so the interactive description is appropriate
<apeiros_> odd… tiny commits, yet rebasing seems to take forever
<apeiros_> oh, d'oh
<apeiros_> it opened a new editor for the commit message
<badeball> yup, you get to edit that as well
<yxhuvud> badeball: unless EDITOR is set to rm or something silly :)
<apeiros_> badeball: in that case, git commit --amend would have done too, no?
<apeiros_> my mistake was the missing -f when I pushed?
<apeiros_> I'll do as many as I remember and then ping you
krz has quit [Quit: krz]
<zzak> apeiros_: woot, thanks!
spacesuit has quit []
dzhulk has joined #ruby-lang
<badeball> apeiros_: yeah, if rebasing did not also offer you to change the commit message after squashing two commits, you could have done ammend.
<apeiros_> badeball: amend allows you to change the commit message too
Skitsu`work has quit [Remote host closed the connection]
* apeiros_ even has a shortcut for it
<apeiros_> (since I just all too often notice in the last moment that I forgot something in a commit)
<zzak> for something small like that i usually reset, recommit and push -f
<apeiros_> `gm message` is `git commit -m message`, and `gam message` is `git commit --amend -m message`. so I usually just have to arrow-up, ctrl-a, insert that a, change the commit msg if necessary and done :)
workmad3 has quit [Ping timeout: 264 seconds]
<zzak> apeiros_: this helps too
<zzak> so no matter how many commits it takes
<apeiros_> ^^
<zzak> we have docs to explain how to git format-patch, etc
<zzak> but personally its way easier to just use github
<zzak> 99% percent of doc patches will work just fine
<apeiros_> yeah, I hope they'll adopt git as the main repo soon
<apeiros_> it's still svn synced to git, no?
<zzak> there's a mirror
<zzak> but we dont commit directly to github
mistym has quit [Read error: Connection reset by peer]
havenwood has quit [Remote host closed the connection]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
torrieri has quit [Quit: Linkinus - http://linkinus.com]
slyphon has quit [Quit: slyphon]
davidbalbert is now known as davidbalber|away
zanegray has joined #ruby-lang
MaddinXx has quit [Remote host closed the connection]
<whitequark> there was some guy who hated git in the core team...
<apeiros_> did he also hate svn?
iamjarvo has joined #ruby-lang
<whitequark> apeiros_: guess not
xcombelle has quit [Remote host closed the connection]
<apeiros_> curious about the source of his hate then
<apeiros_> well, doesn't matter that much
Qwak has joined #ruby-lang
<whitequark> there is plenty of people who hate git
<apeiros_> I can understand preferring other vcs', but hate?
<apeiros_> unless you're forced to use it against your will…
davidbalber|away is now known as davidbalbert
ottbot has quit [Ping timeout: 246 seconds]
lcdhoffman has quit [Quit: lcdhoffman]
havenwood has joined #ruby-lang
eljojo has joined #ruby-lang
workmad3 has joined #ruby-lang
MaddinXx has joined #ruby-lang
mistym has quit [Remote host closed the connection]
gregmoreno has joined #ruby-lang
<eljojo> Hi, is ruby 2.0 going to be finally released tomorrow?
gregmoreno has quit [Ping timeout: 245 seconds]
g0bl1n has joined #ruby-lang
solars has quit [Ping timeout: 260 seconds]
Stilo has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros_> zzak: do you want 1 commit with all changes, or ~20, one for each method?
<MrWGW-> is ruby-fifo in the standard lib or do I need to install it with a gem?
<apeiros_> ruby-fifo is not stdlib
<zzak> apeiros_: i'd prefer one change per commit
<apeiros_> zzak: ok. changes are done. preparing commits now. will ping you when pushed :)
<zzak> apeiros_: awesome!
gearaholic has joined #ruby-lang
iamjarvo has quit [Quit: Leaving.]
maxmanders has quit [Ping timeout: 252 seconds]
maxmanders has joined #ruby-lang
thufir_ has joined #ruby-lang
<apeiros_> *burp*
<apeiros_> badeball: do you happen to know an easy way to rewrite git commit messages of older commits?
<bougyman> git rebase --interactive can do so pretty easily
<badeball> apeiros_: yeah, you can do git rebase -i HEAD~<n-th commit behind> and replace 'pick' with 'reword'
<apeiros_> hm
<bougyman> right.
<apeiros_> thanks @ bougyman & badeball
<apeiros_> badeball - german nick, yes?
<badeball> apeiros_: no, norwegian
<apeiros_> deja vu
<apeiros_> we had that discussion before?
<badeball> possibly. I know it's been mentioned before
<Aria> Just don't do it past a merge point, apeiros_, bougyman, badeball.
<apeiros_> oooh, hey Aria!
<Aria> You lose the merge info, since rebase doesn't preserve that.
<Aria> Heya ;-)
<apeiros_> haven't seen you in a long time! where have you been? :)
<Aria> Been busy. In PHP(gak) and node.js (yay) land.
<apeiros_> great to have you back then :)
<Aria> How's things here?
<yxhuvud> not rebasing past a merge is something one will learn not to the the hard way pretty fast though. thankfully there is always git rebase --abort and git reset --hard to get back to a good place
gearaholic has quit [Remote host closed the connection]
<Aria> Indeed.
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Aria> I really wish someone would implement that in git.
<Aria> It's not that hard.
<yxhuvud> I suppose rerere might help if you find yourself doing it often though.
<Aria> Indeed, that too. But that's just resolving the conflicts, not preserving the merge history.
shtirlic has joined #ruby-lang
<canton7> there's rebase --preserve-merges
<canton7> (if you hadn't come across that)
slaytanic has quit [Quit: mmmb0p.]
<Aria> Yeah. But you can't mix that with --interactive.
<canton7> yes you can
<Aria> Well, yeah, you can. Just gotta be careful and understand just what it's doing.
<canton7> you can't re-order commits 100% of the time
<Aria> Yeah.
<Aria> (I wish someone would plumb the edge cases and explain them well in error messages)
workmad3 has quit [Ping timeout: 264 seconds]
shtirlic_ has joined #ruby-lang
agile has quit [Remote host closed the connection]
dblack_ has quit [Quit: dblack_]
ottbot has joined #ruby-lang
dblack_ has joined #ruby-lang
dblack_ has quit [Client Quit]
shtirlic has quit []
<apeiros_> I hope I got them all :)
<apeiros_> zzak: btw., what's your twitter handle?
<zzak> apeiros_: :D
<zzak> apeiros_: _zzak on twitter
agile has joined #ruby-lang
<apeiros_> found you ;-)
<zzak> :D
<zzak> apeiros_: i'll try to review and commit your patches tonight
remi has quit [Ping timeout: 248 seconds]
<apeiros_> awesome. no hurry, though
shtirlic_ is now known as shtirlic
remi has joined #ruby-lang
lcdhoffman has joined #ruby-lang
<apeiros_> zzak: I'll try whether I can unearth all those secret ruby knowledge things and patch those docs too
<apeiros_> I think there's still a good dozen of them
<apeiros_> maybe some got fixed in the meantime…
* apeiros_ can't help to notice that he does ruby for quite a few years now
<zzak> it happens
s0ber_ has joined #ruby-lang
g0bl1n has quit [Quit: g0bl1n]
<zzak> just wish there wasn't still 15 hours of client work to do this weekend
Aria has quit [Remote host closed the connection]
carloslopes has joined #ruby-lang
<apeiros_> hah
s0ber has quit [Ping timeout: 252 seconds]
s0ber_ is now known as s0ber
<apeiros_> I wanted to do a bit of work this week-end too. even if not client work :-/
wmoxam has quit [Ping timeout: 264 seconds]
<zzak> need to convince them to let me commit to OSS on the clock ;)
* apeiros_ managed to do that
* apeiros_ still doesn't really use that :-S
tbuehlmann has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
<apeiros_> there's a couple of thousand lines of code in our company waiting to be open sourced…
<zzak> nice
<eljojo> all you guys eat is corn syrup with red color #3
<eljojo> jeez. please ignore that.
<whitequark> wat
eljojo has quit [Remote host closed the connection]
<apeiros_> must have been his cat running around on his keyboard…
davidbalbert is now known as davidbalber|away
lcdhoffman has quit [Quit: lcdhoffman]
Nisstyre-laptop has quit [Quit: Leaving]
Nisstyre-laptop has joined #ruby-lang
xalei has joined #ruby-lang
wmoxam has joined #ruby-lang
davidbalber|away is now known as davidbalbert
thufir_ has quit [Ping timeout: 255 seconds]
thufir_ has joined #ruby-lang
cirwin has joined #ruby-lang
blacktulip has quit [Remote host closed the connection]
wmoxam has quit [Ping timeout: 264 seconds]
Sinestro has joined #ruby-lang
sepp2k1 has joined #ruby-lang
sepp2k has quit [Ping timeout: 252 seconds]
cultureulterior has joined #ruby-lang
duderonomy has joined #ruby-lang
cultureulterior has quit [Quit: cultureulterior]
tbuehlmann has quit [Remote host closed the connection]
Qfwfq has quit [Ping timeout: 255 seconds]
Qfwfq has joined #ruby-lang
Qfwfq has joined #ruby-lang
Qfwfq has quit [Changing host]
tbuehlmann has joined #ruby-lang
bzalasky has joined #ruby-lang
AndChat- has joined #ruby-lang
ottbot has quit [Ping timeout: 252 seconds]
Banistergalaxy has quit [Ping timeout: 260 seconds]
<yianna> who here is familiar with using Ruby for social networks and can you share some resources?
<yianna> ambiguous i know but am currently working with tumblr and was curious who here has worked on what
Ex0artefact has joined #ruby-lang
<havenwood> yianna: Do you mean using their APIs with Ruby?
<yianna> yeah
eklarskov has joined #ruby-lang
<yianna> maybe i just need to learn how to search on git =\
solars has joined #ruby-lang
davidbalbert is now known as davidbalber|away
Ex0artefact has quit [Quit: Ex0artefact]
<whitequark> on github?
Qwak has quit [Ping timeout: 252 seconds]
carloslopes has joined #ruby-lang
<yianna> yeah
yianna is now known as ykk
carloslopes has quit [Ping timeout: 260 seconds]
eklarskov has quit [Ping timeout: 260 seconds]
davidbalber|away is now known as davidbalbert
justinseiter has joined #ruby-lang
vlad_starkov has joined #ruby-lang
dblack_ has joined #ruby-lang
duderonomy has quit [Quit: duderonomy]
wmoxam has joined #ruby-lang
dblack_ has quit [Client Quit]
vlad_starkov has quit [Read error: Connection reset by peer]
eklarskov has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
maxmanders has quit [Ping timeout: 252 seconds]
maxmanders has joined #ruby-lang
srbaker has joined #ruby-lang
ykk has quit [Remote host closed the connection]
dylan has joined #ruby-lang
tbuehlmann has quit [Ping timeout: 276 seconds]
zastern has quit [Remote host closed the connection]
dylan has left #ruby-lang [#ruby-lang]
gustavnils has quit [Quit: Textual IRC Client: www.textualapp.com]
ProfessorNim has joined #ruby-lang
itsmeduncan has joined #ruby-lang
wmoxam has quit [Ping timeout: 264 seconds]
ProfessorNim has quit [Client Quit]
ProfessorNim has joined #ruby-lang
iamjarvo has joined #ruby-lang
eklarskov has quit [Ping timeout: 252 seconds]
tonni has quit [Remote host closed the connection]
ProfessorNim has quit [Client Quit]
MaddinXx has quit [Remote host closed the connection]
<whitequark> ugh
* whitequark has just encountered a link_to_unless_current_page helper consisting of sixty one (61) line of ruby code
<whitequark> it was also totally unused in the entire codebase.
<apeiros_> noice!
<apeiros_> with a little bit of work, that surely can be expanded to 172 lines! :D
<whitequark> apeiros_: link_to_if_current_page? :D
<apeiros_> yes, your 61 line method
<apeiros_> but I think it's hard to get it any less used than unused in the entire codebase… that's a challenge
<apeiros_> actually… that'd be a funny easter egg. really horrible and convoluted - but entirely unused - code
<whitequark> EASTER EGG?!
<apeiros_> ^^
<apeiros_> the question is - how to trigger attention at a specific time
<whitequark> I've just shrank the codebase by a thousand or two lines or so just by iterating grep and backspace.
<whitequark> no failed specs, no features removed
<whitequark> WTF
toretore has quit [Quit: Leaving]
<whitequark> 15% of it was just idly sitting there doing nothing
<apeiros_> I wish removing code without failing specs was indicative of not having broken anything in our code (at work) :(