zendesk_apps_support 1.14.2 → 1.14.3
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: 2739e242f4b1d7e65cda16d7defdb0abad01d3ca
|
4
|
+
data.tar.gz: a6a7b977ba95950a17140bab5f2e4a8148f45ba7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09a9020134872ac37b4f13bea94162e1ffb877115288165a28b8f26d4fa61f682f5ad2c479b9dbd51d4ff89b6774e982ff12fbca77afb5cfcd05387471de5b16
|
7
|
+
data.tar.gz: f212352b4c2648e1d8fbcb83e92acc3b14dace379a87a76274a8105613b901c981a99a45213f300cc425c41f6c4e72cf703b42241f1a5dd0c14e090490fcd584
|
data/lib/zendesk_apps_support.rb
CHANGED
@@ -7,6 +7,7 @@ module ZendeskAppsSupport
|
|
7
7
|
autoload :BuildTranslation, 'zendesk_apps_support/build_translation'
|
8
8
|
autoload :I18n, 'zendesk_apps_support/i18n'
|
9
9
|
autoload :Package, 'zendesk_apps_support/package'
|
10
|
+
autoload :AppRequirement, 'zendesk_apps_support/app_requirement'
|
10
11
|
autoload :AppVersion, 'zendesk_apps_support/app_version'
|
11
12
|
autoload :StylesheetCompiler, 'zendesk_apps_support/stylesheet_compiler'
|
12
13
|
|
@@ -6,8 +6,6 @@ module ZendeskAppsSupport
|
|
6
6
|
module Validations
|
7
7
|
module Requirements
|
8
8
|
|
9
|
-
REQUIREMENTS_TYPES = %w(automations macros targets ticket_fields triggers user_fields).freeze
|
10
|
-
|
11
9
|
class <<self
|
12
10
|
def call(package)
|
13
11
|
requirements_file = package.files.find { |f| f.relative_path == 'requirements.json' }
|
@@ -32,7 +30,7 @@ module ZendeskAppsSupport
|
|
32
30
|
private
|
33
31
|
|
34
32
|
def invalid_requirements_types(requirements)
|
35
|
-
invalid_types = requirements.keys -
|
33
|
+
invalid_types = requirements.keys - ZendeskAppsSupport::AppRequirement::TYPES
|
36
34
|
|
37
35
|
unless invalid_types.empty?
|
38
36
|
ValidationError.new(:invalid_requirements_types, :invalid_types => invalid_types.join(', '), :count => invalid_types.length)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zendesk_apps_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.14.
|
4
|
+
version: 1.14.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James A. Rosen
|
@@ -152,6 +152,7 @@ files:
|
|
152
152
|
- config/locales/translations/zendesk_apps_support.yml
|
153
153
|
- lib/zendesk_apps_support.rb
|
154
154
|
- lib/zendesk_apps_support/app_file.rb
|
155
|
+
- lib/zendesk_apps_support/app_requirement.rb
|
155
156
|
- lib/zendesk_apps_support/app_version.rb
|
156
157
|
- lib/zendesk_apps_support/assets/default_styles.scss
|
157
158
|
- lib/zendesk_apps_support/assets/default_template.html.erb
|