password_blacklist 0.3.0 → 0.4.2

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
- SHA1:
3
- metadata.gz: 0ff4acd0dbff5c87b77bee96f2b5432e7afc80ee
4
- data.tar.gz: 70ea7644c71f73bbf6c41d4a5371fff405d4669b
2
+ SHA256:
3
+ metadata.gz: b2f343cbcdab3887ff9ea6d58742fa7aa16c54858715877b82fb074f160c72a9
4
+ data.tar.gz: b3be92f672d6d07cd811032705810c5ec38348a2bfacd13139dee04b47039a25
5
5
  SHA512:
6
- metadata.gz: e019946c334574111a29317f02bbd6a274393ae04b84a72d0c7c143781fce83f7257b81ddcdd82742f94ea9dc8f3926977c36f6ff0e214c8765ca3966520521d
7
- data.tar.gz: 05aaa08d1eeb7ee2b1f2667899f06625f6406cbf4f6a6d0a758c8f3e76981b22b3c3ed56ce00371fc8d9090df21211400b51c7087b22e14f35908797dc62440f
6
+ metadata.gz: 35c294f91b782bff4eb04e82877d9752a84f09e1d15226d8eca9b1ae9fb5605d029fef3625d3277f45d7c0c5d9d46afb4ceb83e531ad99bdaabee766959a2f03
7
+ data.tar.gz: e23d30aad51bbcab2d36bfb4aca3d6f4d38eecda06698283b6f8c4ec537831c3fea6a15bf0f680a9fc52a556de4103a533011d1542bde7ab1e79a8f4fb466b23
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ 0.4.1 / 2022-04-02
2
+ ------
3
+ * Added a post-install message and deprecation message regarding renaming
4
+ this library.
5
+ * No other functional changes.
6
+
7
+ 0.4.0 / 2021-08-10
8
+ ------
9
+ Support Ruby 3.0. Thanks matssigge!
10
+ Update simplecov and coveralls development dependency versions. Thanks matssigge!
11
+ Update rake and bundler development dependency versions.
12
+ Fix benchmark code.
13
+ Add memory profiler to compare String, Array and Set.
14
+
1
15
  0.3.0 / 2017-07-13
2
16
  ------
3
17
  Use the "Probable-Wordlists" (https://github.com/berzerk0/Probable-Wordlists) wordlist. Thanks olbrich!
@@ -1,3 +1,3 @@
1
1
  module PasswordBlacklist
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.4.2'.freeze
3
3
  end
@@ -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
@@ -11,10 +11,17 @@ 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 95,000 common passwords'
14
+ present in a blacklist of 95,000 common passwords. This gem has been
15
+ DEPRECATED; please switch to password_blocklist for continued support.
16
+ See migration details in the README.'
15
17
  spec.homepage = 'https://www.github.com/gchan/password_blacklist'
16
18
  spec.license = 'MIT'
17
19
 
20
+ spec.post_install_message = "The password_blacklist gem has been deprecated" \
21
+ " and has been replaced by password_blocklist.\nPlease switch to " \
22
+ "password_blocklist for continued support and new features.\nMigration " \
23
+ "guide can be found in the README."
24
+
18
25
  spec.files = Dir['lib/**/*.rb'] + Dir['data/*'] +
19
26
  %w(password_blacklist.gemspec CHANGELOG.md LICENSE.txt README.md)
20
27
 
@@ -22,15 +29,16 @@ Gem::Specification.new do |spec|
22
29
  spec.require_paths = ['lib']
23
30
  spec.platform = Gem::Platform::RUBY
24
31
 
25
- spec.required_ruby_version = '~> 2.0'
32
+ spec.required_ruby_version = '>= 2.0'
26
33
 
27
- spec.add_development_dependency 'bundler', '~> 1.13'
28
- spec.add_development_dependency 'rake', '~> 12.0.0'
34
+ spec.add_development_dependency 'bundler', ">= 2.2.10"
35
+ spec.add_development_dependency 'rake', ">= 12.3.3"
29
36
 
30
37
  spec.add_development_dependency 'rspec', '~> 3.5'
31
- spec.add_development_dependency 'simplecov', '~> 0.12.0'
38
+ spec.add_development_dependency 'simplecov', '~> 0.16.1'
32
39
  spec.add_development_dependency 'rubocop', '~> 0.49.1'
33
- spec.add_development_dependency 'coveralls', '~> 0.8.18'
40
+ spec.add_development_dependency 'coveralls', '~> 0.8.23'
34
41
  spec.add_development_dependency 'codeclimate-test-reporter', '~> 1.0.4'
35
42
  spec.add_development_dependency 'benchmark-ips', '~> 2.7.2'
43
+ spec.add_development_dependency 'memory_profiler', '~> 1.0.0'
36
44
  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.3.0
4
+ version: 0.4.2
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: 2017-07-13 00:00:00.000000000 Z
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: '1.13'
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: '1.13'
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.0.0
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.0.0
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.12.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.12.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.18
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.18
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,25 @@ 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 95,000 common passwords
141
+ present in a blacklist of 95,000 common passwords. This gem has been
142
+ DEPRECATED; please switch to password_blocklist for continued support.
143
+ See migration details in the README.
128
144
  email:
129
145
  - developer.gordon+github@gmail.com
130
146
  executables: []
@@ -143,13 +159,16 @@ homepage: https://www.github.com/gchan/password_blacklist
143
159
  licenses:
144
160
  - MIT
145
161
  metadata: {}
146
- post_install_message:
162
+ post_install_message: |-
163
+ The password_blacklist gem has been deprecated and has been replaced by password_blocklist.
164
+ Please switch to password_blocklist for continued support and new features.
165
+ Migration guide can be found in the README.
147
166
  rdoc_options: []
148
167
  require_paths:
149
168
  - lib
150
169
  required_ruby_version: !ruby/object:Gem::Requirement
151
170
  requirements:
152
- - - "~>"
171
+ - - ">="
153
172
  - !ruby/object:Gem::Version
154
173
  version: '2.0'
155
174
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -158,9 +177,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
177
  - !ruby/object:Gem::Version
159
178
  version: '0'
160
179
  requirements: []
161
- rubyforge_project:
162
- rubygems_version: 2.6.11
163
- signing_key:
180
+ rubygems_version: 3.1.6
181
+ signing_key:
164
182
  specification_version: 4
165
183
  summary: Checks a password against a 100k blacklist.
166
184
  test_files: []