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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/phalanx/version.rb +1 -1
  3. data/schema.json +58 -0
  4. metadata +2 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3cae5ca06701db7bcbae49089f451412001f4c9f87f178d13b4ae9750a44a35
4
- data.tar.gz: 738418d35debd75d1f09a5707b237bb1bd946454c0dac2f5094b8228fd3bcc22
3
+ metadata.gz: eab054555fd8d409149a585938978ed01daf9e99b65778701e9f6bbe3a89c7e2
4
+ data.tar.gz: 3b3a29718a46776210c065fe974c81d819c0d7e961d71c4b49c1fadd6f91109c
5
5
  SHA512:
6
- metadata.gz: 46825966362b53eb137632b340291404f2a4a960476c4d9a202869a8b621a990820107fd307be08b029841b1b48405054b6794b3aa4f9d1cb79e6671ed2acdc8
7
- data.tar.gz: d4e567ef908b83eac76aaf19aa1ea2fe1079eb52240faefceef4308f4c5876b761b9fa5896858cdac288ceddb237ba6d7efd60d6e2a66be4b1cc74b28e192f01
6
+ metadata.gz: 771dfbe7b9df76e95b5a705381d6ffddb90b8ad59d6801934d05a5edcb2ccc42fca0a75cb91b6707fdfc490f37918cdca3e4b64c98ab3c150fd0bdf0c5b019af
7
+ data.tar.gz: 6735007951071798049f20cc167a3dff5486fc3dfd30741ccf9fa8a62b8d5654eb6b968478c5b20d37d3294d176792408f4cb0680b64dac7dc675e56e4ee8c2e
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Phalanx
5
- VERSION = '0.2.0'
5
+ VERSION = '0.2.1'
6
6
  end
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.0
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