api-auth 1.5.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +10 -44
- data/.rubocop.yml +102 -0
- data/.travis.yml +1 -0
- data/Appraisals +8 -0
- data/CHANGELOG.md +8 -1
- data/Gemfile +3 -0
- data/README.md +33 -5
- data/VERSION +1 -1
- data/api_auth.gemspec +17 -17
- data/gemfiles/rails_23.gemfile +3 -0
- data/gemfiles/rails_30.gemfile +3 -0
- data/gemfiles/rails_31.gemfile +5 -0
- data/gemfiles/rails_32.gemfile +5 -0
- data/gemfiles/rails_4.gemfile +2 -0
- data/gemfiles/rails_41.gemfile +2 -0
- data/gemfiles/rails_42.gemfile +2 -0
- data/lib/api-auth.rb +1 -1
- data/lib/api_auth/base.rb +21 -25
- data/lib/api_auth/errors.rb +4 -3
- data/lib/api_auth/headers.rb +11 -27
- data/lib/api_auth/helpers.rb +2 -6
- data/lib/api_auth/railtie.rb +5 -50
- data/lib/api_auth/request_drivers/action_controller.rb +7 -13
- data/lib/api_auth/request_drivers/action_dispatch.rb +0 -6
- data/lib/api_auth/request_drivers/curb.rb +8 -14
- data/lib/api_auth/request_drivers/faraday.rb +11 -21
- data/lib/api_auth/request_drivers/httpi.rb +8 -14
- data/lib/api_auth/request_drivers/net_http.rb +8 -14
- data/lib/api_auth/request_drivers/rack.rb +10 -16
- data/lib/api_auth/request_drivers/rest_client.rb +9 -15
- data/spec/api_auth_spec.rb +90 -88
- data/spec/headers_spec.rb +69 -84
- data/spec/helpers_spec.rb +7 -9
- data/spec/railtie_spec.rb +42 -72
- data/spec/request_drivers/action_controller_spec.rb +53 -55
- data/spec/request_drivers/action_dispatch_spec.rb +52 -55
- data/spec/request_drivers/curb_spec.rb +25 -28
- data/spec/request_drivers/faraday_spec.rb +54 -56
- data/spec/request_drivers/httpi_spec.rb +42 -48
- data/spec/request_drivers/net_http_spec.rb +51 -53
- data/spec/request_drivers/rack_spec.rb +58 -60
- data/spec/request_drivers/rest_client_spec.rb +86 -89
- data/spec/spec_helper.rb +9 -9
- metadata +4 -11
- data/Gemfile.lock +0 -115
- data/gemfiles/rails_23.gemfile.lock +0 -70
- data/gemfiles/rails_30.gemfile.lock +0 -92
- data/gemfiles/rails_31.gemfile.lock +0 -98
- data/gemfiles/rails_32.gemfile.lock +0 -97
- data/gemfiles/rails_4.gemfile.lock +0 -94
- data/gemfiles/rails_41.gemfile.lock +0 -98
- data/gemfiles/rails_42.gemfile.lock +0 -115
@@ -1,94 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ../
|
3
|
-
specs:
|
4
|
-
api-auth (1.5.0)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
actionpack (4.0.4)
|
10
|
-
activesupport (= 4.0.4)
|
11
|
-
builder (~> 3.1.0)
|
12
|
-
erubis (~> 2.7.0)
|
13
|
-
rack (~> 1.5.2)
|
14
|
-
rack-test (~> 0.6.2)
|
15
|
-
activemodel (4.0.4)
|
16
|
-
activesupport (= 4.0.4)
|
17
|
-
builder (~> 3.1.0)
|
18
|
-
activeresource (4.0.0)
|
19
|
-
activemodel (~> 4.0)
|
20
|
-
activesupport (~> 4.0)
|
21
|
-
rails-observers (~> 0.1.1)
|
22
|
-
activesupport (4.0.4)
|
23
|
-
i18n (~> 0.6, >= 0.6.9)
|
24
|
-
minitest (~> 4.2)
|
25
|
-
multi_json (~> 1.3)
|
26
|
-
thread_safe (~> 0.1)
|
27
|
-
tzinfo (~> 0.3.37)
|
28
|
-
amatch (0.2.11)
|
29
|
-
tins (~> 0.3)
|
30
|
-
appraisal (0.5.2)
|
31
|
-
bundler
|
32
|
-
rake
|
33
|
-
atomic (1.1.16)
|
34
|
-
builder (3.1.4)
|
35
|
-
curb (0.8.6)
|
36
|
-
diff-lcs (1.2.5)
|
37
|
-
erubis (2.7.0)
|
38
|
-
faraday (0.9.1)
|
39
|
-
multipart-post (>= 1.2, < 3)
|
40
|
-
httpi (2.1.0)
|
41
|
-
rack
|
42
|
-
rubyntlm (~> 0.3.2)
|
43
|
-
i18n (0.6.9)
|
44
|
-
mime-types (2.2)
|
45
|
-
minitest (4.7.5)
|
46
|
-
multi_json (1.9.2)
|
47
|
-
multipart-post (2.0.0)
|
48
|
-
rack (1.5.2)
|
49
|
-
rack-test (0.6.2)
|
50
|
-
rack (>= 1.0)
|
51
|
-
rails-observers (0.1.2)
|
52
|
-
activemodel (~> 4.0)
|
53
|
-
rake (10.1.1)
|
54
|
-
rest-client (1.6.7)
|
55
|
-
mime-types (>= 1.16)
|
56
|
-
rspec (3.4.0)
|
57
|
-
rspec-core (~> 3.4.0)
|
58
|
-
rspec-expectations (~> 3.4.0)
|
59
|
-
rspec-mocks (~> 3.4.0)
|
60
|
-
rspec-core (3.4.0)
|
61
|
-
rspec-support (~> 3.4.0)
|
62
|
-
rspec-expectations (3.4.0)
|
63
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
64
|
-
rspec-support (~> 3.4.0)
|
65
|
-
rspec-mocks (3.4.0)
|
66
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
67
|
-
rspec-support (~> 3.4.0)
|
68
|
-
rspec-support (3.4.0)
|
69
|
-
rubyntlm (0.3.4)
|
70
|
-
thread_safe (0.2.0)
|
71
|
-
atomic (>= 1.1.7, < 2)
|
72
|
-
tins (0.13.2)
|
73
|
-
tzinfo (0.3.39)
|
74
|
-
|
75
|
-
PLATFORMS
|
76
|
-
ruby
|
77
|
-
|
78
|
-
DEPENDENCIES
|
79
|
-
actionpack (~> 4.0.4)
|
80
|
-
activeresource (~> 4.0.0)
|
81
|
-
activesupport (~> 4.0.4)
|
82
|
-
amatch
|
83
|
-
api-auth!
|
84
|
-
appraisal
|
85
|
-
curb (~> 0.8.1)
|
86
|
-
faraday
|
87
|
-
httpi
|
88
|
-
multipart-post (~> 2.0)
|
89
|
-
rake
|
90
|
-
rest-client (~> 1.6.0)
|
91
|
-
rspec (~> 3.4)
|
92
|
-
|
93
|
-
BUNDLED WITH
|
94
|
-
1.10.6
|
@@ -1,98 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ../
|
3
|
-
specs:
|
4
|
-
api-auth (1.5.0)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
actionpack (4.1.1)
|
10
|
-
actionview (= 4.1.1)
|
11
|
-
activesupport (= 4.1.1)
|
12
|
-
rack (~> 1.5.2)
|
13
|
-
rack-test (~> 0.6.2)
|
14
|
-
actionview (4.1.1)
|
15
|
-
activesupport (= 4.1.1)
|
16
|
-
builder (~> 3.1)
|
17
|
-
erubis (~> 2.7.0)
|
18
|
-
activemodel (4.1.1)
|
19
|
-
activesupport (= 4.1.1)
|
20
|
-
builder (~> 3.1)
|
21
|
-
activeresource (4.0.0)
|
22
|
-
activemodel (~> 4.0)
|
23
|
-
activesupport (~> 4.0)
|
24
|
-
rails-observers (~> 0.1.1)
|
25
|
-
activesupport (4.1.1)
|
26
|
-
i18n (~> 0.6, >= 0.6.9)
|
27
|
-
json (~> 1.7, >= 1.7.7)
|
28
|
-
minitest (~> 5.1)
|
29
|
-
thread_safe (~> 0.1)
|
30
|
-
tzinfo (~> 1.1)
|
31
|
-
amatch (0.3.0)
|
32
|
-
tins (~> 1.0)
|
33
|
-
appraisal (1.0.0)
|
34
|
-
bundler
|
35
|
-
rake
|
36
|
-
thor (>= 0.14.0)
|
37
|
-
builder (3.2.2)
|
38
|
-
curb (0.8.6)
|
39
|
-
diff-lcs (1.2.5)
|
40
|
-
erubis (2.7.0)
|
41
|
-
faraday (0.9.1)
|
42
|
-
multipart-post (>= 1.2, < 3)
|
43
|
-
httpi (2.1.0)
|
44
|
-
rack
|
45
|
-
rubyntlm (~> 0.3.2)
|
46
|
-
i18n (0.6.9)
|
47
|
-
json (1.8.1)
|
48
|
-
mime-types (2.2)
|
49
|
-
minitest (5.3.4)
|
50
|
-
multipart-post (2.0.0)
|
51
|
-
rack (1.5.2)
|
52
|
-
rack-test (0.6.2)
|
53
|
-
rack (>= 1.0)
|
54
|
-
rails-observers (0.1.2)
|
55
|
-
activemodel (~> 4.0)
|
56
|
-
rake (10.3.2)
|
57
|
-
rest-client (1.6.7)
|
58
|
-
mime-types (>= 1.16)
|
59
|
-
rspec (3.4.0)
|
60
|
-
rspec-core (~> 3.4.0)
|
61
|
-
rspec-expectations (~> 3.4.0)
|
62
|
-
rspec-mocks (~> 3.4.0)
|
63
|
-
rspec-core (3.4.0)
|
64
|
-
rspec-support (~> 3.4.0)
|
65
|
-
rspec-expectations (3.4.0)
|
66
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
67
|
-
rspec-support (~> 3.4.0)
|
68
|
-
rspec-mocks (3.4.0)
|
69
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
70
|
-
rspec-support (~> 3.4.0)
|
71
|
-
rspec-support (3.4.0)
|
72
|
-
rubyntlm (0.3.4)
|
73
|
-
thor (0.19.1)
|
74
|
-
thread_safe (0.3.3)
|
75
|
-
tins (1.3.0)
|
76
|
-
tzinfo (1.1.0)
|
77
|
-
thread_safe (~> 0.1)
|
78
|
-
|
79
|
-
PLATFORMS
|
80
|
-
ruby
|
81
|
-
|
82
|
-
DEPENDENCIES
|
83
|
-
actionpack (~> 4.1.0)
|
84
|
-
activeresource (~> 4.0.0)
|
85
|
-
activesupport (~> 4.1.0)
|
86
|
-
amatch
|
87
|
-
api-auth!
|
88
|
-
appraisal
|
89
|
-
curb (~> 0.8.1)
|
90
|
-
faraday
|
91
|
-
httpi
|
92
|
-
multipart-post (~> 2.0)
|
93
|
-
rake
|
94
|
-
rest-client (~> 1.6.0)
|
95
|
-
rspec (~> 3.4)
|
96
|
-
|
97
|
-
BUNDLED WITH
|
98
|
-
1.10.6
|
@@ -1,115 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ../
|
3
|
-
specs:
|
4
|
-
api-auth (1.5.0)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
actionpack (4.2.5)
|
10
|
-
actionview (= 4.2.5)
|
11
|
-
activesupport (= 4.2.5)
|
12
|
-
rack (~> 1.6)
|
13
|
-
rack-test (~> 0.6.2)
|
14
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
15
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
16
|
-
actionview (4.2.5)
|
17
|
-
activesupport (= 4.2.5)
|
18
|
-
builder (~> 3.1)
|
19
|
-
erubis (~> 2.7.0)
|
20
|
-
rails-dom-testing (~> 1.0, >= 1.0.5)
|
21
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
22
|
-
activemodel (4.2.5)
|
23
|
-
activesupport (= 4.2.5)
|
24
|
-
builder (~> 3.1)
|
25
|
-
activeresource (4.0.0)
|
26
|
-
activemodel (~> 4.0)
|
27
|
-
activesupport (~> 4.0)
|
28
|
-
rails-observers (~> 0.1.1)
|
29
|
-
activesupport (4.2.5)
|
30
|
-
i18n (~> 0.7)
|
31
|
-
json (~> 1.7, >= 1.7.7)
|
32
|
-
minitest (~> 5.1)
|
33
|
-
thread_safe (~> 0.3, >= 0.3.4)
|
34
|
-
tzinfo (~> 1.1)
|
35
|
-
amatch (0.3.0)
|
36
|
-
tins (~> 1.0)
|
37
|
-
appraisal (1.0.0)
|
38
|
-
bundler
|
39
|
-
rake
|
40
|
-
thor (>= 0.14.0)
|
41
|
-
builder (3.2.2)
|
42
|
-
curb (0.8.6)
|
43
|
-
diff-lcs (1.2.5)
|
44
|
-
erubis (2.7.0)
|
45
|
-
faraday (0.9.1)
|
46
|
-
multipart-post (>= 1.2, < 3)
|
47
|
-
httpi (2.1.0)
|
48
|
-
rack
|
49
|
-
rubyntlm (~> 0.3.2)
|
50
|
-
i18n (0.7.0)
|
51
|
-
json (1.8.3)
|
52
|
-
loofah (2.0.3)
|
53
|
-
nokogiri (>= 1.5.9)
|
54
|
-
mime-types (2.6.2)
|
55
|
-
mini_portile (0.6.2)
|
56
|
-
minitest (5.8.2)
|
57
|
-
multipart-post (2.0.0)
|
58
|
-
nokogiri (1.6.6.2)
|
59
|
-
mini_portile (~> 0.6.0)
|
60
|
-
rack (1.6.4)
|
61
|
-
rack-test (0.6.3)
|
62
|
-
rack (>= 1.0)
|
63
|
-
rails-deprecated_sanitizer (1.0.3)
|
64
|
-
activesupport (>= 4.2.0.alpha)
|
65
|
-
rails-dom-testing (1.0.7)
|
66
|
-
activesupport (>= 4.2.0.beta, < 5.0)
|
67
|
-
nokogiri (~> 1.6.0)
|
68
|
-
rails-deprecated_sanitizer (>= 1.0.1)
|
69
|
-
rails-html-sanitizer (1.0.2)
|
70
|
-
loofah (~> 2.0)
|
71
|
-
rails-observers (0.1.2)
|
72
|
-
activemodel (~> 4.0)
|
73
|
-
rake (10.4.2)
|
74
|
-
rest-client (1.6.7)
|
75
|
-
mime-types (>= 1.16)
|
76
|
-
rspec (3.4.0)
|
77
|
-
rspec-core (~> 3.4.0)
|
78
|
-
rspec-expectations (~> 3.4.0)
|
79
|
-
rspec-mocks (~> 3.4.0)
|
80
|
-
rspec-core (3.4.0)
|
81
|
-
rspec-support (~> 3.4.0)
|
82
|
-
rspec-expectations (3.4.0)
|
83
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
84
|
-
rspec-support (~> 3.4.0)
|
85
|
-
rspec-mocks (3.4.0)
|
86
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
87
|
-
rspec-support (~> 3.4.0)
|
88
|
-
rspec-support (3.4.0)
|
89
|
-
rubyntlm (0.3.4)
|
90
|
-
thor (0.19.1)
|
91
|
-
thread_safe (0.3.5)
|
92
|
-
tins (1.6.0)
|
93
|
-
tzinfo (1.2.2)
|
94
|
-
thread_safe (~> 0.1)
|
95
|
-
|
96
|
-
PLATFORMS
|
97
|
-
ruby
|
98
|
-
|
99
|
-
DEPENDENCIES
|
100
|
-
actionpack (~> 4.2.0)
|
101
|
-
activeresource (~> 4.0.0)
|
102
|
-
activesupport (~> 4.2.0)
|
103
|
-
amatch
|
104
|
-
api-auth!
|
105
|
-
appraisal
|
106
|
-
curb (~> 0.8.1)
|
107
|
-
faraday
|
108
|
-
httpi
|
109
|
-
multipart-post (~> 2.0)
|
110
|
-
rake
|
111
|
-
rest-client (~> 1.6.0)
|
112
|
-
rspec (~> 3.4)
|
113
|
-
|
114
|
-
BUNDLED WITH
|
115
|
-
1.10.6
|