14
Jan

[ANN] ruby-wmi 0.2.2 Released

ruby-wmi version 0.2.2 has been released!

  • by Gordon Thiesfeld
  • http://ruby-wmi.rubyforge.org/
  • gthiesfeld@gmail.com

ruby-wmi is an ActiveRecord style interface for Microsoft’s Windows
Management Instrumentation provider.

Many of the methods in WMI::Base are borrowed directly, or with some
modification from ActiveRecord.
http://api.rubyonrails.org/classes/ActiveRecord/Base.html

The major tool in this library is the #find method. For more
information, see WMI::Base.

There is also a WMI.sublasses method included for reflection purposes.

Changes:

## 0.2.2 / 2008-01-11

* 1 major enhancement
* supports privileges

events = WMI::Win32_NTLogEvent.find(
:all,
:privileges => [WMI::Privilege::Security],
:conditions => {:logfile => ‘Security’, :eventcode => ‘517′} )

* minor enhancements
* added error handling for invalid queries and class name typos
* better documentation

  • by Gordon Thiesfeld
  • http://ruby-wmi.rubyforge.org/
  • gthiesfeld@gmail.com
08
Oct

A replacement for Pimki

I’m a big fan of Pimki, but I think it’s starting to show it’s age. Pimki is based on Instiki, which was built on top of ruby on rails, before it was even called rails. I think it’s time for something new, and I intend to write it. I’m sure this won’t set the world on fire. It’s not the sexiest project in the world, but I think as a learning exercise, it’s got a lot of potential. So, here is my plan to create Pimki’s replacement.

I’m going to use Merb, because it is ORM agnostic. Rails has a lot more bells and whistles, that would probably make writing this a heck of a lot easier for a guy like me. The problem is that Rails depends too heavily on ActiveRecord. My problem with ActiveRecord is that it expects a SQL database. I want this thing to be installed via gem, and i don’t want the user to have to install anything else.

Pimki uses Madeleine for object persistence, and while I don’t have anything against it, I’d like to use an RDBMS. I want to keep the structure as close to a normal crud app as possible. So I’m going to give KirbyBase a try. This will keep the database in ruby, so there is nothing extra for the user to install.

So, that’s what I know so far. I’ve got some other ideas for tasklists and such that I’ll probably write about at a later time, but I have to get something started first.

The first step is going to be to write a Merb ORM plugin for KirbyBase. The plugin will need to handle migrations, validations, and configuration, as well as model relationships.