horse_power 0.7.0 → 0.7.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9aab5006e5fcb9c7b28e788336b27061cb73ab20
|
4
|
+
data.tar.gz: a244e720ed53c1e46b05ffd6cbc1d0d01bedff02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1565138976ab4023ef6dfc0ee0f412caa9d1f0f0144e6ac00992f39b66733992f6787cf4409d5a9a0ad470ba038dd26af5b7422199dce3314977f8fee541330
|
7
|
+
data.tar.gz: c58e5a9e17be91aef17117076c08f2a504d052f5b974010aa7542e0656ceaccc114ae5257ca282e26d662864e04a31921f434f8af34db727b992a63a67630061
|
@@ -30,13 +30,13 @@ module HorsePower
|
|
30
30
|
|
31
31
|
def createEnvSettings
|
32
32
|
prepend_to_file 'config/settings/development.yml' do
|
33
|
-
"main_api_key:
|
33
|
+
"main_api_key: 123456789\n"
|
34
34
|
end
|
35
35
|
prepend_to_file 'config/settings/test.yml' do
|
36
|
-
"main_api_key:
|
36
|
+
"main_api_key: 123456789\n"
|
37
37
|
end
|
38
38
|
prepend_to_file 'config/settings/production.yml' do
|
39
|
-
"main_api_key:
|
39
|
+
"main_api_key: 123456789\n"
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
@@ -7,7 +7,7 @@ class Api::V1::ApplicationController < ::ActionController::API
|
|
7
7
|
|
8
8
|
def authenticate_app
|
9
9
|
api_key = ::Arcadex::Header.grab_param_header(params,request,::Settings.main_api_header,false)
|
10
|
-
if api_key.nil? || api_key != ::Settings.main_api_key
|
10
|
+
if api_key.nil? || api_key.to_s != ::Settings.main_api_key.to_s
|
11
11
|
render :json => {errors: "App is not authorized"} , status: :forbidden
|
12
12
|
end
|
13
13
|
end
|
data/lib/horse_power/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: horse_power
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cleophus Robinson IV
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|