api-auth 2.2.1 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +12 -2
- data/.rubocop_todo.yml +51 -9
- data/.travis.yml +9 -25
- data/CHANGELOG.md +36 -0
- data/Gemfile +1 -1
- data/README.md +91 -50
- data/VERSION +1 -1
- data/api_auth.gemspec +7 -5
- data/gemfiles/http4.gemfile +3 -3
- data/gemfiles/rails_52.gemfile +9 -0
- data/gemfiles/rails_60.gemfile +9 -0
- data/gemfiles/rails_61.gemfile +11 -0
- data/lib/api_auth.rb +1 -0
- data/lib/api_auth/base.rb +4 -4
- data/lib/api_auth/headers.rb +22 -11
- data/lib/api_auth/helpers.rb +2 -2
- data/lib/api_auth/railtie.rb +13 -5
- data/lib/api_auth/request_drivers/action_controller.rb +9 -8
- data/lib/api_auth/request_drivers/curb.rb +4 -4
- data/lib/api_auth/request_drivers/faraday.rb +13 -12
- data/lib/api_auth/request_drivers/grape_request.rb +87 -0
- data/lib/api_auth/request_drivers/http.rb +13 -8
- data/lib/api_auth/request_drivers/httpi.rb +9 -8
- data/lib/api_auth/request_drivers/net_http.rb +9 -8
- data/lib/api_auth/request_drivers/rack.rb +9 -8
- data/lib/api_auth/request_drivers/rest_client.rb +9 -8
- data/spec/api_auth_spec.rb +15 -8
- data/spec/headers_spec.rb +51 -25
- data/spec/helpers_spec.rb +1 -1
- data/spec/railtie_spec.rb +3 -3
- data/spec/request_drivers/action_controller_spec.rb +45 -39
- data/spec/request_drivers/action_dispatch_spec.rb +51 -45
- data/spec/request_drivers/curb_spec.rb +16 -10
- data/spec/request_drivers/faraday_spec.rb +49 -43
- data/spec/request_drivers/grape_request_spec.rb +280 -0
- data/spec/request_drivers/http_spec.rb +29 -23
- data/spec/request_drivers/httpi_spec.rb +28 -22
- data/spec/request_drivers/net_http_spec.rb +29 -23
- data/spec/request_drivers/rack_spec.rb +41 -35
- data/spec/request_drivers/rest_client_spec.rb +42 -36
- data/spec/spec_helper.rb +2 -1
- metadata +51 -26
- data/gemfiles/http2.gemfile +0 -7
- data/gemfiles/http3.gemfile +0 -7
- data/gemfiles/rails_4.gemfile +0 -11
- data/gemfiles/rails_41.gemfile +0 -11
- data/gemfiles/rails_42.gemfile +0 -11
- data/gemfiles/rails_5.gemfile +0 -11
- data/gemfiles/rails_51.gemfile +0 -9
- data/spec/.rubocop.yml +0 -5
data/gemfiles/rails_4.gemfile
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "rake", "< 11.0", :platforms => :ruby_18
|
6
|
-
gem "tins", "< 1.7", :platforms => :ruby_19
|
7
|
-
gem "actionpack", "~> 4.0.4"
|
8
|
-
gem "activeresource", "~> 4.0.0"
|
9
|
-
gem "activesupport", "~> 4.0.4"
|
10
|
-
|
11
|
-
gemspec :path => "../"
|
data/gemfiles/rails_41.gemfile
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "rake", "< 11.0", :platforms => :ruby_18
|
6
|
-
gem "tins", "< 1.7", :platforms => :ruby_19
|
7
|
-
gem "actionpack", "~> 4.1.0"
|
8
|
-
gem "activeresource", "~> 4.0.0"
|
9
|
-
gem "activesupport", "~> 4.1.0"
|
10
|
-
|
11
|
-
gemspec :path => "../"
|
data/gemfiles/rails_42.gemfile
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
# This file was generated by Appraisal
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
gem "rake", "< 11.0", :platforms => :ruby_18
|
6
|
-
gem "tins", "< 1.7", :platforms => :ruby_19
|
7
|
-
gem "actionpack", "~> 4.2.0"
|
8
|
-
gem "activeresource", "~> 4.0.0"
|
9
|
-
gem "activesupport", "~> 4.2.0"
|
10
|
-
|
11
|
-
gemspec :path => "../"
|
data/gemfiles/rails_5.gemfile
DELETED
@@ -1,11 +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", git: 'https://github.com/rails/activeresource.git'
|
7
|
-
gem "activesupport", "~> 5.0.2"
|
8
|
-
|
9
|
-
gem "rubocop"
|
10
|
-
|
11
|
-
gemspec :path => "../"
|
data/gemfiles/rails_51.gemfile
DELETED