pilot 1.0.1 → 1.1.0

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: e235ff03354fedd62cd8f07223b8998904a43c8b
4
- data.tar.gz: 442cc97a0fddbf26615360f807d2aac72ed2962b
3
+ metadata.gz: dd292a0ec1a032955f9a7974999e759a4835c8cb
4
+ data.tar.gz: 1066d6276afc3baa466cc587e106775f7658afbd
5
5
  SHA512:
6
- metadata.gz: b3003cc844a5147395f043e9774c4249303167da029b3000f01076b364af9dfe3ba759baa5e4aaf0718251f47475e2a7314073a151ed6da694c2b89588e0e979
7
- data.tar.gz: efc81903543d5752d23194f6dfb82a253a9f3071f92642d6b5cd7f67535691b314badaec052b2f19a7472e19f0640c35ee93406b7112922341e5324b5c9a1785
6
+ metadata.gz: 157e27232aa67f9f74b7f99af171cf3da086df4db87089edb48435ac05ba5eeb04ae1e6abefc45290f25eff92ada01173602860555237ad5c7ab7d2522c46922
7
+ data.tar.gz: c40148522ddeafaf94ae6d6e60bb639703fa5913c55a6968a5e1e9242432293ba5aa712e2c1796c083eda454c9b452314f8ad6b64fa9f49ae92c52d154c09b84
data/lib/pilot/manager.rb CHANGED
@@ -13,6 +13,7 @@ module Pilot
13
13
 
14
14
  Helper.log.info "Login to iTunes Connect (#{config[:username]})"
15
15
  Spaceship::Tunes.login(config[:username])
16
+ Spaceship::Tunes.select_team
16
17
  Helper.log.info "Login successful"
17
18
  end
18
19
 
data/lib/pilot/options.rb CHANGED
@@ -4,12 +4,15 @@ require "credentials_manager"
4
4
  module Pilot
5
5
  class Options
6
6
  def self.available_options
7
- @options ||= [
7
+ user = CredentialsManager::AppfileConfig.try_fetch_value(:itunes_connect_id)
8
+ user ||= CredentialsManager::AppfileConfig.try_fetch_value(:apple_id)
9
+
10
+ [
8
11
  FastlaneCore::ConfigItem.new(key: :username,
9
12
  short_option: "-u",
10
13
  env_name: "PILOT_USERNAME",
11
14
  description: "Your Apple ID Username",
12
- default_value: CredentialsManager::AppfileConfig.try_fetch_value(:apple_id)),
15
+ default_value: user),
13
16
  FastlaneCore::ConfigItem.new(key: :app_identifier,
14
17
  short_option: "-a",
15
18
  env_name: "PILOT_APP_IDENTIFIER",
@@ -75,6 +78,25 @@ module Pilot
75
78
  is_string: false,
76
79
  verify_block: proc do |value|
77
80
  raise "Please enter a valid positive number of seconds" unless value.to_i > 0
81
+ end),
82
+ FastlaneCore::ConfigItem.new(key: :team_id,
83
+ short_option: "-q",
84
+ env_name: "PILOT_TEAM_ID",
85
+ description: "The ID of your team if you're in multiple teams",
86
+ optional: true,
87
+ is_string: false, # as we also allow integers, which we convert to strings anyway
88
+ default_value: CredentialsManager::AppfileConfig.try_fetch_value(:itc_team_id),
89
+ verify_block: proc do |value|
90
+ ENV["FASTLANE_ITC_TEAM_ID"] = value.to_s
91
+ end),
92
+ FastlaneCore::ConfigItem.new(key: :team_name,
93
+ short_option: "-r",
94
+ env_name: "PILOT_TEAM_NAME",
95
+ description: "The name of your team if you're in multiple teams",
96
+ optional: true,
97
+ default_value: CredentialsManager::AppfileConfig.try_fetch_value(:itc_team_name),
98
+ verify_block: proc do |value|
99
+ ENV["FASTLANE_ITC_TEAM_NAME"] = value
78
100
  end)
79
101
 
80
102
  ]
data/lib/pilot/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Pilot
2
- VERSION = "1.0.1"
2
+ VERSION = "1.1.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.0.1
4
+ version: 1.1.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: 2015-11-12 00:00:00.000000000 Z
11
+ date: 2015-12-03 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.14.0
39
+ version: 0.15.1
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.14.0
49
+ version: 0.15.1
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
52
  version: 1.0.0