Assembla home | Assembla project page
 

We moved this project to Git and Assembla Integrated tickets.

Check this page for project tickets.
Check this page how to checkout sources from git repository.

Free Software

These are free software components that we have built or enhanced.

Client Digest Authentication for Ruby SOAP

This is a patch to add Client Digest Authentication for SOAP service. It requires soap4r and http-acces 2 gems. Digest Authentication is mainly use by Microsoft SOAP Services.

Get it here: http://tools.assembla.com/breakout/wiki/DigestForSoap

GUID / UUID for Rails ActiveRecord?

This plugin for ActiveRecord? makes the "ID" field into a URL-safe GUID

Get it from Subversion at http://tools.assembla.com/svn/breakout/breakout/vendor/plugins/guid

Or download the zip file

It is a mashup that includes

  • the UUID class from Bob Aman.
  • the plugin skeleton from Demetrius Nunes
  • the 22 character URL-safe format from Andy Singleton. You can get standard 36 char UUID formats instead
  • TODO: Auto-detect a character ID field and use a GUID in this case (DRY principle)

This library is free software; you can redistribute it and/or modify it under the terms of the MIT license.

TO USE

  • Install as a plugin in the rails directory vendor/plugin/guid
  • define ID as char(22)
  • call "usesguid" in ActiveRecord? class declaration, like
class Mymodel < ActiveRecord::Base
	usesguid			

if your ID field is not called "ID", call "usesguid :column =>'IdColumnName?' "

If you create your tables with migrations, you need to bypass the rails default primary key index. Do this:

create_table :mytable, :id => false do |t|
  t.column :id, :string, :limit => 22
  ... more fields
end      

execute "ALTER TABLE mytable ADD PRIMARY KEY (id)"

Attachments