mumukit-platform 2.4.0 → 2.4.1
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/version.rb +1 -1
- data/lib/mumukit/platform/web_framework.rb +8 -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: b705fef03685dc7d3b5083349de1c6aa7cc91d22a47883e6b01e8af6f3ea1742
|
4
|
+
data.tar.gz: d08acf40661212466a0148e298036c7fb2ff7e5b3f1d4430ea0d57e4f04ba62e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 113ee47f5a39398145f1e3f8e674574a36fa848067274404b0913d4756566f876309f994433d1b2f24015d0b1d4efde62cbf2ae30bc0ac0979430fb9d87fc75a
|
7
|
+
data.tar.gz: 3bef947215e911adc231976b70a021f059b4410d34ce1047783826182f378413934a1df03bb074fd2a64fe692c2a520953fc97532203b83b530831de032630f1
|
@@ -15,7 +15,14 @@ module Mumukit::Platform::WebFramework
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def self.configure_tenant_path_routes!(mapper, &block)
|
18
|
-
mapper.scope '/:tenant',
|
18
|
+
mapper.scope '/:tenant', tenant_scope_options, &block
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.tenant_scope_options
|
22
|
+
{
|
23
|
+
defaults: { tenant: lazy_string { Mumukit::Platform.current_organization_name } },
|
24
|
+
constraints: { tenant: Mumukit::Platform::Organization::Helpers.valid_name_regex }
|
25
|
+
}
|
19
26
|
end
|
20
27
|
end
|
21
28
|
|
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.
|
4
|
+
version: 2.4.1
|
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-
|
11
|
+
date: 2018-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mumukit-nuntius
|