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: 1a65ad117b4b76cb73350744aff8a7610232328d
4
- data.tar.gz: d0c48b908ca459449a062c89ecbb2027ed04e269
3
+ metadata.gz: 2739e242f4b1d7e65cda16d7defdb0abad01d3ca
4
+ data.tar.gz: a6a7b977ba95950a17140bab5f2e4a8148f45ba7
5
5
  SHA512:
6
- metadata.gz: 8ff204e16b723f994bfd1b12821ed71c4cd936a6333f2235c1ad70917319a45aaa9022f443ab4415fa06d2599455b1ff2453846a33aff602f680c3c9ef89090d
7
- data.tar.gz: 85fccefd5f869486d28ea3c4e7de81929f448301c1fd30c483a0b1af63e1f95a1c828084c1acd26884b1682c4e68220310311796c7b6d0a8aa6c020744ece5ea
6
+ metadata.gz: 09a9020134872ac37b4f13bea94162e1ffb877115288165a28b8f26d4fa61f682f5ad2c479b9dbd51d4ff89b6774e982ff12fbca77afb5cfcd05387471de5b16
7
+ data.tar.gz: f212352b4c2648e1d8fbcb83e92acc3b14dace379a87a76274a8105613b901c981a99a45213f300cc425c41f6c4e72cf703b42241f1a5dd0c14e090490fcd584
@@ -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
 
@@ -0,0 +1,5 @@
1
+ module ZendeskAppsSupport
2
+ class AppRequirement
3
+ TYPES = %w(automations macros targets ticket_fields triggers user_fields).freeze
4
+ end
5
+ end
@@ -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 - REQUIREMENTS_TYPES
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.2
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