README.md in israkel-0.1.0 vs README.md in israkel-0.1.1

- old
+ new

@@ -7,28 +7,29 @@ * Change the language of the iPhone Simulator * Reset the iPhone Simulator * Start the iPhone Simulator * Stop the iPhone Simulator +Some of them are stolen from [RestKit](https://github.com/RestKit/RestKit). + ## Example Usage You will need to install the gem: gem install israkel -and then require the gem in your projects rake file +and then your `Rakefile` in your project might look like: require 'israkel' - -and finally load the rake tasks - ISRakel::Tasks.new +That's it. After that you can just run `rake -T` to list the available tasks. + You can also change the default prefix `simulator`: - ISRakel::Tasks.new do |r| - r.name = 'ios' + ISRakel::Tasks.new do |i| + i.name = 'ios' end ## Edit (global) Preferences There are binary plist files that you can edit with your custom rake @@ -36,18 +37,16 @@ i = ISRakel::Tasks.new desc "Change keyboard preferences" task :set_keyboard_preferences do i.edit_preferences do |p| - puts p p.merge!({ :KeyboardAutocapitalization => false, :KeyboardAutocorrection => false, :KeyboardCapsLock => false, :KeyboardCheckSpelling => false, :KeyboardPeriodShortcut => false, }) - puts p end end There's a second method called `edit_global_preferences` which works the same, just edits a different file.