fastlane 2.20.0.beta.20170307010029 → 2.20.0.beta.20170308010036

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: 5f780302f710c98d93acf8f1e24be30b026b5f51
4
- data.tar.gz: 6a26da3bf2910e3d8537713432f611d4ea40bb57
3
+ metadata.gz: f5b7e80afbf0a46363e022eb59db7e2cd0def9ce
4
+ data.tar.gz: 2f3f0ecd5fe834827b734315f04123246fc2edad
5
5
  SHA512:
6
- metadata.gz: e3ffb526529660f5df3b5e5939357cd6974b85b3e59b4fc1aac1753200e135fe8173d077b8819654c66186402ae0887fa3908fde7f649734d52b96c97731440b
7
- data.tar.gz: 094f78282731470ab21773527205331d726fdf87039429e159f4fa0a945761b7b9bfc23a1be1dfc2b4134dcb34459be7b06b94f340a67a51d2368c2f4b054f62
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/fastlane.zip">Download the zip file</a>. Then double click on the <code>install</code> script (or run it in a terminal window).</td>
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/fastlane.zip">Download the zip file</a>. Then double click on the <code>install</code> script (or run it in a terminal window).</td>
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
- if params[:name]
10
- keychain_path = File.expand_path(File.join("~", "Library", "Keychains", params[:name]))
11
- else
12
- keychain_path = params[:keychain_path]
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!("You either have to set :name or :path")
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/fastlane.zip\">Download the zip file</a>. Then double click on the <code>install</code> script (or run it in a terminal window).</td>"
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>"
@@ -1,4 +1,4 @@
1
1
  module Fastlane
2
- VERSION = '2.20.0.beta.20170307010029'.freeze
2
+ VERSION = '2.20.0.beta.20170308010036'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  end
@@ -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.write(tmp_path, zipfile.read(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/fastlane.zip">Download the zip file</a>. Then double click on the <code>install</code> script (or run it in a terminal window).</td>
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
 
@@ -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"
@@ -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 |a|
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 = a.certificates.map do |cert|
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.compact
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 |raw_cert|
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(raw_cert)
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 '#{a.name}' not available locally: #{cert.id}, skipping this one...")
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 && a.certificate_valid?
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.20170307010029
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-07 00:00:00.000000000 Z
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
- - spaceship/lib
1298
- - gym/lib
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
- - fastlane_core/lib
1306
- - pem/lib
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
  - - ">="