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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2184d616ba0f1a7832a898adbe23ffffea1b5641b1a19bbb92b3c374228c594
4
- data.tar.gz: 2fc2621373b9425f4c2baf9c49f8a386177658622b5c544e7790b583e6d72f05
3
+ metadata.gz: 7fae029a744568e63e312645f27fdb78ef3b6b24fc14863b117dc1175b6c9d1a
4
+ data.tar.gz: 3d49186ebd74a9a309fd1a00894ec8a9226e1d5c629111ca73a14dafc5821771
5
5
  SHA512:
6
- metadata.gz: 5c72e3d088679ca3da202fba2f85ddb309a0e8a481e24610a39cf884a6d4df6a0937b1b70d6412b5cf76b9c209471f96a424739c30cd65e9ee61df5245b9b8dc
7
- data.tar.gz: b8216c0075d4d253ee2cb04fe261582bfd8d1f8c0ac46c905342509ceb179a223de6a4f35eb3de307c8a7e8e831c7a5e4c6535207508d9abbafc30977ef6ddbc
6
+ metadata.gz: b9779fcf2875efac6c2b3447486d091645044585f66e5e5b6ff40927e995353c52a7390fa810224cd3f56d0e61624354f075783741e17e909462257fdd941877
7
+ data.tar.gz: 792bf9a691717574406dbc9ba8636b74d69181f7ad6517b8733dbc9f448f7ce0ec42e76512a197e7a8ece3657de08bf0b91f9ad20aa67a880e89ee061b636d96
@@ -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
- end
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
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Auth
3
- VERSION = '7.4.0'
3
+ VERSION = '7.5.0'
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.4.0
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-10-14 00:00:00.000000000 Z
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.7
123
+ rubygems_version: 2.7.8
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: Library for authorizing mumuki requests