client_authenticator 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/client_authenticator/test_helpers.rb +2 -2
- data/lib/client_authenticator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 538d337270dbb6eeb08602ec7ffc64e0d90a833b
|
4
|
+
data.tar.gz: 1db4f00a00a933ae46009be19b4e97a16a9ee653
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d84563b688750675673911e4613a5f95705b37eaf12cd65b804c7f1ddfb546a9990db55ec858bee3b4a4540ebe952b5901e6fc3329effea20e10fc5c76a809b
|
7
|
+
data.tar.gz: 69027ca6009c7643f51c6fff22e9978e4f37c47a9807a10de38222739707f4bac314bc79425d2b8efc26cdf8dd8db6b2e36dd623ebe0cd3a2b72c1dc88750f1c
|
@@ -3,13 +3,13 @@ require 'client_authenticator'
|
|
3
3
|
module ClientAuthenticator
|
4
4
|
module TestHelpers
|
5
5
|
def stub_valid_client_credentials
|
6
|
-
expect(ClientAuthenticator::ApiClient).to receive(:
|
6
|
+
expect(ClientAuthenticator::ApiClient).to receive(:authenticate_client!).with('client_id', 'valid_pass_key').and_return(true)
|
7
7
|
@request.headers['client-id'] = 'client_id'
|
8
8
|
@request.headers['pass-key'] = 'valid_pass_key'
|
9
9
|
end
|
10
10
|
|
11
11
|
def stub_invalid_client_credentials
|
12
|
-
expect(ClientAuthenticator::ApiClient).to receive(:
|
12
|
+
expect(ClientAuthenticator::ApiClient).to receive(:authenticate_client!).with('client_id', 'invalid_pass_key').and_return(false)
|
13
13
|
@request.headers['client-id'] = 'client_id'
|
14
14
|
@request.headers['pass-key'] = 'invalid_pass_key'
|
15
15
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: client_authenticator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- manoharakshetty
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-04-
|
12
|
+
date: 2017-04-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|