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: 7d40fabbd2b44ff3a4c13a7095ea2f19b6b560de5d0c5d6a58616c94d000df1a
4
- data.tar.gz: 1c4b8787db5d9fa131b18346e6b4d201b6c9b279f5a5e58d5debf6c4024475c4
3
+ metadata.gz: 96a374e3289f6a60740734297d8916d0d812d179522a6f8bb90b081fc250384b
4
+ data.tar.gz: 5a7cd0858950a75f72c4a0746345c11f4229a3caede190fe0b038385307fceee
5
5
  SHA512:
6
- metadata.gz: 7d75eca6f60a6cfe859d529216300a16987fde43fc4960df8a1923080c0142be524f21e0ddf32e6f3c66182fa0c12d9f6d8f85bd65d2671ad34e921dd02c89f9
7
- data.tar.gz: 1c0225f8bd8979c62e74e69941b033afc98067c93e1a699d4402a347c9e7f7bb3076df798d88fd79d02216da6c067112950249cd1b0d0740c23b895911cdf143
6
+ metadata.gz: 93a2a7ec3a7200cffe50217bbf485ef5544dcd8ea5df41c72edd6dacc6d245cd375150cf22c8da2c0ce0d1cd33ba02985cad24c32b9ff97fbf62f030635e4c10
7
+ data.tar.gz: 864b0889dfb2213830fc8e4fab34baecb3a9d896406f2bb12c3d8adf31e315fb06ff5edcdca03f90bafada56f57dd81ed0dc5220a57d3de8b6b3cecb520a073a
@@ -8,6 +8,7 @@ module Glib::Analytics
8
8
 
9
9
  helper_method :glib_analytics_feature_segment
10
10
  helper_method :glib_analytics_feature_referer
11
+ helper_method :glib_analytics_included?
11
12
  end
12
13
 
13
14
  # module Overrides
@@ -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
- if try(:glib_analytics_included?)
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
@@ -2,6 +2,8 @@ module Glib
2
2
  module JsonUi
3
3
  module ResponseHelper
4
4
  def json_ui_response(json)
5
+ __json_ui_analytics(json)
6
+
5
7
  json.onResponse do
6
8
  response = Response.new(json, self)
7
9
  yield response.action_builder
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.22
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