The naming for gems is username-gemname (as found in the gemspec) and
is not tied at all to the name of the repo.

The versioning of gems seems to be that there will be one gem per
version number in the gemspec.  So if you bump the version number at
all it will generate and host a new gem.  Keeping the version number
the same, while changeing something else in the project/gemspec will
force creation of a gem replacing any older gem with the same ver
number.

The hard part with the gemspec is that you cannot use the Dir.glob()
tricks to fill out the list of files in the gemspec.  You need to
either manually maintain them (impossible on rails scale) or generate
the gemspec entirely.

The merb team seems to have checked in some code to generate their
gemspec for hosting their gems on GitHub.  You might want to check it
out as a starting point for doing the same for rails.

This code:

http://github.com/wycats/merb-core/commit/7d14e7e28be657c9a1a6b4f0730dd4f6d2f7031b

generates:

http://github.com/wycats/merb-core/commit/b2ffd00832890a37793691854149893eccf0cc31

Cheers

G

On Apr 27, 6:40 am, "Chad Woolley" <[EMAIL PROTECTED]> wrote:
> On Sat, Apr 26, 2008 at 6:20 PM, Joshua Peek <[EMAIL PROTECTED]> wrote:
>

> On GitHub, the question is if they are going to support multiple gems
> per project, and if so, how.  The approach that makes sense to me
> would be to generate gems for any gemspec that is found in the
> project.

> The only problem then would be how to name the gems.  Currently I
> think it is <user>-<repo> for the gem name, or something.  This would
> have to be modified to take the gem name from the specification
> somehow, or maybe from the containing directory?
>
> -- Chad
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to