zendesk_apps_tools 3.8.6 → 3.8.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: '08cef58f08d6b218eb31c8c20306976ff8e39ecb4868e9fd85e01b18c036cde9'
4
- data.tar.gz: db840c01f59410b61d5c0268c04769a38363db93706504ae1d8b011da2827bd4
3
+ metadata.gz: 469b28cc578ccc7cbad6de69a857b3138e130bfe6b683a3009fd3b0eedebf4b8
4
+ data.tar.gz: 2269bfa98c87cb3ebd1d520050737aba11a70c7e562c8ea2b5f6f760808fe17e
5
5
  SHA512:
6
- metadata.gz: 804e110ed26231cb8667f559a08ff50e0901f92c6c50780bc2546c8d521f1f21b87f1d16011029e1379ab6f39c9cef8184850cf46210c21211d5a232a85df3cd
7
- data.tar.gz: cc8374affa71973249686f45d4183cb47591eb383981e5c8adb6ee412b559a12047f225f554b5444c87d26c7fc858adced04ab663dae21624e047b40097a7329
6
+ metadata.gz: cdb683db74f21b054b8c0b52379951c435bf04a74bfd9089fd58c59f1cd5e0ce0d07cf3de3e2fafc81c42827ff8e2ff66d3b7a7755fd4c4a2c88875098730512
7
+ data.tar.gz: 5479694c9d9baf5d136b1dae912b3cad69ef58faddf3bfc30ddf2681a76bf54ce028f3d22e23abb1a466c2724a1a6ba8a0e7f836912e4de4f3d5abfd72b5eb73
@@ -11,6 +11,7 @@ module ZendeskAppsTools
11
11
  include ZendeskAppsTools::CommandHelpers
12
12
 
13
13
  map %w[-v] => :version
14
+ DEFAULT_SERVER_IP = '0.0.0.0'
14
15
  DEFAULT_SERVER_PORT = '4567'
15
16
 
16
17
  source_root File.expand_path(File.join(File.dirname(__FILE__), '../..'))
@@ -158,7 +159,7 @@ module ZendeskAppsTools
158
159
  method_option :config, default: DEFAULT_CONFIG_PATH, required: false, aliases: '-c'
159
160
  method_option :port, default: DEFAULT_SERVER_PORT, required: false, desc: 'Port for the http server to use.'
160
161
  method_option :app_id, default: DEFAULT_APP_ID, required: false, type: :numeric
161
- method_option :bind, required: false
162
+ method_option :bind, default: DEFAULT_SERVER_IP, required: false
162
163
  method_option :plan, required: false
163
164
  def server
164
165
  setup_path(options[:path])
@@ -11,8 +11,9 @@ module ZendeskAppsTools
11
11
  desc 'preview', 'Preview a theme in development'
12
12
  shared_options(except: %i[clean unattended])
13
13
  method_option :port, default: Command::DEFAULT_SERVER_PORT, required: false, desc: 'Port for the http server to use.'
14
- method_option :bind, required: false
14
+ method_option :bind, default: Command::DEFAULT_SERVER_IP, required: false
15
15
  method_option :livereload, type: :boolean, default: true, desc: 'Enable or disable live-reloading the preview when a change is made.'
16
+ method_option :force_polling, type: :boolean, default: false, desc: 'Force the use of the polling adapter.'
16
17
  def preview
17
18
  setup_path(options[:path])
18
19
  ensure_manifest!
@@ -62,7 +63,7 @@ module ZendeskAppsTools
62
63
  # TODO: do we need to stop the listener at some point?
63
64
  require 'listen'
64
65
  path = Pathname.new(theme_package_path('.')).cleanpath
65
- listener = ::Listen.to(path, ignore: /\.zat/) do |modified, added, removed|
66
+ listener = ::Listen.to(path, ignore: /\.zat/, force_polling: options[:force_polling]) do |modified, added, removed|
66
67
  need_upload = false
67
68
  if modified.any? { |file| file[/templates|manifest/] }
68
69
  need_upload = true
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ZendeskAppsTools
3
- VERSION = '3.8.6'
3
+ VERSION = '3.8.7'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zendesk_apps_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.8.6
4
+ version: 3.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - James A. Rosen
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2022-02-16 00:00:00.000000000 Z
14
+ date: 2022-04-19 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: thor