grpc_auth 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +21 -9
- data/lib/grpc_auth.rb +6 -0
- data/lib/grpc_auth/engine.rb +1 -1
- data/lib/grpc_auth/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dcdd3e92f00f34a2f5e5c409503d82d71078d81b6c48ac6da2a6cbb6f4839b57
|
4
|
+
data.tar.gz: bb67e0af365588a83c66185d1ac8ae8880606efa735771a440cfd30a38230712
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e7b27677ebc9cadd0bf060d9c6de4ca63a56a3c9ade27bba83c413ee115aa3c7f9a2943fadccd636e6f01006bdb67ca3fd06e81aecf47d7025bbcd68cc34385
|
7
|
+
data.tar.gz: c797961885f0877ba1203a131beb7cda1617a2dadbc7d73f1c93e5fab1eb6e07fbc987dc327224d13ffd631fd230874b2de68d6e81fb1eb9f79d4328f5e684c2
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# GrpcAuth
|
2
2
|
Short description and motivation.
|
3
3
|
|
4
4
|
## Usage
|
@@ -8,7 +8,7 @@ How to use my plugin.
|
|
8
8
|
Add this line to your application's Gemfile:
|
9
9
|
|
10
10
|
```ruby
|
11
|
-
gem '
|
11
|
+
gem 'grpc_auth'
|
12
12
|
```
|
13
13
|
|
14
14
|
And then execute:
|
@@ -18,21 +18,33 @@ $ bundle
|
|
18
18
|
|
19
19
|
Or install it yourself as:
|
20
20
|
```bash
|
21
|
-
$ gem install
|
21
|
+
$ gem install grpc_auth
|
22
22
|
```
|
23
23
|
|
24
|
-
##
|
25
|
-
|
26
|
-
attachit : can be used in controller to add tempfile to mongodb
|
24
|
+
## Method added
|
27
25
|
|
28
26
|
```ruby
|
29
|
-
|
30
|
-
|
27
|
+
attachit: can be used in controller to add tempfile to mongodb
|
28
|
+
|
29
|
+
group[:logo] = attachit("group",:logo)
|
30
|
+
|
31
31
|
pageit: can be used in controller for page model
|
32
32
|
|
33
|
-
is_login
|
33
|
+
is_login?: can be used in controller or views to test login status
|
34
34
|
|
35
35
|
need_login: can be used in controller
|
36
|
+
```
|
37
|
+
|
38
|
+
## ENV Setting
|
39
|
+
|
40
|
+
You should set some env variable
|
41
|
+
|
42
|
+
```
|
43
|
+
ENV["GRPC_AUTH_MOUNT_PATH"] = "/"
|
44
|
+
|
45
|
+
ENV["GRPCD_ADDRESS"] = "172.16.144.248:5005"
|
46
|
+
```
|
36
47
|
|
37
48
|
## License
|
49
|
+
|
38
50
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/lib/grpc_auth.rb
CHANGED
data/lib/grpc_auth/engine.rb
CHANGED
data/lib/grpc_auth/version.rb
CHANGED