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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 790229a2d6e74282e878e2e11915fff8bd6a92ddf2c6185b479cdfa0530acfe3
4
- data.tar.gz: f46b5ddba8fa60fb7af5bc5adaee409e487d8301edc65d7085f32532821384ad
3
+ metadata.gz: 81a959dbc7121c7d7a05af1428691e2e569924c5aa5312a586b11ea0d828997a
4
+ data.tar.gz: d888bb57fc3f8f61abe40dca59be684b9b5eaac913229b783750888de1ef1eb9
5
5
  SHA512:
6
- metadata.gz: cd9c61b8ebb297f5f41f3b8e05d1a45a5d7250192767bb61993b4f58dcc1fb26516caf6bbe1b7191c5ead52a69c8602f10d4b722402558c20a95ab72512f262b
7
- data.tar.gz: 81f5fb58194248d0a7aaba6db9e80b8685f838902f298418a882fe9639c11d751be29c32bd6406211da62e28ede6b60663e04f8f8ff27691d2b9a14a455f5c44
6
+ metadata.gz: d8765bed9b010e211949014c301bab4bbd05f28da40874ec7d018b2be4c457a9eedd5bea7b00d750e346ee04ef3290cb5416826ebedd3f5615f2dd4fd919fc25
7
+ data.tar.gz: e1e0ea6c6a1809dc3287a4972a685d07ce91bb64cacd8f2605d2300926e68b1646e03e9ae74e97ac7b37d7b91767164cf0520e05cee0039a3f010da112513b26
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mysigner (0.1.6)
4
+ mysigner (0.1.7)
5
5
  base64 (~> 0.2)
6
6
  faraday (~> 2.14)
7
7
  faraday-retry (~> 2.2)
@@ -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.presence || android_defaults&.dig('default_track') || 'internal'
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 — `!x.nil?` evaluates to `true` for `false`,
17
- # which previously caused `wait: false` / `no_submit: false` to be
18
- # treated as `true`. Use `!!` to get the actual boolean semantics.
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 = !opts[:no_submit].nil?
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) ? !opts[:default_submit].nil? : false
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",
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Mysigner
4
- VERSION = '0.1.6'
4
+ VERSION = '0.1.7'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mysigner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jurgen Leka