zendesk_apps_support 4.27.0 → 4.28.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
- SHA256:
3
- metadata.gz: 98c46bd59f486032480d291ecd0daa4fb479665e9a9e114b2c1966223eeb9f11
4
- data.tar.gz: 74f5b5e00169a98c185a919648905917438c41e3c7126804b70a1651b139a253
2
+ SHA1:
3
+ metadata.gz: 18a2219c066ccf5b47f80f660a62cd4b292810f7
4
+ data.tar.gz: 32c93abb832fbf273644fcc5e223f9f72b7c178f
5
5
  SHA512:
6
- metadata.gz: ad1e834cfee32a905ad10ec1bc0164cffa567a3b40e7f1b1a2a17b3c0b5d88b145aef6eeae86da08b1f97e50212678afd21043ae18e7d72a1aaece71eb8fda66
7
- data.tar.gz: fc2a957936239bbc3ff72adb5ef40ab98a120090e1f2b0f0a926433e456aea07d965433319b07de91854998ec8a6066417252d9a12d8b59e29f4af5e8663ba69
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
- LOCATIONS_WITH_ICONS = %w[top_bar nav_bar system_top_bar ticket_editor].freeze
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
- next unless location_options.location &&
325
- LOCATIONS_WITH_ICONS.include?(location_options.location.name) &&
326
- location_options.location.product == Product::SUPPORT
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][location] = build_location_icons_hash(location, product_directory)
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.27.0
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: 2019-12-09 00:00:00.000000000 Z
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.7.10
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.