fastlane 2.66.2 → 2.67.0.beta.20171121010003

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: 4587e352b21ddfa15fbdd2c72e434dc992e33c1a
4
- data.tar.gz: 6384d6b60124db9fec71043e16ca5c7c95f918e4
3
+ metadata.gz: 8353ef4f441a8076fc1b1a0b163a8a744b68abae
4
+ data.tar.gz: 34188daf8457774a30e335ca05f8b2b0a4a6e9ca
5
5
  SHA512:
6
- metadata.gz: 647760053ed448299214f5bb41b0d9a438dd264cebe776d1de836d988d136b39042ceaa783afbcb7abe5c745ad472cedbfa3309c8ebb6e3b3e0f06fc725fca63
7
- data.tar.gz: 34ecf9612dfbe932663c731685efc12cd09c29dc295fba43abad84fa5b94691bcc5046acf1b2d327ad5eb6851f78170fc3e94f7eef39a89e02bbb2d9d6849bcd
6
+ metadata.gz: 9421202e3668aca26326dd08b0a47030a1714592334f2902fa268b13b2a3ad396c32b006ddce8eadeaefc435209c8b68bd50565bca8f2fdc4afedcba33c9bcda
7
+ data.tar.gz: cb643e84bd7a7d06a6c07b8a8a75fac6d1532b9b430be2ce63af84676d5634a4b6c21b63c9eabadd9fdb7e21740afb3dc803f4e2875bd83525e33d2397b32818
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.66.2'.freeze
2
+ VERSION = '2.67.0.beta.20171121010003'.freeze
3
3
  DESCRIPTION = "The easiest way to automate beta deployments and releases for your iOS and Android apps".freeze
4
4
  MINIMUM_XCODE_RELEASE = "7.0".freeze
5
5
  RUBOCOP_REQUIREMENT = '0.49.1'.freeze
@@ -203,7 +203,7 @@ module Pilot
203
203
  rows << ["Groups", tester.groups.join(";")]
204
204
  end
205
205
 
206
- if tester.latest_installed_date
206
+ if tester.latest_install_date
207
207
  rows << ["Latest Version", tester.latest_build]
208
208
  rows << ["Latest Install Date", tester.pretty_install_date]
209
209
  end
@@ -502,7 +502,7 @@ module Spaceship
502
502
  end
503
503
 
504
504
  provider = body["provider"]
505
- self.provider = Spaceship::Provider.new(provider_hash: provider) unless provider.nil?
505
+ self.provider = Spaceship::Provider.new(provider_hash: provider)
506
506
  self.available_providers = body["availableProviders"].map do |provider_hash|
507
507
  Spaceship::Provider.new(provider_hash: provider_hash)
508
508
  end
@@ -84,16 +84,11 @@ module Spaceship::TestFlight
84
84
  # @!group Groups API
85
85
  ##
86
86
 
87
- # Returns a list of available testing groups
88
- # e.g.
89
- # {"b6f65dbd-c845-4d91-bc39-0b661d608970" => "Boarding",
90
- # "70402368-9deb-409f-9a26-bb3f215dfee3" => "Automatic"}
91
87
  def get_groups(app_id: nil)
92
- return @cached_groups if @cached_groups
93
88
  assert_required_params(__method__, binding)
94
89
 
95
- response = request(:get, "/testflight/v2/providers/#{provider_id}/apps/#{app_id}/groups")
96
- @cached_groups = handle_response(response)
90
+ response = request(:get, "/testflight/v2/providers/#{team_id}/apps/#{app_id}/groups")
91
+ handle_response(response)
97
92
  end
98
93
 
99
94
  def add_group_to_build(app_id: nil, group_id: nil, build_id: nil)
@@ -111,6 +106,17 @@ module Spaceship::TestFlight
111
106
  handle_response(response)
112
107
  end
113
108
 
109
+ # Returns a list of available testing groups
110
+ # e.g.
111
+ # {"b6f65dbd-c845-4d91-bc39-0b661d608970" => "Boarding",
112
+ # "70402368-9deb-409f-9a26-bb3f215dfee3" => "Automatic"}
113
+ def groups(app_id)
114
+ return @cached_groups if @cached_groups
115
+
116
+ r = request(:get, "/testflight/v2/providers/#{self.provider.provider_id}/apps/#{app_id}/groups")
117
+ @cached_groups = parse_response(r, 'data')
118
+ end
119
+
114
120
  #####################################################
115
121
  # @!group Testers
116
122
  #####################################################
@@ -122,7 +128,7 @@ module Spaceship::TestFlight
122
128
 
123
129
  def testers_by_app(tester, app_id, group_id: nil)
124
130
  if group_id.nil?
125
- group_ids = get_groups(app_id: app_id).map do |group|
131
+ group_ids = groups(app_id).map do |group|
126
132
  group['id']
127
133
  end
128
134
  end
@@ -130,7 +136,7 @@ module Spaceship::TestFlight
130
136
  testers = []
131
137
 
132
138
  group_ids.each do |json_group_id|
133
- url = tester.url(app_id, provider_id, json_group_id)[:index_by_app]
139
+ url = tester.url(app_id, self.provider.provider_id, json_group_id)[:index_by_app]
134
140
  r = request(:get, url)
135
141
  testers += parse_response(r, 'data')['users']
136
142
  end
@@ -301,10 +307,5 @@ module Spaceship::TestFlight
301
307
  binding.eval(name.to_s)
