ahoy_matey 5.0.0 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 621c76868e3082cd139423009777a21f805b65815f099f1a9d69d08a81a2a69e
4
- data.tar.gz: 6575071548c3d0b326a8ca10fb3b9b26a8e61fdc02db0235353beca1d3db3b59
3
+ metadata.gz: 849e414e4b8b04c7bf3f9b24bc6266b4aaa456862a8fe7dd4a1ff153ae86187c
4
+ data.tar.gz: 685e01e6b50b7a9243da4d4184b41d39ee328cc85b27e5af8e4edc5285e665a2
5
5
  SHA512:
6
- metadata.gz: f24ebcfd4d199cfebde1de163bcbca36f5c47115710d63260cc168bce075e629881cd61ed07babacba36fb6502fdebfcad20ada9c318e2c31d26a2b1ba9efdbc
7
- data.tar.gz: ffa84f157d902da8f02f16d3c80bb558d7951ae51194325dee6aca5e622a651a3b681a17612788eb49399ffdc5739dbef4d41d661737c28eda164ab5c0a3462a
6
+ metadata.gz: a5d139e886eb0fd9ae8c29acb0b0d3bec7e7b079825d38eeebb4df14427ed4102a98c08caa3dd7d5886db8edbae8e95307fb58da281615c3c54f98a841d49864
7
+ data.tar.gz: f22e58183541c3075df962c2f13120b8748bf17bc212fa44719e2ce78d2bed7913ad9325f18ee3e3b39accbd480500c8d9b43d5f8e4e0d4bf95633b783696989
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 5.0.1 (2023-10-01)
2
+
3
+ - Fixed error with geocoding with anonymity sets
4
+
1
5
  ## 5.0.0 (2023-10-01)
2
6
 
3
7
  - Changed visits to expire with anonymity sets
@@ -53,7 +53,7 @@ module Ahoy
53
53
 
54
54
  def visit
55
55
  unless defined?(@visit)
56
- if ahoy.send(:existing_visit_token)
56
+ if ahoy.send(:existing_visit_token) || ahoy.instance_variable_get(:@visit_token)
57
57
  # find_by raises error by default with Mongoid when not found
58
58
  @visit = visit_model.where(visit_token: ahoy.visit_token).take if ahoy.visit_token
59
59
  elsif !Ahoy.cookies? && ahoy.visitor_token
data/lib/ahoy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ahoy
2
- VERSION = "5.0.0"
2
+ VERSION = "5.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ahoy_matey
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane