password_blacklist 0.2.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +18 -0
- data/README.md +5 -2
- data/data/{100k_passwords.txt → Top95Thousand-probable.txt} +94515 -99531
- data/lib/password_blacklist/checker.rb +1 -1
- data/lib/password_blacklist/version.rb +1 -1
- data/lib/password_blacklist.rb +7 -0
- data/password_blacklist.gemspec +12 -6
- metadata +38 -22
data/lib/password_blacklist.rb
CHANGED
@@ -1,9 +1,16 @@
|
|
1
1
|
require 'password_blacklist/version'
|
2
2
|
require 'password_blacklist/checker'
|
3
|
+
require 'logger'
|
3
4
|
|
4
5
|
module PasswordBlacklist
|
5
6
|
module_function
|
6
7
|
|
8
|
+
Logger.new(STDOUT).warn(
|
9
|
+
"password_blacklist has been renamed to password_blacklist. Please " \
|
10
|
+
"switch to password_blocklist for continued support and new features. " \
|
11
|
+
"Migration guide can be found in the README."
|
12
|
+
)
|
13
|
+
|
7
14
|
def blacklisted?(password)
|
8
15
|
Checker.new.blacklisted?(password)
|
9
16
|
end
|
data/password_blacklist.gemspec
CHANGED
@@ -11,10 +11,15 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = 'Checks a password against a 100k blacklist.'
|
13
13
|
spec.description = 'A simple Ruby library to check if a given string is
|
14
|
-
present in a blacklist of
|
14
|
+
present in a blacklist of 95,000 common passwords'
|
15
15
|
spec.homepage = 'https://www.github.com/gchan/password_blacklist'
|
16
16
|
spec.license = 'MIT'
|
17
17
|
|
18
|
+
spec.post_install_message = "The password_blacklist gem has been deprecated" \
|
19
|
+
" and has been replaced by password_blocklist.\nPlease switch to " \
|
20
|
+
"password_blocklist for continued support and new features.\nMigration " \
|
21
|
+
"guide can be found in the README."
|
22
|
+
|
18
23
|
spec.files = Dir['lib/**/*.rb'] + Dir['data/*'] +
|
19
24
|
%w(password_blacklist.gemspec CHANGELOG.md LICENSE.txt README.md)
|
20
25
|
|
@@ -22,15 +27,16 @@ Gem::Specification.new do |spec|
|
|
22
27
|
spec.require_paths = ['lib']
|
23
28
|
spec.platform = Gem::Platform::RUBY
|
24
29
|
|
25
|
-
spec.required_ruby_version = '
|
30
|
+
spec.required_ruby_version = '>= 2.0'
|
26
31
|
|
27
|
-
spec.add_development_dependency 'bundler',
|
28
|
-
spec.add_development_dependency 'rake',
|
32
|
+
spec.add_development_dependency 'bundler', ">= 2.2.10"
|
33
|
+
spec.add_development_dependency 'rake', ">= 12.3.3"
|
29
34
|
|
30
35
|
spec.add_development_dependency 'rspec', '~> 3.5'
|
31
|
-
spec.add_development_dependency 'simplecov', '~> 0.
|
36
|
+
spec.add_development_dependency 'simplecov', '~> 0.16.1'
|
32
37
|
spec.add_development_dependency 'rubocop', '~> 0.49.1'
|
33
|
-
spec.add_development_dependency 'coveralls', '~> 0.8.
|
38
|
+
spec.add_development_dependency 'coveralls', '~> 0.8.23'
|
34
39
|
spec.add_development_dependency 'codeclimate-test-reporter', '~> 1.0.4'
|
35
40
|
spec.add_development_dependency 'benchmark-ips', '~> 2.7.2'
|
41
|
+
spec.add_development_dependency 'memory_profiler', '~> 1.0.0'
|
36
42
|
end
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: password_blacklist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gordon Chan
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-02 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
|
-
version:
|
19
|
+
version: 2.2.10
|
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
|
-
version:
|
26
|
+
version: 2.2.10
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 12.
|
33
|
+
version: 12.3.3
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 12.
|
40
|
+
version: 12.3.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.16.1
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.16.1
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubocop
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.8.
|
89
|
+
version: 0.8.23
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.8.
|
96
|
+
version: 0.8.23
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: codeclimate-test-reporter
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,9 +122,23 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 2.7.2
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: memory_profiler
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 1.0.0
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 1.0.0
|
125
139
|
description: |-
|
126
140
|
A simple Ruby library to check if a given string is
|
127
|
-
present in a blacklist of
|
141
|
+
present in a blacklist of 95,000 common passwords
|
128
142
|
email:
|
129
143
|
- developer.gordon+github@gmail.com
|
130
144
|
executables: []
|
@@ -134,7 +148,7 @@ files:
|
|
134
148
|
- CHANGELOG.md
|
135
149
|
- LICENSE.txt
|
136
150
|
- README.md
|
137
|
-
- data/
|
151
|
+
- data/Top95Thousand-probable.txt
|
138
152
|
- lib/password_blacklist.rb
|
139
153
|
- lib/password_blacklist/checker.rb
|
140
154
|
- lib/password_blacklist/version.rb
|
@@ -143,13 +157,16 @@ homepage: https://www.github.com/gchan/password_blacklist
|
|
143
157
|
licenses:
|
144
158
|
- MIT
|
145
159
|
metadata: {}
|
146
|
-
post_install_message:
|
160
|
+
post_install_message: |-
|
161
|
+
The password_blacklist gem has been deprecated and has been replaced by password_blocklist.
|
162
|
+
Please switch to password_blocklist for continued support and new features.
|
163
|
+
Migration guide can be found in the README.
|
147
164
|
rdoc_options: []
|
148
165
|
require_paths:
|
149
166
|
- lib
|
150
167
|
required_ruby_version: !ruby/object:Gem::Requirement
|
151
168
|
requirements:
|
152
|
-
- - "
|
169
|
+
- - ">="
|
153
170
|
- !ruby/object:Gem::Version
|
154
171
|
version: '2.0'
|
155
172
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
@@ -158,9 +175,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
175
|
- !ruby/object:Gem::Version
|
159
176
|
version: '0'
|
160
177
|
requirements: []
|
161
|
-
|
162
|
-
|
163
|
-
signing_key:
|
178
|
+
rubygems_version: 3.1.6
|
179
|
+
signing_key:
|
164
180
|
specification_version: 4
|
165
181
|
summary: Checks a password against a 100k blacklist.
|
166
182
|
test_files: []
|