zendesk_apps_support 3.1.5 → 3.2.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 54e7a6ab73eb5859482ab34120496dc7d0436d94
|
|
4
|
+
data.tar.gz: 628d00f657e16bd523e243933df0ebd33335ff71
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 307849eca5c7198db760d0cf88a31ad499ec6c96faf3465e7d367bac82903cd891e66e19330e25cd70ae86e1da3aa47abaab4fe5ac88b0189e699c78e38808c3
|
|
7
|
+
data.tar.gz: ff42fe5d330299f1fb3a4b6baff4f78d527281f17e621da70d244b0ef2ab62a486653aeeb136f2fd42199aff0ee4141418791782050df3c2a93acc37f57223df
|
|
@@ -35,7 +35,10 @@ module ZendeskAppsSupport
|
|
|
35
35
|
Location.new(id: 7, orderable: false, name: 'background', product_code: Product::SUPPORT.code),
|
|
36
36
|
Location.new(id: 8, orderable: true, name: 'chat_sidebar', product_code: Product::CHAT.code),
|
|
37
37
|
Location.new(id: 9, orderable: false, name: 'modal', product_code: Product::SUPPORT.code),
|
|
38
|
-
Location.new(id: 10, orderable: false, name: 'ticket_editor', product_code: Product::SUPPORT.code)
|
|
38
|
+
Location.new(id: 10, orderable: false, name: 'ticket_editor', product_code: Product::SUPPORT.code),
|
|
39
|
+
Location.new(id: 11, orderable: false, name: 'nav_bar', product_code: Product::STANDALONE_CHAT.code),
|
|
40
|
+
Location.new(id: 12, orderable: false, name: 'system_top_bar', product_code: Product::SUPPORT.code),
|
|
41
|
+
Location.new(id: 13, orderable: false, name: 'system_top_bar', product_code: Product::STANDALONE_CHAT.code)
|
|
39
42
|
].freeze
|
|
40
43
|
end
|
|
41
44
|
end
|
|
@@ -15,7 +15,7 @@ module ZendeskAppsSupport
|
|
|
15
15
|
DEFAULT_SCSS = File.read(File.expand_path('../assets/default_styles.scss', __FILE__))
|
|
16
16
|
SRC_TEMPLATE = Erubis::Eruby.new(File.read(File.expand_path('../assets/src.js.erb', __FILE__)))
|
|
17
17
|
|
|
18
|
-
LOCATIONS_WITH_ICONS = ['top_bar', 'nav_bar']
|
|
18
|
+
LOCATIONS_WITH_ICONS = ['top_bar', 'nav_bar', 'system_top_bar']
|
|
19
19
|
|
|
20
20
|
attr_reader :lib_root, :root, :warnings
|
|
21
21
|
|
|
@@ -190,7 +190,7 @@ module ZendeskAppsSupport
|
|
|
190
190
|
deprecate :has_location?, 'manifest.location?', 2016, 9
|
|
191
191
|
|
|
192
192
|
def has_file?(path)
|
|
193
|
-
File.
|
|
193
|
+
File.file?(path_to(path))
|
|
194
194
|
end
|
|
195
195
|
|
|
196
196
|
def has_requirements?
|
|
@@ -284,13 +284,12 @@ module ZendeskAppsSupport
|
|
|
284
284
|
def location_icons
|
|
285
285
|
{}.tap do |location_icons|
|
|
286
286
|
manifest.locations.each do |host, locations_for_host|
|
|
287
|
-
next unless [Product::SUPPORT.name].include?(host)
|
|
288
|
-
|
|
289
287
|
locations_for_host.keys.each do |location|
|
|
290
288
|
next unless LOCATIONS_WITH_ICONS.include?(location)
|
|
291
289
|
location_icons[host] ||= {}
|
|
292
290
|
location_icons[host][location] = if (has_file?("assets/icon_#{location}.svg"))
|
|
293
|
-
|
|
291
|
+
cache_busting_param = "?#{Time.now.to_i}" unless @is_cached
|
|
292
|
+
{ 'svg' => "icon_#{location}.svg#{cache_busting_param}" }
|
|
294
293
|
elsif (has_file?("assets/icon_#{location}_inactive.png"))
|
|
295
294
|
{
|
|
296
295
|
'inactive' => "icon_#{location}_inactive.png",
|
|
@@ -16,10 +16,12 @@ module ZendeskAppsSupport
|
|
|
16
16
|
# The product codes below match the values in the database, do not change them!
|
|
17
17
|
PRODUCTS_AVAILABLE = [
|
|
18
18
|
Product.new(code: 1, name: 'support', legacy_name: 'zendesk'),
|
|
19
|
-
Product.new(code: 2, name: 'chat', legacy_name: 'zopim')
|
|
19
|
+
Product.new(code: 2, name: 'chat', legacy_name: 'zopim'),
|
|
20
|
+
Product.new(code: 3, name: 'standalone_chat', legacy_name: 'lotus_box')
|
|
20
21
|
].freeze
|
|
21
22
|
|
|
22
23
|
SUPPORT = find_by!(name: 'support')
|
|
23
|
-
CHAT
|
|
24
|
+
CHAT = find_by!(name: 'chat')
|
|
25
|
+
STANDALONE_CHAT = find_by!(name: 'standalone_chat')
|
|
24
26
|
end
|
|
25
27
|
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: 3.
|
|
4
|
+
version: 3.2.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: 2016-
|
|
14
|
+
date: 2016-12-02 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: i18n
|