zendesk_apps_tools 2.9.0 → 2.9.1
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 +5 -4
- data/lib/zendesk_apps_tools/deploy.rb +1 -0
- data/lib/zendesk_apps_tools/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b2c882a22984f2e3b7c65e43fd5a8791bbbab48
|
4
|
+
data.tar.gz: 7b89867578f264b141a55350ee17118c972f7759
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 444954b86cf65f1c01f2ad29089817bfd9d164358b47f49f7b9c52c5b38d81346bc79c2f25af20628a9caf6118b86f1574f37270e4d303c482bb83e11f130216
|
7
|
+
data.tar.gz: c58d07e9e7ab8ea517efb5e74bf3e9591f00de90d03931f41d30b90c9b8f22829847d4dc90e816b8da825a6fedae9e8a02cb6dc64e02bbecbdbe453fabee84dc
|
@@ -34,7 +34,7 @@ module ZendeskAppsTools
|
|
34
34
|
hide: true,
|
35
35
|
desc: 'Create a version 1 app template (Deprecated)'
|
36
36
|
def new
|
37
|
-
|
37
|
+
run_deprecation_checks('error', '1.0') if options[:v1]
|
38
38
|
|
39
39
|
enter = ->(variable) { "Enter this app author's #{variable}:\n" }
|
40
40
|
invalid = ->(variable) { "Invalid #{variable}, try again:" }
|
@@ -65,7 +65,7 @@ module ZendeskAppsTools
|
|
65
65
|
end
|
66
66
|
|
67
67
|
desc 'validate', 'Validate your app'
|
68
|
-
shared_options
|
68
|
+
shared_options
|
69
69
|
def validate
|
70
70
|
require 'execjs'
|
71
71
|
check_for_update
|
@@ -85,7 +85,8 @@ module ZendeskAppsTools
|
|
85
85
|
|
86
86
|
if valid
|
87
87
|
app_package.warnings.each { |w| say w.to_s, :yellow }
|
88
|
-
|
88
|
+
# clean when all apps are upgraded
|
89
|
+
run_deprecation_checks unless options[:'unattended']
|
89
90
|
say_status 'validate', 'OK'
|
90
91
|
else
|
91
92
|
errors.each do |e|
|
@@ -258,7 +259,7 @@ module ZendeskAppsTools
|
|
258
259
|
end
|
259
260
|
end
|
260
261
|
|
261
|
-
def
|
262
|
+
def run_deprecation_checks(type = 'warning', target_version = manifest.framework_version)
|
262
263
|
require 'zendesk_apps_support/app_version'
|
263
264
|
zas = ZendeskAppsSupport::AppVersion.new(target_version)
|
264
265
|
|
@@ -2,6 +2,7 @@ module ZendeskAppsTools
|
|
2
2
|
module Deploy
|
3
3
|
def deploy_app(connection_method, url, body)
|
4
4
|
body[:upload_id] = upload(options[:path]).to_s
|
5
|
+
sleep 2 # Because the DB needs time to replicate
|
5
6
|
connection = get_connection
|
6
7
|
|
7
8
|
response = connection.send(connection_method) do |req|
|
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.9.
|
4
|
+
version: 2.9.1
|
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: 2018-03-
|
14
|
+
date: 2018-03-27 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: thor
|