I have created a very simple script to automate the process of building and installing gems. It is very easy to use and makes it easy to test code prior to deployment to a gem server.
This file should require little or no customization.
This file will require almost every field to be changed, depending on your project, dependencies, etc.
This file needs to have your project's current version in it. This controls the version in the GemSpec file.
Basically, when you create a gem, it will have a file layout similar to the following:
To install the gem, simply run sudo rake install_gem from the build directory:
This will, along with installing the gem, produce a working gem and gemspec file in the root directory. In this case, utopia-0.9.14.gem and utopia.gemspec. These can be used for automatic build and deployment tasks via a git post-commit hook, for example. My server automatically compiles and installs the latest gem using this process.
Leave a comment
Please note, comments must be formatted using Markdown. Links can be enclosed in angle brackets, e.g. <www.codeotaku.com>.