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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2dc4b25b056ad48da30b2a2008ccd242e8585d0e7d41ecef6157eafb5ef10ad6
4
- data.tar.gz: 741c3c4883cd6790f0cbe052282ccd85a54d0990beb58a8d4bc1d02a8397e62e
3
+ metadata.gz: bdae8f084b4e432d998e710bb4abac76abbc7ffa0ee7c2c960c3e6ffe1f01616
4
+ data.tar.gz: c90a65e6d097193b4d95303892ad725578b5ee8c4c4d62ffdfd0d03471cb9c9b
5
5
  SHA512:
6
- metadata.gz: f11f63a1716512dd667e9a184c2dc34ffaa1f72bb180d5f7a98e7be22e84320c797eef80ed272980274015b33388d02299d3f9a4e63e5d0102013740a3789440
7
- data.tar.gz: e44584d34112d824cc584b14a266df1b55be8b40c774f9f482d1f12c6d93e501f3a323ce9b32fac043740c13bcfcbda861d6a720aef0f775de1fa2d80531472f
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)
@@ -32,6 +32,7 @@ class User < ApplicationRecord
32
32
  after_initialize :init
33
33
 
34
34
  before_validation :set_uid!
35
+ validates :uid, presence: true
35
36
 
36
37
  def last_lesson
37
38
  last_guide.try(:lesson)
@@ -1,5 +1,5 @@
1
1
  module Mumuki
2
2
  module Domain
3
- VERSION = '6.4.2'
3
+ VERSION = '6.4.3'
4
4
  end
5
5
  end
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.2
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-12 00:00:00.000000000 Z
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.5'
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.5'
40
+ version: '7.6'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: mumukit-assistant
43
43
  requirement: !ruby/object:Gem::Requirement