phalanx 0.2.0 → 0.2.1
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/phalanx/version.rb +1 -1
- data/schema.json +58 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eab054555fd8d409149a585938978ed01daf9e99b65778701e9f6bbe3a89c7e2
|
|
4
|
+
data.tar.gz: 3b3a29718a46776210c065fe974c81d819c0d7e961d71c4b49c1fadd6f91109c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 771dfbe7b9df76e95b5a705381d6ffddb90b8ad59d6801934d05a5edcb2ccc42fca0a75cb91b6707fdfc490f37918cdca3e4b64c98ab3c150fd0bdf0c5b019af
|
|
7
|
+
data.tar.gz: 6735007951071798049f20cc167a3dff5486fc3dfd30741ccf9fa8a62b8d5654eb6b968478c5b20d37d3294d176792408f4cb0680b64dac7dc675e56e4ee8c2e
|
data/lib/phalanx/version.rb
CHANGED
data/schema.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-06/schema#",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"name": "phalanx.PermissionGroup",
|
|
5
|
+
"properties": {
|
|
6
|
+
"subject": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"description": "The subject of this permission group"
|
|
9
|
+
},
|
|
10
|
+
"scope": {
|
|
11
|
+
"type": ["string", "null"],
|
|
12
|
+
"description": "An optional default scope for permissions in this group"
|
|
13
|
+
},
|
|
14
|
+
"permissions": {
|
|
15
|
+
"type": "object",
|
|
16
|
+
"description": "The permissions in the group",
|
|
17
|
+
"patternProperties": {
|
|
18
|
+
"^[a-z0-9_\\-]+(\\.[a-z0-9_\\-]+)*$": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"name": "phalanx.Permission",
|
|
21
|
+
"properties": {
|
|
22
|
+
"name": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "The name of the permission"
|
|
25
|
+
},
|
|
26
|
+
"scope": {
|
|
27
|
+
"type": ["string", "null"],
|
|
28
|
+
"description": "An optional scope for this permission"
|
|
29
|
+
},
|
|
30
|
+
"description": {
|
|
31
|
+
"type": ["string", "null"],
|
|
32
|
+
"description": "The description of the permission"
|
|
33
|
+
},
|
|
34
|
+
"implies": {
|
|
35
|
+
"description": "The seto of permission that having this permission implies",
|
|
36
|
+
"oneOf": [
|
|
37
|
+
{
|
|
38
|
+
"type": "array",
|
|
39
|
+
"items": {
|
|
40
|
+
"type": "string"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"type": "null"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"required": ["name"]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"required": ["subject", "permissions"]
|
|
58
|
+
}
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: phalanx
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Minty Fresh
|
|
@@ -87,6 +87,7 @@ files:
|
|
|
87
87
|
- lib/phalanx/permission_not_found.rb
|
|
88
88
|
- lib/phalanx/version.rb
|
|
89
89
|
- lib/tasks/phalanx_tasks.rake
|
|
90
|
+
- schema.json
|
|
90
91
|
homepage: https://github.com/mintyfresh/phalanx
|
|
91
92
|
licenses:
|
|
92
93
|
- MIT
|