mumukit-platform 2.4.0 → 2.4.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eaafde4ae6eab03ac543614f4d26ccbd1ae14480a696337d03289720b47031ad
4
- data.tar.gz: 712915fd127e3c3245c7faa51cd0f4e3ea5b724fad857905775f532f7618ee99
3
+ metadata.gz: b705fef03685dc7d3b5083349de1c6aa7cc91d22a47883e6b01e8af6f3ea1742
4
+ data.tar.gz: d08acf40661212466a0148e298036c7fb2ff7e5b3f1d4430ea0d57e4f04ba62e
5
5
  SHA512:
6
- metadata.gz: 2f5ea59619865095e3418e8bf96143f02b88a416100de9157122797b5c527e803a4d1437c6b3b3c5987063f5458a1b7ec65903ddcd73c6df5f96e9febade971c
7
- data.tar.gz: 4944f01569251bebea05f1ac7b6e9d3950695f403f0e18e7cc956e5520c34f0fd7e1085d9ccd7a4b26e2864d1ca1231ae51504d1bcfcbb3d9817742aee2122ca
6
+ metadata.gz: 113ee47f5a39398145f1e3f8e674574a36fa848067274404b0913d4756566f876309f994433d1b2f24015d0b1d4efde62cbf2ae30bc0ac0979430fb9d87fc75a
7
+ data.tar.gz: 3bef947215e911adc231976b70a021f059b4410d34ce1047783826182f378413934a1df03bb074fd2a64fe692c2a520953fc97532203b83b530831de032630f1
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Platform
3
- VERSION = '2.4.0'
3
+ VERSION = '2.4.1'
4
4
  end
5
5
  end
@@ -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', defaults: {tenant: lazy_string { Mumukit::Platform.current_organization_name }}, &block
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.0
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-07-31 00:00:00.000000000 Z
11
+ date: 2018-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mumukit-nuntius