mumukit-auth 7.6.1 → 7.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mumukit/auth/slug.rb +6 -2
- data/lib/mumukit/auth/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: 01ac3448d12e710d6fdbd6808f21921969b4fd8ac0cc47627f42143f7956a7a4
|
4
|
+
data.tar.gz: 527cfc51106410a083b53cdbfe37acf96efa010da457494c877096197ef67f43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9c984f5b72789a6891fb4869ca4f870dbb432cd02b7a18885934d118e4385f02f2cfc77d193a41639fd08bf9bb11312d664312a4d9b82d8c316eaacaf93a81f
|
7
|
+
data.tar.gz: 8cbf58c3622521ae2ca8d3c28d4164f1bb68b32143555ce996ae7312b613f1b92f15982c414beaf49fb30e9d4906e4f140fc15ed1a0b95c76fad23219000ef54
|
data/lib/mumukit/auth/slug.rb
CHANGED
@@ -51,8 +51,8 @@ module Mumukit::Auth
|
|
51
51
|
end
|
52
52
|
|
53
53
|
def normalize!
|
54
|
-
@first = @first
|
55
|
-
@second = @second
|
54
|
+
@first = normalize_part @first
|
55
|
+
@second = normalize_part @second
|
56
56
|
self
|
57
57
|
end
|
58
58
|
|
@@ -104,6 +104,10 @@ module Mumukit::Auth
|
|
104
104
|
|
105
105
|
private
|
106
106
|
|
107
|
+
def normalize_part(slug_part)
|
108
|
+
slug_part.split('.').map(&:parameterize).join('.')
|
109
|
+
end
|
110
|
+
|
107
111
|
def match(pattern, part)
|
108
112
|
pattern == '_' || pattern == part
|
109
113
|
end
|
data/lib/mumukit/auth/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumukit-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.6.
|
4
|
+
version: 7.6.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: 2019-03-
|
11
|
+
date: 2019-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|