zendesk_apps_support 4.29.0 → 4.29.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 +5 -5
- data/lib/zendesk_apps_support/package.rb +18 -18
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d27dac2cde5663bdcd342904a0c21e60d893ed4e
|
4
|
+
data.tar.gz: ac2c5bd8a24391142e04b72dce853fd7d81b59a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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-
|
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
|
-
|
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.
|