zendesk_apps_tools 2.12.3 → 2.12.4

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
- SHA256:
3
- metadata.gz: 74674fe4161270694ce0357838a66ffeb431ea51577db11e323a559de1430160
4
- data.tar.gz: cf485b548d4ee0d0e46c23b6101466794287fca0a0731e00122c478f30099922
2
+ SHA1:
3
+ metadata.gz: bc59f5568a034792fe28225c0a6fc40e7e38d858
4
+ data.tar.gz: c6879c389ad75ccaea11f5e6140b00c739792aa2
5
5
  SHA512:
6
- metadata.gz: 9d53fb13befc32158c5bd83f68a152c044f96a4f8557f2b5bbe524f213f71bb16a756bb8e0145eb8f085f0ddc9afc764d83d49b79c60bf64bf8983002acf25c8
7
- data.tar.gz: 76a32b9a948d65a74143514178037c1fb2650bd0d0a64c07387e702e9c38249276c3cbc8616a79f1494cc68ba8bdd8b04e16ae0129275a01622d564ffb75153d
6
+ metadata.gz: de01d42c77dbe93d8c4b481a3b588c9cfa0b54220c1d2e2fddfa3cc7ded8898655291062f9a995ec100e3ac1de8c342baea00fb8abc4e7e12361e49a4a4412c7
7
+ data.tar.gz: f3b81111c99545d6a21c2d3f10c34517efe00de793dc447d661b0f7e37c3fc554f8663d974eb2a47ee9bea4eee0cb3a4c4ccb74cbd957e9401def05cddd89ddc
@@ -64,24 +64,24 @@ module ZendeskAppsTools
64
64
 
65
65
  def find_app_id(product_name = 'v2') # use the v2 endpoint if no product name is provided
66
66
  say_status 'Update', 'app ID is missing, searching...'
67
- app_name = get_value_from_stdin('Enter the name of the installed app:')
67
+ app_name = get_value_from_stdin('Enter the name of the app:')
68
68
 
69
- response = cached_connection.get("/api/#{product_name}/apps/installations.json")
70
- installations_json = json_or_die(response.body)
69
+ response = cached_connection.get("/api/#{product_name}/apps/owned.json")
70
+ owned_apps_json = json_or_die(response.body)
71
71
 
72
- unless response.success? && installations_json.has_key?('installations')
73
- say_error_and_exit "Unable to retrieve installations. Please check your credentials and internet connection."
72
+ unless response.success? && owned_apps_json.has_key?('apps')
73
+ say_error_and_exit "Unable to retrieve apps. Please check your credentials and internet connection."
74
74
  else
75
- installation = installations_json['installations'].find {
76
- |i| i['settings'] && i['settings']['name'] == app_name
75
+ app = owned_apps_json['apps'].find {
76
+ |app| app['name'] == app_name
77
77
  }
78
78
  end
79
79
 
80
- unless installation
80
+ unless app
81
81
  say_error_and_exit "App not found. Please check that your app name is correct."
82
82
  end
83
83
 
84
- app_id = installation['app_id']
84
+ app_id = app['id']
85
85
  cache.save 'app_id' => app_id
86
86
  app_id
87
87
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ZendeskAppsTools
3
- VERSION = '2.12.3'
3
+ VERSION = '2.12.4'
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.12.3
4
+ version: 2.12.4
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-01-08 00:00:00.000000000 Z
14
+ date: 2019-01-31 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: thor
@@ -321,18 +321,18 @@ required_rubygems_version: !ruby/object:Gem::Requirement
321
321
  version: 1.3.6
322
322
  requirements: []
323
323
  rubyforge_project:
324
- rubygems_version: 2.7.6
324
+ rubygems_version: 2.2.0
325
325
  signing_key:
326
326
  specification_version: 4
327
327
  summary: Tools to help you develop Zendesk Apps.
328
328
  test_files:
329
+ - features/clean.feature
329
330
  - features/create.feature
330
- - features/validate.feature
331
+ - features/fixtures/quote_character_translation.json
331
332
  - features/new.feature
332
- - features/clean.feature
333
+ - features/package.feature
334
+ - features/step_definitions/app_steps.rb
335
+ - features/support/env.rb
333
336
  - features/support/helpers.rb
334
337
  - features/support/webmock.rb
335
- - features/support/env.rb
336
- - features/step_definitions/app_steps.rb
337
- - features/fixtures/quote_character_translation.json
338
- - features/package.feature
338
+ - features/validate.feature