fastlane 2.67.0.beta.20171121010003 → 2.67.0.beta.20171122010004

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: 8353ef4f441a8076fc1b1a0b163a8a744b68abae
4
- data.tar.gz: 34188daf8457774a30e335ca05f8b2b0a4a6e9ca
3
+ metadata.gz: 4a808852d92d2f8dc90e76fb205ebc614ced80d7
4
+ data.tar.gz: 5238ea0ca0e2fc360bedf96c9a43c0282b73f60a
5
5
  SHA512:
6
- metadata.gz: 9421202e3668aca26326dd08b0a47030a1714592334f2902fa268b13b2a3ad396c32b006ddce8eadeaefc435209c8b68bd50565bca8f2fdc4afedcba33c9bcda
7
- data.tar.gz: cb643e84bd7a7d06a6c07b8a8a75fac6d1532b9b430be2ce63af84676d5634a4b6c21b63c9eabadd9fdb7e21740afb3dc803f4e2875bd83525e33d2397b32818
6
+ metadata.gz: 9c69e31d8df2469fea4f863d40fa04daa05b73655fc47f33a6de3f20650bf43d8b04552c203960e98b58c77158f8bb9b7d329ddaa9bbd5544a860acb4f56ebeb
7
+ data.tar.gz: dccc5d82fd0f8793f9537a7f63a0905f0d10226d0439f25ab70edda14c16fb0153da06e814e9bc9f1273d3bdcafcdf4f303d1238bd3aed8c9a0fcca031fa02e4
@@ -43,7 +43,7 @@ module Fastlane
43
43
  #####################################################
44
44
 
45
45
  def self.description
46
- "Small action to save your build artifacts. Useful when you use reset_git_repo"
46
+ "Copy and save your build artifacts (useful when you use reset_git_repo)"
47
47
  end
48
48
 
49
49
  def self.details
@@ -56,7 +56,7 @@ module Fastlane
56
56
  def self.available_options
57
57
  [
58
58
  FastlaneCore::ConfigItem.new(key: :keep_original,
59
- description: "Set this to true if you want copy, rather than move, semantics",
59
+ description: "Set this to false if you want move, rather than copy, the found artifacts",
60
60
  is_string: false,
61
61
  optional: true,
62
62
  default_value: true),
@@ -90,7 +90,7 @@ module Fastlane
90
90
  [
91
91
  'copy_artifacts(
92
92
  target_path: "artifacts",
93
- artifacts: ["*.cer", "*.mobileprovision", "*.ipa", "*.dSYM.zip"]
93
+ artifacts: ["*.cer", "*.mobileprovision", "*.ipa", "*.dSYM.zip", "path/to/file.txt", "another/path/*.extension"]
94
94
  )
95
95
 
96
96
  # Reset the git repo to a clean state, but leave our artifacts in place
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
- VERSION = '2.67.0.beta.20171121010003'.freeze
2
+ VERSION = '2.67.0.beta.20171122010004'.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_install_date
206
+ if tester.latest_installed_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)
505
+ self.provider = Spaceship::Provider.new(provider_hash: provider) unless provider.nil?
506
506
  self.available_providers = body["availableProviders"].map do |provider_hash|
507
507
  Spaceship::Provider.new(provider_hash: provider_hash)
508
508
  end
@@ -84,11 +84,16 @@ 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"}
87
91
  def get_groups(app_id: nil)
92
+ return @cached_groups if @cached_groups
88
93
  assert_required_params(__method__, binding)
89
94
 
90
- response = request(:get, "/testflight/v2/providers/#{team_id}/apps/#{app_id}/groups")
91
- handle_response(response)
95
+ response = request(:get, "/testflight/v2/providers/#{provider_id}/apps/#{app_id}/groups")
96
+ @cached_groups = handle_response(response)
92
97
  end
93
98
 
94
99
  def add_group_to_build(app_id: nil, group_id: nil, build_id: nil)
@@ -106,17 +111,6 @@ module Spaceship::TestFlight
106
111
  handle_response(response)
107
112
  end
108
113
 
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
-
120
114
  #####################################################
121
115
  # @!group Testers
122
116
  #####################################################
@@ -128,7 +122,7 @@ module Spaceship::TestFlight
128
122
 
129
123
  def testers_by_app(tester, app_id, group_id: nil)
130
124
  if group_id.nil?
131
- group_ids = groups(app_id).map do |group|
125
+ group_ids = get_groups(app_id: app_id).map do |group|
132
126
  group['id']
133
127
  end
134
128
  end
@@ -136,7 +130,7 @@ module Spaceship::TestFlight
136
130
  testers = []
137
131
 
138
132
  group_ids.each do |json_group_id|
139
- url = tester.url(app_id, self.provider.provider_id, json_group_id)[:index_by_app]
133
+ url = tester.url(app_id, provider_id, json_group_id)[:index_by_app]
140
134
  r = request(:get, url)
141
135
  testers += parse_response(r, 'data')['users']
142
136
  end
@@ -307,5 +301,10 @@ module Spaceship::TestFlight
307
301
  binding.eval(name.to_s)
308
302
  end
309
303
  end
304
+
305
+ def provider_id
306
+ return team_id if self.provider.nil?
307
+ self.provider.provider_id
308
+ end
310
309
  end
311
310
  end
@@ -41,7 +41,7 @@ module Spaceship::TestFlight
41
41
  # }
42
42
  attr_accessor :latest_install_info
43
43
 
44
- attr_accessor :latest_install_date
44
+ attr_accessor :latest_installed_date
45
45
 
46
46
  # @return (Integer) Number of sessions
47
47
  attr_accessor :session_count
@@ -60,10 +60,12 @@ module Spaceship::TestFlight
60
60
  'groups' => :groups
61
61
  )
62
62
 
63
- def latest_install_date
63
+ def latest_installed_date
64
64
  return nil unless latest_install_info
65
- latest_installed_date = latest_install_info["latestInstalledDate"]
66
- return latest_installed_date
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
67
69
  end
68
70
 
69
71
  def pretty_install_date
@@ -12,6 +12,8 @@ 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
+
15
17
  platform = versions.detect do |p|
16
18
  ['ios', 'osx', 'appletvos'].include? p['platformString']
17
19
  end
@@ -21,9 +23,9 @@ module Spaceship
21
23
  # If your app has versions for both iOS and tvOS we will default to returning the iOS version for now.
22
24
  # This is intentional as we need to do more work to support apps that have hybrid versions.
23
25
  if versions.length > 1 && search_platform.nil?
24
- platform = versions.detect { |p| p['platformString'] == "ios" }
26
+ platform = versions.detect { |p| p['platformString'].to_sym == :ios }
25
27
  elsif !search_platform.nil?
26
- platform = versions.detect { |p| p['platformString'] == search_platform }
28
+ platform = versions.detect { |p| p['platformString'].to_sym == search_platform }
27
29
  end
28
30
  platform
29
31
  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.67.0.beta.20171121010003
4
+ version: 2.67.0.beta.20171122010004
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2017-11-21 00:00:00.000000000 Z
18
+ date: 2017-11-22 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: slack-notifier