mumukit-login 5.3.1 → 5.3.2

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: 92ada9bb7de8241a03ed231a349d17e96579c68b880c3ae97924a65c6fdd0e0e
4
- data.tar.gz: d1f3ff23e3898e8965b0c813a82029fc992c93e6eecb14b376f2e0919dd4b7af
3
+ metadata.gz: 1e36fd2e076cfae5452b64673fb12a977f0b55e7d39d393268d36a3ab92a44c7
4
+ data.tar.gz: be2b007c7cad4d8a6ccef8eb04a591d6d2668fa03ad03ee9c9811d738d947991
5
5
  SHA512:
6
- metadata.gz: c737f741258e9531e6341da32a890e4cdd8da9fa43e6b56c9fa9ea24124c047bad761ea96aa6d83a674a507894ac94b069124a0ae756c832905a5d255911d8db
7
- data.tar.gz: 2ba70d961f232225525cd6c11655c6ccf2eaae844eb3e069e8f28c8499063c349e5dd63bfeb608b29a64f22add8af6461d14c00a2eadcb00e2d80aa7c4b9f7c2
6
+ metadata.gz: 4a2b6c4add2e22f9584d16580da9580eb37d7dc6eb48dec741a3bb67ca6d8dfa2208954f4bad68c67dfefec82f87329403dcebe337913664e6aee392d1f9580b
7
+ data.tar.gz: 153b01a9d3b5411bd57a5bbdab4cde35a84f395c1b72ead874208011da52673f309c6a4edede805bc102c9d76f62d1ca84ca94858f0356b1cd275768ea76e61a
@@ -14,7 +14,7 @@ class Mumukit::Login::Provider::Base
14
14
  end
15
15
 
16
16
  def login_path(controller)
17
- "/login?origin=#{controller.request.path}"
17
+ create_uri '/login', origin: create_uri(controller.request.path, controller.request.params)
18
18
  end
19
19
 
20
20
  def auth_path
@@ -40,4 +40,12 @@ class Mumukit::Login::Provider::Base
40
40
  def header_html(*)
41
41
  nil
42
42
  end
43
- end
43
+
44
+ private
45
+
46
+ def create_uri(path, query_values)
47
+ uri = Addressable::URI.heuristic_parse path
48
+ uri.query_values = query_values if query_values.present?
49
+ uri.to_s
50
+ end
51
+ end
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Login
3
- VERSION = '5.3.1'
3
+ VERSION = '5.3.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumukit-login
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.1
4
+ version: 5.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Leonardo Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-19 00:00:00.000000000 Z
11
+ date: 2018-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler