fastlane 2.31.0.beta.20170515010044 → 2.31.0.beta.20170516010048

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: 55eedddbfadcc5f8eef17bf0279ca3f81b02dd7c
4
- data.tar.gz: 8860aa08478207a15eccf7dff0ce71717dda2a65
3
+ metadata.gz: 3f5c67821d1ad65806241542913482df0ea9b4ed
4
+ data.tar.gz: c371cc2ea5e31b709129e494b30d5e652e501960
5
5
  SHA512:
6
- metadata.gz: c3c2f767fb4a5a039ced2a4d9b1e53d14950cb36e4a5a45c730a9d76288d899e25a50d7e5c7439bea79fb6538cd87a420d5943dd34b953c931846c0624503c8a
7
- data.tar.gz: 4e5838ed0b74ef584e1a0c6085d9afa51f5f88a0ed88a4f97307f57cecca6005d52c620a2cc08710fae483196bcfe014be3e186c56516ad5de8a788685ed0e30
6
+ metadata.gz: 698b1a8e1f33f096158307063cfeea219548da6077af2c09d116de454ad89ad40c8592ffd07ac85ba14d26a1e40345aa6cce504bb42c14162d7ade942727b7d0
7
+ data.tar.gz: 38376b5234bfc22ad10631c4411de0516faea631fb01b649a96aa2f00f4749f081bc43938bdfb177d8feb9f2597f8159f5749c97a209ce75088a7798ea7e818b
@@ -73,6 +73,7 @@ module Deliver
73
73
  base_dir = File.join(path, UploadMetadata::TRADE_REPRESENTATIVE_CONTACT_INFORMATION_DIR)
74
74
  FileUtils.mkdir_p(base_dir)
75
75
  resulting_path = File.join(base_dir, "#{option_name}.txt")
76
+ next if content.to_s.chomp.length == 0 # as many developers won't need trade information
76
77
  File.write(resulting_path, content)
77
78
  UI.message("Writing to '#{resulting_path}'")
78
79
  end
@@ -20,9 +20,9 @@ module Deliver
20
20
  trade_representative_trade_name: :trade_name,
21
21
  trade_representative_first_name: :first_name,
22
22
  trade_representative_last_name: :last_name,
23
- trade_representative_address_line_1: :adderss_line1,
24
- trade_representative_address_line_2: :adderss_line2,
25
- trade_representative_address_line_3: :adderss_line3,
23
+ trade_representative_address_line_1: :address_line1,
24
+ trade_representative_address_line_2: :address_line2,
25
+ trade_representative_address_line_3: :address_line3,
26
26
  trade_representative_city_name: :city_name,
27
27
  trade_representative_state: :state,
28
28
  trade_representative_country: :country,
@@ -4,10 +4,15 @@ module Fastlane
4
4
  def self.run(params)
5
5
  UI.message "Compressing #{params[:path]}..."
6
6
 
7
- params[:output_path] ||= "#{params[:path]}.zip"
7
+ params[:output_path] ||= params[:path]
8
8
 
9
9
  absolute_output_path = File.expand_path(params[:output_path])
10
10
 
11
+ # Appends ".zip" if path does not end in ".zip"
12
+ unless absolute_output_path.end_with?(".zip")
13
+ absolute_output_path += ".zip"
14
+ end
15
+
11
16
  absolute_output_dir = File.expand_path("..", absolute_output_path)
12
17
  FileUtils.mkdir_p(absolute_output_dir)
13
18
 
@@ -17,8 +22,8 @@ module Fastlane
17
22
  Actions.sh "zip -#{zip_options} #{absolute_output_path.shellescape} #{File.basename(params[:path]).shellescape}"
18
23
  end
19
24
 
20
- UI.success "Successfully generated zip file at path '#{File.expand_path(params[:output_path])}'"
21
- return File.expand_path(params[:output_path])
25
+ UI.success "Successfully generated zip file at path '#{File.expand_path(absolute_output_path)}'"
26
+ return File.expand_path(absolute_output_path)
22
27
  end