302
308
  end
303
309
  end
304
-
305
- def provider_id
306
- return team_id if self.provider.nil?
307
- self.provider.provider_id
308
- end
309
310
  end
310
311
  end
@@ -41,7 +41,7 @@ module Spaceship::TestFlight
41
41
  # }
42
42
  attr_accessor :latest_install_info
43
43
 
44
- attr_accessor :latest_installed_date
44
+ attr_accessor :latest_install_date
45
45
 
46
46
  # @return (Integer) Number of sessions
47
47
  attr_accessor :session_count
@@ -60,12 +60,10 @@ module Spaceship::TestFlight
60
60
  'groups' => :groups
61
61
  )
62
62
 
63
- def latest_installed_date
63
+ def latest_install_date
64
64
  return nil unless latest_install_info
65
- latest_installed_date_value = latest_install_info["latestInstalledDate"]
66
- return nil unless latest_installed_date_value
67
-
68
- return latest_installed_date_value.to_i
65
+ latest_installed_date = latest_install_info["latestInstalledDate"]
66
+ return latest_installed_date
69
67
  end
70
68
 
71
69
  def pretty_install_date
@@ -12,8 +12,6 @@ module Spaceship
12
12
 
13
13
  def find_platform(versions, search_platform: nil)
14
14
  # We only support platforms that exist ATM
15
- search_platform = search_platform.to_sym if search_platform
16
-
17
15
  platform = versions.detect do |p|
18
16
  ['ios', 'osx', 'appletvos'].include? p['platformString']
19
17
  end
@@ -23,9 +21,9 @@ module Spaceship
23
21
  # If your app has versions for both iOS and tvOS we will default to returning the iOS version for now.
24
22
  # This is intentional as we need to do more work to support apps that have hybrid versions.
25
23
  if versions.length > 1 && search_platform.nil?
26
- platform = versions.detect { |p| p['platformString'].to_sym == :ios }
24
+ platform = versions.detect { |p| p['platformString'] == "ios" }
27
25
  elsif !search_platform.nil?
28
- platform = versions.detect { |p| p['platformString'].to_sym == search_platform }
26
+ platform = versions.detect { |p| p['platformString'] == search_platform }
29
27
  end
30
28
  platform
31
29
  end
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.66.2
4
+ version: 2.67.0.beta.20171121010003
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -845,7 +845,6 @@ files:
845
845
  - fastlane/lib/assets/s3_plist_template.erb
846
846
  - fastlane/lib/assets/s3_version_template.erb
847
847
  - fastlane/lib/fastlane.rb
848
- - fastlane/lib/fastlane/.DS_Store
849
848
  - fastlane/lib/fastlane/action.rb
850
849
  - fastlane/lib/fastlane/action_collector.rb
851
850
  - fastlane/lib/fastlane/actions/README.md
@@ -1294,7 +1293,6 @@ files:
1294
1293
  - pilot/lib/pilot/tester_manager.rb
1295
1294
  - pilot/lib/pilot/tester_util.rb
1296
1295
  - precheck/README.md
1297
- - precheck/lib/.DS_Store
1298
1296
  - precheck/lib/assets/PrecheckfileTemplate
1299
1297
  - precheck/lib/precheck.rb
1300
1298
  - precheck/lib/precheck/commands_generator.rb
@@ -1506,24 +1504,24 @@ metadata:
1506
1504
  post_install_message:
1507
1505
  rdoc_options: []
1508
1506
  require_paths:
1509
- - cert/lib
1510
- - credentials_manager/lib
1511
- - deliver/lib
1512
- - fastlane/lib
1513
- - fastlane_core/lib
1514
- - frameit/lib
1515
- - gym/lib
1507
+ - supply/lib
1508
+ - screengrab/lib
1516
1509
  - match/lib
1517
- - pem/lib
1518
- - pilot/lib
1519
1510
  - precheck/lib
1511
+ - sigh/lib
1520
1512
  - produce/lib
1521
1513
  - scan/lib
1522
- - screengrab/lib
1523
- - sigh/lib
1514
+ - gym/lib
1524
1515
  - snapshot/lib
1516
+ - frameit/lib
1517
+ - fastlane/lib
1518
+ - cert/lib
1519
+ - pilot/lib
1525
1520
  - spaceship/lib
1526
- - supply/lib
1521
+ - credentials_manager/lib
1522
+ - deliver/lib
1523
+ - fastlane_core/lib
1524
+ - pem/lib
1527
1525
  required_ruby_version: !ruby/object:Gem::Requirement
1528
1526
  requirements:
1529
1527
  - - ">="
@@ -1531,15 +1529,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
1531
1529
  version: 2.0.0
1532
1530
  required_rubygems_version: !ruby/object:Gem::Requirement
1533
1531
  requirements:
1534
- - - ">="
1532
+ - - ">"
1535
1533
  - !ruby/object:Gem::Version
1536
- version: '0'
1534
+ version: 1.3.1
1537
1535
  requirements: []
1538
1536
  rubyforge_project:
1539
- rubygems_version: 2.2.5
1537
+ rubygems_version: 2.4.5.1
1540
1538
  signing_key:
1541
1539
  specification_version: 4
1542
1540
  summary: The easiest way to automate beta deployments and releases for your iOS and
1543
1541
  Android apps
1544
1542
  test_files: []
1545
- has_rdoc:
Binary file
Binary file