Editing gems
Gawin Dapper vr 12 feb 10
There are those days when you would like to edit the gem that you are using.
Usually, the best way is just to checkout the gem at github or gemcutter, but if you want to edit a specific version, or just a quicklook this can become somewhat time consuming.
Instead of searching the web for the source, you could always just look at your gem locally. Mine are installed at:
/Library/Ruby/Gems/1.8/gems/
But, there is, off course, also a gem to edit gems!
gem install gemedit
And then you can just edit your executing a command like this:
gem edit gemname
Sinds a lot of developers use textmate :
gem edit devise -e mate
Or you could just add $GEMEDITOR to your profile. If you have $EDITOR already set, it will pickup that, or fall back to vi if no editor is specified.
Gepost in | 0 reacties
Welkom op Holland On Rails
Het startpunt voor Ruby On Rails in Nederland. Vind de laatste technieken, meningen en nieuwtjes.Recente Jobs
Gezocht: Ruby On Rails ontwikkelaar (junior of senior)
Eet, drink en droom jij over Ruby On Rails? Wil jij het liefste dag en nacht bezig zijn met jehobby; super coole webapplicaties ontwikkelen in Ruby On Rails?
Dan willen wij jou graag een podium bieden om je Ruby skills te vertonen aan onze nationale en internationale klanten!
@ Internetbureau Holder, Obdam
Bekijk alle jobs »»
Gereedschapskist
Onmisbare tools vooriedere developer!
- Ruby On Rails
Framework voor de web 2.0 developer. Eindelijk vooruitgang! - TextMate
Editor for true pro's
Typ, tab, top :-)
Nee, niet voor Win. - Made On A Mac
En nou is het over met die saaie grijze Windows bak van je!
Auteurs op deze site
Chris Obdam
'Less is more' evangelist, past dit ook dagelijks toe op zijn tandenborstel.Chiel Wester
Snelheidswonder op Ruby wielen. Leuk om mee te pair-programmen ;-)
Plaats je reactie