fastlane_core 0.36.4 → 0.36.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e2c535c84cb619841394b78023c7cc4121bd03b
4
- data.tar.gz: 3985ca325cde24611e05c0213e88ff7ace61c7a5
3
+ metadata.gz: 2383e24e8444a32a27dd49cec19df4df01536c57
4
+ data.tar.gz: 6849b9a84f29195185a92f176f716716a0ed780d
5
5
  SHA512:
6
- metadata.gz: ddb2912bdc782cb80a30d5d74371bf7f0097326b61f9ebe234eec04439c8e050819bbdd8d9742c1551bf8a7641691c08c8227604ff96551c2d2341003d336718
7
- data.tar.gz: 79cb6475c69d1d75aeadb0f8eeaa399a19a215513dfcefaf0496b1cd6d571f1c6725e3f54667a43226d5223f114ef7558d59db4e441c7a8f2481d1e9c5718eea
6
+ metadata.gz: b75b3193c155c7dc02d44d8a5c4bd2a4a2c16852f7d358677724d1e78cb626cad80d565252471d666e3ac9b35d53b851c8d47cf5c17cef06215fb81d2cdf4639
7
+ data.tar.gz: c3555790db0696f0e01f35135b5c7eacf4be7ef335a8eea7be819a91d023503fd9f6ced5e127801a750fee6e120e3410203fb22785f8c16478dd8d0139578af6
@@ -18,7 +18,13 @@ module FastlaneCore
18
18
  # rubocop:enable Style/PredicateName
19
19
 
20
20
  def self.installed_identies
21
+ install_wwdr_certificate unless wwdr_certificate_installed?
22
+
21
23
  available = `security find-identity -v -p codesigning`
24
+ if available.include?("0 valid identities found")
25
+ UI.error("Looks like there are no local code signing identities found, you can run `security find-identity -v -p codesigning` to get this output. Check out this reply for more: https://stackoverflow.com/questions/35390072/this-certificate-has-an-invalid-issuer-apple-push-services")
26
+ end
27
+
22
28
  ids = []
23
29
  available.split("\n").each do |current|
24
30
  next if current.include? "REVOKED"
@@ -32,6 +38,21 @@ module FastlaneCore
32
38
  return ids
33
39
  end
34
40
 
41
+ def self.wwdr_certificate_installed?
42
+ certificate_name = "Apple Worldwide Developer Relations Certification Authority"
43
+ response = Helper.backticks("security find-certificate -c '#{certificate_name}'", print: $verbose)
44
+ return response.include?("attributes:")
45
+ end
46
+
47
+ def self.install_wwdr_certificate
48
+ Dir.chdir('/tmp') do
49
+ url = 'https://developer.apple.com/certificationauthority/AppleWWDRCA.cer'
50
+ filename = File.basename(url)
51
+ `curl -O #{url} && security import #{filename} -k login.keychain`
52
+ UI.user_error!("Could not install WWDR certificate") unless $?.success?
53
+ end
54
+ end
55
+
35
56
  def self.sha1_fingerprint(path)
36
57
  result = `openssl x509 -in "#{path}" -inform der -noout -sha1 -fingerprint`
37
58
  begin
@@ -41,10 +41,7 @@ module FastlaneCore
41
41
  # Use this to log more important things
42
42
  # The logs will be green automatically
43
43
  def self.log_alert(text)
44
- i = text.length + 8
45
- Helper.log.info(("-" * i).green)
46
- Helper.log.info("--- ".green + text.green + " ---".green)
47
- Helper.log.info(("-" * i).green)
44
+ UI.header(text)
48
45
  end
49
46
 
50
47
  # Runs a given command using backticks (`)
@@ -15,8 +15,8 @@ module FastlaneCore
15
15
  if workspace.count > 1
16
16
  puts "Select Workspace: "
17
17
  config[:workspace] = choose(*(workspace))
18
- else
19
- config[:workspace] = workspace.first # this will result in nil if no files were found
18
+ elsif !workspace.first.nil?
19
+ config[:workspace] = workspace.first
20
20
  end
21
21
  end
22
22
 
@@ -27,8 +27,8 @@ module FastlaneCore
27
27
  if project.count > 1
28
28
  puts "Select Project: "
29
29
  config[:project] = choose(*(project))
30
- else
31
- config[:project] = project.first # this will result in nil if no files were found
30
+ elsif !project.first.nil?
31
+ config[:project] = project.first
32
32
  end
33
33
  end
34
34
 
@@ -1,3 +1,3 @@
1
1
  module FastlaneCore
2
- VERSION = "0.36.4"
2
+ VERSION = "0.36.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.36.4
4
+ version: 0.36.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-12 00:00:00.000000000 Z
11
+ date: 2016-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json