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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc16320fa7c0766234a7fdeb72d8d72c35a0cdfc6958047b9c9c4ca914e25cdd
4
- data.tar.gz: bffbe73adfd28218177ffbc45e7a0ffe9eee3423515bfe9187e6e252769102ea
3
+ metadata.gz: 01ac3448d12e710d6fdbd6808f21921969b4fd8ac0cc47627f42143f7956a7a4
4
+ data.tar.gz: 527cfc51106410a083b53cdbfe37acf96efa010da457494c877096197ef67f43
5
5
  SHA512:
6
- metadata.gz: a61f937372d9309e2ed7a39e47d91262e0708b0fbeca8f8b4db34f43b3d45a1750c7e61c6ac8854e306896cff1342b4092b64e2b686e4473cc5df0689c58d62f
7
- data.tar.gz: 2338aa6727863a3d6a100aa25bf97c5c2c2286d2ec68f7444d644a6a32472b399823ea2269ca243842212eb769d70901900d53c93336e2fb0764abf8869b03f4
6
+ metadata.gz: d9c984f5b72789a6891fb4869ca4f870dbb432cd02b7a18885934d118e4385f02f2cfc77d193a41639fd08bf9bb11312d664312a4d9b82d8c316eaacaf93a81f
7
+ data.tar.gz: 8cbf58c3622521ae2ca8d3c28d4164f1bb68b32143555ce996ae7312b613f1b92f15982c414beaf49fb30e9d4906e4f140fc15ed1a0b95c76fad23219000ef54
@@ -51,8 +51,8 @@ module Mumukit::Auth
51
51
  end
52
52
 
53
53
  def normalize!
54
- @first = @first.downcase
55
- @second = @second.downcase
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
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Auth
3
- VERSION = '7.6.1'
3
+ VERSION = '7.6.2'
4
4
  end
5
5
  end
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.1
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-06 00:00:00.000000000 Z
11
+ date: 2019-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler