glib-web 0.6.4 → 0.6.5

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: 1ae75641d1f55d29436c7530a894a72022f7f4b49ec144f794cbe9c0a3a3f246
4
- data.tar.gz: c88aaed98890c2cb61098528f12bfbc1882cb0384686d31c783bfd5e04dca993
3
+ metadata.gz: 3d894626cc2535cdc34df54fdd1dffecc54d2eeb990f943aedaa8b9b3a1ef74f
4
+ data.tar.gz: 6ee401be38c2a676ade288d4dbd76cc8779ed4b51ea596ffaca108907b05561c
5
5
  SHA512:
6
- metadata.gz: 7060384b6f7a71f5a704911430593a108f9836e5a4950e4db98cb8a84edc92bb7cb2090a5c9e98e69cf9ef5d5f99998da658c1777143568fcb95b04bce3231b0
7
- data.tar.gz: 4431f1b32a01033ac08f6560332e09306e0769dd401ea17de90a1ed263f137c23790f540f73e73ab53a063fcafb01015a059e33459b500a077c039314f650cad
6
+ metadata.gz: dad59bde7f303a50f537488130f0c421cd8dc19113590e190c55a7326b5df0b0c13ae2efafce2245c3d17bb542fbf9591723ef61794599d9134c6ba1fe783493
7
+ data.tar.gz: 062fde34dc5b4793f2751b94bf4ed8303e6719c0270027011afa966f4a948a599d3161b39152ce6647b84ca7b86a1ea1ac0f96817eab749c351f184d975d27c6
@@ -35,6 +35,11 @@ module Glib::Analytics
35
35
  segment = request.headers['GApp-Analytics-Referer-Segment']
36
36
  placement = request.headers['GApp-Analytics-Referer-Placement']
37
37
 
38
+ if (route = Rails.application.routes.recognize_path(request.headers['referer'])) && group.nil? && action.nil?
39
+ group = route[:controller]
40
+ action = route[:action]
41
+ end
42
+
38
43
  if group && action
39
44
  return { group: group, action: action, segment: segment, placement: placement }
40
45
  end
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.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''