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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 00a8cfabe2cfddb7349c055c13db2b56080409058ba48813310c6218a6b34fba
4
- data.tar.gz: 59190df662382f672ad17c753d1eee6c0f8afacb68f7e082ed8766f188487d66
3
+ metadata.gz: b961a98fb477c8b4eeb74ee2ad5fc3ede159438538361c6d6b4dc4acee17aabf
4
+ data.tar.gz: 77616ad77bce39a9223b75a289b5f4ea5c23412cdf82a76a697fdf9dad77b4f9
5
5
  SHA512:
6
- metadata.gz: c9137421c5e8f4c91be7dae62ccc9f12a831da6ae6fb390cfca766274045135c130f3cd9b0b5178d041be1348c527f39cc1aa0c986c798634e68300ee1c5a0a7
7
- data.tar.gz: fa139b3a9df804feb52fa3823a67fb88781cefeda509d5719caf3f98c793e1aaaaecec553e8d1b1f08c03da8c4886b8e42400158e04aef12c34d404045b7b799
6
+ metadata.gz: 783acd6518405cc4f28eb9480b4556b90a188690f12d1bdb388d38316a5381dd2df55d8e65d6faa87f39ce84563ba0ddba7ef17620e82c63cda171a3abe06573
7
+ data.tar.gz: 676726af0dcb1e88e5970741d374420c8f219069e86032cdd6a581f12ca09bb574b2930fff196f958741bdb2aaec73998e6f3fffe4e64970ec097bf24db8514c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.5.0 (2023-07-02)
2
+
3
+ - Made Active Record and Active Job optional
4
+ - Removed support for Rails < 6.1 and Ruby < 3
5
+
1
6
  ## 0.4.3 (2022-06-12)
2
7
 
3
8
  - Updated install generator for Lockbox 1.0
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2017-2021 Andrew Kane
1
+ Copyright (c) 2017-2023 Andrew Kane
2
2
 
3
3
  MIT License
4
4
 
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. Add this line to your application’s Gemfile:
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
- For city-level geocoding, download the [GeoLite2 City database](https://dev.maxmind.com/geoip/geoip2/geolite2/) and create `config/initializers/geocoder.rb` with:
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
@@ -1,3 +1,3 @@
1
1
  module AuthTrail
2
- VERSION = "0.4.3"
2
+ VERSION = "0.5.0"
3
3
  end
data/lib/authtrail.rb CHANGED
@@ -2,11 +2,12 @@
2
2
  require "warden"
3
3
 
4
4
  # modules
5
- require "auth_trail/engine"
6
- require "auth_trail/manager"
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.3
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: 2022-06-12 00:00:00.000000000 Z
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: '5.2'
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: '5.2'
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
- - app/jobs/auth_trail/geocode_job.rb
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: '2.6'
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.3.7
79
+ rubygems_version: 3.4.10
95
80
  signing_key:
96
81
  specification_version: 4
97
82
  summary: Track Devise login activity
@@ -1,7 +0,0 @@
1
- require "active_support"
2
- require "rails/engine"
3
-
4
- module AuthTrail
5
- class Engine < Rails::Engine
6
- end
7
- end
File without changes