mysigner 0.1.6 → 0.1.7
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/Gemfile.lock +1 -1
- data/lib/mysigner/cli/build_commands.rb +3 -3
- data/lib/mysigner/upload/app_store_automation.rb +9 -6
- data/lib/mysigner/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 81a959dbc7121c7d7a05af1428691e2e569924c5aa5312a586b11ea0d828997a
|
|
4
|
+
data.tar.gz: d888bb57fc3f8f61abe40dca59be684b9b5eaac913229b783750888de1ef1eb9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d8765bed9b010e211949014c301bab4bbd05f28da40874ec7d018b2be4c457a9eedd5bea7b00d750e346ee04ef3290cb5416826ebedd3f5615f2dd4fd919fc25
|
|
7
|
+
data.tar.gz: e1e0ea6c6a1809dc3287a4972a685d07ce91bb64cacd8f2605d2300926e68b1646e03e9ae74e97ac7b37d7b91767164cf0520e05cee0039a3f010da112513b26
|
data/Gemfile.lock
CHANGED
|
@@ -928,7 +928,7 @@ module Mysigner
|
|
|
928
928
|
# if the user left it implicit (which `ship android` currently
|
|
929
929
|
# doesn't allow — track is required — but kept here for
|
|
930
930
|
# symmetry with submit_android and future-proofing).
|
|
931
|
-
effective_track = track.
|
|
931
|
+
effective_track = (track && !track.empty? ? track : nil) || android_defaults&.dig('default_track') || 'internal'
|
|
932
932
|
|
|
933
933
|
status = android_defaults&.dig('default_status')
|
|
934
934
|
user_fraction = android_defaults&.dig('default_user_fraction')
|
|
@@ -1558,8 +1558,8 @@ module Mysigner
|
|
|
1558
1558
|
|
|
1559
1559
|
bundle_id = options[:bundle_id] || parser.bundle_id(target_name, options[:configuration])
|
|
1560
1560
|
|
|
1561
|
-
# Validate bundle ID format if overridden
|
|
1562
|
-
if options[:bundle_id]
|
|
1561
|
+
# Validate bundle ID format if overridden (skip empty to let executor handle)
|
|
1562
|
+
if options[:bundle_id] && !options[:bundle_id].empty?
|
|
1563
1563
|
if bundle_id =~ /\$\(|\$\{/
|
|
1564
1564
|
error "Bundle ID cannot contain variables: #{bundle_id}"
|
|
1565
1565
|
exit 1
|
|
@@ -13,10 +13,9 @@ module Mysigner
|
|
|
13
13
|
def initialize(client:, organization_id:, opts: {})
|
|
14
14
|
@client = client
|
|
15
15
|
@organization_id = organization_id
|
|
16
|
-
# Proper boolean coercion —
|
|
17
|
-
#
|
|
18
|
-
|
|
19
|
-
@wait_enabled = opts.key?(:wait) ? !opts[:wait].nil? : true
|
|
16
|
+
# Proper boolean coercion — must distinguish between `false` (an
|
|
17
|
+
# explicit user intent to disable) and an unset key (default applies).
|
|
18
|
+
@wait_enabled = opts.key?(:wait) ? to_bool(opts[:wait]) : true
|
|
20
19
|
|
|
21
20
|
poll = opts[:poll_interval] || opts[:poll_seconds]
|
|
22
21
|
poll = poll.to_i if poll
|
|
@@ -26,13 +25,13 @@ module Mysigner
|
|
|
26
25
|
timeout = timeout.to_i if timeout
|
|
27
26
|
@timeout = timeout&.positive? ? timeout : DEFAULT_WAIT_TIMEOUT
|
|
28
27
|
|
|
29
|
-
@no_submit =
|
|
28
|
+
@no_submit = to_bool(opts[:no_submit])
|
|
30
29
|
|
|
31
30
|
# Whether to submit by default when NEITHER cli_defaults nor CLI
|
|
32
31
|
# overrides specify `auto_submit`. `ship`/`submit` pass true (it's
|
|
33
32
|
# the user's explicit intent). Dashboard `cli_defaults.auto_submit`
|
|
34
33
|
# still wins if set — we only fall back to this when silent.
|
|
35
|
-
@default_submit = opts.key?(:default_submit) ?
|
|
34
|
+
@default_submit = opts.key?(:default_submit) ? to_bool(opts[:default_submit]) : false
|
|
36
35
|
|
|
37
36
|
@now = opts[:now]
|
|
38
37
|
end
|
|
@@ -105,6 +104,10 @@ module Mysigner
|
|
|
105
104
|
|
|
106
105
|
private
|
|
107
106
|
|
|
107
|
+
def to_bool(value)
|
|
108
|
+
value ? true : false
|
|
109
|
+
end
|
|
110
|
+
|
|
108
111
|
def ensure_app(bundle_id)
|
|
109
112
|
response = @client.get(
|
|
110
113
|
"/api/v1/organizations/#{@organization_id}/apple_apps",
|
data/lib/mysigner/version.rb
CHANGED