fastlane 2.122.0.beta.20190501200015 → 2.122.0.beta.20190502200046

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: d50674e9a63d4cbc5c7130c863b55e4858d984ec
4
- data.tar.gz: 07c684b051eae5e9b22011eb9d660013f5307f8d
3
+ metadata.gz: b33a45d8fc2694eb602c774909111165c853e2e1
4
+ data.tar.gz: d15a0378694ab52dcf36485c0a512eaedafc7649
5
5
  SHA512:
6
- metadata.gz: b0a8a8d884886c021a3b0e50819b46096f3f9a8d6680d3c8d74c5f0e1e147fb472cf4766107e5420d29f8b51206a273626cd7c006d6b202be59886c4b05229fb
7
- data.tar.gz: ef055d78ec1c8eda57f3a245dc0eee4c34af576cadf5ea05d53309f872c4e1d185956fa3c6a404e634ad4034b067444803b41e9023862dcb6b2a313d0c464df5
6
+ metadata.gz: 9213aaec9611e53d478645d4164f21c5b1c50c15aba5fab6dc7fb132771f0f8d8f3723ed2460421e02198ce2c488298ee5123e7f5ea2a5aa73baa323ffa83e6a
7
+ data.tar.gz: 43034775476496ceff6f90318a26746a37201a530e0c2a4911eae790d355e1c833e2e08ef6033b906dc1e92f044827d309aa1c46362ed64b07eb80318577fb41
@@ -71,6 +71,17 @@ module Fastlane
71
71
  else
72
72
  UI.user_error!("You have to provide a project with `:proj` or use a .slather.yml")
73
73
  end
74
+
75
+ # for backwards compatibility when :binary_file type was Boolean
76
+ if params[:binary_file] == true || params[:binary_file] == false
77
+ params[:binary_file] = nil
78
+ end
79
+
80
+ # :binary_file validation was skipped for backwards compatibility with Boolean. If a
81
+ # Boolean was passed in, it has now been removed. Revalidate :binary_file
82
+ binary_file_options = available_options.find { |a| a.key == :binary_file }
83
+ binary_file_options.skip_type_validation = false
84
+ binary_file_options.verify!(params[:binary_file])
74
85
  end
75
86
 
76
87
  def self.build_command(params)
