lib/name_whisperer.rb in cocoapods-keys-2.0.0 vs lib/name_whisperer.rb in cocoapods-keys-2.0.1
- old
+ new
@@ -23,10 +23,10 @@
ui = Pod::UserInterface
xcodeprojects = Pathname.glob('**/*.xcodeproj').reject { |path| path.to_s.start_with?('Pods/') }
if xcodeprojects.length == 1
Pathname(xcodeprojects.first).basename('.xcodeproj')
else
- error_message = (xcodeprojects.length > 1) ? 'found too many' : "couldn't find any"
+ error_message = xcodeprojects.length > 1 ? 'found too many' : "couldn't find any"
projects = xcodeprojects.map(&:basename).join(' ')
ui.puts 'CocoaPods-Keys ' + error_message + ' Xcode projects (' + projects + '). Please give a name for this project.'
answer = ''
loop do