zendesk_apps_support 4.29.8 → 4.30.1

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: '05133378592731040e3105b29a3624fe85d190ba5ed7bfc872d99da645aad8c5'
4
- data.tar.gz: 5e3bb520f055e87596585d2cd93821e801ad79a509f5c6bff1a12555d69214f4
3
+ metadata.gz: 3fad713366a2381c50f93cf66ffb934e6d083bebf32059680ab2a6757241d525
4
+ data.tar.gz: 2ef5c222825b5a2c5662450fd804898841369bcce87ba66de55d01d44893f98f
5
5
  SHA512:
6
- metadata.gz: 5c4b261f98f1b4ee30324ba70f7f78b24a9d4fbefc0e5e6c209cecd5764218b6aa738ef6fbdb6989cb5de170f40af454a32d738d371b6ce385a8b14f598ca0cb
7
- data.tar.gz: 7c283902ea1fe0907abbcb12679fc12fe2ec3d41884babb1e8a6ee50c781b2b78d76c12ee070302ac46fbe2a6d4a52b4c443d641b90754e3a15419dddb0a5ec6
6
+ metadata.gz: fdb6c1b4fec3c809864c49604f698e7df87140817063352c4d32e4b8c1934abfdfa2bd77a4d5e9081e06694ec7f357fe49c8b45d7d6c29a992ff92d16f45f8fd
7
+ data.tar.gz: 2ec4415af7e2feea5f3057924726b23d213b9d306b6416d7037521a23c161099acb2ed9ef029d94eeac9f5f2393fa02fabaf680b14216a5bc4e1107446b7dd32
data/README.md CHANGED
@@ -9,12 +9,6 @@ This repo is owned and maintained by the Zendesk Apps team. You can reach us on
9
9
  ## Getting Started
10
10
  When you want to help **develop** this tool, you will need to clone this repo.
11
11
 
12
- Since ZAS is used in ZAT, which supports Ruby 2.1, the Bundler Gem Version 1.17.3 is required for bundling dependencies. If you are working with a version that is higher than `1.17.3`, you will need to downgrade it.
13
- ```
14
- $ gem install bundler --version 1.17.3
15
- $ bundle install
16
- ```
17
-
18
12
  Very likely you want to try out your changes with the use of ZAT. See [ZAT](https://github.com/zendesk/zendesk_apps_tools/) for how to get ZAT/ZAS in development.
19
13
 
20
14
  ## Testing
@@ -96,6 +96,8 @@ en:
96
96
  blank_location_uri: "%{location} location does not specify a URI."
97
97
  invalid_location_uri: "%{uri} is either an invalid location URI, refers
98
98
  to a missing asset, or does not use HTTPS."
99
+ invalid_location_flexible_type: "%{flexible} is an invalid type for the
100
+ flexible location parameter."
99
101
  name_as_parameter_name: Can't call a parameter 'name'
100
102
  invalid_hidden_parameter:
101
103
  one: "%{invalid_params} is set to hidden and cannot be required."
@@ -234,6 +234,10 @@ parts:
234
234
  key: "txt.apps.admin.error.app_build.invalid_location_uri"
235
235
  title: "App builder job: invalid URI for an iframe in the manifest"
236
236
  value: "%{uri} is either an invalid location URI, refers to a missing asset, or does not use HTTPS."
237
+ - translation:
238
+ key: "txt.apps.admin.error.app_build.invalid_location_flexible_type"
239
+ title: "App builder job: invalid flexible type for an iframe in the manifest"
240
+ value: "%{flexible} is an invalid type for the flexible location parameter."
237
241
  - translation:
238
242
  key: "txt.apps.admin.error.app_build.name_as_parameter_name"
239
243
  title: "App builder job: error message when developer names a parameter 'name'"
@@ -6,6 +6,6 @@ module ZendeskAppsSupport
6
6
  CUSTOM_OBJECTS_TYPE_KEY = 'custom_object_types'
7
7
  CUSTOM_OBJECTS_RELATIONSHIP_TYPE_KEY = 'custom_object_relationship_types'
8
8
  TYPES = %w[automations channel_integrations custom_objects macros targets views ticket_fields
9
- triggers user_fields organization_fields].freeze
9
+ triggers user_fields organization_fields webhooks].freeze
10
10
  end
11
11
  end
@@ -7,6 +7,7 @@ module ZendeskAppsSupport
7
7
  legacy: 'legacy',
8
8
  auto_load: 'autoLoad',
9
9
  auto_hide: 'autoHide',
10
+ flexible: 'flexible',
10
11
  signed: 'signed',
11
12
  url: 'url'
12
13
  }.freeze
@@ -271,6 +271,10 @@ module ZendeskAppsSupport
271
271
  elsif location_options.auto_load?
272
272
  errors << ValidationError.new(:blank_location_uri, location: location_options.location.name)
273
273
  end
274
+
275
+ if !([true, false].include? location_options.flexible) && !location_options.flexible.nil?
276
+ errors << invalid_location_flexible_error(location_options)
277
+ end
274
278
  end
275
279
 
276
280
  Product::PRODUCTS_AVAILABLE.each do |product|
