zendesk_apps_support 1.31.0 → 1.32.0

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: 08be0e903a2f9b94a057c205ba2cb0931253ca54
4
- data.tar.gz: 7e5d990b51bdb3624db524d43326c8f12688b1ef
3
+ metadata.gz: d5eb383e9999d668af794e8d9667021f4c518b45
4
+ data.tar.gz: 7391282de84989a9b94e2686658f017db0bea80e
5
5
  SHA512:
6
- metadata.gz: 362ce26d40b89bfbe495ef22d26d8d4a8f8ee480ff60beaf2c4fc8029044435419b022d4ab0d052877b14a1385c86464f0d9420014d9c978e1ab72830f3ebd59
7
- data.tar.gz: b9eb1b4620894da3eaf8513fa2cd5b5b56291456972b14f192ff87a489d002bef44a2394c66c1c32a5fe8435ae0464bc0f593605cca050623b3af710b3a1b3c0
6
+ metadata.gz: 66deb0400963afacab1a517d0dbb8ccb5bd3852f14fa909a461749310f180dd32210b5d8cec632beb9f4936aac0e6450186de6e26fe9beba87d78d5600e5a834
7
+ data.tar.gz: b9b46db4d7f7efad0f00c583a9217a0d05e6eecd3b955a1304cd6c0f409d54fbffe3b2d35e0e1c5900d620177bf678317a044192e6e5e3adb77ed2a0ca5753d9
@@ -34,7 +34,8 @@ en:
34
34
  invalid_requirements_types:
35
35
  one: 'requirements.json contains an invalid type: %{invalid_types}'
36
36
  other: 'requirements.json contains invalid types: %{invalid_types}'
37
- multiple_channel_integrations: 'Specifying multiple channel integrations in requirements.json is not supported.'
37
+ multiple_channel_integrations: Specifying multiple channel integrations
38
+ in requirements.json is not supported.
38
39
  banner:
39
40
  invalid_format: Banner image must be a PNG file.
40
41
  invalid_size: Invalid banner image dimensions. Must be %{required_banner_width}x%{required_banner_height}px.
@@ -44,7 +45,8 @@ en:
44
45
  other: 'Missing required oauth fields in manifest: %{missing_keys}'
45
46
  missing_source: Could not find app.js
46
47
  style_in_template: "<style> tag in %{template}. Use an app.css file instead."
47
- no_code_for_ifo_notemplate: Javascripts, stylesheets and templates are not allowed when an iframe URI or noTemplate is specified
48
+ no_code_for_ifo_notemplate: Javascripts, stylesheets, and templates are
49
+ not allowed when an iframe URI or noTemplate is specified
48
50
  invalid_default_locale: "%{defaultLocale} is not a valid default locale."
49
51
  missing_translation_file: 'Missing translation file for locale ''%{defaultLocale}''.
50
52
  Please read: http://developer.zendesk.com/documentation/apps/i18n.html'
@@ -53,7 +55,7 @@ en:
53
55
  one: "%{invalid_locations} is an invalid location in %{host_name}."
54
56
  other: "%{invalid_locations} are invalid locations in %{host_name}."
55
57
  invalid_location_uri: "%{uri} is either an invalid location URI, refers
56
- to a missing asset or does not use HTTPS."
58
+ to a missing asset, or does not use HTTPS."
57
59
  duplicate_location:
58
60
  one: "%{duplicate_locations} is a duplicate location."
59
61
  other: "%{duplicate_locations} are duplicate locations."
@@ -63,6 +65,7 @@ en:
63
65
  other: "%{invalid_params} are set to hidden and cannot be required."
64
66
  invalid_version: "%{target_version} is not a valid framework version.
65
67
  Available versions are: %{available_versions}."
68
+ old_version: Iframe Only apps must target framework versions 2.0 or greater.
66
69
  parameters_not_an_array: App parameters must be an array.
67
70
  duplicate_parameters: 'Duplicate app parameters defined: %{duplicate_parameters}'
68
71
  translation:
@@ -80,6 +80,10 @@ parts:
80
80
  key: "txt.apps.admin.error.app_build.invalid_requirements_types.other"
81
81
  title: "App builder job: requirements file contains invalid types error"
82
82
  value: "requirements.json contains invalid types: %{invalid_types}"
83
+ - translation:
84
+ key: "txt.apps.admin.error.app_build.multiple_channel_integrations"
85
+ title: "App builder job: requirements file contains multiple channel integrations, leave requirements.json as is (file name)"
86
+ value: "Specifying multiple channel integrations in requirements.json is not supported."
83
87
  - translation:
84
88
  key: "txt.apps.admin.error.app_build.banner.invalid_format"
85
89
  title: "App builder job: Banner image invalid format error"
@@ -160,6 +164,10 @@ parts:
160
164
  key: "txt.apps.admin.error.app_build.invalid_version"
161
165
  title: "App builder job: invalid framework version"
162
166
  value: "%{target_version} is not a valid framework version. Available versions are: %{available_versions}."
167
+ - translation:
168
+ key: "txt.apps.admin.error.app_build.old_version"
169
+ title: "App builder job: old framework version"
170
+ value: "Iframe Only apps must target framework versions 2.0 or greater."
163
171
  - translation:
164
172
  key: "txt.apps.admin.error.app_build.parameters_not_an_array"
165
173
  title: "App builder job: app parameters must be an array"
@@ -32,6 +32,7 @@ module ZendeskAppsSupport
32
32
  errors << duplicate_location_error(manifest)
33
33
  errors << missing_framework_version(manifest)
34
34
  errors << invalid_version_error(manifest, package)
35
+ errors << framework_version_iframe_only(package, manifest)
35
36
  end
36
37
 
37
38
  errors.flatten.compact
@@ -210,6 +211,17 @@ module ZendeskAppsSupport
210
211
  def missing_keys_validation_error(missing_keys)
211
212
  ValidationError.new('manifest_keys.missing', missing_keys: missing_keys.join(', '), count: missing_keys.length)
212
213
  end
214
+
215
+ def framework_version_iframe_only(package, manifest)
216
+ if (package.iframe_only?)
217
+ manifest_version = Gem::Version.new (manifest['frameworkVersion'] || 0)
218
+ required_version = Gem::Version.new '2.0'
219
+
220
+ if (manifest_version < required_version)
221
+ ValidationError.new(:old_version)
222
+ end
223
+ end
224
+ end
213
225
  end
214
226
  end
215
227
  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: 1.31.0
4
+ version: 1.32.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: 2016-07-04 00:00:00.000000000 Z
14
+ date: 2016-07-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: i18n
@@ -198,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
198
198
  version: 1.3.6
199
199
  requirements: []
200
200
  rubyforge_project:
201
- rubygems_version: 2.5.1
201
+ rubygems_version: 2.6.4
202
202
  signing_key:
203
203
  specification_version: 4
204
204
  summary: Support to help you develop Zendesk Apps.