mumukit-auth 7.4.0 → 7.5.0
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 +5 -1
- data/lib/mumukit/auth/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fae029a744568e63e312645f27fdb78ef3b6b24fc14863b117dc1175b6c9d1a
|
4
|
+
data.tar.gz: 3d49186ebd74a9a309fd1a00894ec8a9226e1d5c629111ca73a14dafc5821771
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9779fcf2875efac6c2b3447486d091645044585f66e5e5b6ff40927e995353c52a7390fa810224cd3f56d0e61624354f075783741e17e909462257fdd941877
|
7
|
+
data.tar.gz: 792bf9a691717574406dbc9ba8636b74d69181f7ad6517b8733dbc9f448f7ce0ec42e76512a197e7a8ece3657de08bf0b91f9ad20aa67a880e89ee061b636d96
|
data/lib/mumukit/auth/slug.rb
CHANGED
@@ -27,6 +27,10 @@ module Mumukit::Auth
|
|
27
27
|
match self.second, second
|
28
28
|
end
|
29
29
|
|
30
|
+
def rebase(new_organizaton)
|
31
|
+
self.class.new new_organizaton, repository
|
32
|
+
end
|
33
|
+
|
30
34
|
def ==(o)
|
31
35
|
self.class == o.class && to_s == o.to_s
|
32
36
|
end
|
@@ -53,7 +57,7 @@ module Mumukit::Auth
|
|
53
57
|
first = hash[:first] || hash[:organization]
|
54
58
|
second = hash[:second] || hash[:repository] || hash[:course] || hash[:content]
|
55
59
|
new(first, second)
|
56
|
-
|
60
|
+
end
|
57
61
|
|
58
62
|
def self.join(*parts)
|
59
63
|
raise Mumukit::Auth::InvalidSlugFormatError, 'Slugs must have up to two parts' if parts.length > 2
|
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.
|
4
|
+
version: 7.5.0
|
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-
|
11
|
+
date: 2018-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
122
|
rubyforge_project:
|
123
|
-
rubygems_version: 2.7.
|
123
|
+
rubygems_version: 2.7.8
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: Library for authorizing mumuki requests
|