simple-admin 1.0.0 → 1.0.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: 2022299e76bb574d4b78ee76e1ac1b9a677bd8c1
|
4
|
+
data.tar.gz: 93527948e0051a7db130c8ee145c2c747b83d95e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37da6485b515879d0d72371cefdc7fd0fa7e340673dded94e61ff805207d21fb3fa78e613ca237c43fca219650eced2f0f0c56278cee8aca6d228f0f7adfcdfc
|
7
|
+
data.tar.gz: 7f7b421810bbf4e415734cd34fbba590e1a943de53f5ccdd1f208302f3c34073c49ff411a68dce74ccacc4388b5c69d094e85f752adfebc03d2f079fa53624e2
|
data/README.md
CHANGED
@@ -4,6 +4,8 @@
|
|
4
4
|
[![codecov](https://codecov.io/gh/evil-raccoon/simple_admin/branch/master/graph/badge.svg)](https://codecov.io/gh/evil-raccoon/simple_admin)
|
5
5
|
[![Inline docs](http://inch-ci.org/github/evil-raccoon/simple_admin.svg)](http://inch-ci.org/github/evil-raccoon/simple_admin)
|
6
6
|
|
7
|
+
https://getsimpleadmin.com
|
8
|
+
|
7
9
|
A small API library to connect your application with SimpleAdmin service and create admin dashboards in an instant.
|
8
10
|
|
9
11
|
## Getting started
|
@@ -1,6 +1,13 @@
|
|
1
1
|
module Api::V1
|
2
2
|
module SimpleAdmin
|
3
3
|
class BaseController < ActionController::API
|
4
|
+
before_action :verify_key_is_valid!
|
5
|
+
|
6
|
+
private
|
7
|
+
|
8
|
+
def verify_key_is_valid!
|
9
|
+
return head(:forbidden) unless request.headers['SimpleAdmin-Secret-Key'] == ENV['SIMPLE_ADMIN_SECRET_KEY']
|
10
|
+
end
|
4
11
|
end
|
5
12
|
end
|
6
13
|
end
|
data/lib/simple_admin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitriy Strukov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|