fastlane 2.28.1 → 2.28.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: 3c843f9c86c6cb45c10f16dc428c57ac8000fff2
4
- data.tar.gz: 78c756df5e94768e7c5191bc96d7da9d39083a8b
3
+ metadata.gz: 8bc110a25ada7ed90b962155121451a2dada56cc
4
+ data.tar.gz: 1bba629e783315e0a35241346f52f99befa2cf0c
5
5
  SHA512:
6
- metadata.gz: 3b7b556ddb92b9acd664c8b1e513be918d52bc9bdb74a90f87b79bfc80714f656b65a1005fc681d34af4593a816142807aa2a95b196e64326fa3e834f10e9672
7
- data.tar.gz: 1760f670b07d76ac8a2c996e50f36032194e2aa12f72e9d8d2cb1b4dfce4b919be21c1992cfd496489725a6f09065ba894947231864136af51e9954bfa9a58d5
6
+ metadata.gz: d4d17ea68a83a530910d5eb2f08cec09fe1f76858790f9be0f31694482380ecc332aa68ee76a5a82feaf284c0ee99e1b3672aca1152215460ca4251e3669aabc
7
+ data.tar.gz: a6308319bbf37809c7f33f292587a6ca0ca88cb38f1bb97126d62d6815db9cf8e12d2a27f5aebd3dce8cfa7fb7aaac027cb2ee18f4a97339b627b30eec3443d2
@@ -1,4 +1,4 @@
1
1
  module Fastlane
2
- VERSION = '2.28.1'.freeze
2
+ VERSION = '2.28.2'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  end
@@ -22,11 +22,6 @@ module Spaceship::TestFlight
22
22
 
23
23
  def post_tester(app_id: nil, tester: nil)
24
24
  assert_required_params(__method__, binding)
25
- # First we need to add the tester to the app
26
- # It's ok if the tester already exists, we just have to do this... don't ask
27
- # This will enable testing for the tester for a given app, as just creating the tester on an account-level
28
- # is not enough to add the tester to a group. If this isn't done the next request would fail.
29
- # This is a bug we reported to the iTunes Connect team, as it also happens on the iTunes Connect UI on 18. April 2017
30
25
  url = "providers/#{team_id}/apps/#{app_id}/testers"
31
26
  response = request(:post) do |req|
32
27
  req.url url
@@ -40,7 +35,7 @@ module Spaceship::TestFlight
40
35
  handle_response(response)
41
36
  end
42
37
 
43
- def put_test_to_group(app_id: nil, tester_id: nil, group_id: nil)
38
+ def put_tester_to_group(app_id: nil, tester_id: nil, group_id: nil)
44
39
  assert_required_params(__method__, binding)
45
40
  # Then we can add the tester to the group that allows the app to test
46
41
  # This is easy enough, we already have all this data. We don't need any response from the previous request
@@ -56,7 +51,6 @@ module Spaceship::TestFlight
56
51
  handle_response(response)
57
52
  end
58
53
 
59
- # def remove_tester_from_group!(group: nil, tester: nil, app_id: nil)
60
54
  def delete_tester_from_group(group_id: nil, tester_id: nil, app_id: nil)
61
55
  assert_required_params(__method__, binding)
62
56
  url = "providers/#{team_id}/apps/#{app_id}/groups/#{group_id}/testers/#{tester_id}"
@@ -36,12 +36,20 @@ module Spaceship::TestFlight
36
36
  groups.select(&block)
37
37
  end
38
38
 
39
+ # First we need to add the tester to the app
40
+ # It's ok if the tester already exists, we just have to do this... don't ask
41
+ # This will enable testing for the tester for a given app, as just creating the tester on an account-level
42
+ # is not enough to add the tester to a group. If this isn't done the next request would fail.
43
+ # This is a bug we reported to the iTunes Connect team, as it also happens on the iTunes Connect UI on 18. April 2017
39
44
  def add_tester!(tester)
40
- client.add_tester_to_group!(group: self, tester: tester, app_id: self.app_id)
45
+ # This post request makes the account-level tester available to the app
46
+ client.post_tester(app_id: self.app_id, tester: tester)
47
+ # This put request adds the tester to the group
48
+ client.put_tester_to_group(group_id: self.id, tester_id: tester.tester_id, app_id: self.app_id)
41
49
  end
42
50
 
43
51
  def remove_tester!(tester)
44
- client.remove_tester_from_group!(group: self, tester: tester, app_id: self.app_id)
52
+ client.delete_tester_from_group(group_id: self.id, tester_id: tester.tester_id, app_id: self.app_id)
45
53
  end
46
54
 
47
55
  def default_external_group?
@@ -371,7 +371,7 @@ module Spaceship
371
371
  #####################################################
372
372
 
373
373
  def default_external_group
374
- TestFlight::Group.default_external_group(self.apple_id)
374
+ TestFlight::Group.default_external_group(app_id: self.apple_id)
375
375
  end
376
376
 
377
377
  #####################################################
@@ -106,8 +106,9 @@ module Spaceship
106
106
  first_name: first_name,
107
107
  last_name: last_name,
108
108
  groups: groups)
109
- # We don't need to do additional parsing here, as `create_tester!` automatically
110
- # re-fetches the newly created tester
109
+ # The response of the client request is a hash but doesn't contain all of the necessary data (like testerId, etc)
110
+ # use #find to get an instance of Tester with all of the data.
111
+ find(email)
111
112
  end
112
113
 
113
114
  #####################################################
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.28.1
4
+ version: 2.28.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -1370,7 +1370,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1370
1370
  version: '0'
1371
1371
  requirements: []
1372
1372
  rubyforge_project:
1373
- rubygems_version: 2.5.1
1373
+ rubygems_version: 2.5.2
1374
1374
  signing_key:
1375
1375
  specification_version: 4
1376
1376
  summary: The easiest way to automate beta deployments and releases for your iOS and