fastlane_core 0.36.4 → 0.36.5
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 +4 -4
- data/lib/fastlane_core/cert_checker.rb +21 -0
- data/lib/fastlane_core/helper.rb +1 -4
- data/lib/fastlane_core/project.rb +4 -4
- data/lib/fastlane_core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2383e24e8444a32a27dd49cec19df4df01536c57
|
4
|
+
data.tar.gz: 6849b9a84f29195185a92f176f716716a0ed780d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/fastlane_core/helper.rb
CHANGED
@@ -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
|
-
|
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
|
-
|
19
|
-
config[:workspace] = workspace.first
|
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
|
-
|
31
|
-
config[:project] = project.first
|
30
|
+
elsif !project.first.nil?
|
31
|
+
config[:project] = project.first
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
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
|
+
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-
|
11
|
+
date: 2016-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|