Changes between Version 1 and Version 2 of RubyGems

Show
Ignore:
Timestamp:
01/04/08 17:46:29 (5 years ago)
Author:
guest
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RubyGems

    v1 v2  
    77== Gems == 
    88 
    9 Gems are like Cabal packages. There is a .gemspec file which corresponds to a .cabal file. A .gemspec file is actually Ruby source rather than a custom format, however it defines only a piece of structured data, not code. It is a collection of package metadata. A .gemspec file lives in the source directory of the project and can be built into a .gem file for distribution. I don't know the details of the .gem format but it sounds superficially similar to the .tar.gz files that Cabal/Hackage uses for distribution. 
     9Gems are like Cabal packages. There is a .gemspec file which corresponds to a .cabal file. A .gemspec file is actually Ruby source rather than a custom format, however it defines only a piece of structured data, not code. It is a collection of package metadata. A .gemspec file lives in the source directory of the project and can be built into a .gem file for distribution. 
     10 
     11".gem packages are a .tar file with a .tar.gz of contents and a .gz of metadata. The metadata is a Gem::Specification in YAML format 
     12The only place you see .rb Gem::Specification files is in the local repo and sometimes in the source" -- Eric Hodel 
     13 
    1014 
    1115Unlike Cabal packages, Gems require a certain directory layout. Cabal packages mostly follow the autoconf style, allowing different kinds of files to be put in various places, with one set of defaults for Unix (again like the autoconf defaults) and another set of defaults for Windows. Apparently the