zendesk_apps_tools 2.12.3 → 2.12.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/zendesk_apps_tools/deploy.rb +9 -9
- data/lib/zendesk_apps_tools/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: bc59f5568a034792fe28225c0a6fc40e7e38d858
|
4
|
+
data.tar.gz: c6879c389ad75ccaea11f5e6140b00c739792aa2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
67
|
+
app_name = get_value_from_stdin('Enter the name of the app:')
|
68
68
|
|
69
|
-
response = cached_connection.get("/api/#{product_name}/apps/
|
70
|
-
|
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? &&
|
73
|
-
say_error_and_exit "Unable to retrieve
|
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
|
-
|
76
|
-
|
|
75
|
+
app = owned_apps_json['apps'].find {
|
76
|
+
|app| app['name'] == app_name
|
77
77
|
}
|
78
78
|
end
|
79
79
|
|
80
|
-
unless
|
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 =
|
84
|
+
app_id = app['id']
|
85
85
|
cache.save 'app_id' => app_id
|
86
86
|
app_id
|
87
87
|
|
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.
|
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-
|
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.
|
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/
|
331
|
+
- features/fixtures/quote_character_translation.json
|
331
332
|
- features/new.feature
|
332
|
-
- features/
|
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/
|
336
|
-
- features/step_definitions/app_steps.rb
|
337
|
-
- features/fixtures/quote_character_translation.json
|
338
|
-
- features/package.feature
|
338
|
+
- features/validate.feature
|