@@ -252,8 +263,8 @@ module Fastlane
252
263
  FastlaneCore::ConfigItem.new(key: :binary_file,
253
264
  env_name: "FL_SLATHER_BINARY_FILE",
254
265
  description: "Binary file name to be used for code coverage",
255
- is_string: false,
256
- default_value: false),
266
+ skip_type_validation: true, # skipping validation for backwards compatibility with Boolean type
267
+ optional: true),
257
268
  FastlaneCore::ConfigItem.new(key: :arch,
258
269
  env_name: "FL_SLATHER_ARCH",
259
270
  description: "Specify which architecture the binary file is in. Needed for universal binaries",
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.122.0.beta.20190501200015'.freeze
2
+ VERSION = '2.122.0.beta.20190502200046'.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
  RUBOCOP_REQUIREMENT = '0.49.1'.freeze
@@ -27,16 +27,23 @@ module FastlaneCore
27
27
 
28
28
  private
29
29
 
30
+ # Remove leading zeros ( https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-102364 )
31
+ def remove_version_leading_zeros(version: nil)
32
+ return version.instance_of?(String) ? version.split('.').map { |s| s.to_i.to_s }.join('.') : version
33
+ end
34
+
30
35
  def matching_build(watched_train_version: nil, watched_build_version: nil, app_id: nil, platform: nil)
31
36
  # Get build deliveries (newly uploaded processing builds)
32
37
  client = Spaceship::ConnectAPI::Base.client
33
- build_deliveries = client.get_build_deliveries(filter: { app: app_id, cfBundleShortVersionString: watched_train_version, cfBundleVersion: watched_build_version }, limit: 1)
38
+ truncated_watched_train_version = remove_version_leading_zeros(version: watched_train_version)
39
+ truncated_watched_build_version = remove_version_leading_zeros(version: watched_build_version)
40
+ build_deliveries = client.get_build_deliveries(filter: { app: app_id, cfBundleShortVersionString: truncated_watched_train_version, cfBundleVersion: truncated_watched_build_version }, limit: 1)
34
41
  build_delivery = build_deliveries.first
35
42
 
36
43
  # Get processed builds when no longer in build deliveries
37
44
  unless build_delivery
38
45
  matched_builds = Spaceship::TestFlight::Build.all(app_id: app_id, platform: platform)
39
- matched_build = matched_builds.find { |build| build.train_version.to_s == watched_train_version.to_s && build.build_version.to_s == watched_build_version.to_s }
46
+ matched_build = matched_builds.find { |build| build.train_version.to_s == truncated_watched_train_version.to_s && build.build_version.to_s == truncated_watched_build_version.to_s }
40
47
  end
41
48
 
42
49
  return matched_build, build_delivery
@@ -78,8 +78,20 @@ module Supply
78
78
 
79
79
  def call_google_api
80
80
  yield if block_given?
81
- rescue Google::Apis::ClientError => e
82
- UI.user_error!("Google Api Error: #{e.message}")
81
+ rescue Google::Apis::Error => e
82
+ error = begin
83
+ JSON.parse(e.body)
84
+ rescue
85
+ nil
86
+ end
87
+
88
+ if error
89
+ message = error["error"] && error["error"]["message"]
90
+ else
91
+ message = e.body
92
+ end
93
+
94
+ UI.user_error!("Google Api Error: #{e.message} - #{message}")
83
95
  end
84
96
  end
85
97
 
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.122.0.beta.20190501200015
4
+ version: 2.122.0.beta.20190502200046
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jimmy Dee
@@ -27,7 +27,7 @@ authors:
27
27
  autorequire:
28
28
  bindir: bin
29
29
  cert_chain: []
30
- date: 2019-05-01 00:00:00.000000000 Z
30
+ date: 2019-05-02 00:00:00.000000000 Z
31
31
  dependencies:
32
32
  - !ruby/object:Gem::Dependency
33
33
  name: slack-notifier
@@ -897,6 +897,20 @@ dependencies:
897
897
  - - "~>"
898
898
  - !ruby/object:Gem::Version
899
899
  version: 1.4.1
900
+ - !ruby/object:Gem::Dependency
901
+ name: climate_control
902
+ requirement: !ruby/object:Gem::Requirement
903
+ requirements:
904
+ - - "~>"
905
+ - !ruby/object:Gem::Version
906
+ version: 0.2.0
907
+ type: :development
908
+ prerelease: false
909
+ version_requirements: !ruby/object:Gem::Requirement
910
+ requirements:
911
+ - - "~>"
912
+ - !ruby/object:Gem::Version
913
+ version: 0.2.0
900
914
  description: The easiest way to automate beta deployments and releases for your iOS
901
915
  and Android apps
902
916
  email:
@@ -1692,24 +1706,24 @@ metadata:
1692
1706
  post_install_message:
1693
1707
  rdoc_options: []
1694
1708
  require_paths:
1695
- - scan/lib
1696
- - pem/lib
1697
- - sigh/lib
1698
- - deliver/lib
1699
- - fastlane_core/lib
1700
- - screengrab/lib
1709
+ - credentials_manager/lib
1710
+ - pilot/lib
1711
+ - match/lib
1712
+ - produce/lib
1701
1713
  - fastlane/lib
1702
- - gym/lib
1703
- - supply/lib
1714
+ - deliver/lib
1704
1715
  - spaceship/lib
1705
- - match/lib
1706
- - pilot/lib
1707
- - credentials_manager/lib
1708
1716
  - cert/lib
1717
+ - scan/lib
1718
+ - sigh/lib
1719
+ - gym/lib
1709
1720
  - precheck/lib
1710
- - frameit/lib
1711
- - produce/lib
1721
+ - supply/lib
1722
+ - screengrab/lib
1712
1723
  - snapshot/lib
1724
+ - pem/lib
1725
+ - fastlane_core/lib
1726
+ - frameit/lib
1713
1727
  required_ruby_version: !ruby/object:Gem::Requirement
1714
1728
  requirements:
1715
1729
  - - ">="