fastlane 2.57.0.beta.20170914010003 → 2.57.0.beta.20170915010002

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db702c799597a0f6a10ba9f13327478538a74c71
4
- data.tar.gz: 6d5f422a6bf3d381f5aebe3ca47fbe937421704c
3
+ metadata.gz: 2edb706d1e63f871a9cde1ecd4689ba602c7b864
4
+ data.tar.gz: 71bf3395c7763ab06fbeacec59f2805b775722a4
5
5
  SHA512:
6
- metadata.gz: 2e66912cebab289f44df60998832ab5b5eb526810195c9a21700b5634c0bae459e173b52bd250aef44428cebbff7ba82635882c50420ed0cf9a24aff1b5f6029
7
- data.tar.gz: e3ff27b22b8ffd0d0c10f424d7b9e0ebbce9e4b7061ad8766bc92c9893923cda7eba44e245a4438485e7006cf312f2cac8642662e79c1b247a02b5fbf868d20d
6
+ metadata.gz: 9d2975ce22b2c3df0481a7875d1f32b48a4a8cdba20721103fa9271c291ed7264e4df09db6c5daaebe64d20a34da9e6b1338c16181a8be1852947196ed9032a0
7
+ data.tar.gz: 6961bb33ad1c6f3028a883096f3a01e1c3f2197221e97fc563ddf9a5e1604d12a6421d68d362e35f9b05eab1471371ff9f1c02f0a6fa30188e95a3831794065e
@@ -5,7 +5,7 @@ module Cert
5
5
  def launch
6
6
  run
7
7
 
8
- installed = FastlaneCore::CertChecker.installed?(ENV["CER_FILE_PATH"])
8
+ installed = FastlaneCore::CertChecker.installed?(ENV["CER_FILE_PATH"], Cert.config[:keychain_path], Cert.config[:keychain_password])
9
9
  UI.message "Verifying the certificate is properly installed locally..."
10
10
  UI.user_error!("Could not find the newly generated certificate installed", show_github_issues: true) unless installed
11
11
  UI.success "Successfully installed certificate #{ENV['CER_CERTIFICATE_ID']}"
@@ -3,7 +3,8 @@ module Fastlane
3
3
  class ResetSimulatorContentsAction < Action
4
4
  def self.run(params)
5
5
  if Helper.xcode_at_least?("9")
6
- UI.user_error!("resetting simulators currently doesn't work with Xcode 9, stay tuned as we are working to add support for all new tools.")
6
+ UI.important("Resetting simulators currently doesn't work with Xcode 9, stay tuned as we are working to add support for all new tools.")
7
+ return
7
8
  end
8
9
 
9
10
  if params[:ios]
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.57.0.beta.20170914010003'.freeze
2
+ VERSION = '2.57.0.beta.20170915010002'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  MINIMUM_XCODE_RELEASE = "7.0".freeze
5
5
  end
@@ -3,10 +3,10 @@ require 'tempfile'
3
3
  module FastlaneCore
4
4
  # This class checks if a specific certificate is installed on the current mac
5
5
  class CertChecker
6
- def self.installed?(path)
6
+ def self.installed?(path, keychain = nil, password = nil)
7
7
  UI.user_error!("Could not find file '#{path}'") unless File.exist?(path)
8
8
 
9
- ids = installed_identies
9
+ ids = installed_identies(keychain, password)
10
10
  finger_print = sha1_fingerprint(path)
11
11
 
12
12
  return ids.include? finger_print
@@ -17,10 +17,10 @@ module FastlaneCore
17
17
  installed?(path)
18
18
  end
19
19
 
20
- def self.installed_identies
20
+ def self.installed_identies(keychain, password)
21
21
  install_wwdr_certificate unless wwdr_certificate_installed?
22
22
 
23
- available = list_available_identities
23
+ available = list_available_identities(keychain, password)
24
24
  # Match for this text against word boundaries to avoid edge cases around multiples of 10 identities!
25
25
  if /\b0 valid identities found\b/ =~ available
26
26
  UI.error([
@@ -44,8 +44,13 @@ module FastlaneCore
44
44
  return ids
45
45
  end
46
46
 
47
- def self.list_available_identities
48
- `security find-identity -v -p codesigning`
47
+ def self.list_available_identities(keychain, password)
48
+ keychain = File.expand_path(keychain)
49
+ locked = keychain and !system("security show-keychain-info #{keychain} >/dev/null 2>/dev/null")
50
+ `security unlock -p #{password} #{keychain}` if locked
51
+ `security find-identity -v -p codesigning #{keychain}`
52
+ ensure
53
+ `security lock #{keychain}` if locked
49
54
  end
50
55
 
51
56
  def self.wwdr_certificate_installed?
@@ -34,8 +34,8 @@ module FastlaneCore
34
34
  private
35
35
 
36
36
  def copy_ipa(ipa_path)
37
- ipa_file_name = Digest::MD5.hexdigest(ipa_path)
38
- resulting_path = File.join(self.package_path, "#{ipa_file_name}.ipa")
37
+ ipa_file_name = "#{File.basename(ipa_path, '.ipa')}(#{Digest::SHA256.file(ipa_path).hexdigest}).ipa"
38
+ resulting_path = File.join(self.package_path, ipa_file_name)
39
39
  FileUtils.cp(ipa_path, resulting_path)
40
40
 
41
41
  return resulting_path
@@ -161,7 +161,7 @@ module Supply
161
161
 
162
162
  result = call_google_api { android_publisher.list_apks(current_package_name, current_edit.id) }
163
163
 
164
- return result.apks.map(&:version_code)
164
+ return Array(result.apks).map(&:version_code)
165
165
  end
166
166
 
167
167
  # Get a list of all apk listings (changelogs) - returns the list
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.57.0.beta.20170914010003
4
+ version: 2.57.0.beta.20170915010002
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2017-09-14 00:00:00.000000000 Z
18
+ date: 2017-09-15 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: slack-notifier