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 +4 -4
- data/lib/zendesk_apps_tools/command.rb +2 -1
- data/lib/zendesk_apps_tools/theme.rb +3 -2
- data/lib/zendesk_apps_tools/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 469b28cc578ccc7cbad6de69a857b3138e130bfe6b683a3009fd3b0eedebf4b8
|
4
|
+
data.tar.gz: 2269bfa98c87cb3ebd1d520050737aba11a70c7e562c8ea2b5f6f760808fe17e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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.
|
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-
|
14
|
+
date: 2022-04-19 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: thor
|