The upcoming version 3 of Aptana has a new feature in it called "rubles". These are very similar to TextMate bundles in adding a scripting nature to the IDE. In an attempt to learn this new system, I have created a ruble for Drupal 7. The ruble is in it's early infancy. Right now it works for adding in core Drupal hooks. As I become more familiar with the system and Ruby, as well as Aptana finishing the features of rubles before the final release, I will be adding more features to it, including:
- Theme support
- Module and theme creation support
- FAPI and Menu support
I am releasing this under the GPL and hosting the project on GitHub:
The actual plugin creation was all automated through a very crude PHP script I wrote to parse *.api.php files and generate the needed .rb files. I'll be adding this parser to the repository as soon as I do some clean up on it. The parser also means we can easily add hooks in for other modules out there, like Views or OG. A Drupal 6 version can also be made with minimal trouble.
If anyone wants to join in the development of this ruble, please (please) do so. I've been using NetBeans for the past 3 years and with the non-support of the NetBeans/Drupal plugin (and my sever lack of knowledge when it comes to Java), I decided it was time to look at another IDE that I could easily develop something for. I would really like to see this ruble grow into something that can really streamline the development process for Drupal. That's why I would like to make this a group project where we can get all the best ideas incorporated.
One thing I should note. The ruble will determine the module name by traversing up the directory tree, looking for the .info file. Once it finds that, it will replace hook_ with the actual module name. If you try to do a hook outside of a module tree then it will name the function with the hook_ prefix.