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: 1759ec280d16f7db3c51feacbd9f69f295186e4e
4
- data.tar.gz: ec4ee0de225fdb1ba80d8365beb0cb5a33244e05
3
+ metadata.gz: 4c590a3e17c2b9bf0f125f7e0d8eb5e9e8ee9099
4
+ data.tar.gz: e66582e3a864ed1e23f3fd42e6a79c75f5912801
5
5
  SHA512:
6
- metadata.gz: a39f8cbfd6551ed3f5f5e6697e939c10411f91a31d4a0b13cda0bcfe808ccabf6934577eb5e2a58029baacc649fd540696d9c8d432488afa2a951f07ba9b8176
7
- data.tar.gz: 77000f5bbb1a974133c70acf6960eb0fd03d392e2dcc9a958ded36bd4b63acea0879dfe344c0100cf473d223868a1709aeaf1e261a13f83479067fc053684aae
6
+ metadata.gz: 83aabe5a139bd6902a1a2d2037e9f253acaa23dba4fcc5d15ef92e163a0b0008475372684f598ac91af2f9d6f9ee098190767533c9916ceb8a925199ccecb39d
7
+ data.tar.gz: 51836a05ffc0318ebef99531ab55e9e68844f0ddf546e58ab2e21255e32b5c090a64ca724c060109187ce115364f57045425528652aa6d52767b06f2261f12b5
@@ -69,7 +69,7 @@ module ZendeskAppsTools
69
69
  require 'json'
70
70
  JSON.parse(value)
71
71
  rescue JSON::ParserError
72
- say_error_and_exit value
72
+ say_error_and_exit "\"#{value}\" is an invalid JSON"
73
73
  end
74
74
 
75
75
  private
@@ -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
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ZendeskAppsTools
3
- VERSION = '2.5.0'
3
+ VERSION = '2.5.2'
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.5.0
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-02 00:00:00.000000000 Z
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.6.11
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.