challah 1.2.7 → 1.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/config/locales/en.yml +2 -1
- data/lib/challah/validators/email_validator.rb +2 -2
- data/lib/challah/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8db2fa0b8656df8b9ec1ce4af61eab69eb48a841
|
4
|
+
data.tar.gz: e900fb1380b019de0f3ea52254f090b333895c90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33bbed5b8577f97984de4c2aac31e0e73fb7656ae996a836c64d1bf46ea309ff3051f3d92008058d92c5bfe05106320c90293fae690711645bd5df85c82d46d6
|
7
|
+
data.tar.gz: c8052d8aa09ef9d1f349d3633a421b8c0c5bbf870170c4f64dd9c984b63ac98b3a8c7db1278de0780f24f5feef7bddfe33f0487f8771ab25442aea6073c669cb
|
data/CHANGELOG.md
CHANGED
data/config/locales/en.yml
CHANGED
@@ -2,6 +2,7 @@ en:
|
|
2
2
|
activerecord:
|
3
3
|
errors:
|
4
4
|
messages:
|
5
|
+
invalid_email: 'is not a valid email address.'
|
5
6
|
invalid_password: 'is not a valid password. Please enter at least 4 letters or numbers.'
|
6
7
|
no_match_password: 'does not match the confirmation password.'
|
7
8
|
invalid_key: 'is not valid. Please use only lower cased letters and underscores.'
|
@@ -12,4 +13,4 @@ en:
|
|
12
13
|
login: "Log in"
|
13
14
|
signin: "Sign in"
|
14
15
|
create:
|
15
|
-
failed_login: "There was a problem signing you in. Please check your username and password and try again."
|
16
|
+
failed_login: "There was a problem signing you in. Please check your username and password and try again."
|
@@ -9,7 +9,7 @@ module Challah
|
|
9
9
|
# Called automatically by ActiveModel validation..
|
10
10
|
def validate_each(record, attribute, value)
|
11
11
|
unless value =~ EmailValidator.pattern
|
12
|
-
record.errors.add(attribute, options[:message] ||
|
12
|
+
record.errors.add(attribute, options[:message] || :invalid_email)
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
@@ -18,4 +18,4 @@ module Challah
|
|
18
18
|
/\b[A-Z0-9._%a-z\-]+@(?:[A-Z0-9a-z\-]+\.)+[A-Za-z]{2,}\z/
|
19
19
|
end
|
20
20
|
end
|
21
|
-
end
|
21
|
+
end
|
data/lib/challah/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: challah
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Tornow
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-04-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: highline
|