zendesk_apps_support 4.12.2 → 4.12.3

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: 9dd1ae30c3fa86d421b5eb617f21379dd75eac3d
4
- data.tar.gz: a46ee2adb8b00121f0fe94c7b5a93d38c393dfbe
3
+ metadata.gz: dd90aff067f69f9b87059453bf3955099a8248a4
4
+ data.tar.gz: 9045de0b0718e67f7db5ac0d6a2764915356754b
5
5
  SHA512:
6
- metadata.gz: 006bad071aa45ddcb2bb9f7cfcfeb554b3cb059daa7f09f1735097f788fb0190186f1aa861c9def4e5f7b905685e4377525f4394095fc22e90757d5290cc67a9
7
- data.tar.gz: 3d91c4c79009d9b9bbcd384ee1b4a891ac364b7dfba034d7e946acb2835c8b22b098b00b02f0df2f2d37026d2b2ad5f66b1306de0ec9174b5d1ca6e2ba1dad3d
6
+ metadata.gz: 0057a436ae846923b34ef9646905ec577a9d68a2992c563f31feadf151f5fbacad16c42c2a3e4f1efa0609e380f5dff8b2b924337d447ed6a26473314811015f
7
+ data.tar.gz: f854ea6a59474a05ef1959e3df42c87eb79a594428c1cd378f899339c575ccf1d180b0118b8aa8372ba87371e10331bdf8015110a9e4df00374dc33dd23275d2
@@ -1,52 +1,6 @@
1
1
  (function() {
2
- <% if apps_zaf_naughty_v1_logging %>
3
- var self = this;
4
- var reporter = window.ZendeskReporter ? new window.ZendeskReporter() : {};
5
-
6
- function getWrappedWindow(appName) {
7
- // This is just defining a wrapped version of jQuery which simply makes a
8
- // pass through call to global window.jQuery and adds logging information
9
- // about the origin of the page to Datadog.
10
- function wrapped$() {
11
- reporter.increment && reporter.increment(
12
- 'app_framework.app_scope.violated',
13
- 1,
14
- ['origin:' + self.location.hostname, 'app_name:' + appName]
15
- );
16
-
17
- return self.$.apply(null, arguments);
18
- }
19
-
20
- // Adding the wrapped version of jQeury to a clone of window object, which
21
- // will be used to bind the app's scope.
22
- var wrappedWindow = this.$.extend({}, self, { $: wrapped$ });
23
- wrappedWindow.window = wrappedWindow;
24
- wrappedWindow.top = wrappedWindow;
25
-
26
- return wrappedWindow;
27
- }
28
- <% end %>
29
-
30
2
  <% appsjs.each do |appjs| %>
31
- <% if apps_zaf_naughty_v1_logging %>
32
- // Find the appName from source
33
- var appName = "UNKNOWN";
34
-
35
- <% appNameMatch = appjs.match(/\.reopen\(\{\s*appName\: (\"[^\n]*\"),/m) %>
36
- <% if appNameMatch && appNameMatch.captures.any? %>
37
- appName = <%= appNameMatch.captures[0] %>;
38
- <% end %>
39
-
40
- // Trying to match a v1 apps self executing function here and bind it to the
41
- // wrappedWindow instance defined above.
42
- // }()); ==> }.bind(wrappedWindow)());
43
- <%= appjs.gsub(
44
- /}\(\)\)\;*\s*;*\s*}\s*var\s*app\s*=\s*ZendeskApps\.defineApp\(source\)/mx,
45
- "}.bind(getWrappedWindow(appName))());\n;\n}\n\nvar app = ZendeskApps.defineApp(source)"
46
- ) %>
47
- <% else %>
48
- <%= appjs %>
49
- <% end %>
3
+ <%= appjs %>
50
4
  <% end %>
51
5
 
52
6
  <% installations.each do |installation| %>
@@ -17,8 +17,7 @@ module ZendeskAppsSupport
17
17
  appsjs: @appsjs,
18
18
  installations: @installations,
19
19
  installation_orders: options.fetch(:installation_orders, {}),
20
- rollbar_zaf_access_token: options.fetch(:rollbar_zaf_access_token, ''),
21
- apps_zaf_naughty_v1_logging: options.fetch(:apps_zaf_naughty_v1_logging, false)
20
+ rollbar_zaf_access_token: options.fetch(:rollbar_zaf_access_token, '')
22
21
  )
23
22
  end
24
23
 
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.12.2
4
+ version: 4.12.3
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: 2018-08-24 00:00:00.000000000 Z
14
+ date: 2019-02-22 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: i18n