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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f42d78680220628b11a38c17a920bdaf60ab8643e432b0e6cdf01f1c16ef7bd7
4
- data.tar.gz: fb10d6cef42063207c021baf8a739bdd3c0cb46869fb23cf00049c441b69b6b3
3
+ metadata.gz: f969d445c252af08ede5006b769d61be8422a2593a08b33e443b4af760bcd445
4
+ data.tar.gz: 84c8377aa68cc79380b9add72056543dec575ad8aedc5a83be681157b66e24e5
5
5
  SHA512:
6
- metadata.gz: d217e061ccf40c8119a86436efce03f4058785c116a9031b08135edc3767cf1fe04fb4e48ba3cb630ccf4bc933b4bea88f5250b73f3e3f53be0b88a9d8f17f92
7
- data.tar.gz: eeff3b676f93553c98527ada1782018dfef406abc7ddc60a59c2ce05a9928dd07af18d6af8afdaaf76458d82f779ad49d4b93727fa6d5999c1fa5a9e52d3f3d2
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
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Platform
3
- VERSION = '2.6.1'
3
+ VERSION = '2.7.0'
4
4
  end
5
5
  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.6.1
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-01 00:00:00.000000000 Z
11
+ date: 2018-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mumukit-nuntius