zendesk_apps_support 4.9.1 → 4.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: d10ac2adce861c9b73ab9101e7606305d34b1741db038c458e22cc574e37a5d3
|
|
4
|
+
data.tar.gz: d41cc50438b65b960d20baaa26a5ab14f522cd935e3aa84cabf51a63835ea806
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 698940e0eb1029f3181251dba53d537333c029ca1bed06831045b1c26b1508035ab0b7f3b15b83d428c796d151ed9531a9d6f90e599507cf44c5e4b5f692c295
|
|
7
|
+
data.tar.gz: bd61dc59a6b09dff757172bd03eef673df6138257a00d3d36df12b1867036e93f2c13839c6f440015e74a0bc94cf6407a2fccbd63386f3d88d283900b12822d2
|
data/config/locales/en.yml
CHANGED
|
@@ -79,6 +79,8 @@ en:
|
|
|
79
79
|
blank_location_uri: "%{location} location does not specify a URI."
|
|
80
80
|
invalid_location_uri: "%{uri} is either an invalid location URI, refers
|
|
81
81
|
to a missing asset, or does not use HTTPS."
|
|
82
|
+
signed_setting_uri: the url (%{uri}) cannot use a setting because it is
|
|
83
|
+
a signed url
|
|
82
84
|
duplicate_location:
|
|
83
85
|
one: "%{duplicate_locations} is a duplicate location."
|
|
84
86
|
other: "%{duplicate_locations} are duplicate locations."
|
|
@@ -184,6 +184,11 @@ parts:
|
|
|
184
184
|
key: "txt.apps.admin.error.app_build.invalid_location_uri"
|
|
185
185
|
title: "App builder job: invalid URI for an iframe in the manifest"
|
|
186
186
|
value: "%{uri} is either an invalid location URI, refers to a missing asset, or does not use HTTPS."
|
|
187
|
+
- translation:
|
|
188
|
+
key: "txt.apps.admin.error.app_build.signed_setting_uri"
|
|
189
|
+
title: "App builder job: invalid URI for an iframe in the manifest. The `manifest` is a setting file, the `signed url` is https://cloud.google.com/storage/docs/access-control/signed-urls"
|
|
190
|
+
value: "the url (%{uri}) cannot use a setting because it is a signed url"
|
|
191
|
+
screenshot: "https://drive.google.com/open?id=1oQmBeGfNT5EDaEH3oEQoNjaCzBw5XAvL"
|
|
187
192
|
- translation:
|
|
188
193
|
key: "txt.apps.admin.error.app_build.duplicate_location.one"
|
|
189
194
|
title: "App builder job: duplicate locations"
|
|
@@ -231,7 +231,7 @@ module ZendeskAppsSupport
|
|
|
231
231
|
errors = []
|
|
232
232
|
package.manifest.location_options.each do |location_options|
|
|
233
233
|
if location_options.url.is_a?(String) && !location_options.url.empty?
|
|
234
|
-
errors << invalid_location_uri_error(package, location_options
|
|
234
|
+
errors << invalid_location_uri_error(package, location_options)
|
|
235
235
|
elsif location_options.auto_load?
|
|
236
236
|
errors << ValidationError.new(:blank_location_uri, location: location_options.location.name)
|
|
237
237
|
end
|
|
@@ -270,8 +270,12 @@ module ZendeskAppsSupport
|
|
|
270
270
|
end
|
|
271
271
|
end
|
|
272
272
|
|
|
273
|
-
def invalid_location_uri_error(package,
|
|
273
|
+
def invalid_location_uri_error(package, location_options)
|
|
274
|
+
path = location_options.url
|
|
274
275
|
return nil if path == ZendeskAppsSupport::Manifest::LEGACY_URI_STUB
|
|
276
|
+
if path.include?('{{setting.')
|
|
277
|
+
return location_options.signed ? ValidationError.new(:signed_setting_uri, uri: path) : nil
|
|
278
|
+
end
|
|
275
279
|
validation_error = ValidationError.new(:invalid_location_uri, uri: path)
|
|
276
280
|
uri = URI.parse(path)
|
|
277
281
|
unless uri.absolute? ? valid_absolute_uri?(uri) : valid_relative_uri?(package, uri)
|
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.
|
|
4
|
+
version: 4.10.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: 2018-
|
|
14
|
+
date: 2018-03-14 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: i18n
|
|
@@ -274,7 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
274
274
|
version: 1.3.6
|
|
275
275
|
requirements: []
|
|
276
276
|
rubyforge_project:
|
|
277
|
-
rubygems_version: 2.6
|
|
277
|
+
rubygems_version: 2.7.6
|
|
278
278
|
signing_key:
|
|
279
279
|
specification_version: 4
|
|
280
280
|
summary: Support to help you develop Zendesk Apps.
|