footprinted 0.3.0 → 0.3.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/footprinted/footprint.rb +1 -1
- data/lib/footprinted/model.rb +3 -0
- data/lib/footprinted/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5ed2abd4b0b221c1f6065103219335fa212ab7c52454b7dc9b68876db5a12fa7
|
|
4
|
+
data.tar.gz: 4dfc9a7ad9ef92f014ff5c5a4686888ce83c48e94ffde52ec674ee9280c77e00
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6d7d479310b1d3f56f0154c4192406d4eeb9596210f73d05c7e6b3cb962cedb0735496df828219558ecb7c7c9a5c3fd3f74bc4ae12c6add57fea282cea835412
|
|
7
|
+
data.tar.gz: 59844be85b6282a690fb631a1710f6ca613d9c6d57cdbe5fe5b0230e73d75b4af8433254debfca71bd0f752d82f4d19612ed3660155387752f24518f296cf184
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.3.1] - 2026-02-24
|
|
4
|
+
|
|
5
|
+
- Handle geo-lookup failures gracefully — footprints are still created without geo data if `Trackdown.locate` fails (e.g., private IPs, network errors)
|
|
6
|
+
|
|
3
7
|
## [0.3.0] - 2026-02-15
|
|
4
8
|
|
|
5
9
|
- **Async mode now extracts geo data at enqueue time** when `request:` is passed
|
|
@@ -49,7 +49,7 @@ module Footprinted
|
|
|
49
49
|
self.latitude = location.latitude
|
|
50
50
|
self.longitude = location.longitude
|
|
51
51
|
rescue => e
|
|
52
|
-
Rails.logger.error "[Footprinted] Geolocation failed for #{ip}: #{e.message}"
|
|
52
|
+
Rails.logger.error "[Footprinted] Geolocation failed for #{ip} (#{e.class}): #{e.message}"
|
|
53
53
|
end
|
|
54
54
|
end
|
|
55
55
|
end
|
data/lib/footprinted/model.rb
CHANGED
|
@@ -86,6 +86,9 @@ module Footprinted
|
|
|
86
86
|
if location.country_code.present?
|
|
87
87
|
Rails.logger.debug { "[Footprinted] Extracted geo at enqueue: #{location.country_code}/#{location.city} for #{ip}" }
|
|
88
88
|
end
|
|
89
|
+
rescue => e
|
|
90
|
+
# Geo-lookup failed (e.g., private IP, network error), but we still want to create the footprint
|
|
91
|
+
Rails.logger.debug { "[Footprinted] Geo enrichment skipped (#{e.class}): #{e.message}" }
|
|
89
92
|
end
|
|
90
93
|
end
|
|
91
94
|
end
|
data/lib/footprinted/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: footprinted
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- rameerez
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-02-
|
|
10
|
+
date: 2026-02-24 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: rails
|