simple_api_auth 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/simple_api_auth/railtie.rb +1 -1
- data/simple_api_auth.gemspec +1 -1
- metadata +3 -3
@@ -1,7 +1,7 @@
|
|
1
1
|
module SimpleApiAuth
|
2
2
|
class Railtie < Rails::Railtie
|
3
3
|
initializer "simple_api_auth_railtie.configure_rails_initialization" do |config|
|
4
|
-
SimpleApiAuth::Middleware.api_key = YAML.load_file("#{Rails.root}/config/api_key.yml")["api_key"]
|
4
|
+
SimpleApiAuth::Middleware.api_key = YAML.load_file("#{Rails.root}/config/api_key.yml")["api_key"].to_s
|
5
5
|
config.middleware.use SimpleApiAuth::Middleware
|
6
6
|
end
|
7
7
|
end
|
data/simple_api_auth.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_api_auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Wen-Tien Chang
|