saucy 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/app/models/signup.rb +5 -1
- data/lib/saucy/account.rb +1 -1
- data/spec/models/account_spec.rb +0 -1
- data/spec/models/signup_spec.rb +0 -1
- metadata +3 -3
data/CHANGELOG.md
CHANGED
data/app/models/signup.rb
CHANGED
@@ -97,7 +97,11 @@ class Signup
|
|
97
97
|
private
|
98
98
|
|
99
99
|
def short_name
|
100
|
-
|
100
|
+
if email.present?
|
101
|
+
email.split(/@/).first
|
102
|
+
elsif user && user.email.present?
|
103
|
+
existing_user.email.split(/@/).first
|
104
|
+
end
|
101
105
|
end
|
102
106
|
|
103
107
|
def populate_additional_account_fields
|
data/lib/saucy/account.rb
CHANGED
data/spec/models/account_spec.rb
CHANGED
@@ -8,7 +8,6 @@ describe Account do
|
|
8
8
|
it { should have_many(:projects) }
|
9
9
|
it { should belong_to(:plan) }
|
10
10
|
|
11
|
-
it { should validate_uniqueness_of(:name) }
|
12
11
|
it { should validate_uniqueness_of(:keyword) }
|
13
12
|
it { should validate_presence_of( :name) }
|
14
13
|
it { should validate_presence_of(:keyword) }
|
data/spec/models/signup_spec.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: saucy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 3
|
10
|
+
version: 0.5.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- thoughtbot, inc.
|