zendesk_apps_support 3.4.2 → 3.4.3

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
  SHA1:
3
- metadata.gz: 051cb89afc8af751b74decd0d4b8af0851d3d502
4
- data.tar.gz: 4b7ca81f9e1a9073725d45b58422f8b1fcc58f1b
3
+ metadata.gz: bc7e4f061bce5defe5991aa6e539fd9062da466a
4
+ data.tar.gz: 3f143fde848b5090338a6f8f702cc437e80ccf3b
5
5
  SHA512:
6
- metadata.gz: 11838d9b6edf3e03e522e6125536436f4cf9099a37a5bf90aba781711988e4f582e3f120ad563b202aca723f0e99f1e38f3e56283fa538231c37c17a547273c7
7
- data.tar.gz: c831ef25d6cae942d8e592a70c0bc94c0f555a9b4051598ccc668cab44e42315a44bf355f46568f35158563256a8ca61decefbaecf02eb833296bbf5b3cfcc98
6
+ metadata.gz: c005c528443808e6110c69d1fe4b77ad3e1f0d5115864ba7dfdbee01d56b302b918afc8fb2d3d5199c38ecf8528177a825e85b045602597ab1e2167356d63f00
7
+ data.tar.gz: 0165b5a3a74eadb81e0d8d226330a0d53145616e0202c7fd21f5804c9e983e75be55757dc3254ce168ca61f4c4a9948cc68a8b58b3904dc71517c38b4427efdc
@@ -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
- return [ValidationError.new(:missing_manifest)] unless package.has_file?('manifest.json')
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.2
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-27 00:00:00.000000000 Z
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.8
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.