<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.]
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
<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]
<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.
<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>
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
<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…
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 :)
<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]