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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f7f07cc7695763e79c8c6ae5b9b61fcb3d5d5f30
4
- data.tar.gz: 5d42c9fb5a891eeeb23869f8fff121561c76902c
3
+ metadata.gz: 9b2c882a22984f2e3b7c65e43fd5a8791bbbab48
4
+ data.tar.gz: 7b89867578f264b141a55350ee17118c972f7759
5
5
  SHA512:
6
- metadata.gz: 7f48d8d0c53e507a3df7ab019d5da9a0e455e6778ee103d70fd012a633cfaa7bcfcbf87bb72a8e6ebce411e100f9e0200d26496a4556b6a8184a328524b6c779
7
- data.tar.gz: b761831cb58b10c27daa177e39d8a912a2078472a6d4ac35c875aef4121907683d4b95949c1d53c35a02c98a1d1db6e0e8af3c593273b8016a966dacc1e2cd63
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
- deprecated_message('error', '1.0') if options[:v1]
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(except: [:unattended])
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
- deprecated_message
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 deprecated_message(type = 'warning', target_version = manifest.framework_version)
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|
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ZendeskAppsTools
3
- VERSION = '2.9.0'
3
+ VERSION = '2.9.1'
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: 2.9.0
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-21 00:00:00.000000000 Z
14
+ date: 2018-03-27 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: thor