Hi,
we just released RuoteKit 2.1.7 which includes various bug fixes and
improvements. The full list of changes may be obtained at the fabulous
GitHub: http://github.com/kennethkalmer/ruote-kit/compare/2.1.4.1...v2.1.7
Some notes should be given here:
* RuoteKit now requires Bundler 0.9.5 or higher
* interacting with Ruote::StorageParticipant has been simplified, you
may now call RuoteKit.storage_participant and get an instance of the
StorageParticipant (it doesn't matter if you have configured the
catchall participant or not, the storage participant is always present
when needed)
* you may configure RuoteKit to use a custom storage class now using
RuoteKit::Configuration#set_storage:
RuoteKit.configure do |config|
config.set_storage MyStorageClass, options
end
* RuoteKit.configure_catchall! has vanished (see next point)
* there is a new (and very simple) DSL for registering participants
within the configuration block:
RuoteKit.configure do |config|
config.register do
participant 'alice', MyParticipantClass
catchall # this registers a participant named '.+' using
# Ruote::StorageParticipant as participant class
# In fact,
# catchall(*args)
# is a shortcut for
# participant '.+', *args
# with args = [Ruote::StorageParticipant] as default
# when empty
# That way, you may configure the catchall
# participant to your likings.
end
end
Note that the participants are registered just before the engine
starts and that config.register should only be called once -- only the
block given in the last call will get evaluated.
Also note that the catchall participant should be the last in the list
or it will eat other's cookies ;-)
I have updated ruote-on-rails (http://github.com/tosch/ruote-on-rails)
to reflect these changes. Basically, config/initializers/ruote_kit.rb
has to be updated.
Questions and comments are very welcome!
Yours,
Torsten
--
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en