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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc8ae231bde9d10834ea6a7fa2fb0cd50a12e351ba2296abb15b743975fad197
4
- data.tar.gz: c52435deca659cd45a8ed647daccaf8b19e9d7d92374db06be69c63cbcc6b1e3
3
+ metadata.gz: 22c5cb73374854a16a8581aad0618cf66033a7346784b16213ed58bb74d56b6b
4
+ data.tar.gz: 6666d786ba53acf7169c39e02eefcfdc7ae4211f26482bb47f142ca31d22885c
5
5
  SHA512:
6
- metadata.gz: 8531404800e70b37e0f6bca1fd79f690bfe36434efe768c926fa7248f1f50d803de16aa3324ecaa656c142940e69de35f80d2c5f4699f5408fbd92f41e5c24b0
7
- data.tar.gz: bd4daf16b7ad615477cdbf0592f45d789fa7b6b0ba759c417f6e4e89888e2b4014dae6a2b48333a9863b6b1b0670082f9b9808da327dc790f2e0f173d6d63714
6
+ metadata.gz: 6c429f790573ad4814b6c92eeff96cfc03b9b283046c5e1c23c425346674071792607c2f1c2f762ab588acaeb70badab8dafccaea38cc92c0c6944f63b7079fa
7
+ data.tar.gz: 9bfd5a70268d39c89f9792b3f3b6435935b55c11f201d690991053067e456b214463f912adce3dc879cb39f515322139a9cb690d7ca89ee98debb1640150d32d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.1 (2021-08-14)
2
+
3
+ - Improved error message when `geocoder` gem not installed
4
+
1
5
  ## 0.4.0 (2021-08-13)
2
6
 
3
7
  - Disabled geocoding by default
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
- # geocoder gem not installed
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
@@ -1,3 +1,3 @@
1
1
  module AuthTrail
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
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.0
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-13 00:00:00.000000000 Z
11
+ date: 2021-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties