fastlane 2.57.2 → 2.58.0.beta.20170919010003

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: eff18ec2df85201fb07d168a8303af938118ba2e
4
- data.tar.gz: 8136610a7b43e7ed3b1fe4ab2174e806114fa3bc
3
+ metadata.gz: 062d1ebef3c070002849d24fadc7665693f5adf0
4
+ data.tar.gz: 731ede3f44e04f2b7c2f22a3fcfd132ad860d0f7
5
5
  SHA512:
6
- metadata.gz: c9d0e9634ff03d8e314630946ed3a24596eb6e3b3740c5859098e9675f22ab828646271ca0c34a972015395f2269b210456d37718c33f1ac8deec08f49622751
7
- data.tar.gz: fd3794fc550ca0c00ce13fd9665afd418c984194fee0939a2ed99a969a57dec4b59c64e30a650e0d72366e7e74c9c888f83279a56010a12da4e2b8090bfc11fb
6
+ metadata.gz: aa91a3786f1301d51c2bf9815151fae38c4bc2d0a39db93c2524e6305075d0fb0483125ac61653f43999b84942b73f9cb52c01c6814ac4ab7f3335ffc9970c1c
7
+ data.tar.gz: 63149c261201f11f14499902524e8ba28930705879b4c383917809fa66de609cac8e351729569f7f0b44875a01540cf76d83d45ca9d915b68bffef902955cb71
@@ -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']}"
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.57.2'.freeze
2
+ VERSION = '2.58.0.beta.20170919010003'.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,7 +34,7 @@ module FastlaneCore
34
34
  private
35
35
 
36
36
  def copy_ipa(ipa_path)
37
- ipa_file_name = "#{File.basename(ipa_path, '.ipa')}_#{Digest::SHA256.file(ipa_path).hexdigest}.ipa"
37
+ ipa_file_name = "#{File.basename(ipa_path, '.ipa')}(#{Digest::SHA256.file(ipa_path).hexdigest}).ipa"
38
38
  resulting_path = File.join(self.package_path, ipa_file_name)
39
39
  FileUtils.cp(ipa_path, resulting_path)
40
40
 
@@ -17,7 +17,6 @@ module Fastlane
17
17
  report.issues[0..(NUMBER_OF_ISSUES_INLINE - 1)].each { |issue| print_issue_full(issue) }
18
18
 
19
19
  if report.issues.count > NUMBER_OF_ISSUES_INLINE
20
- report.url.sub!('\'', '%27')
21
20
  puts "and #{report.total_results - NUMBER_OF_ISSUES_INLINE} more at: #{report.url}"
22
21
  puts ""
23
22
  end
@@ -88,7 +88,6 @@ module Snapshot
88
88
  'Apple TV 1080p' => 'Apple TV',
89
89
  'Apple TV 4K (at 1080p)' => 'Apple TV 4K (at 1080p)',
90
90
  'Apple TV 4K' => 'Apple TV 4K',
91
- 'Apple TV' => 'Apple TV',
92
91
  'Mac' => 'Mac'
93
92
  }
94
93
  end
@@ -55,17 +55,9 @@ module Snapshot
55
55
  end
56
56
  # Return true if all devices are iOS devices
57
57
  return true unless all_ios.include?(false)
58
-
59
- all_tvos = devices.map do |device|
60
- device = device.downcase
61
- device.start_with?('apple tv')
62
- end
63
- # Return true if all devices are iOS devices
64
- return true unless all_tvos.include?(false)
65
-
66
58
  # There should only be more than 1 device type if
67
- # it is iOS or tvOS, therefore, if there is more than 1
68
- # device in the array, and they are not all iOS or tvOS
59
+ # it is iOS, therefore, if there is more than 1
60
+ # device in the array, and they are not all iOS
69
61
  # as checked above, that would imply that this is a mixed bag
70
62
  return devices.count == 1
71
63
  end
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.2
4
+ version: 2.58.0.beta.20170919010003
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -828,8 +828,6 @@ files:
828
828
  - deliver/lib/deliver/upload_price_tier.rb
829
829
  - deliver/lib/deliver/upload_screenshots.rb
830
830
  - fastlane/README.md
831
- - fastlane/lib/.DS_Store
832
- - fastlane/lib/assets/.DS_Store
833
831
  - fastlane/lib/assets/ActionDetails.md.erb
834
832
  - fastlane/lib/assets/Actions.md.erb
835
833
  - fastlane/lib/assets/AppfileTemplate
@@ -1444,24 +1442,24 @@ metadata:
1444
1442
  post_install_message:
1445
1443
  rdoc_options: []
1446
1444
  require_paths:
1447
- - cert/lib
1448
- - credentials_manager/lib
1449
- - deliver/lib
1445
+ - spaceship/lib
1446
+ - scan/lib
1447
+ - sigh/lib
1448
+ - snapshot/lib
1449
+ - screengrab/lib
1450
1450
  - fastlane/lib
1451
- - fastlane_core/lib
1452
- - frameit/lib
1451
+ - cert/lib
1452
+ - pem/lib
1453
1453
  - gym/lib
1454
+ - produce/lib
1455
+ - deliver/lib
1456
+ - supply/lib
1454
1457
  - match/lib
1455
- - pem/lib
1458
+ - frameit/lib
1459
+ - credentials_manager/lib
1456
1460
  - pilot/lib
1457
1461
  - precheck/lib
1458
- - produce/lib
1459
- - scan/lib
1460
- - screengrab/lib
1461
- - sigh/lib
1462
- - snapshot/lib
1463
- - spaceship/lib
1464
- - supply/lib
1462
+ - fastlane_core/lib
1465
1463
  required_ruby_version: !ruby/object:Gem::Requirement
1466
1464
  requirements:
1467
1465
  - - ">="
@@ -1469,15 +1467,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
1469
1467
  version: 2.0.0
1470
1468
  required_rubygems_version: !ruby/object:Gem::Requirement
1471
1469
  requirements:
1472
- - - ">="
1470
+ - - ">"
1473
1471
  - !ruby/object:Gem::Version
1474
- version: '0'
1472
+ version: 1.3.1
1475
1473
  requirements: []
1476
1474
  rubyforge_project:
1477
- rubygems_version: 2.6.10
1475
+ rubygems_version: 2.4.5.1
1478
1476
  signing_key:
1479
1477
  specification_version: 4
1480
1478
  summary: The easiest way to automate beta deployments and releases for your iOS and
1481
1479
  Android apps
1482
1480
  test_files: []
1483
- has_rdoc:
Binary file
Binary file