zendesk_apps_support 4.2.0 → 4.2.1

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: 2179c4d2a6cf6a2163ce8c20f1d338911f294048
4
- data.tar.gz: d6c1780a2ef2167d19f934aac565eb84e64e21d8
3
+ metadata.gz: 6fe5bdb5612e8bb4a6a19203bac397d803344e56
4
+ data.tar.gz: f26d674ecd167f9e89d105c709ebc87d065a4144
5
5
  SHA512:
6
- metadata.gz: 91d7bca13f6989964ae6831bc44e758576986ce63ed6c567b113989b6d7eb1f2f5c2a8e43de6c243680725fdeabe3783a6da0cc70c9ace92136337c878e792ec
7
- data.tar.gz: 6cf4cdeb0da373b898cccc7449083b77ae84312d191364323f47ea4a5613f8afcac62627fe1e01b7ac49aa8d72a023021cea91163bb0f7527a06047f143294c4
6
+ metadata.gz: 4182a52d6006ddf7bc3e408ba6c9c6b7385dcbf5c87170ff1d73267df409701676cb19d7705dacc475ead01320f386a9e3a3602fb2e52731b3ef0b57cfe84c1b
7
+ data.tar.gz: be090702051d35c47de0a4a01ca65dafb86231b0163d02e435579cd32d337a1a4a61e4c5fa8828bac7c9cc45c31333bc8f110e873c44ab60d377ee246ba6c338
@@ -1,4 +1,4 @@
1
- # This file is generated by rake i18n:standardize. Do NOT edit it directly.
1
+ # This file is generated by rake i18n:standardize. Do NOT edit it directly!
2
2
  ---
3
3
  en:
4
4
  txt:
@@ -78,7 +78,7 @@ parts:
78
78
  value: "Could not find requirements.json"
79
79
  - translation:
80
80
  key: "txt.apps.admin.error.app_build.requirements_not_supported"
81
- title: "App builder job: requirements not supported error"
81
+ title: "App builder job: requirements not supported error (for example not supported for apps built only for the product Chat or for marketing purposes."
82
82
  value: "App requirements are not supported for marketing-only or Chat-only apps"
83
83
  - translation:
84
84
  key: "txt.apps.admin.error.app_build.manifest_keys.missing.one"
@@ -56,6 +56,12 @@ module ZendeskAppsSupport
56
56
  end
57
57
  end
58
58
 
59
+ def products_ignore_locations
60
+ locations.keys.map do |product_name|
61
+ Product.find_by(name: product_name)
62
+ end
63
+ end
64
+
59
65
  def location_options
60
66
  @location_options ||= locations.flat_map do |product_key, locations|
61
67
  product = Product.find_by(name: product_key)
@@ -140,12 +146,6 @@ module ZendeskAppsSupport
140
146
  .map { |code| Product.find_by(code: code) }
141
147
  end
142
148
 
143
- def products_ignore_locations
144
- locations.keys.map do |product_name|
145
- Product.find_by(name: product_name)
146
- end
147
- end
148
-
149
149
  def set_locations_and_hosts
150
150
  @locations =
151
151
  case original_locations
@@ -36,7 +36,7 @@ module ZendeskAppsSupport
36
36
  private
37
37
 
38
38
  def supports_requirements(package)
39
- !package.manifest.marketing_only? && package.manifest.products != [Product::CHAT]
39
+ !package.manifest.marketing_only? && package.manifest.products_ignore_locations != [Product::CHAT]
40
40
  end
41
41
 
42
42
  def missing_required_fields(requirements)
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.2.0
4
+ version: 4.2.1
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-09-04 00:00:00.000000000 Z
14
+ date: 2017-09-13 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.13
233
+ rubygems_version: 2.6.8
234
234
  signing_key:
235
235
  specification_version: 4
236
236
  summary: Support to help you develop Zendesk Apps.