password_strength 0.4.0 → 0.4.1

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: eb271520f8e1e9f75c210e2619ce81c63982b014
4
- data.tar.gz: a7b360fded5d8808dc8eb7f910375b01e952cda5
3
+ metadata.gz: ac4e6d055b4d0ab0540abc95fc4e2ba16403b215
4
+ data.tar.gz: 1e077cdf0a350ef189e28a5daa6340478c5358fd
5
5
  SHA512:
6
- metadata.gz: 6973d5426f558cdb89a9e57e2cee7579a3b1413d3a3f1f8b874ba25ec1fd5934c7dd9ccc3fb9806129850f521402e3f2cdf12d6bcbdd55f441abeacc6b3160a0
7
- data.tar.gz: 8683f5d04cc022c6f0c1b49345ebc626d130a88ce6d83385abaf75ace78b8b41fcb7a3c90ce650d09afa8ecd77e8ffb9536c223ba6c066a7f13ea85ff9e2fd24
6
+ metadata.gz: ba9036a1ece3f16d0f81db4210bd0465a2d4f7b20a6d11a429f1dfaba86e8c65db01011ed5ae320e0a6dd411b5f588f21c620e147b4d82307e1ac25e25239b6d
7
+ data.tar.gz: 61d95581e777bfb44deac202034584e0145b201fe18726bdabfd5515f6e37fe2d03ac86382286a1d70038f26079230d0bdf5e440a1613e567e08d9becc22f6a3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- password_strength (0.4.0)
4
+ password_strength (0.4.1)
5
5
  activerecord
6
6
 
7
7
  GEM
@@ -21,6 +21,8 @@ module PasswordStrength
21
21
  # The current test status. Can be +:weak+, +:good+, +:strong+ or +:invalid+.
22
22
  attr_reader :status
23
23
 
24
+ # The ActiveRecord instance.
25
+ # It only makes sense if you're creating a custom ActiveRecord validator.
24
26
  attr_reader :record
25
27
 
26
28
  # Set what characters cannot be present on password.
@@ -222,7 +224,6 @@ module PasswordStrength
222
224
  end
223
225
 
224
226
  def repetitions(text, size) # :nodoc:
225
- text = text.mb_chars
226
227
  count = 0
227
228
  matches = []
228
229
 
@@ -2,7 +2,7 @@ module PasswordStrength
2
2
  module Version # :nodoc: all
3
3
  MAJOR = 0
4
4
  MINOR = 4
5
- PATCH = 0
5
+ PATCH = 1
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: password_strength
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira