zendesk_apps_tools 2.5.0 → 2.5.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c590a3e17c2b9bf0f125f7e0d8eb5e9e8ee9099
|
4
|
+
data.tar.gz: e66582e3a864ed1e23f3fd42e6a79c75f5912801
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83aabe5a139bd6902a1a2d2037e9f253acaa23dba4fcc5d15ef92e163a0b0008475372684f598ac91af2f9d6f9ee098190767533c9916ceb8a925199ccecb39d
|
7
|
+
data.tar.gz: 51836a05ffc0318ebef99531ab55e9e68844f0ddf546e58ab2e21255e32b5c090a64ca724c060109187ce115364f57045425528652aa6d52767b06f2261f12b5
|
@@ -54,7 +54,7 @@ module ZendeskAppsTools
|
|
54
54
|
|
55
55
|
all_apps = connection.get('/api/apps.json').body
|
56
56
|
|
57
|
-
app_json = json_or_die(all_apps)['apps'].find { |app| app['name'] == name }
|
57
|
+
app_json = all_apps.empty? ? nil : json_or_die(all_apps)['apps'].find { |app| app['name'] == name }
|
58
58
|
say_error_and_exit('The app was not found. Please verify your credentials, subdomain, and app name are correct.') unless app_json
|
59
59
|
app_id = app_json['id']
|
60
60
|
|
@@ -6,6 +6,7 @@ require 'zendesk_apps_support/package'
|
|
6
6
|
module ZendeskAppsTools
|
7
7
|
class Server < Sinatra::Base
|
8
8
|
set :server, :thin
|
9
|
+
set :logging, true
|
9
10
|
set :protection, except: :frame_options
|
10
11
|
ZENDESK_DOMAINS_REGEX = %r{^http(?:s)?://[a-z0-9-]+\.(?:zendesk|zopim|zd-(?:dev|master|staging))\.com$}
|
11
12
|
|
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.5.
|
4
|
+
version: 2.5.2
|
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: 2017-10-
|
14
|
+
date: 2017-10-09 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.
|
324
|
+
rubygems_version: 2.5.1
|
325
325
|
signing_key:
|
326
326
|
specification_version: 4
|
327
327
|
summary: Tools to help you develop Zendesk Apps.
|