spaceship 0.30.0 → 0.31.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: 0c8703b43554cede5448efcfdca163bd53a68bab
4
- data.tar.gz: f36dc587a3b0b35f7822a2239842c938f8ff960b
3
+ metadata.gz: e7934f51d95937873fa7f9b092f43c67c7f60a26
4
+ data.tar.gz: 6e3cdd75c545d2f456a0fe4fbf8eb277c2dfcaf0
5
5
  SHA512:
6
- metadata.gz: cee57e7c7ce91123da67e7ea96b701ca14995f2d8d846f181f969be2173953be2c850fbafe5eb0162ad16978670b7e80e8ccdb14673ccad2fed76e0ea597899c
7
- data.tar.gz: 3eef484c169b9b547659e9898ded742a1fd717ed8eee91e6db4794c659699a65e8ff25d21b8294f8ef0def0d90a296abd0a2ace0f9d35ce4d6a8984e9aded644
6
+ metadata.gz: 80480640eb4e829944c9dfa750794531b39212fc7bb98b1ad1a0d82a7611abb2b8f8e0b96f2fe34df13c130231f377551aae236746ff1501d8f7f88886d4b7db
7
+ data.tar.gz: c71c70fc9ec4c278551511b5863315af3bf82232d2deb142c1d5728a5f004c0b4d25b09c29b16bec82130425f42d442fa2290da033847594d4ae8519463184c6
@@ -201,8 +201,8 @@ module Spaceship
201
201
 
202
202
  # The numbers of all build trains that were uploaded
203
203
  # @return [Array] An array of train version numbers
204
- def all_build_train_numbers
205
- client.all_build_trains(app_id: self.apple_id).fetch("trains").collect do |current|
204
+ def all_build_train_numbers(platform: nil)
205
+ client.all_build_trains(app_id: self.apple_id, platform: platform).fetch("trains").collect do |current|
206
206
  current["versionString"]
207
207
  end
208
208
  end
@@ -211,8 +211,8 @@ module Spaceship
211
211
  # useful if the app is not listed in the TestFlight build list
212
212
  # which might happen if you don't use TestFlight
213
213
  # This is used to receive dSYM files from Apple
214
- def all_builds_for_train(train: nil)
215
- client.all_builds_for_train(app_id: self.apple_id, train: train).fetch("items", []).collect do |attrs|
214
+ def all_builds_for_train(train: nil, platform: nil)
215
+ client.all_builds_for_train(app_id: self.apple_id, train: train, platform: platform).fetch("items", []).collect do |attrs|
216
216
  attrs[:apple_id] = self.apple_id
217
217
  Tunes::Build.factory(attrs)
218
218
  end
@@ -130,7 +130,8 @@ module Spaceship
130
130
  def details
131
131
  response = client.build_details(app_id: self.apple_id,
132
132
  train: self.train_version,
133
- build_number: self.build_version)
133
+ build_number: self.build_version,
134
+ platform: self.platform)
134
135
  response['apple_id'] = self.apple_id
135
136
  BuildDetails.factory(response)
136
137
  end
@@ -540,18 +540,18 @@ module Spaceship
540
540
  end
541
541
 
542
542
  # All build trains, even if there is no TestFlight
543
- def all_build_trains(app_id: nil)
544
- r = request(:get, "ra/apps/#{app_id}/buildHistory?platform=ios")
543
+ def all_build_trains(app_id: nil, platform: nil)
544
+ r = request(:get, "ra/apps/#{app_id}/buildHistory?platform=#{platform || 'ios'}")
545
545
  handle_itc_response(r.body)
546
546
  end
547
547
 
548
- def all_builds_for_train(app_id: nil, train: nil)
549
- r = request(:get, "ra/apps/#{app_id}/trains/#{train}/buildHistory?platform=ios")
548
+ def all_builds_for_train(app_id: nil, train: nil, platform: nil)
549
+ r = request(:get, "ra/apps/#{app_id}/trains/#{train}/buildHistory?platform=#{platform || 'ios'}")
550
550
  handle_itc_response(r.body)
551
551
  end
552
552
 
553
- def build_details(app_id: nil, train: nil, build_number: nil)
554
- r = request(:get, "ra/apps/#{app_id}/platforms/ios/trains/#{train}/builds/#{build_number}/details")
553
+ def build_details(app_id: nil, train: nil, build_number: nil, platform: nil)
554
+ r = request(:get, "ra/apps/#{app_id}/platforms/#{platform || 'ios'}/trains/#{train}/builds/#{build_number}/details")
555
555
  handle_itc_response(r.body)
556
556
  end
557
557
 
@@ -1,4 +1,4 @@
1
1
  module Spaceship
2
- VERSION = "0.30.0".freeze
2
+ VERSION = "0.31.0".freeze
3
3
  DESCRIPTION = "Ruby library to access the Apple Dev Center and iTunes Connect".freeze
4
4
  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.30.0
4
+ version: 0.31.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 0.9.0
20
+ version: 0.16.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: 0.9.0
27
+ version: 0.16.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: multi_xml
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -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.5.1
394
+ rubygems_version: 2.6.6
395
395
  signing_key:
396
396
  specification_version: 4
397
397
  summary: Ruby library to access the Apple Dev Center and iTunes Connect