api-auth 2.4.0 → 2.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/main.yml +67 -0
  3. data/.gitignore +2 -0
  4. data/.rubocop.yml +16 -3
  5. data/.rubocop_todo.yml +29 -19
  6. data/Appraisals +12 -18
  7. data/CHANGELOG.md +11 -0
  8. data/Gemfile +0 -2
  9. data/README.md +29 -27
  10. data/VERSION +1 -1
  11. data/api_auth.gemspec +11 -4
  12. data/gemfiles/rails_52.gemfile +5 -5
  13. data/gemfiles/rails_60.gemfile +5 -7
  14. data/gemfiles/rails_61.gemfile +9 -0
  15. data/lib/api_auth/base.rb +2 -2
  16. data/lib/api_auth/headers.rb +6 -6
  17. data/lib/api_auth/helpers.rb +2 -2
  18. data/lib/api_auth/railtie.rb +12 -6
  19. data/lib/api_auth/request_drivers/action_controller.rb +8 -8
  20. data/lib/api_auth/request_drivers/curb.rb +4 -4
  21. data/lib/api_auth/request_drivers/faraday.rb +11 -11
  22. data/lib/api_auth/request_drivers/grape_request.rb +8 -8
  23. data/lib/api_auth/request_drivers/http.rb +8 -8
  24. data/lib/api_auth/request_drivers/httpi.rb +8 -8
  25. data/lib/api_auth/request_drivers/net_http.rb +8 -8
  26. data/lib/api_auth/request_drivers/rack.rb +8 -8
  27. data/lib/api_auth/request_drivers/rest_client.rb +8 -8
  28. data/spec/api_auth_spec.rb +8 -8
  29. data/spec/headers_spec.rb +26 -26
  30. data/spec/helpers_spec.rb +1 -1
  31. data/spec/railtie_spec.rb +3 -3
  32. data/spec/request_drivers/action_controller_spec.rb +74 -35
  33. data/spec/request_drivers/action_dispatch_spec.rb +74 -35
  34. data/spec/request_drivers/curb_spec.rb +8 -8
  35. data/spec/request_drivers/faraday_spec.rb +43 -43
  36. data/spec/request_drivers/grape_request_spec.rb +33 -32
  37. data/spec/request_drivers/http_spec.rb +23 -23
  38. data/spec/request_drivers/httpi_spec.rb +22 -22
  39. data/spec/request_drivers/net_http_spec.rb +23 -23
  40. data/spec/request_drivers/rack_spec.rb +35 -35
  41. data/spec/request_drivers/rest_client_spec.rb +36 -36
  42. metadata +51 -26
  43. data/.travis.yml +0 -39
  44. data/gemfiles/http2.gemfile +0 -7
  45. data/gemfiles/http3.gemfile +0 -7
  46. data/gemfiles/http4.gemfile +0 -7
  47. data/gemfiles/rails_5.gemfile +0 -9
  48. data/gemfiles/rails_51.gemfile +0 -9
  49. data/spec/.rubocop.yml +0 -5
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.0
4
+ version: 2.5.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-05-05 00:00:00.000000000 Z
11
+ date: 2021-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - "<"
18
18
  - !ruby/object:Gem::Version
19
- version: '6.1'
19
+ version: '6.2'
20
20
  - - ">"
21
21
  - !ruby/object:Gem::Version
22
- version: '4.0'
22
+ version: '5.0'
23
23
  type: :development
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "<"
28
28
  - !ruby/object:Gem::Version
29
- version: '6.1'
29
+ version: '6.2'
30
30
  - - ">"
31
31
  - !ruby/object:Gem::Version
32
- version: '4.0'
32
+ version: '5.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: activeresource
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -50,20 +50,20 @@ dependencies:
50
50
  requirements:
51
51
  - - "<"
52
52
  - !ruby/object:Gem::Version
53
- version: '6.1'
53
+ version: '6.2'
54
54
  - - ">"
55
55
  - !ruby/object:Gem::Version
56
- version: '4.0'
56
+ version: '5.0'
57
57
  type: :development
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - "<"
62
62
  - !ruby/object:Gem::Version
63
- version: '6.1'
63
+ version: '6.2'
64
64
  - - ">"
65
65
  - !ruby/object:Gem::Version
66
- version: '4.0'
66
+ version: '5.0'
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: amatch
69
69
  requirement: !ruby/object:Gem::Requirement
@@ -112,14 +112,14 @@ dependencies:
112
112
  requirements:
113
113
  - - ">="
114
114
  - !ruby/object:Gem::Version
115
- version: '0.10'
115
+ version: 1.1.0
116
116
  type: :development
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - ">="
121
121
  - !ruby/object:Gem::Version
122
- version: '0.10'
122
+ version: 1.1.0
123
123
  - !ruby/object:Gem::Dependency
124
124
  name: http
125
125
  requirement: !ruby/object:Gem::Requirement
@@ -232,6 +232,34 @@ dependencies:
232
232
  - - "~>"
233
233
  - !ruby/object:Gem::Version
234
234
  version: '3.4'
235
+ - !ruby/object:Gem::Dependency
236
+ name: rexml
237
+ requirement: !ruby/object:Gem::Requirement
238
+ requirements:
239
+ - - ">="
240
+ - !ruby/object:Gem::Version
241
+ version: '0'
242
+ type: :development
243
+ prerelease: false
244
+ version_requirements: !ruby/object:Gem::Requirement
245
+ requirements:
246
+ - - ">="
247
+ - !ruby/object:Gem::Version
248
+ version: '0'
249
+ - !ruby/object:Gem::Dependency
250
+ name: rubocop
251
+ requirement: !ruby/object:Gem::Requirement
252
+ requirements:
253
+ - - ">="
254
+ - !ruby/object:Gem::Version
255
+ version: '0'
256
+ type: :development
257
+ prerelease: false
258
+ version_requirements: !ruby/object:Gem::Requirement
259
+ requirements:
260
+ - - ">="
261
+ - !ruby/object:Gem::Version
262
+ version: '0'
235
263
  description: Full HMAC auth implementation for use in your gems and Rails apps.
