authpwn_rails 0.14.2 → 0.14.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
  SHA1:
3
- metadata.gz: 5c56c44cfe9c778f80d1a6aa1ff6d4c4cbdb4be4
4
- data.tar.gz: 46ac32e85072239a83ce8cb997d988deb776af66
3
+ metadata.gz: cc8216974a3bf1143ac13b338b9c4037075138f5
4
+ data.tar.gz: 436967faedbd3db9e2914686e72c25e7bff9efe0
5
5
  SHA512:
6
- metadata.gz: a0d4e3563d5e3e3019fc8587af6fe2dd55c19edd3e75662e6124c67e555b4300a936a9c37be33c434263fb1b7cf19bf387ad687c37a6f1cf888fcc4df8b16ec2
7
- data.tar.gz: 455ccfab2e29a549d552592b6edd15b588c32b15c413e6908ece34c76350b3ccb4dbbcb4efcf72bdce34e440ed2be84e0d0737d51a871aad278849397d7a6cda
6
+ metadata.gz: b86272b9f314929400ea85547a975c0ac168ae096dcc90a8d1dbecbe58be456068d5df8103ac0c26581ceac0832ce06a0258efec03a65b8546513695734c1ed5
7
+ data.tar.gz: 114d8a0a0baabd93f021c11ff05d174b9d92e41a929ac7532ea568b9c9a7f65cbafa5c9bc0610cf5ffa0af5d95fb2b38382c696944ea9180c28c8ed6484120c7
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.14.2
1
+ 0.14.3
@@ -20,7 +20,7 @@ class Email < ::Credential
20
20
  alias_attribute :email, :name
21
21
  validates :name, format: /\A[A-Za-z0-9.+_]+@[^@]*\.(\w+)\Z/,
22
22
  presence: true, length: 1..128, uniqueness: { scope: [:type],
23
- message: 'This e-mail address is already claimed by an account' }
23
+ message: 'is already used by another account' }
24
24
 
25
25
  # '1' if the user proved ownership of the e-mail address.
26
26
  validates :key, presence: true, inclusion: { in: ['0', '1'] }
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "authpwn_rails"
8
- s.version = "0.14.2"
8
+ s.version = "0.14.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Victor Costan"]
@@ -62,7 +62,8 @@ class EmailCredentialTest < ActiveSupport::TestCase
62
62
  test 'email uniqueness' do
63
63
  @credential.email = credentials(:john_email).email
64
64
  assert !@credential.valid?
65
- assert @credential.errors[:name].any? { |m| /already claimed/i =~ m },
65
+ assert @credential.errors[:name].
66
+ any? { |m| /already used by another/i =~ m },
66
67
  'Validation errors include custom uniqueness error'
67
68
  assert !@credential.errors[:name].
68
69
  any? { |m| m == 'has already been taken' },
@@ -50,7 +50,7 @@ class EmailFieldTest < ActiveSupport::TestCase
50
50
  @user.email = @john.email
51
51
  assert !@user.valid?, 'Using existent e-mail'
52
52
  assert_not_nil @user.errors[:email], 'No validation errors on e-mail'
53
- assert @user.errors[:email].any? { |m| /already claimed/i =~ m },
53
+ assert @user.errors[:email].any? { |m| /already used by another/i =~ m },
54
54
  'E-mail validation errors include uniqueness error'
55
55
  end
56
56
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authpwn_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.2
4
+ version: 0.14.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Costan