23
28
 
24
29
  #####################################################
@@ -1,4 +1,4 @@
1
1
  module Fastlane
2
- VERSION = '2.31.0.beta.20170515010044'.freeze
2
+ VERSION = '2.31.0.beta.20170516010048'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  end
@@ -21,7 +21,7 @@ module Scan
21
21
  print "For more information visit this stackoverflow answer:"
22
22
  print "https://stackoverflow.com/a/17031697/445598"
23
23
  when /Testing failed/
24
- UI.user_error!("Error building the application - see the log above")
24
+ UI.build_failure!("Error building the application - see the log above")
25
25
  when /Executed/
26
26
  # this is *really* important:
27
27
  # we don't want to raise an exception here
@@ -29,7 +29,7 @@ module Scan
29
29
  # after parsing the actual test results
30
30
  return
31
31
  end
32
- UI.user_error!("Error building/testing the application - see the log above")
32
+ UI.build_failure!("Error building/testing the application - see the log above")
33
33
  end
34
34
 
35
35
  private
@@ -31,6 +31,20 @@ module Spaceship
31
31
  # {...}
32
32
  # ]
33
33
 
34
+ def self.ci?
35
+ if Object.const_defined?("FastlaneCore") && FastlaneCore.const_defined?("Helper")
36
+ return FastlaneCore::Helper.ci?
37
+ end
38
+ return false
39
+ end
40
+
41
+ def self.interactive?
42
+ if Object.const_defined?("FastlaneCore") && FastlaneCore.const_defined?("Helper")
43
+ return FastlaneCore::Helper.interactive?
44
+ end
45
+ return true
46
+ end
47
+
34
48
  def select_team
35
49
  teams = client.teams
36
50
 
@@ -64,6 +78,16 @@ module Spaceship
64
78
 
65
79
  return teams[0]['teamId'] if teams.count == 1 # user is just in one team
66
80
 
81
+ unless self.class.interactive?
82
+ puts "Multiple teams found on the Developer Portal, Your Terminal is running in non-interactive mode! Cannot continue from here."
83
+ puts "Please check that you set FASTLANE_TEAM_ID or FASTLANE_TEAM_NAME to the right value."
84
+ puts "Available Teams:"
85
+ teams.each_with_index do |team, i|
86
+ puts "#{i + 1}) #{team['teamId']} \"#{team['name']}\" (#{team['type']})"
87
+ end
88
+ raise "Multiple Teams found; unable to choose, terminal not ineractive!"
89
+ end
90
+
67
91
  # User Selection
68
92
  loop do
69
93
  # Multiple teams, user has to select
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.31.0.beta.20170515010044
4
+ version: 2.31.0.beta.20170516010048
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2017-05-15 00:00:00.000000000 Z
18
+ date: 2017-05-16 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: slack-notifier
@@ -1361,23 +1361,23 @@ metadata:
1361
1361
  post_install_message:
1362
1362
  rdoc_options: []
1363
1363
  require_paths:
1364
+ - spaceship/lib
1365
+ - fastlane/lib
1364
1366
  - pilot/lib
1365
- - deliver/lib
1366
- - fastlane_core/lib
1367
1367
  - gym/lib
1368
+ - credentials_manager/lib
1369
+ - fastlane_core/lib
1368
1370
  - sigh/lib
1369
- - produce/lib
1371
+ - pem/lib
1370
1372
  - frameit/lib
1371
- - supply/lib
1373
+ - match/lib
1372
1374
  - scan/lib
1373
- - spaceship/lib
1374
- - credentials_manager/lib
1375
+ - supply/lib
1375
1376
  - cert/lib
1376
- - screengrab/lib
1377
- - match/lib
1378
1377
  - snapshot/lib
1379
- - fastlane/lib
1380
- - pem/lib
1378
+ - produce/lib
1379
+ - screengrab/lib
1380
+ - deliver/lib
1381
1381
  required_ruby_version: !ruby/object:Gem::Requirement
1382
1382
  requirements:
1383
1383
  - - ">="