authtrail 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -0
- data/app/jobs/auth_trail/geocode_job.rb +1 -2
- data/lib/auth_trail/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: 22c5cb73374854a16a8581aad0618cf66033a7346784b16213ed58bb74d56b6b
|
4
|
+
data.tar.gz: 6666d786ba53acf7169c39e02eefcfdc7ae4211f26482bb47f142ca31d22885c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c429f790573ad4814b6c92eeff96cfc03b9b283046c5e1c23c425346674071792607c2f1c2f762ab588acaeb70badab8dafccaea38cc92c0c6944f63b7079fa
|
7
|
+
data.tar.gz: 9bfd5a70268d39c89f9792b3f3b6435935b55c11f201d690991053067e456b214463f912adce3dc879cb39f515322139a9cb690d7ca89ee98debb1640150d32d
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -173,6 +173,7 @@ Some load balancers can add geocoding information to request headers.
|
|
173
173
|
|
174
174
|
```ruby
|
175
175
|
AuthTrail.geocode = false
|
176
|
+
|
176
177
|
AuthTrail.transform_method = lambda do |data, request|
|
177
178
|
data[:country] = request.headers["<country-header>"]
|
178
179
|
data[:region] = request.headers["<region-header>"]
|
@@ -9,8 +9,7 @@ module AuthTrail
|
|
9
9
|
begin
|
10
10
|
Geocoder.search(login_activity.ip).first
|
11
11
|
rescue NameError
|
12
|
-
|
13
|
-
raise
|
12
|
+
raise "Add the geocoder gem to your Gemfile to use geocoding"
|
14
13
|
rescue => e
|
15
14
|
Rails.logger.info "Geocode failed: #{e.message}"
|
16
15
|
nil
|
data/lib/auth_trail/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: authtrail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|