P
Patrick Hurley
## SYNOPSIS:
Build your gem so that it can be deployed on machines without a build chain
Note this is not a hoe/sow or newgem competitor, but rather a simple
tool to take a gem (mongrel for example) that has one or more C
extensions and then generate a platform specific gem with the
extensions compiled into it. Many gems include such a build for win32
as few win32 users have build chains, but while most Unix development
systems have build chains (C compilers), many Unix production systems
do not. If you find yourself in this situation gembuilder can be a
real help.
This is the first proper public release (I screwed up a couple along
the way <grin>). It is easy to use, just grab the gem you want to
build and use the gembuilder command on it.
Example:
[~/code/tmp] ls -l
total 312
-rw-r--r-- 1 phurley phurley 159232 May 19 18:14 mongrel-1.0.1.gem
[~/code/tmp] gembuilder mongrel-1.0.1.gem
Unpacking mongrel-1.0.1.gem
building extension(s)
Building native extensions. This could take a while...
adjusting gemspec
building binary gem
Successfully built RubyGem
Name: mongrel
Version: 1.0.1
File: mongrel-1.0.1-i686-darwin8.9.1.gem
cleaning up
[~/code/tmp] ls -l
total 664
-rw-r--r-- 1 phurley wheel 177664 May 23 20:15
mongrel-1.0.1-i686-darwin8.9.1.gem
-rw-r--r-- 1 phurley phurley 159232 May 19 18:14 mongrel-1.0.1.gem
What could be simpler?
Thanks to all the great gems people have made,
pth
Build your gem so that it can be deployed on machines without a build chain
Note this is not a hoe/sow or newgem competitor, but rather a simple
tool to take a gem (mongrel for example) that has one or more C
extensions and then generate a platform specific gem with the
extensions compiled into it. Many gems include such a build for win32
as few win32 users have build chains, but while most Unix development
systems have build chains (C compilers), many Unix production systems
do not. If you find yourself in this situation gembuilder can be a
real help.
This is the first proper public release (I screwed up a couple along
the way <grin>). It is easy to use, just grab the gem you want to
build and use the gembuilder command on it.
Example:
[~/code/tmp] ls -l
total 312
-rw-r--r-- 1 phurley phurley 159232 May 19 18:14 mongrel-1.0.1.gem
[~/code/tmp] gembuilder mongrel-1.0.1.gem
Unpacking mongrel-1.0.1.gem
building extension(s)
Building native extensions. This could take a while...
adjusting gemspec
building binary gem
Successfully built RubyGem
Name: mongrel
Version: 1.0.1
File: mongrel-1.0.1-i686-darwin8.9.1.gem
cleaning up
[~/code/tmp] ls -l
total 664
-rw-r--r-- 1 phurley wheel 177664 May 23 20:15
mongrel-1.0.1-i686-darwin8.9.1.gem
-rw-r--r-- 1 phurley phurley 159232 May 19 18:14 mongrel-1.0.1.gem
What could be simpler?
Thanks to all the great gems people have made,
pth