branch_io_cli 0.12.6 → 0.12.7

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
  SHA256:
3
- metadata.gz: 6d66c36f8ea879767e9928b94821ca85203a04db1beda4e23c387194b955e60f
4
- data.tar.gz: 0a3d8be8d0787754615ac1c98cb7b07e86261bd46e13e1006a5e6ff5e284bb48
3
+ metadata.gz: 4f4b56f1ff4b570ba8dfd1efbfa07ce22bfc5845203e1cda6362de90af8c61a5
4
+ data.tar.gz: ccd9d333c5163062dee9ed5f241614e2a52f1ca450bf24d7a22a891ded00c44a
5
5
  SHA512:
6
- metadata.gz: e9720d76203af10eeb5ce6abab6760c8e73235309dea04f66fa276e07f33b8d957b14827f3f3470e579aad8efa934e0ce65b82ef783e49619b07b394d4d48631
7
- data.tar.gz: cbbc107c96b63ee5ffe3ee7256dca279c53ed8aca4ac60cdb8b932f62ce8d82bb7cc6797e8d450fac91d878c1589820c69485a073442a255eb232fab358d4fd5
6
+ metadata.gz: 4101b50e8f1751a8fbbe4e6b1ef79dc3cd014dd79b9f6a23e16eee0475a0df6f666ccbf83f6816e106b7d68b77df8cd79de2eec80488690d9c76cd016cb22eff
7
+ data.tar.gz: a10b7cba90bb2ccd86bd3b3e04a67d27272331addc3844d5e55ad71de43f55ec8b77ac640bc7824d5b32c8e3f21ac6fffe90526e311c33d596ff741ee6c0886e
data/README.md CHANGED
@@ -145,7 +145,7 @@ See https://github.com/BranchMetrics/branch_io_cli#setup-command for more inform
145
145
  |-T, --test-key key_test_yyyy|Branch test key|BRANCH_TEST_KEY|
146
146
  |-D, --domains example.com,www.example.com|Comma-separated list of custom domain(s) or non-Branch domain(s)|BRANCH_DOMAINS|
147
147
  |--app-link-subdomain myapp|Branch app.link subdomain, e.g. myapp for myapp.app.link|BRANCH_APP_LINK_SUBDOMAIN|
148
- |-U, --uri-scheme myurischeme[://]|Custom URI scheme used in the Branch Dashboard for this app|BRANCH_URI_SCHEME|
148
+ |-U, --[no-]uri-scheme [myurischeme[://]]|Custom URI scheme used in the Branch Dashboard for this app|BRANCH_URI_SCHEME|
149
149
  |-s, --setting [BRANCH_KEY_SETTING]|Use a custom build setting for the Branch key (default: Use Info.plist)|BRANCH_SETTING|
150
150
  |--[no-]test-configurations [config1,config2]|List of configurations that use the test key with a user-defined setting (default: Debug configurations)|BRANCH_TEST_CONFIGURATIONS|
151
151
  |--xcodeproj MyProject.xcodeproj|Path to an Xcode project to update|BRANCH_XCODEPROJ|
@@ -31,12 +31,12 @@ module BranchIOCLI
31
31
  sh "pod install", chdir: File.dirname(config.podfile_path)
32
32
  end
33
33
 
34
- # Add SDK via CocoaPods, Carthage or direct download (no-op if disabled).
35
- add_sdk
36
-
37
34
  # Set up Universal Links and Branch key(s)
38
35
  update_project_settings
39
36
 
37
+ # Add SDK via CocoaPods, Carthage or direct download (no-op if disabled).
38
+ add_sdk
39
+
40
40
  # Patch source code if so instructed.
41
41
  patch_helper.patch_source config.xcodeproj if config.patch_source
42
42
 
@@ -12,6 +12,11 @@ module BranchIOCLI
12
12
 
13
13
  attr_reader :report_path
14
14
 
15
+ def initialize(options)
16
+ @confirm = options.confirm
17
+ super
18
+ end
19
+
15
20
  def validate_options
16
21
  @clean = options.clean
17
22
  @header_only = options.header_only
@@ -31,6 +31,7 @@ module BranchIOCLI
31
31
  attr_reader :all_domains
32
32
 
33
33
  def initialize(options)
34
+ @confirm = options.confirm
34
35
  super
35
36
  # Configuration has been validated and logged to the screen.
36
37
  confirm_with_user if options.confirm
@@ -177,8 +178,14 @@ module BranchIOCLI
177
178
  # No validation at the moment. Just strips off any trailing ://
178
179
  uri_scheme = options.uri_scheme
179
180
 
181
+ # --no-uri-scheme/uri_scheme: false
182
+ if options.uri_scheme == false
183
+ @uri_scheme = nil
184
+ return
185
+ end
186
+
180
187
  if confirm
181
- uri_scheme ||= ask "Please enter any URI scheme you entered in the Branch Dashboard (optional). "
188
+ uri_scheme ||= ask "Please enter any URI scheme you entered in the Branch Dashboard [enter for none]: "
182
189
  end
183
190
 
184
191
  @uri_scheme = self.class.uri_scheme_without_suffix uri_scheme
@@ -41,6 +41,7 @@ module BranchIOCLI
41
41
  type: String,
42
42
  aliases: "-U",
43
43
  label: "URI scheme",
44
+ negatable: true,
44
45
  convert_proc: ->(value) { Configuration.uri_scheme_without_suffix(value) }
45
46
  ),
46
47
  Option.new(
@@ -1,3 +1,3 @@
1
1
  module BranchIOCLI
2
- VERSION = "0.12.6"
2
+ VERSION = "0.12.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: branch_io_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.6
4
+ version: 0.12.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Branch
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-12-21 00:00:00.000000000 Z
12
+ date: 2017-12-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: CFPropertyList
@@ -355,7 +355,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
355
355
  version: '0'
356
356
  requirements: []
357
357
  rubyforge_project:
358
- rubygems_version: 2.7.3
358
+ rubygems_version: 2.7.4
359
359
  signing_key:
360
360
  specification_version: 4
361
361
  summary: Branch.io command-line interface for mobile app integration