mumuki-domain 6.4.2 → 6.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/concerns/with_slug.rb +5 -0
- data/app/models/user.rb +1 -0
- data/lib/mumuki/domain/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdae8f084b4e432d998e710bb4abac76abbc7ffa0ee7c2c960c3e6ffe1f01616
|
4
|
+
data.tar.gz: c90a65e6d097193b4d95303892ad725578b5ee8c4c4d62ffdfd0d03471cb9c9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e926415ae433e892b3d73961193fdb98c907d270faadefaa2036f9469b4fa62b95f9f845899aa9065cc175f7a6b82304cf35f7ca02138b822057088121a23c5
|
7
|
+
data.tar.gz: 11397f01df4e1776e68e863341d367863c7e100d75aba8d93b81eb3e5a7b9aa6554ef3e63c1ce19659cc66fb079ac275fa97f4827ba3148a81339006073f76e9
|
@@ -5,6 +5,7 @@ module WithSlug
|
|
5
5
|
included do
|
6
6
|
validates_presence_of :slug
|
7
7
|
validates_uniqueness_of :slug
|
8
|
+
before_create :normalize_slug!
|
8
9
|
end
|
9
10
|
|
10
11
|
def slug_parts
|
@@ -12,6 +13,10 @@ module WithSlug
|
|
12
13
|
{organization: org, repository: repo}
|
13
14
|
end
|
14
15
|
|
16
|
+
def normalize_slug!
|
17
|
+
self.slug = self.slug.to_mumukit_slug.normalize.to_s
|
18
|
+
end
|
19
|
+
|
15
20
|
## Copy and Rebase
|
16
21
|
|
17
22
|
def rebase!(organization)
|
data/app/models/user.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumuki-domain
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.4.
|
4
|
+
version: 6.4.3
|
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-02-
|
11
|
+
date: 2019-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '7.
|
33
|
+
version: '7.6'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '7.
|
40
|
+
version: '7.6'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: mumukit-assistant
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|