authtrail 0.4.3 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/LICENSE.txt +1 -1
- data/README.md +12 -4
- data/lib/auth_trail/version.rb +1 -1
- data/lib/authtrail.rb +4 -3
- metadata +7 -22
- data/lib/auth_trail/engine.rb +0 -7
- /data/{app/jobs → lib}/auth_trail/geocode_job.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b961a98fb477c8b4eeb74ee2ad5fc3ede159438538361c6d6b4dc4acee17aabf
|
4
|
+
data.tar.gz: 77616ad77bce39a9223b75a289b5f4ea5c23412cdf82a76a697fdf9dad77b4f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 783acd6518405cc4f28eb9480b4556b90a188690f12d1bdb388d38316a5381dd2df55d8e65d6faa87f39ce84563ba0ddba7ef17620e82c63cda171a3abe06573
|
7
|
+
data.tar.gz: 676726af0dcb1e88e5970741d374420c8f219069e86032cdd6a581f12ca09bb574b2930fff196f958741bdb2aaec73998e6f3fffe4e64970ec097bf24db8514c
|
data/CHANGELOG.md
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -2,8 +2,6 @@
|
|
2
2
|
|
3
3
|
Track Devise login activity
|
4
4
|
|
5
|
-
**AuthTrail 0.4.0 was recently released** - see [how to upgrade](#upgrading)
|
6
|
-
|
7
5
|
:tangerine: Battle-tested at [Instacart](https://www.instacart.com/opensource)
|
8
6
|
|
9
7
|
[![Build Status](https://github.com/ankane/authtrail/workflows/build/badge.svg?branch=master)](https://github.com/ankane/authtrail/actions)
|
@@ -135,13 +133,17 @@ AuthTrail.job_queue = :low_priority
|
|
135
133
|
|
136
134
|
### Local Geocoding
|
137
135
|
|
138
|
-
For privacy and performance, we recommend geocoding locally.
|
136
|
+
For privacy and performance, we recommend geocoding locally.
|
137
|
+
|
138
|
+
For city-level geocoding, download the [GeoLite2 City database](https://dev.maxmind.com/geoip/geoip2/geolite2/).
|
139
|
+
|
140
|
+
Add this line to your application’s Gemfile:
|
139
141
|
|
140
142
|
```ruby
|
141
143
|
gem "maxminddb"
|
142
144
|
```
|
143
145
|
|
144
|
-
|
146
|
+
And create `config/initializers/geocoder.rb` with:
|
145
147
|
|
146
148
|
```ruby
|
147
149
|
Geocoder.configure(
|
@@ -158,6 +160,12 @@ For country-level geocoding, install the `geoip-database` package. It’s preins
|
|
158
160
|
sudo apt-get install geoip-database
|
159
161
|
```
|
160
162
|
|
163
|
+
Add this line to your application’s Gemfile:
|
164
|
+
|
165
|
+
```ruby
|
166
|
+
gem "geoip"
|
167
|
+
```
|
168
|
+
|
161
169
|
And create `config/initializers/geocoder.rb` with:
|
162
170
|
|
163
171
|
```ruby
|
data/lib/auth_trail/version.rb
CHANGED
data/lib/authtrail.rb
CHANGED
@@ -2,11 +2,12 @@
|
|
2
2
|
require "warden"
|
3
3
|
|
4
4
|
# modules
|
5
|
-
|
6
|
-
|
7
|
-
require "auth_trail/version"
|
5
|
+
require_relative "auth_trail/manager"
|
6
|
+
require_relative "auth_trail/version"
|
8
7
|
|
9
8
|
module AuthTrail
|
9
|
+
autoload :GeocodeJob, "auth_trail/geocode_job"
|
10
|
+
|
10
11
|
class << self
|
11
12
|
attr_accessor :exclude_method, :geocode, :track_method, :identity_method, :job_queue, :transform_method
|
12
13
|
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
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -16,28 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '6.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: activerecord
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '5.2'
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '5.2'
|
26
|
+
version: '6.1'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: warden
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -61,8 +47,7 @@ files:
|
|
61
47
|
- CHANGELOG.md
|
62
48
|
- LICENSE.txt
|
63
49
|
- README.md
|
64
|
-
-
|
65
|
-
- lib/auth_trail/engine.rb
|
50
|
+
- lib/auth_trail/geocode_job.rb
|
66
51
|
- lib/auth_trail/manager.rb
|
67
52
|
- lib/auth_trail/version.rb
|
68
53
|
- lib/authtrail.rb
|
@@ -84,14 +69,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
84
69
|
requirements:
|
85
70
|
- - ">="
|
86
71
|
- !ruby/object:Gem::Version
|
87
|
-
version: '
|
72
|
+
version: '3'
|
88
73
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
74
|
requirements:
|
90
75
|
- - ">="
|
91
76
|
- !ruby/object:Gem::Version
|
92
77
|
version: '0'
|
93
78
|
requirements: []
|
94
|
-
rubygems_version: 3.
|
79
|
+
rubygems_version: 3.4.10
|
95
80
|
signing_key:
|
96
81
|
specification_version: 4
|
97
82
|
summary: Track Devise login activity
|
data/lib/auth_trail/engine.rb
DELETED
File without changes
|