README.md in spaceship-0.0.11 vs README.md in spaceship-0.0.13

- old
+ new

@@ -219,19 +219,20 @@ ### Repair all broken provisioning profiles ```ruby # Select all 'Invalid' or 'Expired' provisioning profiles broken_profiles = Spaceship.provisioning_profile.all.find_all do |profile| - (profile.status == "Invalid" or profile.status == "Expired") + # the below could be replaced with `!profile.valid?`, which takes longer but also verifies the code signing identity + (profile.status == "Invalid" or profile.status == "Expired") end # Iterate over all broken profiles and repair them broken_profiles.each do |profile| profile.repair! # yes, that's all you need to repair a profile end -# or to make the same thing, just more Ruby like: -Spaceship.provisioning_profile.all.find_all { |p| %w[Invalid Expired].include?p.status}.map(&:repair!) +# or to do the same thing, just more Ruby like +Spaceship.provisioning_profile.all.find_all { |p| !p.valid? }.map(&:repair!) ``` ## Devices ```ruby