master_api_key 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/app/controllers/master_api_key/api_keys_controller.rb +1 -1
- data/app/controllers/master_api_key/application_controller.rb +1 -1
- data/config/master_api_key.gemversion +1 -1
- data/spec/requests/master_api_key/master_api_key_api_keys_spec.rb +4 -4
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe2a00ae06636fe3290c45ae642e234e48285325
|
4
|
+
data.tar.gz: 88efcc01c8b9a79104da5b4e80b3d07750cd5d62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 043fba1b54f6c84b4ec2ddd811d3260b19f65fa868d850bd8137d6870a903bc026449b0d0b5e7f303d851845990cf362a099f8605827c13243a2536d8ad6e536
|
7
|
+
data.tar.gz: 9d2e1a65f2ad7315d93ff6204ebffb60a8348d5f5a00e01c11a2bce5f1dcbbb91c8f13d749b1b48463c9df0e33dcf73abfb010b561c568ac37eeace3985fa820
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -12,7 +12,7 @@ module MasterApiKey
|
|
12
12
|
@api_key = ApiKey.create! do |api_key|
|
13
13
|
api_key.group = group_param
|
14
14
|
end
|
15
|
-
render json: { apiKey: @api_key, status: :created
|
15
|
+
render json: { apiKey: @api_key}, status: :created
|
16
16
|
rescue ActionController::ParameterMissing => e
|
17
17
|
respond_with_error(e.message, :bad_request)
|
18
18
|
end
|
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
@@ -9,11 +9,11 @@ RSpec.describe 'ApiKeys', type: :request do
|
|
9
9
|
}
|
10
10
|
end
|
11
11
|
|
12
|
-
it 'should return
|
12
|
+
it 'should return 201 with properly formatted request' do
|
13
13
|
post '/master_api_key/api_keys', {:group => 'group_1'}, @headers
|
14
14
|
json_object = JSON.parse response.body
|
15
15
|
|
16
|
-
expect(response).to have_http_status(
|
16
|
+
expect(response).to have_http_status(201)
|
17
17
|
expect(response.content_type).to eq 'application/json'
|
18
18
|
|
19
19
|
hash_verifier = {'group' => 'group_1'}
|
@@ -45,7 +45,7 @@ RSpec.describe 'ApiKeys', type: :request do
|
|
45
45
|
|
46
46
|
it 'should return 200 with properly formatted request' do
|
47
47
|
post '/master_api_key/api_keys', {:group => 'group_1'}, @headers
|
48
|
-
expect(response).to have_http_status(
|
48
|
+
expect(response).to have_http_status(201)
|
49
49
|
|
50
50
|
json_object = JSON.parse response.body
|
51
51
|
|
@@ -71,7 +71,7 @@ RSpec.describe 'ApiKeys', type: :request do
|
|
71
71
|
|
72
72
|
it 'should return 200 with properly formatted request' do
|
73
73
|
post '/master_api_key/api_keys', {:group => 'group_1'}, @headers
|
74
|
-
expect(response).to have_http_status(
|
74
|
+
expect(response).to have_http_status(201)
|
75
75
|
|
76
76
|
json_object = JSON.parse response.body
|
77
77
|
api_token = json_object['apiKey']['api_token']
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: master_api_key
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Flynn Jones
|
@@ -73,7 +73,7 @@ cert_chain:
|
|
73
73
|
7xfdQKID/bwhqUq9whTwTX2J61RCxyS+eqIRfWOYAUphZanwFD9c3uNWa+8KAhC2
|
74
74
|
oHN/0fktfVzQYUsHnZ4=
|
75
75
|
-----END CERTIFICATE-----
|
76
|
-
date: 2016-04-
|
76
|
+
date: 2016-04-18 00:00:00.000000000 Z
|
77
77
|
dependencies:
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
79
|
name: rails
|
metadata.gz.sig
CHANGED
Binary file
|