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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fde2d66440113759a13d21e71113277762d2feea
4
- data.tar.gz: c0734fc58a61a9cc39fc08408ad88f14bf7c3a4c
3
+ metadata.gz: fe2a00ae06636fe3290c45ae642e234e48285325
4
+ data.tar.gz: 88efcc01c8b9a79104da5b4e80b3d07750cd5d62
5
5
  SHA512:
6
- metadata.gz: f8b0e347a221a66c89ae241650dd937c92106f70faaaa094d78abfb7848684839abbcd0b09144c904f812c7bdc083248208d1fa74c84faa6f59280468a4c0f8b
7
- data.tar.gz: ee731da3f5b2662b2df5c97ec89c9890dd4505d08388ce61b162c648b219f7bc2d34f9a669bd3d9646638242de8dd77a16c6b673ae2260197573d7d784ebf840
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
@@ -5,7 +5,7 @@ module MasterApiKey
5
5
  protected
6
6
 
7
7
  def respond_with_error(msg, error)
8
- render :text => {:error => msg}.to_json, :content_type => 'application/json', :status => error
8
+ render json: {:error => msg}, status: error
9
9
  end
10
10
  end
11
11
  end
@@ -1 +1 @@
1
- 1.1.0
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 200 with properly formatted request' do
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(200)
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(200)
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(200)
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.0
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-14 00:00:00.000000000 Z
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