236
264
  email: mauricio@edge14.com
237
265
  executables: []
@@ -239,11 +267,11 @@ extensions: []
239
267
  extra_rdoc_files: []
240
268
  files:
241
269
  - ".document"
270
+ - ".github/workflows/main.yml"
242
271
  - ".gitignore"
243
272
  - ".rspec"
244
273
  - ".rubocop.yml"
245
274
  - ".rubocop_todo.yml"
246
- - ".travis.yml"
247
275
  - Appraisals
248
276
  - CHANGELOG.md
249
277
  - Gemfile
@@ -252,13 +280,9 @@ files:
252
280
  - Rakefile
253
281
  - VERSION
254
282
  - api_auth.gemspec
255
- - gemfiles/http2.gemfile
256
- - gemfiles/http3.gemfile
257
- - gemfiles/http4.gemfile
258
- - gemfiles/rails_5.gemfile
259
- - gemfiles/rails_51.gemfile
260
283
  - gemfiles/rails_52.gemfile
261
284
  - gemfiles/rails_60.gemfile
285
+ - gemfiles/rails_61.gemfile
262
286
  - lib/api-auth.rb
263
287
  - lib/api_auth.rb
264
288
  - lib/api_auth/base.rb
@@ -276,7 +300,6 @@ files:
276
300
  - lib/api_auth/request_drivers/net_http.rb
277
301
  - lib/api_auth/request_drivers/rack.rb
278
302
  - lib/api_auth/request_drivers/rest_client.rb
279
- - spec/.rubocop.yml
280
303
  - spec/api_auth_spec.rb
281
304
  - spec/fixtures/upload.png
282
305
  - spec/headers_spec.rb
@@ -294,9 +317,11 @@ files:
294
317
  - spec/request_drivers/rest_client_spec.rb
295
318
  - spec/spec_helper.rb
296
319
  homepage: https://github.com/mgomes/api_auth
297
- licenses: []
298
- metadata: {}
299
- post_install_message:
320
+ licenses:
321
+ - MIT
322
+ metadata:
323
+ rubygems_mfa_required: 'true'
324
+ post_install_message:
300
325
  rdoc_options: []
301
326
  require_paths:
302
327
  - lib
@@ -304,15 +329,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
304
329
  requirements:
305
330
  - - ">="
306
331
  - !ruby/object:Gem::Version
307
- version: 2.3.0
332
+ version: 2.5.0
308
333
  required_rubygems_version: !ruby/object:Gem::Requirement
309
334
  requirements:
310
335
  - - ">="
311
336
  - !ruby/object:Gem::Version
312
337
  version: '0'
313
338
  requirements: []
314
- rubygems_version: 3.1.2
315
- signing_key:
339
+ rubygems_version: 3.1.6
340
+ signing_key:
316
341
  specification_version: 4
317
342
  summary: Simple HMAC authentication for your APIs
318
343
  test_files:
data/.travis.yml DELETED
@@ -1,39 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- cache: bundler
4
- rvm:
5
- - 2.3.6
6
- - 2.4.3
7
- - 2.5.3
8
- - 2.6.1
9
- gemfile:
10
- - gemfiles/rails_5.gemfile
11
- - gemfiles/rails_51.gemfile
12
- - gemfiles/rails_52.gemfile
13
- - gemfiles/rails_60.gemfile
14
- - gemfiles/http2.gemfile
15
- - gemfiles/http3.gemfile
16
- - gemfiles/http4.gemfile
17
- env:
18
- - TEST_SUITE=rake
19
-
20
- before_install:
21
- - gem update bundler
22
-
23
- script:
24
- - bundle exec $TEST_SUITE
25
-
26
- matrix:
27
- include:
28
- - rvm: 2.6.1
29
- gemfile: gemfiles/rails_60.gemfile
30
- env: TEST_SUITE="rubocop lib/ spec/"
31
- exclude:
32
- - rvm: 2.3.6
33
- gemfile: gemfiles/rails_60.gemfile
34
- - rvm: 2.4.3
35
- gemfile: gemfiles/rails_60.gemfile
36
- env: TEST_SUITE=rake
37
-
38
- notifications:
39
- email: false
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source 'https://rubygems.org'
4
-
5
- gem 'http', '~> 2.0'
6
-
7
- gemspec path: '../'
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source 'https://rubygems.org'
4
-
5
- gem 'http', '~> 3.0'
6
-
7
- gemspec path: '../'
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source 'https://rubygems.org'
4
-
5
- gem 'http', '~> 4.0'
6
-
7
- gemspec path: '../'
@@ -1,9 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source 'https://rubygems.org'
4
-
5
- gem 'actionpack', '~> 5.0.2'
6
- gem 'activeresource', '~> 5.0.0'
7
- gem 'activesupport', '~> 5.0.2'
8
-
9
- gemspec path: '../'
@@ -1,9 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source 'https://rubygems.org'
4
-
5
- gem 'actionpack', '~> 5.1.1'
6
- gem 'activeresource', '~> 5.1.0'
7
- gem 'activesupport', '~> 5.1.1'
8
-
9
- gemspec path: '../'
data/spec/.rubocop.yml DELETED
@@ -1,5 +0,0 @@
1
- inherit_from:
2
- - ../.rubocop.yml
3
-
4
- Metrics/BlockLength:
5
- Enabled: false