user_access_manager 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/access_policy.rb +5 -0
- data/lib/user_access_manager/version.rb +1 -1
- data/user_access_manager.gemspec +1 -0
- metadata +21 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a67482ef5142e004ad1f8ff9fad096938cd9f27
|
4
|
+
data.tar.gz: c32b19b262fd0e9fe027087a1daca7f0846ad2b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad26e45c29b5a058d266db6643438ab476c5a779dcd81e09bdd1566b8817461506729f62bfee742e8ca45f8a726014e2a961c0b5f94eb3745224f02aaa3a1d61
|
7
|
+
data.tar.gz: c469ec173eba4415dc3ffc67ecb018108c16049334440618aa034feb0fe2609c1d7080df3f37a14526b8728e888bc35bacc98f6c55af9339281c36629e9a8801
|
data/lib/access_policy.rb
CHANGED
@@ -24,6 +24,11 @@ module AccessPolicy
|
|
24
24
|
render json: res_json, status: 403
|
25
25
|
end
|
26
26
|
end
|
27
|
+
def generate_message_response_json(message)
|
28
|
+
response_data = {}
|
29
|
+
response_data['message'] = message
|
30
|
+
response_data
|
31
|
+
end
|
27
32
|
def get_rules(parent_key,request_url)
|
28
33
|
policy_master = policy_data()
|
29
34
|
eligible_rules = []
|
data/user_access_manager.gemspec
CHANGED
@@ -21,4 +21,5 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
spec.add_development_dependency 'jsonpath', '~> 1.0', '>= 1.0.6'
|
24
|
+
spec.add_dependency 'jsonpath', '~> 1.0', '>= 1.0.6'
|
24
25
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: user_access_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MijanurR
|
@@ -30,6 +30,26 @@ dependencies:
|
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.0.6
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: jsonpath
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '1.0'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 1.0.6
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '1.0'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 1.0.6
|
33
53
|
description:
|
34
54
|
email:
|
35
55
|
- sk.mijanur.rahaman@mettletech.in
|