mumukit-platform 2.6.1 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mumukit/platform/organization_mapping.rb +8 -0
- data/lib/mumukit/platform/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f969d445c252af08ede5006b769d61be8422a2593a08b33e443b4af760bcd445
|
4
|
+
data.tar.gz: 84c8377aa68cc79380b9add72056543dec575ad8aedc5a83be681157b66e24e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9f5fe8e06f49ffbe101c470e3c821b02288571547278401798d4ab3668b46a4c96e7eb20a3064a5af3a6dc036ab09f1a3787759f8e3c94fc9a15947c49ab300
|
7
|
+
data.tar.gz: 3f993c297e4a6327f8fdfb52a5589135f5ab08cc1190eda7fc6b58213a4ad462445b6bd185657692c055cdc8abd4be6d790decfd5b60b5821dba990a74d03804
|
@@ -34,6 +34,10 @@ module Mumukit::Platform::OrganizationMapping
|
|
34
34
|
def self.organic_uri(uri, organization)
|
35
35
|
uri.subdominate(organization)
|
36
36
|
end
|
37
|
+
|
38
|
+
def self.path_under_namespace?(_organization_name, path, namespace)
|
39
|
+
path.start_with? "/#{namespace}/"
|
40
|
+
end
|
37
41
|
end
|
38
42
|
|
39
43
|
module Path
|
@@ -52,5 +56,9 @@ module Mumukit::Platform::OrganizationMapping
|
|
52
56
|
def self.organic_uri(uri, organization)
|
53
57
|
uri.subroute(organization)
|
54
58
|
end
|
59
|
+
|
60
|
+
def self.path_under_namespace?(organization_name, path, namespace)
|
61
|
+
path.start_with? "/#{organization_name}/#{namespace}/"
|
62
|
+
end
|
55
63
|
end
|
56
64
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumukit-platform
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Leonardo Bulgarelli
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mumukit-nuntius
|