zendesk_apps_support 3.4.2 → 3.4.3
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
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc7e4f061bce5defe5991aa6e539fd9062da466a
|
4
|
+
data.tar.gz: 3f143fde848b5090338a6f8f702cc437e80ccf3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c005c528443808e6110c69d1fe4b77ad3e1f0d5115864ba7dfdbee01d56b302b918afc8fb2d3d5199c38ecf8528177a825e85b045602597ab1e2167356d63f00
|
7
|
+
data.tar.gz: 0165b5a3a74eadb81e0d8d226330a0d53145616e0202c7fd21f5804c9e983e75be55757dc3254ce168ca61f4c4a9948cc68a8b58b3904dc71517c38b4427efdc
|
data/config/locales/en.yml
CHANGED
@@ -23,6 +23,8 @@ en:
|
|
23
23
|
app.js
|
24
24
|
manifest_not_json: manifest is not proper JSON. %{errors}
|
25
25
|
missing_manifest: Could not find manifest.json
|
26
|
+
nested_manifest: Could not find manifest.json in the root of the zip file,
|
27
|
+
but %{found_path} was found. Try re-creating the archive from this directory.
|
26
28
|
symlink_in_zip: Symlinks are not allowed in the zip file
|
27
29
|
invalid_experiment: 'Manifest specifies unknown or unavailable experiment:
|
28
30
|
%{experiment}'
|
@@ -48,6 +48,10 @@ parts:
|
|
48
48
|
key: "txt.apps.admin.error.app_build.missing_manifest"
|
49
49
|
title: "App builder job: missing manifest error"
|
50
50
|
value: "Could not find manifest.json"
|
51
|
+
- translation:
|
52
|
+
key: "txt.apps.admin.error.app_build.nested_manifest"
|
53
|
+
title: "App builder job: missing manifest error, but it was found in a subdirectory"
|
54
|
+
value: "Could not find manifest.json in the root of the zip file, but %{found_path} was found. Try re-creating the archive from this directory."
|
51
55
|
- translation:
|
52
56
|
key: "txt.apps.admin.error.app_build.symlink_in_zip"
|
53
57
|
title: "App builder job: symlinks not allowed. https://en.wikipedia.org/wiki/Symbolic_link"
|
@@ -12,7 +12,13 @@ module ZendeskAppsSupport
|
|
12
12
|
|
13
13
|
class << self
|
14
14
|
def call(package)
|
15
|
-
|
15
|
+
unless package.has_file?('manifest.json')
|
16
|
+
nested_manifest = package.files.find { |file| file =~ %r{\A[^/]+?/manifest\.json\Z} }
|
17
|
+
if nested_manifest
|
18
|
+
return [ValidationError.new(:nested_manifest, found_path: nested_manifest.relative_path)]
|
19
|
+
end
|
20
|
+
return [ValidationError.new(:missing_manifest)]
|
21
|
+
end
|
16
22
|
|
17
23
|
collate_manifest_errors(package)
|
18
24
|
|
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: 3.4.
|
4
|
+
version: 3.4.3
|
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: 2017-03-
|
14
|
+
date: 2017-03-31 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: i18n
|
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
230
230
|
version: 1.3.6
|
231
231
|
requirements: []
|
232
232
|
rubyforge_project:
|
233
|
-
rubygems_version: 2.6.
|
233
|
+
rubygems_version: 2.6.10
|
234
234
|
signing_key:
|
235
235
|
specification_version: 4
|
236
236
|
summary: Support to help you develop Zendesk Apps.
|