strong_password 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/CHANGELOG +1 -1
- data/Gemfile +3 -2
- data/README.md +4 -2
- data/lib/active_model/validations/password_strength_validator.rb +1 -1
- data/lib/strong_password/version.rb +1 -1
- data/strong_password.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4559a04254bce83f7f49ed741cacc81df19a55ca3b7512ffb8fbd63da5ec0a57
|
4
|
+
data.tar.gz: 2164536b2690a5946796f874b00db0a80228bb72c19f3d3437625a332a792fa9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75dbfd339fcf1c8a4082ff02bf5f8326a0299fcb600a93e2126e10a409abd3008002c5f705537710f40e9c9989d29fc3feb8ffa22b70c121fb81c60f363f9f23
|
7
|
+
data.tar.gz: ea1905e903579dc290b544e99476bbc88585cdff81c45c6e492969978bc465e4ce2e59e160a64c96c05fa16ebd98efc995d60bc196f3e30b5bcb53e289008d72
|
data/.gitignore
CHANGED
data/CHANGELOG
CHANGED
data/Gemfile
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
|
+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
2
3
|
|
3
4
|
gemspec
|
4
5
|
|
@@ -13,6 +14,6 @@ end
|
|
13
14
|
|
14
15
|
gem "rails", rails
|
15
16
|
group :test do
|
16
|
-
gem "simplecov",
|
17
|
-
gem "simplecov-console",
|
17
|
+
gem "simplecov", require: false
|
18
|
+
gem "simplecov-console", require: false
|
18
19
|
end
|
data/README.md
CHANGED
@@ -19,7 +19,9 @@ NOTE: StrongPassword requires the use of Ruby 2.0. Upgrade if you haven't alrea
|
|
19
19
|
|
20
20
|
Add this line to your application's Gemfile:
|
21
21
|
|
22
|
-
|
22
|
+
```ruby
|
23
|
+
gem 'strong_password', '~> 0.0.9'
|
24
|
+
```
|
23
25
|
|
24
26
|
And then execute:
|
25
27
|
|
@@ -81,7 +83,7 @@ en:
|
|
81
83
|
StrongPassword can also be used standalone if you need to. There are a few helper methods for determining whether a
|
82
84
|
password is strong or not. You can also directly access the entropy calculations if you want.
|
83
85
|
|
84
|
-
```
|
86
|
+
```console
|
85
87
|
irb(main):004:0> checker = StrongPassword::StrengthChecker.new
|
86
88
|
=> #<StrongPassword::StrengthChecker:0x00007f985509db30 @min_entropy=18, @use_dictionary=false, @min_word_length=4, @extra_dictionary_words=[]>
|
87
89
|
irb(main):005:0> checker.is_strong?("password")
|
@@ -6,7 +6,7 @@ module ActiveModel
|
|
6
6
|
def validate_each(object, attribute, value)
|
7
7
|
ps = ::StrongPassword::StrengthChecker.new(**strength_options(options, object))
|
8
8
|
unless ps.is_strong?(value.to_s)
|
9
|
-
object.errors.add(attribute, :'password.password_strength', options.merge(:value => value.to_s))
|
9
|
+
object.errors.add(attribute, :'password.password_strength', **(options.merge(:value => value.to_s)))
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
data/strong_password.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ['lib']
|
20
20
|
|
21
|
-
spec.add_development_dependency 'bundler', '
|
21
|
+
spec.add_development_dependency 'bundler', '>= 1.3'
|
22
22
|
spec.add_development_dependency 'rake'
|
23
23
|
spec.add_development_dependency 'rspec', '~> 3.8'
|
24
24
|
spec.add_development_dependency 'pry'
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: strong_password
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian McManus
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
119
|
- !ruby/object:Gem::Version
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
|
-
rubygems_version: 3.
|
122
|
+
rubygems_version: 3.1.2
|
123
123
|
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: StrongPassword adds a class to check password strength and a validator for
|