spaceship 0.31.1 → 0.31.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3dfb3ea078356f091b442a0645ee35f7e6eb59bc
|
4
|
+
data.tar.gz: 12ebd5912b4c452543f10acedcc28d69b391d8d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2345ff29e4ff27afcbc55ed712848509dbfacb044d054944cef9a031576bffac16cb95c8a9b07763eccab2c71372066b7b3773ea3f6165c814e197894ad167a4
|
7
|
+
data.tar.gz: 299b7df087caab6b29d74f3f7bb53fd716554bb744baa5a958fc2a97851ba5987f5793567c2e0100f0d4c44ebe1259363290bcfee508c13635a4aa5ea4059bb3
|
data/lib/spaceship/client.rb
CHANGED
@@ -400,7 +400,8 @@ module Spaceship
|
|
400
400
|
end
|
401
401
|
|
402
402
|
def log_response(method, url, response)
|
403
|
-
|
403
|
+
body = response.body.kind_of?(String) ? response.body.force_encoding(Encoding::UTF_8) : response.body
|
404
|
+
logger.debug("<< #{method.upcase}: #{url}: #{body}")
|
404
405
|
end
|
405
406
|
|
406
407
|
# Actually sends the request to the remote server
|
@@ -34,7 +34,12 @@ module Spaceship
|
|
34
34
|
def select_team
|
35
35
|
teams = client.teams
|
36
36
|
|
37
|
-
|
37
|
+
if teams.count == 0
|
38
|
+
puts "No teams available on the Developer Portal"
|
39
|
+
puts "You must accept an invitation to a team for it to be available"
|
40
|
+
puts "To learn more about teams and how to use them visit https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ManagingYourTeam/ManagingYourTeam.html"
|
41
|
+
raise "Your account is in no teams"
|
42
|
+
end
|
38
43
|
|
39
44
|
team_id = (ENV['FASTLANE_TEAM_ID'] || '').strip
|
40
45
|
team_name = (ENV['FASTLANE_TEAM_NAME'] || '').strip
|
@@ -354,7 +354,7 @@ module Spaceship
|
|
354
354
|
# @param language (String): The language for this screenshot
|
355
355
|
# @param device (string): The device for this screenshot
|
356
356
|
def upload_screenshot!(screenshot_path, sort_order, language, device)
|
357
|
-
raise "sort_order must be
|
357
|
+
raise "sort_order must be higher than 0" unless sort_order > 0
|
358
358
|
raise "sort_order must not be > 5" if sort_order > 5
|
359
359
|
# this will also check both language and device parameters
|
360
360
|
device_lang_screenshots = screenshots_data_for_language_and_device(language, device)["value"]
|
@@ -557,6 +557,8 @@ module Spaceship
|
|
557
557
|
|
558
558
|
# generates the nested data structure to represent screenshots
|
559
559
|
def setup_screenshots_for(row)
|
560
|
+
return [] if row.nil? || row["displayFamilies"].nil?
|
561
|
+
|
560
562
|
display_families = row.fetch("displayFamilies", {}).fetch("value", nil)
|
561
563
|
return [] unless display_families
|
562
564
|
|
@@ -628,6 +630,8 @@ module Spaceship
|
|
628
630
|
|
629
631
|
# generates the nested data structure to represent trailers
|
630
632
|
def setup_trailers_for(row)
|
633
|
+
return [] if row.nil? || row["displayFamilies"].nil?
|
634
|
+
|
631
635
|
display_families = row.fetch("displayFamilies", {}).fetch("value", nil)
|
632
636
|
return [] unless display_families
|
633
637
|
|
@@ -126,9 +126,7 @@ module Spaceship
|
|
126
126
|
send_shared_login_request(user, password)
|
127
127
|
end
|
128
128
|
|
129
|
-
# rubocop:disable Metrics/CyclomaticComplexity
|
130
129
|
# rubocop:disable Metrics/PerceivedComplexity
|
131
|
-
# rubocop:disable Metrics/AbcSize
|
132
130
|
def handle_itc_response(raw)
|
133
131
|
return unless raw
|
134
132
|
return unless raw.kind_of? Hash
|
@@ -186,9 +184,7 @@ module Spaceship
|
|
186
184
|
|
187
185
|
return data
|
188
186
|
end
|
189
|
-
# rubocop:enable Metrics/CyclomaticComplexity
|
190
187
|
# rubocop:enable Metrics/PerceivedComplexity
|
191
|
-
# rubocop:enable Metrics/AbcSize
|
192
188
|
|
193
189
|
#####################################################
|
194
190
|
# @!group Applications
|
@@ -36,14 +36,14 @@ module Spaceship
|
|
36
36
|
device_id = result.match(/.*\t.*\t\((.*)\)/)[1]
|
37
37
|
select_device(r, device_id)
|
38
38
|
elsif r.body.kind_of?(Hash) && r.body["phoneNumberVerification"].kind_of?(Hash)
|
39
|
-
puts "Two
|
40
|
-
|
39
|
+
puts "Two Factor Authentication for account '#{self.user}' is enabled"
|
40
|
+
handle_two_factor(r)
|
41
41
|
else
|
42
42
|
raise "Invalid 2 step response #{r.body}"
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
|
-
def
|
46
|
+
def handle_two_factor(response)
|
47
47
|
security_code = response.body["phoneNumberVerification"]["securityCode"]
|
48
48
|
# {"length"=>6,
|
49
49
|
# "tooManyCodesSent"=>false,
|
data/lib/spaceship/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spaceship
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.31.
|
4
|
+
version: 0.31.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-08-
|
12
|
+
date: 2016-08-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: credentials_manager
|
@@ -391,7 +391,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
391
391
|
version: '0'
|
392
392
|
requirements: []
|
393
393
|
rubyforge_project:
|
394
|
-
rubygems_version: 2.
|
394
|
+
rubygems_version: 2.5.1
|
395
395
|
signing_key:
|
396
396
|
specification_version: 4
|
397
397
|
summary: Ruby library to access the Apple Dev Center and iTunes Connect
|