touchpoints 0.1.0 → 0.1.1

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: 90c969ef338bf37fb2169bcea9077339a1ff1302567562c59c63ddf2f6622621
4
- data.tar.gz: c80e1052ce904c814aa6a52e3afd3ff8c7b057eeba8fbe42d0971c368d0a50a5
3
+ metadata.gz: 5cc931aa689fab740eae518e353e985b6a01d54d361230c3a37f4b3eaad17e50
4
+ data.tar.gz: c0a7024f9831a790392467364846427af301a31c8120107126e4025fc208a4ef
5
5
  SHA512:
6
- metadata.gz: e2b35d93675d8dfa395e747a5614c1148f3164d720ba94b76ac4c0e0a059e353afeb3169f3bed29c593ac0911c3682a95aff69c1908889e0e285ef9dce37b4f3
7
- data.tar.gz: 28f295e6a06ff37c6ab5c6cfafd4b42555101ba36749705601ca358d08eadc345cb09c67b4492a9e5de29f4eb16e42582277387c91e8e3fcf453bcd419af48f9
6
+ metadata.gz: e24bc1d0d6dd4cefb44a94f3839647132ae121985222f7499b506cb92f3b6a05c9e43464f00779de155bbccfb38f58a0e516c27381b06ea5c429380b4eed2831
7
+ data.tar.gz: 9c5811c442ea2a406afe825557866e921d8b0bedd2d443411aad59cb868eaf3e75df04aa63eafdfde30bd754e8a41c7a89a8908a2da5fb84fc019da133daa6c8
data/.gitignore CHANGED
@@ -11,3 +11,5 @@ Gemfile.lock
11
11
 
12
12
  # rspec failure tracking
13
13
  .rspec_status
14
+
15
+ *.gem
@@ -3,7 +3,7 @@ module Touchpoints
3
3
  extend ActiveSupport::Concern
4
4
 
5
5
  included do
6
- before_action :_track_touchpoints
6
+ after_action :_track_touchpoints
7
7
  end
8
8
 
9
9
  def _track_touchpoints
@@ -31,7 +31,7 @@ module Touchpoints
31
31
  end
32
32
 
33
33
  def add_if_different(touchpoints)
34
- return touchpoints if request.domain == domain_from(request.referer.to_s)
34
+ return touchpoints if domain_from(request.original_url) == domain_from(request.referer.to_s)
35
35
 
36
36
  last_touchpoint = Hash(touchpoints.last)
37
37
  utm_params = params.permit(*get(:utm_params)).to_h
@@ -1,3 +1,3 @@
1
1
  module Touchpoints
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: touchpoints
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Cruz Horts