mumukit-platform 7.0.0 → 7.0.1

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: 39a52de81a0b2c6efb83bcc9a7e23b8e59715c42f83cd667813ea00c34fe1880
4
- data.tar.gz: 6ba950cc3889ca4aedae2f48ad94c3011ebb8196bd57f8aed9ef48509a5f947c
3
+ metadata.gz: 2ceea0a25894aaab70d6c56aa1b1103ffb601af71a82c528c48d6fbbc13ead9f
4
+ data.tar.gz: c3ad6e6823687a1cbd706516ffb9b817859f4c2ec821dbdfbb454512702066cf
5
5
  SHA512:
6
- metadata.gz: 0c434715414edfa1af06bafe9a92e6c1a5fd23435e7c7408bc70005c84f90a7bc5512597c8f0aaa2188bb71aa12f60c5b1f610fdf59d21e2447e598184eb4d58
7
- data.tar.gz: f4142a30260afa2b54d7addb7fd48ffd4a523e71948f4243c4088043cad49851cdfe8549b1abc06ba9253701c4c7a54eb03e54e66dc501551116de4ae762682d
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
@@ -8,13 +8,13 @@ class URI::HTTP
8
8
  rebuild({host: new_host}, **options)
9
9
  end
10
10
 
11
- def tenantize(route, **options)
12
- if path.end_with? '/'
13
- new_path = "#{path}#{route}/"
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}, **options)
17
+ rebuild({path: new_path}, fragmented: fragmented)
18
18
  end
19
19
 
20
20
  def rebuild(updates, fragmented: false)
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Platform
3
- VERSION = '7.0.0'
3
+ VERSION = '7.0.1'
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: 7.0.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-03 00:00:00.000000000 Z
11
+ date: 2021-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mumukit-nuntius