MacRuby Keychain Wrapper is a wrapper for accessing keychain from MacRuby. Extracted from Gmail Notifr.
todo: more intro
Requirements:
- Mac OS X 10.6 (Snow Leopard) or higher
- MacRuby 0.8 (nightly build)
- BridgeSupport Preview 1
require 'keychain'
Create a new generic item
item = MRKeychain::GenericItem.add_item_for_service('GmailNotifr', username:'ashchan', password:'password')
Grab a generic item
existing_item = MRKeychain::GenericItem.item_for_service('GmailNotifr', username:'ashchan')
Update an item
existing_item.password = 'new_password'
Remove from keychain
existing_item.remove
Copyright (c) 2010 James Chen (@ashchan), released under the same terms as Ruby