password_blacklist 0.1.0 → 0.1.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: 7cbc24007a130de4700e9a13e8b87142830ac604
4
- data.tar.gz: b5d7a449fa973a9d7abbf4f72b55df37f2bc8196
3
+ metadata.gz: e67fbff8f86456f154b6562f1f2d69016f25733a
4
+ data.tar.gz: e68312238bfce9a273b199ec3ac5aceabea589ff
5
5
  SHA512:
6
- metadata.gz: '0499da091e425f0cfd8bebf651b2b780146420575cd9030a9cddd22f48b95e13af402447dd2b087600c67b2160b3e67666c4265326233e2d860551c611c37473'
7
- data.tar.gz: 379f316e74f556756689f7c58562ae901789e9c3400c129ff01106455ccb5fcc00809cf516d647ca07c97e364a20aa14859a83fbd31a4ca6baa448efb52c9661
6
+ metadata.gz: 7cbd940dbb62daf20ba620b9bc87db3194d09e1ed28ee0038d1db6003af16bfb2eabe0ea14afa5c6a4be4a570e56e3b5def15c31be55223bcd25708f796121bc
7
+ data.tar.gz: 5daab1f2cda24a8b075c96cf9d00abf0469c3f74c2579c3ee9886cc12a63c09825137a1af9a37e5fc2f09fcc7c8d15e324852c421caf3b8dde46321259ac426f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.1.1 / 2017-06-27
2
+ ------
3
+ Escape regular expression characters when checking passwords. Thanks mmzoo!
4
+
1
5
  0.1.0 / 2017-02-01
2
6
  ------
3
7
  Rename `test` methods to `blacklisted?`.
data/README.md CHANGED
@@ -61,7 +61,7 @@ password_blacklist supports MRI Ruby 2.x. The specific Ruby versions we build an
61
61
 
62
62
  ## Development
63
63
 
64
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. Use `bin/benchmark` to run some benchmarks.
64
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` or `rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. Use `bin/benchmark` to run some benchmarks.
65
65
 
66
66
  To install this gem onto your local machine, run `bundle exec rake install`.
67
67
 
@@ -7,7 +7,7 @@ module PasswordBlacklist
7
7
  end
8
8
 
9
9
  def blacklisted?(password)
10
- !@data.match(/#{password}/).nil?
10
+ !@data.match(/#{Regexp.quote(password)}/).nil?
11
11
  end
12
12
 
13
13
  def inspect
@@ -1,3 +1,3 @@
1
1
  module PasswordBlacklist
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
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.0
4
+ version: 0.1.1
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-02-01 00:00:00.000000000 Z
11
+ date: 2017-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -159,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  version: '0'
160
160
  requirements: []
161
161
  rubyforge_project:
162
- rubygems_version: 2.6.8
162
+ rubygems_version: 2.6.11
163
163
  signing_key:
164
164
  specification_version: 4
165
165
  summary: Checks a password against a 100k blacklist.