zendesk_apps_support 4.29.0 → 4.29.1

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: e0ede6523497ff0fbf8d8768ea7a00b90ad1011c3eeb5ed0db26c9b7f22e49fc
4
- data.tar.gz: 9a5577cdb2dfac58db29921c5b1b76291a33de58376d7b4c3a9d2ade650c0b91
2
+ SHA1:
3
+ metadata.gz: d27dac2cde5663bdcd342904a0c21e60d893ed4e
4
+ data.tar.gz: ac2c5bd8a24391142e04b72dce853fd7d81b59a8
5
5
  SHA512:
6
- metadata.gz: 6b256559f9f1fc4948e3921bd711b9cdedff8b98a3d1bc8573d3e83fc961023acfbec1994e713a72edff82970c13f1266cbf2aea933f1ee2cb8b65a384b52e97
7
- data.tar.gz: 35555b53118ea3d124778b5f129fbcc3dc9ef891f3eefadb89c7cb619c8ead585262f61f58594c3001f438c1ae9106abbaf6b5ad01cff61153cf4e3426103cd1
6
+ metadata.gz: 2506afc6138a7144c66227f284f82c464152c162bd492f7a63a3fc1aba81736511ad771ed4d93d1e01eb3cf262a5c227c3180871bc0c51ab28a8d7f8b5cb1ae2
7
+ data.tar.gz: 9be082b1bdbd0687c4c70b8ff7b986b003355ca2d95a6d5a608199ffa75221abe09f3e99d192d0706e79ada9a76eab35d451b583e4cfa8b5bed401b238487ee3
@@ -278,6 +278,24 @@ module ZendeskAppsSupport
278
278
  end
279
279
  end
280
280
 
281
+ def location_icons
282
+ Hash.new { |h, k| h[k] = {} }.tap do |location_icons|
283
+ manifest.location_options.each do |location_options|
284
+ # no location information in the manifest
285
+ next unless location_options.location
286
+
287
+ product = location_options.location.product
288
+ location_name = location_options.location.name
289
+ # the location on the product does not support icons
290
+ next unless LOCATIONS_WITH_ICONS_PER_PRODUCT.fetch(product, []).include?(location_name)
291
+
292
+ host = location_options.location.product.name
293
+ product_directory = manifest.products.count > 1 ? "#{host}/" : ''
294
+ location_icons[host][location_name] = build_location_icons_hash(location_name, product_directory)
295
+ end
296
+ end
297
+ end
298
+
281
299
  private
282
300
 
283
301
  def generate_logo_hash(products)
@@ -321,24 +339,6 @@ module ZendeskAppsSupport
321
339
  has_file?('assets/banner.png')
322
340
  end
323
341
 
324
- def location_icons
325
- Hash.new { |h, k| h[k] = {} }.tap do |location_icons|
326
- manifest.location_options.each do |location_options|
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)
334
-
335
- host = location_options.location.product.name
336
- product_directory = manifest.products.count > 1 ? "#{host}/" : ''
337
- location_icons[host][location_name] = build_location_icons_hash(location_name, product_directory)
338
- end
339
- end
340
- end
341
-
342
342
  def build_location_icons_hash(location, product_directory)
343
343
  inactive_png = "icon_#{location}_inactive.png"
344
344
  if has_file?("assets/#{product_directory}icon_#{location}.svg")
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.29.0
4
+ version: 4.29.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: 2020-02-06 00:00:00.000000000 Z
14
+ date: 2020-05-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: i18n
@@ -319,7 +319,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
319
319
  - !ruby/object:Gem::Version
320
320
  version: 1.3.6
321
321
  requirements: []
322
- rubygems_version: 3.0.6
322
+ rubyforge_project:
323
+ rubygems_version: 2.6.8
323
324
  signing_key:
324
325
  specification_version: 4
325
326
  summary: Support to help you develop Zendesk Apps.