api-auth 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/.travis.yml +2 -4
- data/CHANGELOG.md +3 -0
- data/VERSION +1 -1
- data/api_auth.gemspec +1 -1
- data/lib/api_auth/railtie.rb +9 -5
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60f6b22c31a0167767c8aa90d9e831bde874fd6831798d1c1a5104849005a4f4
|
4
|
+
data.tar.gz: 9be6acbac2c38e6fc0d0af33d6ba9fd6f9bc4ca0dc5dc6050fee1a8e139d94b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30f33a8543297ceb7e99bb028cca8377e5af639957d9edc06e36f1968d252a0012357030e726d9ff7024ebc99da30e9a1bb324eba686ffb6c784931ac2063620
|
7
|
+
data.tar.gz: 00b796d683a878643d152f8bad511f38d92fcf6182e941eff490609b5f122b301b08c8820af7229b9a5b744414ded4069054523244bba571a1bc408da6b4ba06
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
@@ -2,10 +2,10 @@ language: ruby
|
|
2
2
|
sudo: false
|
3
3
|
cache: bundler
|
4
4
|
rvm:
|
5
|
-
- 2.3.6
|
6
5
|
- 2.4.3
|
7
6
|
- 2.5.3
|
8
7
|
- 2.6.1
|
8
|
+
- 2.7.1
|
9
9
|
gemfile:
|
10
10
|
- gemfiles/rails_5.gemfile
|
11
11
|
- gemfiles/rails_51.gemfile
|
@@ -25,12 +25,10 @@ script:
|
|
25
25
|
|
26
26
|
matrix:
|
27
27
|
include:
|
28
|
-
- rvm: 2.
|
28
|
+
- rvm: 2.7.1
|
29
29
|
gemfile: gemfiles/rails_60.gemfile
|
30
30
|
env: TEST_SUITE="rubocop lib/ spec/"
|
31
31
|
exclude:
|
32
|
-
- rvm: 2.3.6
|
33
|
-
gemfile: gemfiles/rails_60.gemfile
|
34
32
|
- rvm: 2.4.3
|
35
33
|
gemfile: gemfiles/rails_60.gemfile
|
36
34
|
env: TEST_SUITE=rake
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.4.
|
1
|
+
2.4.1
|
data/api_auth.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.authors = ['Mauricio Gomes']
|
10
10
|
s.email = 'mauricio@edge14.com'
|
11
11
|
|
12
|
-
s.required_ruby_version = '>= 2.
|
12
|
+
s.required_ruby_version = '>= 2.4.0'
|
13
13
|
|
14
14
|
s.add_development_dependency 'actionpack', '< 6.1', '> 4.0'
|
15
15
|
s.add_development_dependency 'activeresource', '>= 4.0'
|
data/lib/api_auth/railtie.rb
CHANGED
@@ -13,8 +13,10 @@ module ApiAuth
|
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
16
|
-
ActiveSupport
|
17
|
-
|
16
|
+
if defined?(ActiveSupport)
|
17
|
+
ActiveSupport.on_load(:action_controller) do
|
18
|
+
ActionController::Base.include(ControllerMethods::InstanceMethods)
|
19
|
+
end
|
18
20
|
end
|
19
21
|
end # ControllerMethods
|
20
22
|
|
@@ -80,9 +82,11 @@ module ApiAuth
|
|
80
82
|
end
|
81
83
|
end # Connection
|
82
84
|
|
83
|
-
ActiveSupport
|
84
|
-
|
85
|
-
|
85
|
+
if defined?(ActiveSupport)
|
86
|
+
ActiveSupport.on_load(:active_resource) do
|
87
|
+
ActiveResource::Base.include(ActiveResourceApiAuth)
|
88
|
+
ActiveResource::Connection.include(Connection)
|
89
|
+
end
|
86
90
|
end
|
87
91
|
end # ActiveResourceExtension
|
88
92
|
end # Rails
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: api-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.4.
|
4
|
+
version: 2.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mauricio Gomes
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -296,7 +296,7 @@ files:
|
|
296
296
|
homepage: https://github.com/mgomes/api_auth
|
297
297
|
licenses: []
|
298
298
|
metadata: {}
|
299
|
-
post_install_message:
|
299
|
+
post_install_message:
|
300
300
|
rdoc_options: []
|
301
301
|
require_paths:
|
302
302
|
- lib
|
@@ -304,7 +304,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
304
304
|
requirements:
|
305
305
|
- - ">="
|
306
306
|
- !ruby/object:Gem::Version
|
307
|
-
version: 2.
|
307
|
+
version: 2.4.0
|
308
308
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
309
309
|
requirements:
|
310
310
|
- - ">="
|
@@ -312,7 +312,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
312
312
|
version: '0'
|
313
313
|
requirements: []
|
314
314
|
rubygems_version: 3.1.2
|
315
|
-
signing_key:
|
315
|
+
signing_key:
|
316
316
|
specification_version: 4
|
317
317
|
summary: Simple HMAC authentication for your APIs
|
318
318
|
test_files:
|