mumukit-platform 7.0.0 → 7.0.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 +4 -4
- data/lib/mumukit/platform/application.rb +1 -1
- data/lib/mumukit/platform/uri.rb +5 -5
- 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: 2ceea0a25894aaab70d6c56aa1b1103ffb601af71a82c528c48d6fbbc13ead9f
|
4
|
+
data.tar.gz: c3ad6e6823687a1cbd706516ffb9b817859f4c2ec821dbdfbb454512702066cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85d2db7b9590924e59650eb4ccea66f83b3081a56556472ff511bd5f83dba44d68b3341e100befe511712111ed1493646dae07672a3b5348de448265df01da5a
|
7
|
+
data.tar.gz: a2acb72616d62179c9ba4c6da847eb7b51962fa64748d01e310305b5483cc4bd9ce7f61cc13d893fd599254b3bf26fe99a7b6ef88548e4a8bc30151bf3c5caef
|
@@ -33,7 +33,7 @@ class Mumukit::Platform::Application
|
|
33
33
|
# coupled to the fact that applications can only rebuild urls
|
34
34
|
# in fragmented-mode
|
35
35
|
if uri.fragment
|
36
|
-
uri.to_s + relative_path(path)
|
36
|
+
uri.to_s.chomp('/') + '/' + relative_path(path)
|
37
37
|
else
|
38
38
|
uri.url_for(relative_path path)
|
39
39
|
end
|
data/lib/mumukit/platform/uri.rb
CHANGED
@@ -8,13 +8,13 @@ class URI::HTTP
|
|
8
8
|
rebuild({host: new_host}, **options)
|
9
9
|
end
|
10
10
|
|
11
|
-
def tenantize(route,
|
12
|
-
if
|
13
|
-
new_path =
|
11
|
+
def tenantize(route, fragmented: false)
|
12
|
+
if fragmented && fragment
|
13
|
+
new_path = route
|
14
14
|
else
|
15
|
-
new_path = "#{path}/#{route}/"
|
15
|
+
new_path = "#{path.chomp('/')}/#{route}/"
|
16
16
|
end
|
17
|
-
rebuild({path: new_path},
|
17
|
+
rebuild({path: new_path}, fragmented: fragmented)
|
18
18
|
end
|
19
19
|
|
20
20
|
def rebuild(updates, fragmented: false)
|
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: 7.0.
|
4
|
+
version: 7.0.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: 2021-03-
|
11
|
+
date: 2021-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mumukit-nuntius
|