api-auth 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/.rubocop.yml +1 -40
- data/.travis.yml +10 -41
- data/Appraisals +16 -42
- data/Gemfile +1 -4
- data/README.md +28 -4
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/api_auth.gemspec +9 -10
- data/gemfiles/rails_5.gemfile +2 -2
- data/gemfiles/rails_51.gemfile +9 -0
- data/lib/api_auth/base.rb +10 -10
- data/lib/api_auth/headers.rb +9 -9
- data/lib/api_auth/helpers.rb +2 -11
- data/lib/api_auth/railtie.rb +5 -13
- data/lib/api_auth/request_drivers/action_controller.rb +8 -7
- data/lib/api_auth/request_drivers/curb.rb +8 -7
- data/lib/api_auth/request_drivers/faraday.rb +10 -9
- data/lib/api_auth/request_drivers/httpi.rb +8 -7
- data/lib/api_auth/request_drivers/net_http.rb +8 -7
- data/lib/api_auth/request_drivers/rack.rb +10 -9
- data/lib/api_auth/request_drivers/rest_client.rb +10 -9
- data/spec/.rubocop.yml +5 -0
- data/spec/api_auth_spec.rb +23 -12
- data/spec/headers_spec.rb +49 -12
- data/spec/railtie_spec.rb +33 -59
- data/spec/request_drivers/rack_spec.rb +17 -17
- data/spec/request_drivers/rest_client_spec.rb +44 -45
- metadata +27 -15
- data/gemfiles/rails_23.gemfile +0 -12
- data/gemfiles/rails_30.gemfile +0 -12
- data/gemfiles/rails_31.gemfile +0 -14
- data/gemfiles/rails_32.gemfile +0 -14
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
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mauricio Gomes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: appraisal
|
@@ -72,40 +72,40 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "<"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '6.0'
|
76
76
|
- - ">"
|
77
77
|
- !ruby/object:Gem::Version
|
78
|
-
version:
|
78
|
+
version: '4.0'
|
79
79
|
type: :development
|
80
80
|
prerelease: false
|
81
81
|
version_requirements: !ruby/object:Gem::Requirement
|
82
82
|
requirements:
|
83
83
|
- - "<"
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version: '
|
85
|
+
version: '6.0'
|
86
86
|
- - ">"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
88
|
+
version: '4.0'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: activesupport
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
93
|
- - "<"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: '
|
95
|
+
version: '6.0'
|
96
96
|
- - ">"
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
version:
|
98
|
+
version: '4.0'
|
99
99
|
type: :development
|
100
100
|
prerelease: false
|
101
101
|
version_requirements: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
103
|
- - "<"
|
104
104
|
- !ruby/object:Gem::Version
|
105
|
-
version: '
|
105
|
+
version: '6.0'
|
106
106
|
- - ">"
|
107
107
|
- !ruby/object:Gem::Version
|
108
|
-
version:
|
108
|
+
version: '4.0'
|
109
109
|
- !ruby/object:Gem::Dependency
|
110
110
|
name: activeresource
|
111
111
|
requirement: !ruby/object:Gem::Requirement
|
@@ -190,6 +190,20 @@ dependencies:
|
|
190
190
|
- - "~>"
|
191
191
|
- !ruby/object:Gem::Version
|
192
192
|
version: '2.0'
|
193
|
+
- !ruby/object:Gem::Dependency
|
194
|
+
name: httparty
|
195
|
+
requirement: !ruby/object:Gem::Requirement
|
196
|
+
requirements:
|
197
|
+
- - "~>"
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: 0.13.0
|
200
|
+
type: :development
|
201
|
+
prerelease: false
|
202
|
+
version_requirements: !ruby/object:Gem::Requirement
|
203
|
+
requirements:
|
204
|
+
- - "~>"
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
version: 0.13.0
|
193
207
|
description: Full HMAC auth implementation for use in your gems and Rails apps.
|
194
208
|
email: mauricio@edge14.com
|
195
209
|
executables: []
|
@@ -209,14 +223,11 @@ files:
|
|
209
223
|
- Rakefile
|
210
224
|
- VERSION
|
211
225
|
- api_auth.gemspec
|
212
|
-
- gemfiles/rails_23.gemfile
|
213
|
-
- gemfiles/rails_30.gemfile
|
214
|
-
- gemfiles/rails_31.gemfile
|
215
|
-
- gemfiles/rails_32.gemfile
|
216
226
|
- gemfiles/rails_4.gemfile
|
217
227
|
- gemfiles/rails_41.gemfile
|
218
228
|
- gemfiles/rails_42.gemfile
|
219
229
|
- gemfiles/rails_5.gemfile
|
230
|
+
- gemfiles/rails_51.gemfile
|
220
231
|
- lib/api-auth.rb
|
221
232
|
- lib/api_auth.rb
|
222
233
|
- lib/api_auth/base.rb
|
@@ -232,6 +243,7 @@ files:
|
|
232
243
|
- lib/api_auth/request_drivers/net_http.rb
|
233
244
|
- lib/api_auth/request_drivers/rack.rb
|
234
245
|
- lib/api_auth/request_drivers/rest_client.rb
|
246
|
+
- spec/.rubocop.yml
|
235
247
|
- spec/api_auth_spec.rb
|
236
248
|
- spec/fixtures/upload.png
|
237
249
|
- spec/headers_spec.rb
|
@@ -265,7 +277,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
265
277
|
version: '0'
|
266
278
|
requirements: []
|
267
279
|
rubyforge_project:
|
268
|
-
rubygems_version: 2.
|
280
|
+
rubygems_version: 2.7.3
|
269
281
|
signing_key:
|
270
282
|
specification_version: 4
|
271
283
|
summary: Simple HMAC authentication for your APIs
|
data/gemfiles/rails_23.gemfile
DELETED
@@ -1,12 +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", "~> 2.3.2"
|
8
|
-
gem "activeresource", "~> 2.3.2"
|
9
|
-
gem "activesupport", "~> 2.3.2"
|
10
|
-
gem "httpi", "< 2.3"
|
11
|
-
|
12
|
-
gemspec :path => "../"
|
data/gemfiles/rails_30.gemfile
DELETED
@@ -1,12 +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", "~> 3.0.20"
|
8
|
-
gem "activeresource", "~> 3.0.20"
|
9
|
-
gem "activesupport", "~> 3.0.20"
|
10
|
-
gem "httpi", "< 2.3"
|
11
|
-
|
12
|
-
gemspec :path => "../"
|
data/gemfiles/rails_31.gemfile
DELETED
@@ -1,14 +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", "~> 3.1.0"
|
8
|
-
gem "activeresource", "~> 3.1.0"
|
9
|
-
gem "activesupport", "~> 3.1.0"
|
10
|
-
gem "httpi", "< 2.3"
|
11
|
-
gem "i18n", "< 0.7.0"
|
12
|
-
gem "rack-cache", "< 1.3"
|
13
|
-
|
14
|
-
gemspec :path => "../"
|
data/gemfiles/rails_32.gemfile
DELETED
@@ -1,14 +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", "~> 3.2.17"
|
8
|
-
gem "activeresource", "~> 3.2.17"
|
9
|
-
gem "activesupport", "~> 3.2.17"
|
10
|
-
gem "httpi", "< 2.3"
|
11
|
-
gem "i18n", "< 0.7.0"
|
12
|
-
gem "rack-cache", "< 1.3"
|
13
|
-
|
14
|
-
gemspec :path => "../"
|