Library for creating SAML identity assertions?

I see there are some Rails libraries for consuming SAML assertions, but are there any that help with the creation of assertions?