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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b0f416354ddcd755e6d4a26dda1590d0f81bf1cb
4
- data.tar.gz: 18df190b39fecafd5129828ccf6eeeea7638e6c3
3
+ metadata.gz: 8db2fa0b8656df8b9ec1ce4af61eab69eb48a841
4
+ data.tar.gz: e900fb1380b019de0f3ea52254f090b333895c90
5
5
  SHA512:
6
- metadata.gz: 278508d766429eaf958f10648019460937e100341d481bf47f6c08cb9f41ffbda1398c716932a548e9d54c1d144d4875631d5414736167678277ada616dbb715
7
- data.tar.gz: 1360631b02b221c9903a0b9813e2bbe4bb1ce9dd2deec306c681e31be49fa87c64c536794f2f4aebbf916f244056926d39026fccabb0eb2112c68a7dbae6af3f
6
+ metadata.gz: 33bbed5b8577f97984de4c2aac31e0e73fb7656ae996a836c64d1bf46ea309ff3051f3d92008058d92c5bfe05106320c90293fae690711645bd5df85c82d46d6
7
+ data.tar.gz: c8052d8aa09ef9d1f349d3633a421b8c0c5bbf870170c4f64dd9c984b63ac98b3a8c7db1278de0780f24f5feef7bddfe33f0487f8771ab25442aea6073c669cb
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## Challah 1.2.8
2
+
3
+ * Localize invalid email message [PR #15](https://github.com/jdtornow/challah/pull/15) @thewatts
4
+
1
5
  ## Challah 1.2.7
2
6
 
3
7
  * Gem updates [PR #14](https://github.com/jdtornow/challah/pull/14) @philtr
@@ -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] || 'is not a valid email address')
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
@@ -1,3 +1,3 @@
1
1
  module Challah
2
- VERSION = "1.2.7" unless defined?(::Challah::VERSION)
2
+ VERSION = "1.2.8" unless defined?(::Challah::VERSION)
3
3
  end
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.7
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-02-25 00:00:00.000000000 Z
13
+ date: 2015-04-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: highline