arkaan 0.7.22 → 0.7.23
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/arkaan/monitoring/route.rb +4 -0
- data/lib/arkaan/permissions/group.rb +3 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6c658946b5f1d2a367b7fb9f09c31b3896e06e8f
|
|
4
|
+
data.tar.gz: 6dba1422e17ac11d0d8d6206f56b2426f1739001
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1f548c88e0e5faa0ace6ac6afe7fa031242b27ccbb90ee1ed51f398f20da933e7a4dbb0876bb18025d0261261aa3c366cee3beb51beffefa5f52cf0d99b6b5dc
|
|
7
|
+
data.tar.gz: 7fc48d634a81417a1b685f7c190669debcbc3e0ef329b310b52f0f4d1d9e275937e051124b18c13eb57fa31d3829446b0401173216702a367b63421957bceb32
|
|
@@ -19,6 +19,10 @@ module Arkaan
|
|
|
19
19
|
# @return [Arkaan::Monitoring::Service] the service in which this route is declared.
|
|
20
20
|
belongs_to :service, class_name: 'Arkaan::Monitoring::Service', inverse_of: :routes
|
|
21
21
|
|
|
22
|
+
# @!attribute [rw] groups
|
|
23
|
+
# @return [Array<Arkaan::Permissions::Group>] the groups having permission to access this route.
|
|
24
|
+
has_and_belongs_to_many :groups, class_name: 'Arkaan::Permissions::Group', inverse_of: :groups
|
|
25
|
+
|
|
22
26
|
validates :path,
|
|
23
27
|
format: {with: /\A(\/|((\/:?[a-zA-Z0-9]+)+))\z/, message: 'route.path.format', if: :path?}
|
|
24
28
|
|
|
@@ -13,6 +13,9 @@ module Arkaan
|
|
|
13
13
|
# @!attribute [rw] rights
|
|
14
14
|
# @return [Array<Arkaan::Permissions::Right>] the rights granted by belonging to this group.
|
|
15
15
|
has_and_belongs_to_many :rights, class_name: 'Arkaan::Permissions::Right', inverse_of: :groups
|
|
16
|
+
# @!attribute [rw] routes
|
|
17
|
+
# @return [Array<Arkaan::Monitoring::Route>] the routes this group can access in the API.
|
|
18
|
+
has_and_belongs_to_many :routes, class_name: 'Arkaan::Monitoring::Route', inverse_of: :groups
|
|
16
19
|
|
|
17
20
|
make_sluggable 'group'
|
|
18
21
|
end
|