Rails-CMDB release 0.4.1

It’s been a while since I’ve managed to do a release of Rails-CMDB. This is mainly because I got stuck working parts of the test suite and I’ve been doing things that have kept me away from a computer.

However over the last few days I’ve managed to get an import integration story working, which seems to be working. I’ve also taken the chance to migrate to Ruby on Rails 1.2.5, but there are some DEPRECATION warnings still to dealt with.

Behind the cut is the changelog. Continue reading

It’s been a while…

It’s been a while since I posted and this is mainly because I’ve been very busy with work and also trying to cut back on computer use for the last month.
Currently I’m managing to hold back on the upgrade to Leopard, however this is because some really important software is missing support and thus preventing me upgrading :-(. I’m hoping that early December will give me the new shiny.

A couple of weeks ago I went to a talk at ScotRUG about StaticMatic and I’ve now ported my web site over to it from Website Meta Language. Now all that’s left is working round HAMLs handling of content within pre tags and updating the site so it looks like something created the in latter half of this decade instead of the late 90’s.

Testing import of CSV imports in Ruby on Rails

It’s been a few weeks since I did any work on Rails-CMDB. This is mainly down me being busy and getting stuck on how to test the import of data. I’ve come to the conclusion that it really is an integration story, so now the problem is how to do the file uploads.

It’ll not be hard to generate a complete set of CSV files and place them on disk, but my issue would be how to upload them. Does anyone have any useful suggestions ?

Rails-CMDB release 0.4

It’s taken a long time to get this release of Rails-CMDB ready for release, as I’ve done some tidying of the code base, plus adding lots of unit and functional tests. I’ve also improved the the views into the database and added the notation of Environments within Locations.

The source code can be found here. Not sure what is going to be in the next version, however I would like to get a public Subversion repository set up when I feel the testing good enough to catch any issues.

See below the cut for the (incomplete) change logs for version 0.4 (and the unreleased 0.3).

Continue reading

Testing Love and Ruby on Rails

For the last couple of weeks in some of my spare time I’ve being writing unit and functional tests for Rails-CMDB. So far it’s helped me spot a more than a few issues, the most surprising to me was the naming of my os controller, which the functional test tried to test as O. So currently I’m in the process of refactoring things to mesh better with the Rails idiom.

The main upshot of all of this; it’s likely to be early October before the next release of Rails-CMDB, and the version number is very likely to jump a few points due to unreleased versions.

I’m also contemplating what new features the next released version will have and so far I’m thinking of the following:

  • Environments: Separating out different types of devices within the same location (e.g. test, stage and production).
  • Virtual Machines: Modeling devices that are virtual and running as a guest on physical device.