[Rubygems-developers] FYI: I'm working on the orthogonal
interface I mentioned
chad at chadfowler.com
Sat Mar 20 22:43:48 EST 2004
On Saturday, March 20, 2004, at 09:26 PM, Gavin Sinclair wrote:
> On Sunday, March 21, 2004, 10:40:44 AM, Gavin wrote:
>> In the message "Modified usage information, and several suggestions",
>> I outlined a more orthogonal and holistic approach to local and remote
> And here is the code. (See attached.)
> This is in an alpha state. I'm just submitting it for usability
> comments, etc. The code's pretty clean, but there are lots of TODOs
> scattered around. I'll certainly submit an improved version in
> future, but I've run out of time for this weekend, so see what you
> think! The file is called gem.new, so just drop it in the
> rubygems/bin directory and run install.rb. Start off with 'gem.new
> To help you understand the code, this is how I've arranged it.
> - represents command-line options
> - attributes: operation, argument, domain, force, (other modifiers)
> - methods: valid?, local?, remote?
> - implements all operations
> - takes account of options specified
> - methods: install, build, search, etc.
> - parses command-line
> - defers to RubyGemsFacade
> - methods: run
> The code is longer now, but hopefully easier to tailor in the future.
See my previous post about my capability to pay attention to detail
right now, but a quick glance shows this to be an obvious improvement
over what we had. bin/gem was in desperate need of a rewrite. Thanks
for the effort.
More information about the Rubygems-developers