README.md in snapshot-0.4.5 vs README.md in snapshot-0.4.6

- old
+ new

@@ -195,10 +195,12 @@ to your test file. ```ruby js_file './path/file.js' ``` +You can add a custom script for iPads: `./path/file-iPad.js` and it will automatically be used if found. Just append the `-iPad` to your existing file. + ### Scheme To not be asked which scheme to use, just set it like this: ```ruby scheme "Name" ``` @@ -240,11 +242,14 @@ - Reset all user defaults - Pre-fill the database To run a shell script, just use ```system('./script.sh')```. ```ruby -setup_for_device_change do |device| - puts "Preparing device: #{device}" +setup_for_device_change do |device, udid| + puts "Preparing device: #{device} with udid #{udid}" + + # Completely reset the device before we start taking screenshots + system("xcrun simctl erase #{udid}") end setup_for_language_change do |lang, device| puts "Running #{lang} on #{device}" system("./popuplateDatabase.sh")