spaceship 0.18.1 → 0.19.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: 89169eee47e1c12dd631750e750c1f548265c1de
4
- data.tar.gz: 76eb27c20c8f6a804bf9aa661e8ccaa6d93f378d
3
+ metadata.gz: 06fc49c1235c6c82464e9e044565e18e7d5cb47e
4
+ data.tar.gz: 1c040a57a77c3052859b2ca79ab137a683322689
5
5
  SHA512:
6
- metadata.gz: 120070feabd8318c18e5fa6607be18bcfa35715c065fc0231ca96e52c7df4bfe6f7e81e7ce5f46f399bfb54a2f7196da8db18202d8bbf7408c27d9977701d023
7
- data.tar.gz: 78640826e546749049dd3501b160cada4220f658de1f4818897bbe4d3fcd593d9a1eb0fc599461ab7bb9c0d5b1377a58e3b6b166101a7a1c66eef41069d4e102
6
+ metadata.gz: 86914c01403b93c916cf40a472d15ba9ed0dec74b3cf1edb2388cbe2a2ebbaf6049ecc9929064d2642468a7355a565e8ef4b33a178d04b31b531df7fdec8a9af
7
+ data.tar.gz: 234efcb050c93a2ca756d5b3fe4b99d4d9ca670bc61f97b0adcfa9e60b9ead189ab04265d3ae9ebb65a3f904bf0371727d25a69a31b26ac6c2bf55cf6bb0caa7
data/bin/spaceship CHANGED
@@ -46,3 +46,5 @@ puts "Just enter the commands and confirm with Enter".green
46
46
  # rubocop:disable Lint/Debugger
47
47
  binding.pry(quiet: true)
48
48
  # rubocop:enable Lint/Debugger
49
+
50
+ puts "" # Fixes https://github.com/fastlane/spaceship/issues/203
@@ -85,7 +85,8 @@ module Spaceship
85
85
  iphone6Plus: "MZPFT.SortedN56ScreenShot",
86
86
  iphone4: "MZPFT.SortedN41ScreenShot",
87
87
  iphone35: "MZPFT.SortedScreenShot",
88
- appleTV: "MZPFT.SortedATVScreenShot"
88
+ appleTV: "MZPFT.SortedATVScreenShot",
89
+ desktop: "MZPFT.SortedDesktopScreenShot"
89
90
  }
90
91
  end
91
92
 
@@ -66,6 +66,9 @@ module Spaceship
66
66
  # "5QPB9NHCEI"
67
67
  attr_accessor :type_display_id
68
68
 
69
+ # @return (Bool) Whether or not the certificate can be downloaded
70
+ attr_accessor :can_download
71
+
69
72
  attr_mapping({
70
73
  'certificateId' => :id,
71
74
  'name' => :name,
@@ -75,7 +78,8 @@ module Spaceship
75
78
  'ownerType' => :owner_type,
76
79
  'ownerName' => :owner_name,
77
80
  'ownerId' => :owner_id,
78
- 'certificateTypeDisplayId' => :type_display_id
81
+ 'certificateTypeDisplayId' => :type_display_id,
82
+ 'canDownload' => :can_download
79
83
  })
80
84
 
81
85
  #####################################################
@@ -8,6 +8,9 @@ module Spaceship
8
8
  # this version is for
9
9
  attr_accessor :application
10
10
 
11
+ # @return (String) The platform value of this version.
12
+ attr_accessor :platform
13
+
11
14
  # @return (String) The version number of this version
12
15
  attr_accessor :version
13
16
 
@@ -114,6 +117,7 @@ module Spaceship
114
117
 
115
118
  attr_mapping({
116
119
  'appType' => :app_type,
120
+ 'platform' => :platform,
117
121
  'canBetaTest' => :can_beta_test,
118
122
  'canPrepareForUpload' => :can_prepare_for_upload,
119
123
  'canRejectVersion' => :can_reject_version,
@@ -1,7 +1,7 @@
1
1
  module Spaceship
2
2
  module Tunes
3
3
  class DeviceType
4
- @types = ['iphone4', 'iphone35', 'iphone6', 'iphone6Plus', 'ipad', 'ipadPro', 'watch', 'appleTV', 'mac']
4
+ @types = ['iphone4', 'iphone35', 'iphone6', 'iphone6Plus', 'ipad', 'ipadPro', 'watch', 'appleTV', 'desktop']
5
5
  class << self
6
6
  attr_accessor :types
7
7
 
@@ -314,10 +314,16 @@ module Spaceship
314
314
 
315
315
  # We only support platforms that exist ATM
316
316
  platform = platforms.find do |p|
317
- ['ios', 'osx'].include? p['platformString']
317
+ ['ios', 'osx', 'appletvos'].include? p['platformString']
318
318
  end
319
319
 
320
- raise "Could not find platform ios or osx for app #{app_id}" unless platform
320
+ raise "Could not find platform ios, osx or appletvos for app #{app_id}" unless platform
321
+
322
+ # If your app has versions for both iOS and tvOS we will default to returning the iOS version for now.
323
+ # This is intentional as we need to do more work to support apps that have hybrid versions.
324
+ if platforms.length > 1
325
+ platform = platforms.detect { |p| p['platformString'] == "ios" }
326
+ end
321
327
 
322
328
  version = platform[(is_live ? 'deliverableVersion' : 'inFlightVersion')]
323
329
  return nil unless version
@@ -1,3 +1,3 @@
1
1
  module Spaceship
2
- VERSION = "0.18.1"
2
+ VERSION = "0.19.0"
3
3
  end
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.18.1
4
+ version: 0.19.0
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: 2015-12-18 00:00:00.000000000 Z
12
+ date: 2016-01-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: credentials_manager
@@ -328,7 +328,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
328
328
  version: '0'
329
329
  requirements: []
330
330
  rubyforge_project:
331
- rubygems_version: 2.4.0
331
+ rubygems_version: 2.4.6
332
332
  signing_key:
333
333
  specification_version: 4
334
334
  summary: Because you would rather spend your time building stuff than fighting provisioning