@@ -319,6 +323,12 @@ module ZendeskAppsSupport
319
323
  validation_error
320
324
  end
321
325
 
326
+ def invalid_location_flexible_error(location_options)
327
+ flexible_flag = location_options.flexible
328
+ validation_error = ValidationError.new(:invalid_location_flexible_type, flexible: flexible_flag)
329
+ validation_error
330
+ end
331
+
322
332
  def valid_absolute_uri?(uri)
323
333
  uri.scheme == 'https' || uri.host == 'localhost'
324
334
  end
@@ -46,7 +46,7 @@ module ZendeskAppsSupport
46
46
  def missing_required_fields(requirements)
47
47
  [].tap do |errors|
48
48
  requirements.each do |requirement_type, requirement|
49
- next if %w[channel_integrations custom_objects].include? requirement_type
49
+ next if %w[channel_integrations custom_objects webhooks].include? requirement_type
50
50
  requirement.each do |identifier, fields|
51
51
  next if fields.nil? || fields.include?('title')
52
52
  errors << ValidationError.new(:missing_required_fields,
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zendesk_apps_support
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.29.8
4
+ version: 4.30.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James A. Rosen
8
8
  - Likun Liu
9
9
  - Sean Caffery
10
10
  - Daniel Ribeiro
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2021-05-20 00:00:00.000000000 Z
14
+ date: 2022-02-01 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: i18n
@@ -117,20 +117,14 @@ dependencies:
117
117
  requirements:
118
118
  - - ">="
119
119
  - !ruby/object:Gem::Version
120
- version: 1.8.5
121
- - - "<"
122
- - !ruby/object:Gem::Version
123
- version: 1.11.0
120
+ version: '0'
124
121
  type: :runtime
125
122
  prerelease: false
126
123
  version_requirements: !ruby/object:Gem::Requirement
127
124
  requirements:
128
125
  - - ">="
129
126
  - !ruby/object:Gem::Version
130
- version: 1.8.5
131
- - - "<"
132
- - !ruby/object:Gem::Version
133
- version: 1.11.0
127
+ version: '0'
134
128
  - !ruby/object:Gem::Dependency
135
129
  name: rb-inotify
136
130
  requirement: !ruby/object:Gem::Requirement
@@ -219,16 +213,16 @@ dependencies:
219
213
  name: rubocop
220
214
  requirement: !ruby/object:Gem::Requirement
221
215
  requirements:
222
- - - "~>"
216
+ - - ">="
223
217
  - !ruby/object:Gem::Version
224
- version: 0.49.0
218
+ version: '0'
225
219
  type: :development
226
220
  prerelease: false
227
221
  version_requirements: !ruby/object:Gem::Requirement
228
222
  requirements:
229
- - - "~>"
223
+ - - ">="
230
224
  - !ruby/object:Gem::Version
231
- version: 0.49.0
225
+ version: '0'
232
226
  - !ruby/object:Gem::Dependency
233
227
  name: byebug
234
228
  requirement: !ruby/object:Gem::Requirement
@@ -249,14 +243,14 @@ dependencies:
249
243
  requirements:
250
244
  - - '='
251
245
  - !ruby/object:Gem::Version
252
- version: 1.17.3
246
+ version: 2.2.26
253
247
  type: :development
254
248
  prerelease: false
255
249
  version_requirements: !ruby/object:Gem::Requirement
256
250
  requirements:
257
251
  - - '='
258
252
  - !ruby/object:Gem::Version
259
- version: 1.17.3
253
+ version: 2.2.26
260
254
  - !ruby/object:Gem::Dependency
261
255
  name: parallel
262
256
  requirement: !ruby/object:Gem::Requirement
@@ -271,6 +265,20 @@ dependencies:
271
265
  - - '='
272
266
  - !ruby/object:Gem::Version
273
267
  version: 1.12.1
268
+ - !ruby/object:Gem::Dependency
269
+ name: rake
270
+ requirement: !ruby/object:Gem::Requirement
271
+ requirements:
272
+ - - ">="
273
+ - !ruby/object:Gem::Version
274
+ version: '0'
275
+ type: :development
276
+ prerelease: false
277
+ version_requirements: !ruby/object:Gem::Requirement
278
+ requirements:
279
+ - - ">="
280
+ - !ruby/object:Gem::Version
281
+ version: '0'
274
282
  description: Support to help you develop Zendesk Apps.
275
283
  email:
276
284
  - dev@zendesk.com
@@ -324,7 +332,7 @@ homepage: http://github.com/zendesk/zendesk_apps_support
324
332
  licenses:
325
333
  - Apache License Version 2.0
326
334
  metadata: {}
327
- post_install_message:
335
+ post_install_message:
328
336
  rdoc_options: []
329
337
  require_paths:
330
338
  - lib
@@ -339,8 +347,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
339
347
  - !ruby/object:Gem::Version
340
348
  version: 1.3.6
341
349
  requirements: []
342
- rubygems_version: 3.2.17
343
- signing_key:
350
+ rubygems_version: 3.0.1
351
+ signing_key:
344
352
  specification_version: 4
345
353
  summary: Support to help you develop Zendesk Apps.
346
354
  test_files: []