fastlane_core 0.46.0 → 0.46.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd19ed1b75a82e1c47f24d3ff0639c8e5b4bc56e
|
4
|
+
data.tar.gz: d5030bf2771ff27adc8152064546cce6ee3a71f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e1ae94c8f44df1d3f69fb5eaa197bf35cadfa7d862b709c6955561f9f532594e2890d88ac69b6dca2b84f155aa6e12fde8a1e9d7da9f06808a2cb298c3390b8
|
7
|
+
data.tar.gz: 854e9180a55ed7938a5bd2e97a7b196f0647ec8483fa9fa986d8109b264190db748a88f52fcdf9312a41f111375afed87e01ab4a017ca0ff2b441aa64449e935
|
@@ -87,14 +87,14 @@ module FastlaneCore
|
|
87
87
|
|
88
88
|
# Returns an updated value type (if necessary)
|
89
89
|
def auto_convert_value(value)
|
90
|
-
|
91
|
-
|
92
|
-
|
90
|
+
return nil if value.nil?
|
91
|
+
|
92
|
+
if data_type == Array
|
93
93
|
return value.split(',') if value.kind_of?(String)
|
94
|
-
|
95
|
-
return value.to_i
|
96
|
-
|
97
|
-
return value.to_f
|
94
|
+
elsif data_type == Integer
|
95
|
+
return value.to_i if value.to_i.to_s == value.to_s
|
96
|
+
elsif data_type == Float
|
97
|
+
return value.to_f if value.to_f.to_s == value.to_s
|
98
98
|
else
|
99
99
|
# Special treatment if the user specified true, false or YES, NO
|
100
100
|
# There is no boolean type, so we just do it here
|
@@ -54,11 +54,11 @@ module FastlaneCore
|
|
54
54
|
# Make sure the given value keys exist
|
55
55
|
@values.each do |key, value|
|
56
56
|
next if key == :trace # special treatment
|
57
|
-
|
58
57
|
option = option_for_key(key)
|
59
58
|
if option
|
59
|
+
@values[key] = option.auto_convert_value(value)
|
60
60
|
UI.deprecated("Using deprecated option: '--#{key}' (#{option.deprecated})") if option.deprecated
|
61
|
-
option.verify!(
|
61
|
+
option.verify!(@values[key]) # Call the verify block for it too
|
62
62
|
else
|
63
63
|
UI.user_error!("Could not find option '#{key}' in the list of available options: #{@available_options.collect(&:key).join(', ')}")
|
64
64
|
end
|
@@ -133,7 +133,7 @@ module FastlaneCore
|
|
133
133
|
|
134
134
|
# Generates commands and executes the iTMSTransporter through the shell script it provides by the same name
|
135
135
|
class ShellScriptTransporterExecutor < TransporterExecutor
|
136
|
-
def build_upload_command(username, password, source = "/tmp"
|
136
|
+
def build_upload_command(username, password, source = "/tmp")
|
137
137
|
[
|
138
138
|
'"' + Helper.transporter_path + '"',
|
139
139
|
"-m upload",
|
@@ -142,21 +142,19 @@ module FastlaneCore
|
|
142
142
|
"-f '#{source}'",
|
143
143
|
ENV["DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS"], # that's here, because the user might overwrite the -t option
|
144
144
|
"-t 'Signiant'",
|
145
|
-
"-k 100000"
|
146
|
-
|
147
|
-
].compact.join(' ')
|
145
|
+
"-k 100000"
|
146
|
+
].join(' ')
|
148
147
|
end
|
149
148
|
|
150
|
-
def build_download_command(username, password, apple_id, destination = "/tmp"
|
149
|
+
def build_download_command(username, password, apple_id, destination = "/tmp")
|
151
150
|
[
|
152
151
|
'"' + Helper.transporter_path + '"',
|
153
152
|
"-m lookupMetadata",
|
154
153
|
"-u \"#{username}\"",
|
155
154
|
"-p #{shell_escaped_password(password)}",
|
156
155
|
"-apple_id #{apple_id}",
|
157
|
-
"-destination '#{destination}'"
|
158
|
-
|
159
|
-
].compact.join(' ')
|
156
|
+
"-destination '#{destination}'"
|
157
|
+
].join(' ')
|
160
158
|
end
|
161
159
|
|
162
160
|
def handle_error(password)
|
@@ -192,7 +190,7 @@ module FastlaneCore
|
|
192
190
|
# Generates commands and executes the iTMSTransporter by invoking its Java app directly, to avoid the crazy parameter
|
193
191
|
# escaping problems in its accompanying shell script.
|
194
192
|
class JavaTransporterExecutor < TransporterExecutor
|
195
|
-
def build_upload_command(username, password, source = "/tmp"
|
193
|
+
def build_upload_command(username, password, source = "/tmp")
|
196
194
|
[
|
197
195
|
Helper.transporter_java_executable_path.shellescape,
|
198
196
|
"-Djava.ext.dirs=#{Helper.transporter_java_ext_dir.shellescape}",
|
@@ -211,12 +209,11 @@ module FastlaneCore
|
|
211
209
|
ENV["DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS"], # that's here, because the user might overwrite the -t option
|
212
210
|
'-t Signiant',
|
213
211
|
'-k 100000',
|
214
|
-
("-itc_provider #{team_id}" unless team_id.to_s.empty?),
|
215
212
|
'2>&1' # cause stderr to be written to stdout
|
216
213
|
].compact.join(' ') # compact gets rid of the possibly nil ENV value
|
217
214
|
end
|
218
215
|
|
219
|
-
def build_download_command(username, password, apple_id, destination = "/tmp"
|
216
|
+
def build_download_command(username, password, apple_id, destination = "/tmp")
|
220
217
|
[
|
221
218
|
Helper.transporter_java_executable_path.shellescape,
|
222
219
|
"-Djava.ext.dirs=#{Helper.transporter_java_ext_dir.shellescape}",
|
@@ -233,9 +230,8 @@ module FastlaneCore
|
|
233
230
|
"-p #{password.shellescape}",
|
234
231
|
"-apple_id #{apple_id.shellescape}",
|
235
232
|
"-destination #{destination.shellescape}",
|
236
|
-
("-itc_provider #{team_id}" unless team_id.to_s.empty?),
|
237
233
|
'2>&1' # cause stderr to be written to stdout
|
238
|
-
].
|
234
|
+
].join(' ')
|
239
235
|
end
|
240
236
|
|
241
237
|
def handle_error(password)
|
@@ -274,10 +270,7 @@ module FastlaneCore
|
|
274
270
|
# @param use_shell_script if true, forces use of the iTMSTransporter shell script.
|
275
271
|
# if false, allows a direct call to the iTMSTransporter Java app (preferred).
|
276
272
|
# see: https://github.com/fastlane/fastlane/pull/4003
|
277
|
-
|
278
|
-
# flag to the upload command.
|
279
|
-
# see: https://github.com/fastlane/fastlane/issues/1524
|
280
|
-
def initialize(user = nil, password = nil, use_shell_script = false, team_id = nil)
|
273
|
+
def initialize(user = nil, password = nil, use_shell_script = false)
|
281
274
|
# Xcode 6.x doesn't have the same iTMSTransporter Java setup as later Xcode versions, so
|
282
275
|
# we can't default to using the better direct Java invocation strategy for those versions.
|
283
276
|
use_shell_script ||= Helper.is_mac? && Helper.xcode_version.start_with?('6.')
|
@@ -299,7 +292,6 @@ module FastlaneCore
|
|
299
292
|
end
|
300
293
|
|
301
294
|
@transporter_executor = use_shell_script ? ShellScriptTransporterExecutor.new : JavaTransporterExecutor.new
|
302
|
-
@team_id = team_id || (ENV['FASTLANE_TEAM_ID'] || '').strip
|
303
295
|
end
|
304
296
|
|
305
297
|
# Downloads the latest version of the app metadata package from iTC.
|
@@ -312,8 +304,8 @@ module FastlaneCore
|
|
312
304
|
dir ||= "/tmp"
|
313
305
|
|
314
306
|
UI.message("Going to download app metadata from iTunes Connect")
|
315
|
-
command = @transporter_executor.build_download_command(@user, @password, app_id, dir
|
316
|
-
UI.verbose(@transporter_executor.build_download_command(@user, 'YourPassword', app_id, dir
|
307
|
+
command = @transporter_executor.build_download_command(@user, @password, app_id, dir)
|
308
|
+
UI.verbose(@transporter_executor.build_download_command(@user, 'YourPassword', app_id, dir))
|
317
309
|
|
318
310
|
begin
|
319
311
|
result = @transporter_executor.execute(command, ItunesTransporter.hide_transporter_output?)
|
@@ -348,8 +340,8 @@ module FastlaneCore
|
|
348
340
|
UI.message("Going to upload updated app to iTunes Connect")
|
349
341
|
UI.success("This might take a few minutes, please don't interrupt the script")
|
350
342
|
|
351
|
-
command = @transporter_executor.build_upload_command(@user, @password, actual_dir
|
352
|
-
UI.verbose(@transporter_executor.build_upload_command(@user, 'YourPassword', actual_dir
|
343
|
+
command = @transporter_executor.build_upload_command(@user, @password, actual_dir)
|
344
|
+
UI.verbose(@transporter_executor.build_upload_command(@user, 'YourPassword', actual_dir))
|
353
345
|
|
354
346
|
begin
|
355
347
|
result = @transporter_executor.execute(command, ItunesTransporter.hide_transporter_output?)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.46.
|
4
|
+
version: 0.46.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -385,7 +385,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
385
385
|
version: '0'
|
386
386
|
requirements: []
|
387
387
|
rubyforge_project:
|
388
|
-
rubygems_version: 2.4.
|
388
|
+
rubygems_version: 2.4.8
|
389
389
|
signing_key:
|
390
390
|
specification_version: 4
|
391
391
|
summary: Contains all shared code/dependencies of the fastlane.tools
|