pilot 1.10.0 → 1.10.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: 193709deab5ca85cba1eec5d0f6c32adc3d3a899
4
- data.tar.gz: dc5688ea2356540eabe2c297b828fd645a7e6079
3
+ metadata.gz: 596a3c8437815a0c1dde31674a0144059e1d2ab4
4
+ data.tar.gz: 7d8b44292c85e4ad4c98c7d40f35b17eeca47265
5
5
  SHA512:
6
- metadata.gz: 4f118118001033f5962498f3d0379f942c1907a8c4ec94ef9c079e283b9eee90692f027f8e220bf34390b1a64f6bb5d7f62ac99136f26c784374a87d9bb7a80e
7
- data.tar.gz: 3f4999fb02b090d4283df340411f608de3bf4aabb63ca7561c999229104dac2fecd05f18575d6fcb17d31477e9c3b0b29f84ff5212caf425194eaef3ec862dc3
6
+ metadata.gz: 7ce40bab2d4973262590f848fca0b5df1e1bdd23aec80d3b7704ba8fe174e46abce818de989bedf53fe4be080d7b7c653138796631b03bde7c07cd8a3159cd0f
7
+ data.tar.gz: c5bde173f87d2ece409d1159f6429822aa7f58cd349310c95019a6c4e25c621de95f585c0e04676441a89a3c15f1131348e077f7de264ceb2b2d46f9788fdb15
data/lib/pilot.rb CHANGED
@@ -17,4 +17,5 @@ require "terminal-table"
17
17
  module Pilot
18
18
  Helper = FastlaneCore::Helper # you gotta love Ruby: Helper.* should use the Helper class contained in FastlaneCore
19
19
  UI = FastlaneCore::UI
20
+ ROOT = Pathname.new(File.expand_path('../..', __FILE__))
20
21
  end
@@ -39,7 +39,7 @@ module Pilot
39
39
  def distribute(options, build = nil)
40
40
  start(options)
41
41
  if config[:apple_id].to_s.length == 0 and config[:app_identifier].to_s.length == 0
42
- config[:app_identifier] = ask("App Identifier: ")
42
+ config[:app_identifier] = UI.input("App Identifier: ")
43
43
  end
44
44
 
45
45
  if build.nil?
@@ -77,7 +77,7 @@ module Pilot
77
77
  def list(options)
78
78
  start(options)
79
79
  if config[:apple_id].to_s.length == 0 and config[:app_identifier].to_s.length == 0
80
- config[:app_identifier] = ask("App Identifier: ")
80
+ config[:app_identifier] = UI.input("App Identifier: ")
81
81
  end
82
82
 
83
83
  builds = app.all_processing_builds + app.builds
@@ -114,7 +114,7 @@ module Pilot
114
114
  latest_build = nil
115
115
  UI.message("Waiting for iTunes Connect to process the new build")
116
116
  loop do
117
- sleep wait_processing_interval
117
+ sleep(wait_processing_interval)
118
118
 
119
119
  # before we look for processing builds, we need to ensure that there
120
120
  # is a build train for this application; new applications don't
@@ -139,12 +139,14 @@ module Pilot
139
139
  # true -> false, where the second true is transient. This causes a spurious failure. Find build by build_version
140
140
  # and ensure it's not processing before proceeding - it had to have already been false before, to get out of the
141
141
  # previous loop.
142
- full_build = app.build_trains[latest_build.train_version].builds.find do |b|
142
+ build_train = app.build_trains[latest_build.train_version]
143
+ builds = build_train ? build_train.builds : []
144
+ full_build = builds.find do |b|
143
145
  b.build_version == latest_build.build_version
144
146
  end
145
147
 
146
- UI.message("Waiting for iTunes Connect to finish processing the new build (#{full_build.train_version} - #{full_build.build_version})")
147
- sleep wait_processing_interval
148
+ UI.message("Waiting for iTunes Connect to finish processing the new build (#{latest_build.train_version} - #{latest_build.build_version})")
149
+ sleep(wait_processing_interval)
148
150
  end
149
151
 
150
152
  if full_build && !full_build.processing && full_build.valid
@@ -1,5 +1,3 @@
1
- # rubocop:disable Metrics/MethodLength
2
- # rubocop:disable Metrics/AbcSize
3
1
  require "commander"
4
2
  require "pilot/options"
5
3
  require "fastlane_core"
@@ -29,7 +27,7 @@ module Pilot
29
27
  mgr = Pilot::TesterManager.new
30
28
  config = FastlaneCore::Configuration.create(Pilot::Options.available_options, convert_options(options))
31
29
  args.push(config[:email]) if config[:email] && args.empty?
32
- args.push(ask("Email address of the tester: ".yellow)) if args.empty?
30
+ args.push(UI.input("Email address of the tester: ")) if args.empty?
33
31
  failures = []
34
32
  args.each do |address|
35
33
  config[:email] = address
@@ -138,5 +136,3 @@ module Pilot
138
136
  end
139
137
  end
140
138
  end
141
- # rubocop:enable Metrics/MethodLength
142
- # rubocop:enable Metrics/AbcSize
data/lib/pilot/manager.rb CHANGED
@@ -44,7 +44,7 @@ module Pilot
44
44
  app_id ||= @app.apple_id
45
45
  end
46
46
 
47
- app_id ||= ask("Could not automatically find the app ID, please enter it here (e.g. 956814360): ")
47
+ app_id ||= UI.input("Could not automatically find the app ID, please enter it here (e.g. 956814360): ")
48
48
 
49
49
  return app_id
50
50
  end
@@ -52,7 +52,7 @@ module Pilot
52
52
  def fetch_app_identifier
53
53
  result = config[:app_identifier]
54
54
  result ||= FastlaneCore::IpaFileAnalyser.fetch_app_identifier(config[:ipa])
55
- result ||= ask("Please enter the app's bundle identifier: ")
55
+ result ||= UI.input("Please enter the app's bundle identifier: ")
56
56
  UI.verbose("App identifier (#{result})")
57
57
  return result
58
58
  end
data/lib/pilot/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Pilot
2
- VERSION = "1.10.0"
2
+ VERSION = "1.10.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.10.0
4
+ version: 1.10.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-07-27 00:00:00.000000000 Z
11
+ date: 2016-10-05 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.46.2
19
+ version: 0.52.1
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.46.2
29
+ version: 0.52.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.0.0
@@ -36,7 +36,7 @@ dependencies:
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 0.29.0
39
+ version: 0.34.2
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.29.0
49
+ version: 0.34.2
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
52
  version: 1.0.0
@@ -56,14 +56,14 @@ dependencies:
56
56
  requirements:
57
57
  - - ">="
58
58
  - !ruby/object:Gem::Version
59
- version: 0.3.0
59
+ version: 0.16.0
60
60
  type: :runtime
61
61
  prerelease: false
62
62
  version_requirements: !ruby/object:Gem::Requirement
63
63
  requirements:
64
64
  - - ">="
65
65
  - !ruby/object:Gem::Version
66
- version: 0.3.0
66
+ version: 0.16.0
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: terminal-table
69
69
  requirement: !ruby/object:Gem::Requirement
@@ -260,7 +260,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
260
260
  version: '0'
261
261
  requirements: []
262
262
  rubyforge_project:
263
- rubygems_version: 2.2.2
263
+ rubygems_version: 2.4.5.1
264
264
  signing_key:
265
265
  specification_version: 4
266
266
  summary: The best way to manage your TestFlight testers and builds from your terminal