zendesk_apps_support 4.29.8 → 4.29.9

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
- SHA256:
3
- metadata.gz: '05133378592731040e3105b29a3624fe85d190ba5ed7bfc872d99da645aad8c5'
4
- data.tar.gz: 5e3bb520f055e87596585d2cd93821e801ad79a509f5c6bff1a12555d69214f4
2
+ SHA1:
3
+ metadata.gz: f7aff48dd5eff958501e5e21f78713b7e2906f9e
4
+ data.tar.gz: d267db414baabe7ced86ec3e1b196c08fb0346e2
5
5
  SHA512:
6
- metadata.gz: 5c4b261f98f1b4ee30324ba70f7f78b24a9d4fbefc0e5e6c209cecd5764218b6aa738ef6fbdb6989cb5de170f40af454a32d738d371b6ce385a8b14f598ca0cb
7
- data.tar.gz: 7c283902ea1fe0907abbcb12679fc12fe2ec3d41884babb1e8a6ee50c781b2b78d76c12ee070302ac46fbe2a6d4a52b4c443d641b90754e3a15419dddb0a5ec6
6
+ metadata.gz: a87b22e67e6489bb6d619b24d5ba7ac670e9322a500b06aaf32014328917bdf496d779ae554c83a39258979a6583dfa5a57f2ec3ffd0c432d024d4c14430ab4b
7
+ data.tar.gz: 19b7439b1574327c9b53cac0448db136cc1d2f3be29da878d75d597d5cba7f038c8204bf270295ec6e6ba32c0980ffcd4e20737d3121ca269fa58522d4ffd908
@@ -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'"
@@ -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
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.29.8
4
+ version: 4.29.9
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: 2021-05-20 00:00:00.000000000 Z
14
+ date: 2021-08-19 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: i18n
@@ -249,14 +249,14 @@ dependencies:
249
249
  requirements:
250
250
  - - '='
251
251
  - !ruby/object:Gem::Version
252
- version: 1.17.3
252
+ version: 2.2.26
253
253
  type: :development
254
254
  prerelease: false
255
255
  version_requirements: !ruby/object:Gem::Requirement
256
256
  requirements:
257
257
  - - '='
258
258
  - !ruby/object:Gem::Version
259
- version: 1.17.3
259
+ version: 2.2.26
260
260
  - !ruby/object:Gem::Dependency
261
261
  name: parallel
262
262
  requirement: !ruby/object:Gem::Requirement
@@ -339,7 +339,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
339
339
  - !ruby/object:Gem::Version
340
340
  version: 1.3.6
341
341
  requirements: []
342
- rubygems_version: 3.2.17
342
+ rubyforge_project:
343
+ rubygems_version: 2.6.8
343
344
  signing_key:
344
345
  specification_version: 4
345
346
  summary: Support to help you develop Zendesk Apps.