pilot 1.12.0 → 1.12.1

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: 6c19ab12fd9eb4f2b46c5961a6870233fdd6fa01
4
- data.tar.gz: c58e66f0b5e5e8463cda286447567f591a74e73f
3
+ metadata.gz: aaa910e77be068138c6d8f405d62218e5b91bc01
4
+ data.tar.gz: 3e785fb3c652a2c97476c49eb212b36d0ff45c7f
5
5
  SHA512:
6
- metadata.gz: 4b0864facb06d0871f2c165ad6152369fb86998b4c8559a4383ed21300260bf40c847ac50c26b286b05b62d138bebb96bef009fb29e7168b6f7eb7bc79047e5c
7
- data.tar.gz: f292781750358270c18fd16f73faa2b6958e5d0ac1fb09c4e404d4d9b9aa08341e13856a5279c37c428d67feeb61ff720db8555b7185b44608ed934a2c6ee0fc
6
+ metadata.gz: aad4add20c950ab720e3436cfd5d292bf3c0bc65234b794d7664e391f51131d863de21bf77be77e086406be46bc104ed2722044b7273be9917b14a8fa87cc120
7
+ data.tar.gz: a492de6adb9e3a3bb53bc590c23f1176347ec78f62b8be4a97e68ff8b3482aad9e0fd89d86f63ad371c2581ac1b22b20c8a90398ec2feee2383711d8ff113638
@@ -31,7 +31,7 @@ module Pilot
31
31
  end
32
32
 
33
33
  UI.message("If you want to skip waiting for the processing to be finished, use the `skip_waiting_for_build_processing` option")
34
- uploaded_build = wait_for_processing_build # this might take a while
34
+ uploaded_build = wait_for_processing_build(options) # this might take a while
35
35
 
36
36
  distribute(options, uploaded_build)
37
37
  end
@@ -63,10 +63,11 @@ module Pilot
63
63
  UI.message("Distributing build #{build.train_version}(#{build.build_version}) from #{build.testing_status} -> External")
64
64
  end
65
65
 
66
- # First, set the changelog and/or description if necessary
67
- if options[:changelog].to_s.length > 0 or options[:beta_app_description].to_s.length > 0 or options[:beta_app_feedback_email].to_s.length > 0
68
- build.update_build_information!(whats_new: options[:changelog], description: options[:beta_app_description], feedback_email: options[:beta_app_feedback_email])
69
- UI.success "Successfully set the changelog and/or description for build"
66
+ unless config[:update_build_info_on_upload]
67
+ if should_update_build_information(options)
68
+ build.update_build_information!(whats_new: options[:changelog], description: options[:beta_app_description], feedback_email: options[:beta_app_feedback_email])
69
+ UI.success "Successfully set the changelog and/or description for build"
70
+ end
70
71
  end
71
72
 
72
73
  return if config[:skip_submission]
@@ -104,15 +105,20 @@ module Pilot
104
105
  return row
105
106
  end
106
107
 
108
+ def should_update_build_information(options)
109
+ options[:changelog].to_s.length > 0 or options[:beta_app_description].to_s.length > 0 or options[:beta_app_feedback_email].to_s.length > 0
110
+ end
111
+
107
112
  # This method will takes care of checking for the processing builds every few seconds
108
113
  # @return [Build] The build that we just uploaded
109
- def wait_for_processing_build
114
+ def wait_for_processing_build(options)
110
115
  # the upload date of the new buid
111
116
  # we use it to identify the build
112
117
  start = Time.now
113
118
  wait_processing_interval = config[:wait_processing_interval].to_i
114
119
  latest_build = nil
115
120
  UI.message("Waiting for iTunes Connect to process the new build")
121
+ must_update_build_info = config[:update_build_info_on_upload]
116
122
  loop do
117
123
  sleep(wait_processing_interval)
118
124
 
@@ -127,6 +133,16 @@ module Pilot
127
133
  builds = app.all_processing_builds
128
134
  break if builds.count == 0
129
135
  latest_build = builds.last
136
+
137
+ if latest_build.valid and must_update_build_info
138
+ # Set the changelog and/or description if necessary
139
+ if should_update_build_information(options)
140
+ build.update_build_information!(whats_new: options[:changelog], description: options[:beta_app_description], feedback_email: options[:beta_app_feedback_email])
141
+ UI.success "Successfully set the changelog and/or description for build"
142
+ end
143
+ must_update_build_info = false
144
+ end
145
+
130
146
  UI.message("Waiting for iTunes Connect to finish processing the new build (#{latest_build.train_version} - #{latest_build.build_version})")
131
147
  end
132
148
  end
@@ -56,6 +56,12 @@ module Pilot
56
56
  description: "Don't wait for the build to process. If set to true, the changelog won't be set",
57
57
  is_string: false,
58
58
  default_value: false),
59
+ FastlaneCore::ConfigItem.new(key: :update_build_info_on_upload,
60
+ short_option: "-x",
61
+ env_name: "PILOT_UPDATE_BUILD_INFO_ON_UPLOAD",
62
+ description: "Update build info immediately after validation. This will set the changelog even if PILOT_SKIP_SUBMISSION is set, but will have no effect if PILOT_SKIP_WAITING_FOR_BUILD_PROCESSING is set",
63
+ is_string: false,
64
+ default_value: false),
59
65
  FastlaneCore::ConfigItem.new(key: :apple_id,
60
66
  short_option: "-p",
61
67
  env_name: "PILOT_APPLE_ID",
@@ -1,4 +1,4 @@
1
1
  module Pilot
2
- VERSION = "1.12.0"
2
+ VERSION = "1.12.1"
3
3
  DESCRIPTION = "The best way to manage your TestFlight testers and builds from your terminal"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pilot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.12.1
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-11-03 00:00:00.000000000 Z
11
+ date: 2016-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.53.0
19
+ version: 0.56.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 1.0.0
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.53.0
29
+ version: 0.56.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.0.0