fastlane 2.20.0.beta.20170307010029 → 2.20.0.beta.20170308010036
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/README.md +1 -1
- data/fastlane/README.md +1 -1
- data/fastlane/lib/fastlane/actions/delete_keychain.rb +10 -5
- data/fastlane/lib/fastlane/documentation/docs_generator.rb +1 -1
- data/fastlane/lib/fastlane/version.rb +1 -1
- data/fastlane_core/lib/fastlane_core/ipa_file_analyser.rb +4 -2
- data/match/README.md +4 -0
- data/match/lib/assets/MatchfileTemplate +1 -1
- data/match/lib/assets/READMETemplate.md +4 -1
- data/match/lib/match/commands_generator.rb +2 -2
- data/match/lib/match/setup.rb +1 -1
- data/sigh/lib/sigh/runner.rb +10 -8
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5b7e80afbf0a46363e022eb59db7e2cd0def9ce
|
4
|
+
data.tar.gz: 2f3f0ecd5fe834827b734315f04123246fc2edad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7340ea94173e66696f1cd6fb9efd3251214002f1deb665693f81a3bfc0a3dacbb368d2976d68bd809d6a57a0ab159b8f840e96d2e31ca82f220b8535ad4e7e47
|
7
|
+
data.tar.gz: 6f8dfbda7724098710a2f7c396592e3a89ad2a46cdba3ce1ff9dc7e17f52cf173bf6e295e7908bda1f34625345b54f4f3e07b8e6556e51376304b29afcfaa834
|
data/README.md
CHANGED
@@ -79,7 +79,7 @@ xcode-select --install
|
|
79
79
|
</tr>
|
80
80
|
<tr>
|
81
81
|
<td width="33%"><code>brew cask install fastlane</code></td>
|
82
|
-
<td width="33%"><a href="https://download.fastlane.tools/
|
82
|
+
<td width="33%"><a href="https://download.fastlane.tools/">Download the zip file</a>. Then double click on the <code>install</code> script (or run it in a terminal window).</td>
|
83
83
|
<td width="33%"><code>sudo gem install fastlane -NV</code></td>
|
84
84
|
</tr>
|
85
85
|
</table>
|
data/fastlane/README.md
CHANGED
@@ -119,7 +119,7 @@ xcode-select --install
|
|
119
119
|
</tr>
|
120
120
|
<tr>
|
121
121
|
<td width="33%"><code>brew cask install fastlane</code></td>
|
122
|
-
<td width="33%"><a href="https://download.fastlane.tools
|
122
|
+
<td width="33%"><a href="https://download.fastlane.tools">Download the zip file</a>. Then double click on the <code>install</code> script (or run it in a terminal window).</td>
|
123
123
|
<td width="33%"><code>sudo gem install fastlane -NV</code></td>
|
124
124
|
</tr>
|
125
125
|
</table>
|
@@ -6,14 +6,19 @@ module Fastlane
|
|
6
6
|
def self.run(params)
|
7
7
|
original = Actions.lane_context[Actions::SharedValues::ORIGINAL_DEFAULT_KEYCHAIN]
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
search_paths = []
|
10
|
+
search_paths << File.expand_path(params[:name]) if params[:name]
|
11
|
+
search_paths << File.expand_path(File.join("~", "Library", "Keychains", params[:name])) if params[:name]
|
12
|
+
search_paths << File.expand_path(params[:keychain_path]) if params[:keychain_path]
|
13
|
+
|
14
|
+
if search_paths.empty?
|
15
|
+
UI.user_error!("You either have to set :name or :keychain_path")
|
13
16
|
end
|
14
17
|
|
18
|
+
keychain_path = search_paths.find { |path| File.exist?(path) }
|
19
|
+
|
15
20
|
if keychain_path.nil?
|
16
|
-
UI.user_error!("
|
21
|
+
UI.user_error!("Unable to find the specified keychain. Looked in:\n\t" + search_paths.join("\n\t"))
|
17
22
|
end
|
18
23
|
|
19
24
|
Fastlane::Actions.sh("security default-keychain -s #{original}", log: false) unless original.nil?
|
@@ -29,7 +29,7 @@ module Fastlane
|
|
29
29
|
output << "</tr>"
|
30
30
|
output << "<tr>"
|
31
31
|
output << "<td width=\"33%\"><code>brew cask install fastlane</code></td>"
|
32
|
-
output << "<td width=\"33%\"><a href=\"https://download.fastlane.tools
|
32
|
+
output << "<td width=\"33%\"><a href=\"https://download.fastlane.tools\">Download the zip file</a>. Then double click on the <code>install</code> script (or run it in a terminal window).</td>"
|
33
33
|
output << "<td width=\"33%\"><code>sudo gem install fastlane -NV</code></td>"
|
34
34
|
output << "</tr>"
|
35
35
|
output << "</table>"
|
@@ -28,7 +28,7 @@ module FastlaneCore
|
|
28
28
|
|
29
29
|
def self.fetch_info_plist_file(path)
|
30
30
|
UI.user_error!("Could not find file at path '#{path}'") unless File.exist?(path)
|
31
|
-
Zip::File.open(path) do |zipfile|
|
31
|
+
Zip::File.open(path, "rb") do |zipfile|
|
32
32
|
file = zipfile.glob('**/Payload/*.app/Info.plist').first
|
33
33
|
return nil unless file
|
34
34
|
|
@@ -37,7 +37,9 @@ module FastlaneCore
|
|
37
37
|
Dir.mktmpdir("fastlane") do |tmp|
|
38
38
|
# The XML file has to be properly unpacked first
|
39
39
|
tmp_path = File.join(tmp, "Info.plist")
|
40
|
-
File.
|
40
|
+
File.open(tmp_path, 'wb') do |output|
|
41
|
+
output.write zipfile.read(file)
|
42
|
+
end
|
41
43
|
system("plutil -convert xml1 #{tmp_path}")
|
42
44
|
result = Plist.parse_xml(tmp_path)
|
43
45
|
|
data/match/README.md
CHANGED
@@ -250,6 +250,10 @@ match(git_url: "https://github.com/fastlane/fastlane/tree/master/certificates",
|
|
250
250
|
type: "adhoc",
|
251
251
|
app_identifier: "tools.fastlane.app")
|
252
252
|
|
253
|
+
match(git_url: "https://github.com/fastlane/fastlane/tree/master/certificates",
|
254
|
+
type: "enterprise",
|
255
|
+
app_identifier: "tools.fastlane.app")
|
256
|
+
|
253
257
|
# `match` should be called before building the app with `gym`
|
254
258
|
gym
|
255
259
|
...
|
@@ -1,6 +1,6 @@
|
|
1
1
|
git_url "[[GIT_URL]]"
|
2
2
|
|
3
|
-
type "development" # The default type, can be: appstore, adhoc or development
|
3
|
+
type "development" # The default type, can be: appstore, adhoc, enterprise or development
|
4
4
|
|
5
5
|
# app_identifier ["tools.fastlane.app", "tools.fastlane.app2"]
|
6
6
|
# username "user@fastlane.tools" # Your Apple Developer Portal username
|
@@ -29,7 +29,7 @@ xcode-select --install
|
|
29
29
|
</tr>
|
30
30
|
<tr>
|
31
31
|
<td width="33%"><code>brew cask install fastlane</code></td>
|
32
|
-
<td width="33%"><a href="https://download.fastlane.tools
|
32
|
+
<td width="33%"><a href="https://download.fastlane.tools">Download the zip file</a>. Then double click on the <code>install</code> script (or run it in a terminal window).</td>
|
33
33
|
<td width="33%"><code>sudo gem install fastlane -NV</code></td>
|
34
34
|
</tr>
|
35
35
|
</table>
|
@@ -47,6 +47,9 @@ fastlane match adhoc
|
|
47
47
|
```
|
48
48
|
fastlane match development
|
49
49
|
```
|
50
|
+
```
|
51
|
+
fastlane match enterprise
|
52
|
+
```
|
50
53
|
|
51
54
|
For more information open [fastlane match git repo](https://github.com/fastlane/fastlane/tree/master/match#readme)
|
52
55
|
|
@@ -31,7 +31,7 @@ module Match
|
|
31
31
|
|
32
32
|
c.action do |args, options|
|
33
33
|
if args.count > 0
|
34
|
-
FastlaneCore::UI.user_error!("Please run `fastlane match [type]`, allowed values: development, adhoc or appstore")
|
34
|
+
FastlaneCore::UI.user_error!("Please run `fastlane match [type]`, allowed values: development, adhoc, enterprise or appstore")
|
35
35
|
end
|
36
36
|
|
37
37
|
params = FastlaneCore::Configuration.create(Match::Options.available_options, options.__hash__)
|
@@ -106,7 +106,7 @@ module Match
|
|
106
106
|
c.syntax = "fastlane match nuke"
|
107
107
|
c.description = "Delete all certificates and provisioning profiles from the Apple Dev Portal"
|
108
108
|
c.action do |args, options|
|
109
|
-
FastlaneCore::UI.user_error!("Please run `fastlane match nuke [type], allowed values: distribution and development. For the 'adhoc' type, please use 'distribution' instead.")
|
109
|
+
FastlaneCore::UI.user_error!("Please run `fastlane match nuke [type], allowed values: distribution, enterprise and development. For the 'adhoc' type, please use 'distribution' instead.")
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
data/match/lib/match/setup.rb
CHANGED
@@ -11,7 +11,7 @@ module Match
|
|
11
11
|
File.write(path, template)
|
12
12
|
UI.success "Successfully created '#{path}'. You can open the file using a code editor."
|
13
13
|
|
14
|
-
UI.important "You can now run `fastlane match development`, `fastlane match adhoc` and `fastlane match appstore`"
|
14
|
+
UI.important "You can now run `fastlane match development`, `fastlane match adhoc`, `fastlane match enterprise` and `fastlane match appstore`"
|
15
15
|
UI.message "On the first run for each environment it will create the provisioning profiles and"
|
16
16
|
UI.message "certificates for you. From then on, it will automatically import the existing profiles."
|
17
17
|
UI.message "For more information visit https://github.com/fastlane/fastlane/tree/master/match"
|
data/sigh/lib/sigh/runner.rb
CHANGED
@@ -98,35 +98,37 @@ module Sigh
|
|
98
98
|
return results if Sigh.config[:skip_certificate_verification]
|
99
99
|
|
100
100
|
UI.message "Verifying certificates..."
|
101
|
-
return results.find_all do |
|
101
|
+
return results.find_all do |current_profile|
|
102
102
|
installed = false
|
103
103
|
|
104
104
|
# Attempts to download all certificats from this profile
|
105
105
|
# for checking if they are installed.
|
106
106
|
# `cert.download_raw` can fail if the user is a
|
107
107
|
# "member" and not an a "admin"
|
108
|
-
raw_certs =
|
108
|
+
raw_certs = current_profile.certificates.map do |cert|
|
109
109
|
begin
|
110
110
|
raw_cert = cert.download_raw
|
111
111
|
rescue => error
|
112
112
|
UI.important("Cannot download cert #{cert.id} - #{error.message}")
|
113
113
|
raw_cert = nil
|
114
114
|
end
|
115
|
-
raw_cert
|
116
|
-
end
|
115
|
+
{ downloaded: raw_cert, cert: cert }
|
116
|
+
end
|
117
117
|
|
118
118
|
# Makes sure we have the certificate installed on the local machine
|
119
|
-
raw_certs.each do |
|
119
|
+
raw_certs.each do |current_cert|
|
120
|
+
# Skip certificates that failed to download
|
121
|
+
next unless current_cert[:downloaded]
|
120
122
|
file = Tempfile.new('cert')
|
121
|
-
file.write(
|
123
|
+
file.write(current_cert[:downloaded])
|
122
124
|
file.close
|
123
125
|
if FastlaneCore::CertChecker.installed?(file.path)
|
124
126
|
installed = true
|
125
127
|
else
|
126
|
-
UI.message("Certificate for Provisioning Profile '#{
|
128
|
+
UI.message("Certificate for Provisioning Profile '#{current_profile.name}' not available locally: #{current_cert[:cert].id}, skipping this one...")
|
127
129
|
end
|
128
130
|
end
|
129
|
-
installed &&
|
131
|
+
installed && current_profile.certificate_valid?
|
130
132
|
end
|
131
133
|
end
|
132
134
|
|
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.20.0.beta.
|
4
|
+
version: 2.20.0.beta.20170308010036
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2017-03-
|
17
|
+
date: 2017-03-08 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: slack-notifier
|
@@ -1294,23 +1294,23 @@ metadata: {}
|
|
1294
1294
|
post_install_message:
|
1295
1295
|
rdoc_options: []
|
1296
1296
|
require_paths:
|
1297
|
-
-
|
1298
|
-
-
|
1299
|
-
- screengrab/lib
|
1300
|
-
- snapshot/lib
|
1301
|
-
- deliver/lib
|
1302
|
-
- frameit/lib
|
1297
|
+
- pem/lib
|
1298
|
+
- produce/lib
|
1303
1299
|
- fastlane/lib
|
1300
|
+
- deliver/lib
|
1304
1301
|
- cert/lib
|
1305
|
-
-
|
1306
|
-
-
|
1302
|
+
- scan/lib
|
1303
|
+
- supply/lib
|
1304
|
+
- screengrab/lib
|
1305
|
+
- gym/lib
|
1306
|
+
- frameit/lib
|
1307
1307
|
- credentials_manager/lib
|
1308
|
+
- fastlane_core/lib
|
1309
|
+
- snapshot/lib
|
1310
|
+
- spaceship/lib
|
1308
1311
|
- sigh/lib
|
1309
|
-
- pilot/lib
|
1310
|
-
- supply/lib
|
1311
|
-
- scan/lib
|
1312
|
-
- produce/lib
|
1313
1312
|
- match/lib
|
1313
|
+
- pilot/lib
|
1314
1314
|
required_ruby_version: !ruby/object:Gem::Requirement
|
1315
1315
|
requirements:
|
1316
1316
|
- - ">="
|