Release: RubyFedora/ActiveFedora Version 1.0.7

Optimizing access to Objects, datastreams, and metadata values.
Added by Matt Zumwalt 170 days ago

I've just posted Version 1.0.7 on RubyForge. This release includes updates to both RubyFedora and ActiveFedora, so make sure you're running version 1.0.7 of both gems.

To update, run
sudo gem update active-fedora

This will install the latest version of both gems.

See the version page for a complete list of Features and Bugs covered by this release.

Changes to ActiveFedora

This mainly contains optimizations to the way ActiveFedora accesses objects, their datastreams, and the metadata values. Thanks to Willy Mene for suggesting these fixes and for contributing ideas on how to clean up the code.

Changes to RubyFedora

As reflected in the Change Notes for RubyFedora, we've made the Fedora::FedoraObject class more efficient in accessing object properties from Fedora. This necessitated the following minor changes to the API. Update your code accordingly. (If you only rely on the ActiveFedora API, you don't need to change anything. This is just if your code operates directly on the inner RubyFedora objects)

object.state will be returned as single letters (ie. "A") rather than full terms (ie. "Active"). This is due to an inconsistency between the FOXML returned by objectXML method and the Object Profile XML returned by the profile method on Fedora's REST API

If you're using .profile, you no longer need to use .first to get the create_date and the modified_date. (ie. you can simply call object.profile[:create_date] rather than object.profile[:create_date].first )


Comments