deliver 0.11.1 → 0.11.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 +4 -4
- data/lib/deliver/deliver_process.rb +3 -27
- data/lib/deliver/deliverfile/dsl.rb +1 -1
- data/lib/deliver/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c19a679c4731a7abb3c26bc71baef7837c809099
|
4
|
+
data.tar.gz: 33f947e8d5fc02381a6555f91c85cf2c37d58a0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 702f78837ac2edcd3a9c98146c1c171bb23bb3f1623b8eecf2b9d4b7452f50cae21eab64eb0156b3fd1e027e12fccfcdaddb3c55eb2fae836d771f37cec02218
|
7
|
+
data.tar.gz: cff14e99c1f8eb3cf39b306a6626f8ec0c709534c685afe8a561c11d505d8b5b7ac7b492e24a9ee47ad690d2d15c3edc9604b07402b8b108116bc9abfd9e0978
|
@@ -26,11 +26,11 @@ module Deliver
|
|
26
26
|
|
27
27
|
def run
|
28
28
|
begin
|
29
|
+
fetch_information_from_ipa_file
|
29
30
|
pre_load_default_values
|
30
31
|
|
31
32
|
unless metadata_only?
|
32
33
|
run_unit_tests
|
33
|
-
fetch_information_from_ipa_file
|
34
34
|
end
|
35
35
|
|
36
36
|
Helper.log.info("Got all information needed to deploy a new update ('#{app_version}') for app '#{app_identifier}'")
|
@@ -106,8 +106,10 @@ module Deliver
|
|
106
106
|
def pre_load_default_values
|
107
107
|
@app_identifier ||= @deploy_information[Deliverer::ValKey::APP_IDENTIFIER]
|
108
108
|
@app_identifier ||= (CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier) rescue nil)
|
109
|
+
@app_identifier ||= (@ipa.fetch_app_identifier rescue nil) # since ipa might be nil
|
109
110
|
|
110
111
|
@app_version ||= @deploy_information[Deliverer::ValKey::APP_VERSION]
|
112
|
+
@app_version ||= (@ipa.fetch_app_version rescue nil) # since ipa might be nil
|
111
113
|
@app_version ||= (FastlaneCore::ItunesSearchApi.fetch_by_identifier(app_identifier)['version'] rescue nil)
|
112
114
|
@app_version ||= (app.get_live_version rescue nil)
|
113
115
|
end
|
@@ -199,12 +201,6 @@ module Deliver
|
|
199
201
|
end
|
200
202
|
|
201
203
|
@ipa = Deliver::IpaUploader.new(Deliver::App.new, '/tmp/', used_ipa_file, upload_strategy)
|
202
|
-
|
203
|
-
# We are able to fetch some metadata directly from the ipa file
|
204
|
-
# If they were also given in the Deliverfile, we will compare the values
|
205
|
-
# Overwrite the cached value if there is any
|
206
|
-
load_app_identifier_from_ipa
|
207
|
-
load_app_version_from_ipa
|
208
204
|
end
|
209
205
|
end
|
210
206
|
|
@@ -424,25 +420,5 @@ module Deliver
|
|
424
420
|
ipa_path: ENV["DELIVER_IPA_PATH"]
|
425
421
|
}
|
426
422
|
end
|
427
|
-
|
428
|
-
def load_app_identifier_from_ipa
|
429
|
-
@app_identifier ||= @ipa.fetch_app_identifier # to not ask the user if there is no identifier there yet
|
430
|
-
|
431
|
-
if app_identifier
|
432
|
-
if @ipa.fetch_app_identifier and app_identifier != @ipa.fetch_app_identifier
|
433
|
-
raise Deliver::Deliverfile::Deliverfile::DeliverfileDSLError.new("App Identifier of IPA does not match with the given one ('#{app_identifier}' != '#{@ipa.fetch_app_identifier}')".red)
|
434
|
-
end
|
435
|
-
end
|
436
|
-
end
|
437
|
-
|
438
|
-
def load_app_version_from_ipa
|
439
|
-
@app_version ||= @ipa.fetch_app_version # to not ask the user if there is no version there yet
|
440
|
-
|
441
|
-
if app_version
|
442
|
-
if @ipa.fetch_app_version and app_version != @ipa.fetch_app_version
|
443
|
-
raise Deliver::Deliverfile::Deliverfile::DeliverfileDSLError.new("App Version of IPA does not match with the given one (#{app_version} != #{@ipa.fetch_app_version})".red)
|
444
|
-
end
|
445
|
-
end
|
446
|
-
end
|
447
423
|
end
|
448
424
|
end
|
@@ -6,7 +6,7 @@ module Deliver
|
|
6
6
|
class Deliverfile
|
7
7
|
module DSL
|
8
8
|
MISSING_VALUE_ERROR_MESSAGE = "You have to pass either a value or a block to the given method."
|
9
|
-
SPECIFY_LANGUAGE_FOR_VALUE = "You have to specify the language of the given value. Either set a default language using 'default_language \"en\"' on the top of the file or pass a hash containing the language codes"
|
9
|
+
SPECIFY_LANGUAGE_FOR_VALUE = "You have to specify the language of the given value. Either set a default language using 'default_language \"en-US\"' on the top of the file or pass a hash containing the language codes"
|
10
10
|
|
11
11
|
MISSING_APP_IDENTIFIER_MESSAGE = "You have to pass a valid app identifier using the Deliver file. (e.g. 'app_identifier \"net.sunapps.app\"')"
|
12
12
|
MISSING_VERSION_NUMBER_MESSAGE = "You have to pass a valid version number using the Deliver file. (e.g. 'version \"1.0\"')"
|
data/lib/deliver/version.rb
CHANGED