lib/preinstaller.rb in cocoapods-keys-1.0.2 vs lib/preinstaller.rb in cocoapods-keys-1.1.0
- old
+ new
@@ -9,10 +9,10 @@
require 'keyring_liberator'
require 'pod/command/keys/set'
options = @user_options || {}
current_dir = Dir.getwd
- project = options.fetch('project', CocoaPodsKeys::NameWhisperer.get_project_name)
+ project = options.fetch('project') { CocoaPodsKeys::NameWhisperer.get_project_name }
keyring = KeyringLiberator.get_keyring_named(project) || KeyringLiberator.get_keyring(current_dir)
keyring = CocoaPodsKeys::Keyring.new(project, current_dir, []) unless keyring
data = keyring.keychain_data