zendesk_apps_support 3.1.5 → 3.2.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
2
  SHA1:
3
- metadata.gz: 5ff9e0870366d8f0d8ba686bc44f7638c8654a42
4
- data.tar.gz: dacc89dd6e318dd9548e2a1b41efd224aa7d048d
3
+ metadata.gz: 54e7a6ab73eb5859482ab34120496dc7d0436d94
4
+ data.tar.gz: 628d00f657e16bd523e243933df0ebd33335ff71
5
5
  SHA512:
6
- metadata.gz: 7d10c0d2bb6e5c537d82e488060efbfd211f9d785735a426671205ec12772f671dab78a98851d35063d320c3154d3ce66c922e85fd4befd66be9af5f2b4f9090
7
- data.tar.gz: 1152802116615c6efd8de0af1a0004fb7f383066f26de71573e1e5524a64905bf6034f1b254cbe1a5fbe5b70b6ce2d1efe29e4331af6e8948176df16e1222c1c
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
@@ -8,6 +8,7 @@ module ZendeskAppsSupport
8
8
  marketing_only: 'marketingOnly',
9
9
  version: 'version',
10
10
  author: 'author',
11
+ name: 'name', # currently only used in ZAT
11
12
  experiments: 'experiments',
12
13
  framework_version: 'frameworkVersion',
13
14
  single_install: 'singleInstall',
@@ -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.exist?(path_to(path))
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
- { 'svg' => "icon_#{location}.svg" }
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 = find_by!(name: '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.1.5
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-10-26 00:00:00.000000000 Z
14
+ date: 2016-12-02 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: i18n