glib-web 0.5.22 → 0.5.23
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96a374e3289f6a60740734297d8916d0d812d179522a6f8bb90b081fc250384b
|
4
|
+
data.tar.gz: 5a7cd0858950a75f72c4a0746345c11f4229a3caede190fe0b038385307fceee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93a2a7ec3a7200cffe50217bbf485ef5544dcd8ea5df41c72edd6dacc6d245cd375150cf22c8da2c0ce0d1cd33ba02985cad24c32b9ff97fbf62f030635e4c10
|
7
|
+
data.tar.gz: 864b0889dfb2213830fc8e4fab34baecb3a9d896406f2bb12c3d8adf31e315fb06ff5edcdca03f90bafada56f57dd81ed0dc5220a57d3de8b6b3cecb520a073a
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module Glib
|
2
|
+
module JsonUi
|
3
|
+
module AnalyticsHelper
|
4
|
+
def __json_ui_analytics(json)
|
5
|
+
if try(:glib_analytics_included?)
|
6
|
+
json.analytics do
|
7
|
+
json.feature do
|
8
|
+
json.group controller_name
|
9
|
+
json.action action_name
|
10
|
+
json.segment glib_analytics_feature_segment
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -18,15 +18,7 @@ module Glib
|
|
18
18
|
def json_ui_page(json, &block)
|
19
19
|
@__json_ui_page ||= Page.new(json, self)
|
20
20
|
|
21
|
-
|
22
|
-
json.analytics do
|
23
|
-
json.feature do
|
24
|
-
json.group controller_name
|
25
|
-
json.action action_name
|
26
|
-
json.segment glib_analytics_feature_segment
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
21
|
+
__json_ui_analytics(json)
|
30
22
|
|
31
23
|
block&.call @__json_ui_page
|
32
24
|
@__json_ui_page
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glib-web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
@@ -85,6 +85,7 @@ files:
|
|
85
85
|
- app/helpers/glib/json_ui/action_builder/sheets.rb
|
86
86
|
- app/helpers/glib/json_ui/action_builder/snackbars.rb
|
87
87
|
- app/helpers/glib/json_ui/action_builder/windows.rb
|
88
|
+
- app/helpers/glib/json_ui/analytics_helper.rb
|
88
89
|
- app/helpers/glib/json_ui/dynamic_field_builders.rb
|
89
90
|
- app/helpers/glib/json_ui/generic_builders.rb
|
90
91
|
- app/helpers/glib/json_ui/list_builders.rb
|