zendesk_apps_tools 2.11.2 → 2.12.0

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
- SHA1:
3
- metadata.gz: bb5702ec30ad72644f6615b857bc8640b8e2e707
4
- data.tar.gz: 8da8f9fb72d41c1c747fc7c9ab958a92d07a2749
2
+ SHA256:
3
+ metadata.gz: 96bae990144484c85c9a51b4008e1aed20c55cf45fc912ddb32321a297e548e8
4
+ data.tar.gz: f5c245e354a317b97b93de231dbfed59a1bd9f91d49ecb2933a7d85d99983144
5
5
  SHA512:
6
- metadata.gz: dcb9443ac7d856178b69c4c5071ceefb15205e09892c6fcb76ae617e50d932510be7c5ab1321a5fe82c58d863f6d90d0c4afbe48ced9cd1c90f5cfbdbbeae7a5
7
- data.tar.gz: 220fb60e52df7e077531fbe3c4a37790bf4955fdda4b907010682d840c823f1461fbd2421de1e7587b3386209a8623bcc4a344c86c23c93c0aa405768f191701
6
+ metadata.gz: 2081cc4b5c7754b20d3cb3b644c133656c9ef6cf9014a705c01449ed1e7200e1dbebfe3b3a4fb2f62dd83460531526db3440586db304dd0858a1d01583fdf20b
7
+ data.tar.gz: 5031f40fb8f8b667fb2593f9b2b9cd6e781eeea414e7a6bcbb8750e09dd08164d01bae4d70b2661475ecbfcf500734531079a6856392c13e2d0d95c47b4e3722
@@ -217,28 +217,6 @@ module ZendeskAppsTools
217
217
  deploy_app(:put, app_url, {})
218
218
  end
219
219
 
220
- desc 'migrate', 'Helps with the migration of a v1 app to v2'
221
- shared_options(except: [:unattended, :clean])
222
- method_option %s(replace-v1), default: false, required: false, type: :boolean, aliases: '-r'
223
- method_option :auto, default: false, required: false, type: :boolean, aliases: '-a'
224
- def migrate
225
- cache.clear
226
- setup_path(options[:path])
227
- @command = 'Migrate'
228
- say_error_and_exit("Node.js and NPM are required to use the Zendesk App Migration Helper \
229
- Please see installation instructions at https://nodejs.org/en/download/") unless package_installed('npm')
230
- unless package_installed('app_migrator')
231
- try_install = get_value_from_stdin("The Zendesk App Migration Helper isn't installed yet. Would you like to try installing now?", limited_to: ['y', 'yes', 'n', 'no'], default: 'y' )
232
- say_error_and_exit("Please install the Zendesk App Migration Helper before running this command") if (try_install =~ /^y(es)?$/).nil? # thats a no
233
- install_migration_helper
234
- say_error_and_exit("Unable to install the Zendesk App Migration Helper \
235
- Please follow the installation instructions at \
236
- https://github.com/zendesk/zendesk_app_migrator \
237
- before running this command again") unless package_installed('app_migrator')
238
- end
239
- migrate_app(options)
240
- end
241
-
242
220
  desc "version, -v", "Print the version"
243
221
  def version
244
222
  say ZendeskAppsTools::VERSION
@@ -246,21 +224,6 @@ module ZendeskAppsTools
246
224
 
247
225
  protected
248
226
 
249
- def package_installed(package_name)
250
- !!system(package_name, "--version", out: File::NULL)
251
- end
252
-
253
- def install_migration_helper
254
- system("npm install -g zendesk_app_migrator", out: File::NULL)
255
- end
256
-
257
- def migrate_app(options = {})
258
- cmds = ["app_migrator", "migrate", "--path=#{options[:path]}"]
259
- cmds << "--replace-v1" if options[:"replace-v1"]
260
- cmds << "--auto" if options[:auto]
261
- system(*cmds)
262
- end
263
-
264
227
  def product_names(manifest)
265
228
  product_codes(manifest).collect{ |code| ZendeskAppsSupport::Product.find_by( code: code ) }.collect(&:name)
266
229
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ZendeskAppsTools
3
- VERSION = '2.11.2'
3
+ VERSION = '2.12.0'
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.11.2
4
+ version: 2.12.0
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-10-10 00:00:00.000000000 Z
14
+ date: 2018-10-30 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: thor
@@ -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.5.2
324
+ rubygems_version: 2.7.6
325
325
  signing_key:
326
326
  specification_version: 4
327
327
  summary: Tools to help you develop Zendesk Apps.