password_blacklist 0.1.1 → 0.2.0

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: e67fbff8f86456f154b6562f1f2d69016f25733a
4
- data.tar.gz: e68312238bfce9a273b199ec3ac5aceabea589ff
3
+ metadata.gz: b22608c95dc5fc7c604b0349bad2c825aac95031
4
+ data.tar.gz: 55947678be70c1b81654a0540e925021ef26f8c8
5
5
  SHA512:
6
- metadata.gz: 7cbd940dbb62daf20ba620b9bc87db3194d09e1ed28ee0038d1db6003af16bfb2eabe0ea14afa5c6a4be4a570e56e3b5def15c31be55223bcd25708f796121bc
7
- data.tar.gz: 5daab1f2cda24a8b075c96cf9d00abf0469c3f74c2579c3ee9886cc12a63c09825137a1af9a37e5fc2f09fcc7c8d15e324852c421caf3b8dde46321259ac426f
6
+ metadata.gz: bac235c02a7a44cbe068f2d67954c6603971506fb09d9270fa0cc7e88f2229238884624accc90e160fd3a33f2af36b094b59c7fa6a4e02d168c559c03b665642
7
+ data.tar.gz: 16c2ed87337175d5e54bcc59bd4ba397db6f3b9ca6f210bb11a63d10b759b34322df3df911e40695442b02cd070a735e9d57fbc4138d750aa8f6819911cf0ff5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.2.0 / 2017-07-12
2
+ ------
3
+ Ignore password case sensitivity when testing a password. Thanks olbrich!
4
+
1
5
  0.1.1 / 2017-06-27
2
6
  ------
3
7
  Escape regular expression characters when checking passwords. Thanks mmzoo!
@@ -7,7 +7,7 @@ module PasswordBlacklist
7
7
  end
8
8
 
9
9
  def blacklisted?(password)
10
- !@data.match(/#{Regexp.quote(password)}/).nil?
10
+ !!@data.match(Regexp.escape(password.downcase))
11
11
  end
12
12
 
13
13
  def inspect
@@ -1,3 +1,3 @@
1
1
  module PasswordBlacklist
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.2.0'.freeze
3
3
  end
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
 
30
30
  spec.add_development_dependency 'rspec', '~> 3.5'
31
31
  spec.add_development_dependency 'simplecov', '~> 0.12.0'
32
- spec.add_development_dependency 'rubocop', '~> 0.47.1'
32
+ spec.add_development_dependency 'rubocop', '~> 0.49.1'
33
33
  spec.add_development_dependency 'coveralls', '~> 0.8.18'
34
34
  spec.add_development_dependency 'codeclimate-test-reporter', '~> 1.0.4'
35
35
  spec.add_development_dependency 'benchmark-ips', '~> 2.7.2'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: password_blacklist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gordon Chan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-27 00:00:00.000000000 Z
11
+ date: 2017-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.47.1
75
+ version: 0.49.1
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: 0.47.1
82
+ version: 0.49.1
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: coveralls
85
85
  requirement: !ruby/object:Gem::Requirement