zendesk_apps_support 4.31.1 → 4.32.0

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
  SHA256:
3
- metadata.gz: '01083332c185deb236fcc2f4fb3e66b65a695085790b448c8451f4c8c1b21aac'
4
- data.tar.gz: 1580841170ebef45a0d9a9c27a65e567683e353d6c4ba6293be06a60d2da64de
3
+ metadata.gz: 10d6271886136ebf1422ffac35331cf0a6f0ee416fc45c122126cfab170c6d1a
4
+ data.tar.gz: ee79d3867a3e6f959d6a692a6eb9bd39c8b15663cf89cb35887ef5aa92ad2106
5
5
  SHA512:
6
- metadata.gz: f06ed79968e27181e17530785e21e678aaf45a2ff1e3776f29d0f8de3ecde20b125f01b5698196292e57e5ee431a1ac5e2359da6dddec417c8323308d97ee746
7
- data.tar.gz: a63fb2623abbe41fb40475358793c2ec47c75562e3fd0ede58ea4e6630e4e2d48adacd498a77c3c4dfc8add50a41f83ab26309f5ee69daeb7fbe69b5e65edc43
6
+ metadata.gz: 24b854a106b6d9d29bac321e7b76fe685db0b800fc1da73f95da40ad12c45f5d6a548c10418b048f89d45af1dfdc31ca6f40199088217453873dc2450d7cf3ee
7
+ data.tar.gz: 020f26d213b85c16ea3a9154320a7c11c176f17fe6c33e7eeb4c182eea1441e09e633169cb072c768e22d5ba133ca1f1d232d194f7fd336dbf38775e31366310
@@ -30,6 +30,7 @@ module ZendeskAppsSupport
30
30
  errors << invalid_custom_fields(requirements)
31
31
  errors << invalid_custom_objects(requirements)
32
32
  errors << invalid_webhooks(requirements)
33
+ errors << invalid_target_types(requirements)
33
34
  errors << missing_required_fields(requirements)
34
35
  errors.flatten!
35
36
  errors.compact!
@@ -171,6 +172,18 @@ module ZendeskAppsSupport
171
172
  identifier: identifier)
172
173
  end
173
174
  end
175
+
176
+ def invalid_target_types(requirements)
177
+ invalid_target_types = %w[http_target]
178
+
179
+ requirements['targets']&.map do |_identifier, requirement|
180
+ if invalid_target_types.include?(requirement['type'])
181
+ ValidationError.new(:invalid_requirements_types,
182
+ invalid_types: "targets -> #{requirement['type']}",
183
+ count: 1)
184
+ end
185
+ end
186
+ end
174
187
  end
175
188
  end
176
189
  end
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: 4.31.1
4
+ version: 4.32.0
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: 2022-02-09 00:00:00.000000000 Z
14
+ date: 2022-05-16 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: i18n
@@ -347,7 +347,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
347
347
  - !ruby/object:Gem::Version
348
348
  version: 1.3.6
349
349
  requirements: []
350
- rubygems_version: 3.0.1
350
+ rubygems_version: 3.0.3.1
351
351
  signing_key:
352
352
  specification_version: 4
353
353
  summary: Support to help you develop Zendesk Apps.