pilot 1.5.1 → 1.6.0

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: 18283847aff493f6044d42842561aa9ae00ebe56
4
- data.tar.gz: 4558ba124b83e4049817bb45b54721044b9e4489
3
+ metadata.gz: 533e8f51f9202cc687cfe86f236696a50422c36d
4
+ data.tar.gz: 86803a68fc3c50644bff42b45c27826b992dc9b1
5
5
  SHA512:
6
- metadata.gz: 47dc64e15d07b0a51d8d59bb0cfe18a5e82df52f9c56bee926f68f325db662227b250d4012605d0fa4ac2a18b0aceecd01c4053dc98482e534c8dcad2253d49d
7
- data.tar.gz: f2c8b129cf17012e61b31488ce3e382fd644b7f3775ff715982ef168e9b443c3aeb20a509d62f051dbc812f3130990c3e90317dae837bfe2657abc35bb0a5f1f
6
+ metadata.gz: 15afe8a23cf73b15b76c7357a7da4b90548438a735fda293f75ef06946b18b976e5209c80346a8a0a17fc0a127520bbd0c1f88dd53935046b98297bf464178d1
7
+ data.tar.gz: 9d5b06674b5356a1d4a275adec8465e5b05ca9709c65cf167656cc016761e9e31183d0ee3cf87cab8fb52dbfe5fc6976146f6d50fad7985ec530febdac10ab95
@@ -71,19 +71,22 @@ module Pilot
71
71
  start = Time.now
72
72
  wait_processing_interval = config[:wait_processing_interval].to_i
73
73
  latest_build = nil
74
+ UI.message("Waiting for iTunes Connect to process the new build")
74
75
  loop do
75
- UI.message("Waiting for iTunes Connect to process the new build")
76
76
  sleep wait_processing_interval
77
77
  builds = app.all_processing_builds
78
78
  break if builds.count == 0
79
- latest_build = builds.last # store the latest pre-processing build here
79
+ latest_build = builds.last
80
+ UI.message("Waiting for iTunes Connect to finish processing the new build (#{latest_build.train_version} - #{latest_build.build_version})")
80
81
  end
81
82
 
82
83
  full_build = nil
83
84
 
84
85
  while full_build.nil? || full_build.processing
85
- # Now get the full builds with a reference to the application and more
86
- # As the processing build from before doesn't have a refernece to the application
86
+ # The build's processing state should go from true to false, and be done. But sometimes it goes true -> false ->
87
+ # true -> false, where the second true is transient. This causes a spurious failure. Find build by build_version
88
+ # and ensure it's not processing before proceeding - it had to have already been false before, to get out of the
89
+ # previous loop.
87
90
  full_build = app.build_trains[latest_build.train_version].builds.find do |b|
88
91
  b.build_version == latest_build.build_version
89
92
  end
@@ -92,7 +95,7 @@ module Pilot
92
95
  sleep wait_processing_interval
93
96
  end
94
97
 
95
- if full_build
98
+ if full_build && !full_build.processing && full_build.valid
96
99
  minutes = ((Time.now - start) / 60).round
97
100
  UI.success("Successfully finished processing the build")
98
101
  UI.message("You can now tweet: ")
@@ -1,4 +1,4 @@
1
1
  module Pilot
2
- VERSION = "1.5.1"
2
+ VERSION = "1.6.0"
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.5.1
4
+ version: 1.6.0
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-05-03 00:00:00.000000000 Z
11
+ date: 2016-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastlane_core
@@ -36,7 +36,7 @@ dependencies:
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 0.24.1
39
+ version: 0.27.0
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
42
  version: 1.0.0
@@ -46,7 +46,7 @@ dependencies:
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: 0.24.1
49
+ version: 0.27.0
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
52
  version: 1.0.0
@@ -259,7 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
259
259
  version: '0'
260
260
  requirements: []
261
261
  rubyforge_project:
262
- rubygems_version: 2.4.5.1
262
+ rubygems_version: 2.4.8
263
263
  signing_key:
264
264
  specification_version: 4
265
265
  summary: The best way to manage your TestFlight testers and builds from your terminal