zendesk_apps_support 4.27.0 → 4.28.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 +5 -5
- data/lib/zendesk_apps_support/location.rb +2 -1
- data/lib/zendesk_apps_support/package.rb +12 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 18a2219c066ccf5b47f80f660a62cd4b292810f7
|
4
|
+
data.tar.gz: 32c93abb832fbf273644fcc5e223f9f72b7c178f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c258716b5eb2ca613b9fb9ae98a13fcaa4aa2aa72c07604ed8d5f965764596a55c6e0cdfbe5964279336b2726923b07744582cead4b64359c5849075a23369dc
|
7
|
+
data.tar.gz: ac7944c1a7b828e567cc2850cea3a013d825c47ef879fcd6494151a8932cc2d82d7951e0e5b2111a4f0eb6629a2d33bf440bfdf4403dd906dc2d0569eb4a1fbb
|
@@ -63,7 +63,8 @@ module ZendeskAppsSupport
|
|
63
63
|
Location.new(id: 21, name: 'dashboard', product_code: Product::SELL.code, visible: true),
|
64
64
|
Location.new(id: 22, name: 'note_editor', product_code: Product::SELL.code, visible: true),
|
65
65
|
Location.new(id: 23, name: 'call_log_editor', product_code: Product::SELL.code, visible: true),
|
66
|
-
Location.new(id: 24, name: 'email_editor', product_code: Product::SELL.code, visible: true)
|
66
|
+
Location.new(id: 24, name: 'email_editor', product_code: Product::SELL.code, visible: true),
|
67
|
+
Location.new(id: 25, name: 'top_bar', product_code: Product::SELL.code, visible: true)
|
67
68
|
].freeze
|
68
69
|
end
|
69
70
|
end
|
@@ -16,7 +16,10 @@ module ZendeskAppsSupport
|
|
16
16
|
DEFAULT_SCSS = File.read(File.expand_path('../assets/default_styles.scss', __FILE__))
|
17
17
|
SRC_TEMPLATE = Erubis::Eruby.new(File.read(File.expand_path('../assets/src.js.erb', __FILE__)))
|
18
18
|
|
19
|
-
|
19
|
+
LOCATIONS_WITH_ICONS_PER_PRODUCT = {
|
20
|
+
Product::SUPPORT => %w[top_bar nav_bar system_top_bar ticket_editor].freeze,
|
21
|
+
Product::SELL => %w[top_bar].freeze
|
22
|
+
}.freeze
|
20
23
|
|
21
24
|
attr_reader :lib_root, :root, :warnings
|
22
25
|
|
@@ -321,14 +324,17 @@ module ZendeskAppsSupport
|
|
321
324
|
def location_icons
|
322
325
|
Hash.new { |h, k| h[k] = {} }.tap do |location_icons|
|
323
326
|
manifest.location_options.each do |location_options|
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
+
# no location information in the manifest
|
328
|
+
next unless location_options.location
|
329
|
+
|
330
|
+
product = location_options.location.product
|
331
|
+
location_name = location_options.location.name
|
332
|
+
# the location on the product does not support icons
|
333
|
+
next unless LOCATIONS_WITH_ICONS_PER_PRODUCT.fetch(product, []).include?(location_name)
|
327
334
|
|
328
335
|
host = location_options.location.product.name
|
329
|
-
location = location_options.location.name
|
330
336
|
product_directory = manifest.products.count > 1 ? "#{host}/" : ''
|
331
|
-
location_icons[host][
|
337
|
+
location_icons[host][location_name] = build_location_icons_hash(location_name, product_directory)
|
332
338
|
end
|
333
339
|
end
|
334
340
|
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: 4.
|
4
|
+
version: 4.28.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:
|
14
|
+
date: 2020-01-29 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: i18n
|
@@ -320,7 +320,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
320
320
|
version: 1.3.6
|
321
321
|
requirements: []
|
322
322
|
rubyforge_project:
|
323
|
-
rubygems_version: 2.
|
323
|
+
rubygems_version: 2.6.8
|
324
324
|
signing_key:
|
325
325
|
specification_version: 4
|
326
326
|
summary: Support to help you develop Zendesk Apps.
|