./lib/shenzhen/plugins/itunesconnect.rb in shenzhen-0.10.3 vs ./lib/shenzhen/plugins/itunesconnect.rb in shenzhen-0.11.0

- old
+ new

@@ -15,11 +15,11 @@ @apple_id = apple_id @sdk = sdk @account = account @password = password @params = params - @filename = File.basename(@ipa) + @filename = File.basename(@ipa).tr(" ", "_") end def upload_build! size = File.size(@ipa) checksum = Digest::MD5.file(@ipa) @@ -103,10 +103,10 @@ apple_id = options.apple_id say_error "Missing Apple ID" and abort unless apple_id @password = options.password || ENV['ITUNES_CONNECT_PASSWORD'] - if @password ||= Security::GenericPassword.find(:s => Shenzhen::Plugins::ITunesConnect::ITUNES_CONNECT_SERVER, :a => @account) + if @password.nil? && @password = Security::GenericPassword.find(:s => Shenzhen::Plugins::ITunesConnect::ITUNES_CONNECT_SERVER, :a => @account) @password = @password.password say_ok "Found password in keychain for account: #{@account}" if options.verbose else determine_itunes_connect_password! unless @password say_error "Missing iTunes Connect password" and abort unless @password