zendesk_apps_tools 2.13.3 → 2.13.5
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
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: f66640c25a46c2e452fd45a2e6201278464b7037
|
|
4
|
+
data.tar.gz: 833db842480a73a3363a45a6b6336117c4000f9e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2762b0720c268813726dbc9e221d9be735675390cfa124e523aee671c98ea889c5df26a57a3c01841bc58597a5297da05aadf1c093e991d88a450f142384b4fd
|
|
7
|
+
data.tar.gz: e4a93d34010f2b20fdbcf64dd8c686b3634f135fdea472c94f2a55ab406b3f1d77bf546f16f74fefd59b17248c3a5b43e58ab74b66f6f18627d093dcffb21fc0
|
|
@@ -15,13 +15,13 @@ module ZendeskAppsTools
|
|
|
15
15
|
].join('\n')
|
|
16
16
|
|
|
17
17
|
def prepare_api_auth
|
|
18
|
-
@subdomain ||= cache.fetch('subdomain') || get_value_from_stdin(PROMPT_FOR_URL)
|
|
18
|
+
@subdomain ||= ENV['ZAT_URL'] || cache.fetch('subdomain') || get_value_from_stdin(PROMPT_FOR_URL)
|
|
19
19
|
say_error_and_exit URL_ERROR_MSG unless valid_subdomain? || valid_full_url?
|
|
20
20
|
|
|
21
|
-
@username ||= cache.fetch('username', @subdomain) || get_value_from_stdin('Enter your username:')
|
|
21
|
+
@username ||= ENV['ZAT_USERNAME'] || cache.fetch('username', @subdomain) || get_value_from_stdin('Enter your username:')
|
|
22
22
|
say_error_and_exit EMAIL_ERROR_MSG unless valid_email?
|
|
23
23
|
|
|
24
|
-
@password ||= cache.fetch('password', @subdomain) || get_password_from_stdin('Enter your password:')
|
|
24
|
+
@password ||= ENV['ZAT_PASSWORD'] || cache.fetch('password', @subdomain) || get_password_from_stdin('Enter your password:')
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
def get_connection(encoding = :url_encoded)
|
|
@@ -158,6 +158,7 @@ module ZendeskAppsTools
|
|
|
158
158
|
method_option :port, default: DEFAULT_SERVER_PORT, required: false, desc: 'Port for the http server to use.'
|
|
159
159
|
method_option :app_id, default: DEFAULT_APP_ID, required: false, type: :numeric
|
|
160
160
|
method_option :bind, required: false
|
|
161
|
+
method_option :plan, required: false
|
|
161
162
|
def server
|
|
162
163
|
setup_path(options[:path])
|
|
163
164
|
if app_package.has_file?('assets/app.js')
|
|
@@ -173,6 +174,7 @@ module ZendeskAppsTools
|
|
|
173
174
|
server.set :public_folder, File.join(options[:path], 'assets')
|
|
174
175
|
server.set :parameters, settings
|
|
175
176
|
server.set :app_id, options[:app_id]
|
|
177
|
+
server.set :plan, [options[:plan], cache.fetch('plan')].reject(&:nil?).first
|
|
176
178
|
server.run!
|
|
177
179
|
end
|
|
178
180
|
end
|
|
@@ -34,7 +34,8 @@ module ZendeskAppsTools
|
|
|
34
34
|
collapsible: true,
|
|
35
35
|
settings: settings.parameters.merge(title: app_name),
|
|
36
36
|
updated_at: Time.now.iso8601,
|
|
37
|
-
created_at: Time.now.iso8601
|
|
37
|
+
created_at: Time.now.iso8601,
|
|
38
|
+
plan: { name: settings.plan }
|
|
38
39
|
)
|
|
39
40
|
|
|
40
41
|
app_js = package.compile(
|
|
@@ -12,12 +12,6 @@ module ZendeskAppsTools
|
|
|
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
14
|
method_option :bind, required: false
|
|
15
|
-
method_option :role,
|
|
16
|
-
type: :string,
|
|
17
|
-
enum: %w[manager agent end_user anonymous],
|
|
18
|
-
default: 'manager',
|
|
19
|
-
desc: 'The role for the preview URL',
|
|
20
|
-
aliases: '-r'
|
|
21
15
|
method_option :livereload, type: :boolean, default: true, desc: 'Enable or disable live-reloading the preview when a change is made.'
|
|
22
16
|
def preview
|
|
23
17
|
setup_path(options[:path])
|
|
@@ -32,7 +26,7 @@ module ZendeskAppsTools
|
|
|
32
26
|
no_commands do
|
|
33
27
|
def full_upload
|
|
34
28
|
say_status 'Generating', 'Generating theme from local files'
|
|
35
|
-
payload = generate_payload
|
|
29
|
+
payload = generate_payload
|
|
36
30
|
say_status 'Generating', 'OK'
|
|
37
31
|
say_status 'Uploading', 'Uploading theme'
|
|
38
32
|
connection = get_connection(nil)
|
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: 2.13.
|
|
4
|
+
version: 2.13.5
|
|
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: 2019-05-
|
|
14
|
+
date: 2019-05-16 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: thor
|
|
@@ -103,14 +103,14 @@ dependencies:
|
|
|
103
103
|
requirements:
|
|
104
104
|
- - "~>"
|
|
105
105
|
- !ruby/object:Gem::Version
|
|
106
|
-
version: 4.15.
|
|
106
|
+
version: 4.15.1
|
|
107
107
|
type: :runtime
|
|
108
108
|
prerelease: false
|
|
109
109
|
version_requirements: !ruby/object:Gem::Requirement
|
|
110
110
|
requirements:
|
|
111
111
|
- - "~>"
|
|
112
112
|
- !ruby/object:Gem::Version
|
|
113
|
-
version: 4.15.
|
|
113
|
+
version: 4.15.1
|
|
114
114
|
- !ruby/object:Gem::Dependency
|
|
115
115
|
name: sinatra-cross_origin
|
|
116
116
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -321,7 +321,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
321
321
|
version: 1.3.6
|
|
322
322
|
requirements: []
|
|
323
323
|
rubyforge_project:
|
|
324
|
-
rubygems_version: 2.
|
|
324
|
+
rubygems_version: 2.4.5.4
|
|
325
325
|
signing_key:
|
|
326
326
|
specification_version: 4
|
|
327
327
|
summary: Tools to help you develop Zendesk Apps.
|